This free LCM calculator finds the least common multiple of two or more whole numbers and shows how the answer is reached. Enter up to ten numbers separated by commas and the calculator returns the LCM, the greatest common factor, and step-by-step working with three methods: prime factorization, the GCF formula and a list of multiples with the first shared one highlighted. It is useful for adding fractions with different denominators, solving "when will they meet again" word problems and checking homework. The least common multiple is sometimes called the lowest common multiple or the smallest common multiple.
How to use the LCM calculator
- Type your numbers in the box, for example
4, 6, 10. Separate them with commas, spaces or semicolons. You can enter from two to ten positive whole numbers. - Press "Find the LCM" or hit Enter.
- Read the result. The large number is the least common multiple. The cards beneath it show the GCF, the product check for two numbers, and how many times each number goes into the LCM, which is the multiplier you need when converting fractions to a common denominator.
- Follow the steps. Each method is laid out so you can copy it into your notes.
What is the least common multiple?
A multiple of a number is what you get when you multiply it by 1, 2, 3 and so on. The multiples of 4 are 4, 8, 12, 16, 20, 24 and onward forever. A common multiple of two numbers is a number that appears on both lists. The least common multiple is the smallest positive one.
For 4 and 6, the multiples of 4 are 4, 8, 12, 16, 20, 24 and the multiples of 6 are 6, 12, 18, 24. The common multiples are 12, 24, 36 and so on, and the smallest is 12. So LCM(4, 6) = 12.
Three ways to find the LCM
1. Listing multiples
Write out the multiples of each number until you find the first one they share. It is simple and visual, and great for small numbers. With larger numbers the lists get long, so the other methods are faster.
Example: LCM of 6 and 8. Multiples of 6: 6, 12, 18, 24, 30. Multiples of 8: 8, 16, 24, 32. The LCM is 24.
2. Prime factorization
Write each number as a product of primes. Then take every prime that appears in any of the numbers, at the highest power it appears, and multiply them together.
18 = 2 × 3²
30 = 2 × 3 × 5
LCM = 2² × 3² × 5 = 180
This is the mirror image of finding the greatest common factor, where you use only the shared primes at their lowest power.
3. Using the GCF
For two numbers, the fastest method is a formula that links the LCM and the greatest common factor:
For 12 and 18: the GCF is 6, so LCM = 12 × 18 ÷ 6 = 216 ÷ 6 = 36. To avoid huge intermediate numbers, divide first: 12 ÷ 6 × 18 = 36. For more than two numbers, apply the formula one pair at a time: LCM(a, b, c) = LCM(LCM(a, b), c).
The ladder (cake) method
Many classrooms teach the ladder method. Write the numbers in a row and divide by any prime that divides at least two of them, bringing down numbers that do not divide. Keep going until no prime divides two of the remaining numbers. The LCM is the product of all the divisors on the left and all the numbers left at the bottom. For 12, 18 and 30: divide by 2 (6, 9, 15), by 3 (2, 3, 5); nothing else is shared, so LCM = 2 × 3 × 2 × 3 × 5 = 180.
LCM examples and quick reference table
| Numbers | Prime factors | LCM |
|---|---|---|
| 2 and 3 | 2; 3 | 6 |
| 3 and 4 | 3; 2² | 12 |
| 4 and 6 | 2²; 2 × 3 | 12 |
| 6 and 8 | 2 × 3; 2³ | 24 |
| 8 and 12 | 2³; 2² × 3 | 24 |
| 9 and 12 | 3²; 2² × 3 | 36 |
| 10 and 15 | 2 × 5; 3 × 5 | 30 |
| 12 and 15 | 2² × 3; 3 × 5 | 60 |
| 12 and 18 | 2² × 3; 2 × 3² | 36 |
| 15 and 20 | 3 × 5; 2² × 5 | 60 |
| 2, 3 and 4 | 2; 3; 2² | 12 |
| 3, 4 and 5 | 3; 2²; 5 | 60 |
| 4, 6 and 10 | 2²; 2×3; 2×5 | 60 |
Where the least common multiple is used
Adding and subtracting fractions
To add fractions with different denominators you need a common denominator, and the best one is the LCM of the denominators, called the least common denominator (LCD). To work out 5/12 + 7/18, find LCM(12, 18) = 36. Then 5/12 = 15/36 and 7/18 = 14/36, so the sum is 29/36. Using the LCM keeps the numbers small and often avoids simplifying afterwards. The fraction calculator does this for any two fractions.
Scheduling and repeating events
Whenever two things repeat on different cycles, the LCM tells you when they line up again. If one bus leaves every 12 minutes and another every 20 minutes, and both leave at 8:00, they next leave together after LCM(12, 20) = 60 minutes, at 9:00. Two runners who lap a track in 4 and 6 minutes meet at the start line every 12 minutes.
Buying items sold in different pack sizes
Hot dogs come in packs of 10 and buns in packs of 8. To have exactly as many of each, buy LCM(10, 8) = 40 of each: 4 packs of hot dogs and 5 packs of buns.
Gears, music and patterns
Two meshing gears with 12 and 18 teeth return to their starting position after LCM(12, 18) = 36 teeth have passed, which is 3 turns of the small gear and 2 turns of the large one. Musicians use the same idea with polyrhythms, and designers use it to work out when repeating patterns line up.
LCM vs GCF: the key differences
| Least common multiple (LCM) | Greatest common factor (GCF) | |
|---|---|---|
| Meaning | Smallest number all the numbers divide into | Largest number that divides all the numbers |
| Size | At least as big as the largest number | No bigger than the smallest number |
| Prime factor rule | All primes, highest powers | Shared primes, lowest powers |
| Typical use | Common denominators, schedules | Simplifying fractions, equal groups |
| Example (12, 18) | 36 | 6 |
For two numbers, GCF × LCM = a × b. For 12 and 18: 6 × 36 = 216 = 12 × 18.
Useful LCM shortcuts
- If one number is a multiple of the other, the larger number is the LCM. LCM(5, 35) = 35.
- If the numbers are coprime (GCF = 1), the LCM is their product. LCM(8, 9) = 72.
- Two different primes always multiply to their LCM. LCM(7, 11) = 77.
- Consecutive whole numbers are coprime, so LCM(n, n + 1) = n(n + 1).
- The LCM of 1 and any number is that number.
- The LCM of the numbers 1 to 10 is 2,520, a handy fact for puzzles.
Common mistakes
- Multiplying the numbers every time. The product is a common multiple, but it is only the least one when the numbers are coprime. 6 × 8 = 48, yet LCM(6, 8) = 24.
- Using the lowest powers in prime factorization. That gives the GCF. For the LCM, use the highest powers.
- Leaving out primes that appear in only one number. Every prime from every number belongs in the LCM.
- Confusing LCM and GCF in word problems. "When will they meet again" is an LCM question; "largest equal groups" is a GCF question.
Find the LCM in Excel, Google Sheets and Python
Both Excel and Google Sheets include an LCM function: =LCM(4,6,10) returns 60, and =LCM(A2:A6) works on a range. The partner function is =GCD(). In Python 3.9 or later, use math.lcm(4, 6, 10). On a TI-84, press MATH, open the NUM menu and choose lcm(, which accepts two numbers at a time. For a full walkthrough with practice problems, read our guide on how to find the least common multiple.
About this calculator and your privacy
This calculator runs entirely in your web browser. The numbers you type are never sent to a server, stored or shared, and you do not need an account. Results update when you press the calculate button, and the reset button clears them. We review the formulas whenever published guidelines or tax figures change, and the page was last reviewed in November 2026. If you spot a number that looks wrong, or would like another feature added, please contact us and include your inputs so we can reproduce the issue. Remember that every calculator is a simplification of real life: treat the output as a starting point for planning and check important decisions with a qualified professional.
Frequently asked questions
What is the LCM of two numbers?
The LCM (least common multiple) of two numbers is the smallest positive number that both divide into exactly. The LCM of 4 and 6 is 12.
How do you find the LCM?
List multiples of each number until you find the first shared one, or multiply every prime factor at its highest power, or use LCM(a, b) = a × b ÷ GCF(a, b).
What is the LCM of 12 and 18?
The LCM of 12 and 18 is 36. 12 = 2² × 3 and 18 = 2 × 3², so the LCM is 2² × 3² = 36.
Is the LCM the same as the least common denominator?
The least common denominator (LCD) of two fractions is the LCM of their denominators. For 1/4 and 1/6 the LCD is LCM(4, 6) = 12.
How do you find the LCM of three numbers?
Find the LCM of the first two numbers, then the LCM of that result and the third number. For 4, 6 and 10: LCM(4, 6) = 12 and LCM(12, 10) = 60.
Is the LCM always the product of the numbers?
Only when the numbers are coprime (their GCF is 1). For example LCM(8, 9) = 72, but LCM(6, 8) = 24, not 48.
What is the relationship between LCM and GCF?
For two numbers, LCM × GCF = a × b. If you know one, you can find the other by dividing the product of the two numbers by it.
Can the LCM be smaller than the numbers?
No. The LCM is always at least as large as the largest number in the set, because every number must divide into it.
This LCM calculator is a free educational tool for positive whole numbers. Very large inputs can produce an LCM beyond exact computer precision, in which case the calculator says so. Check homework answers against the method your teacher asks for.