All tools › Math Calculators › Arithmetic
Enter two or more whole numbers to find the smallest number they all divide into.
Find the least common multiple
The least common multiple (LCM) of a set of whole numbers is the smallest number that every one of them divides into evenly. This LCM calculator finds it for 2 to 20 numbers at once, shows the prime factorization of each number and of the answer, and tells you how many times each number fits into the LCM.
You need the LCM in two main situations: finding a common denominator so you can add or compare fractions, and working out when repeating events line up again.
How to use the LCM calculator
- Type your numbers into Whole numbers (separate with commas or spaces). Enter at least two.
- Read the Least common multiple at the top.
- Check the table “How each number fits”. The last column, “LCM divided by the number”, is the multiplier that takes each number up to the LCM.
How the LCM is calculated
For two numbers, the calculator uses the link between the LCM and the greatest common factor (GCF):
LCM(a, b) = a / GCF(a, b) x b
Here a and b are your two numbers, and GCF(a, b) is the largest number that divides both. For more than two numbers it works in a chain: the LCM of the first two, then the LCM of that result and the third number, and so on.
The prime factorizations on screen show the same answer another way. Break each number into primes, then take every prime that appears, raised to the highest power found in any one number. Multiply those together and you have the LCM.
Worked example: LCM of 6, 8 and 15
Input: 6, 8, 15.
| Number | Prime factorization | LCM divided by the number |
|---|---|---|
| 6 | 2 x 3 | 20 |
| 8 | 2^3 | 15 |
| 15 | 3 x 5 | 8 |
The calculator returns a least common multiple of 120, with the prime factorization 2^3 x 3 x 5. The highest power of 2 is 2^3 (from 8), the highest power of 3 is 3 (from 6 and 15), and the highest power of 5 is 5 (from 15). 8 × 3 × 5 = 120.
It also reports that the greatest common factor of the same three numbers is 1. That does not mean the LCM is simply 6 × 8 × 15 = 720: pairs of the numbers still share factors (6 and 8 share 2, 6 and 15 share 3), so the true LCM is much smaller.
Using the LCM for common denominators
To add 1/4 and 1/6 you need both fractions over the same bottom number. Enter 4, 6 and the calculator gives an LCM of 12, with “LCM divided by the number” showing 3 for 4 and 2 for 6.
Those multipliers are exactly what you need. Multiply the top and bottom of 1/4 by 3 to get 3/12, and the top and bottom of 1/6 by 2 to get 2/12. Now add: 3/12 + 2/12 = 5/12. Using the least common denominator keeps the numbers small, so there is less reducing to do at the end.
Using the LCM for schedules and cycles
The LCM answers “when will these happen together again?” for anything that repeats at a fixed interval.
- You water one plant every 6 days, another every 8 days and a third every 15 days. If you water all three today, the next day all three fall together is 120 days from now.
- One bus leaves a stop every 10 minutes and another every 15 minutes. The LCM of 10 and 15 is 30, so they leave together every 30 minutes.
- Items sold in packs of 6 and packs of 8: the LCM is 24, so 24 is the smallest total where you can buy whole packs of both with none left over (4 packs of 6 and 3 packs of 8).
Limits and assumptions
- It accepts positive whole numbers only: no zero, negatives, decimals or fractions.
- You can enter 2 to 20 numbers, each up to 1 billion.
- LCMs grow quickly. If the answer is too large to show exactly, the calculator says so instead of giving a rounded value.
- For schedules, it assumes every cycle starts at the same moment and never drifts. Real timetables with different start times need an extra step.
Frequently asked questions
What is the difference between LCM and LCD?
The least common denominator (LCD) is just the LCM of the denominators of a set of fractions. The method is identical.
Is the LCM always the numbers multiplied together?
Only when the numbers share no common factors. The LCM of 7 and 9 is 63, their product, but the LCM of 6 and 8 is 24, not 48.
Can the LCM be one of the numbers I entered?
Yes. If the largest number is a multiple of all the others, it is the LCM. For 3, 6 and 12 the LCM is 12.
What is the LCM of two prime numbers?
It is their product, because two different primes share no factor other than 1.
Related calculators
- GCF Calculator – the largest number that divides all your numbers.
- Fraction Calculator – adds fractions using the common denominator for you.
- Ratio Calculator – simplify and scale ratios.
- Date Calculator – add the number of days from a cycle to a calendar date.

