The least common multiple (LCM) of a set of numbers is the smallest number that all of them divide into exactly. You need it to add fractions with different denominators and to work out when repeating events will line up again. Our LCM calculator finds the LCM of any list of whole numbers and shows each number's prime factors. This guide explains three ways to find it and where it is useful.
How to use the calculator
Type the numbers separated by commas or spaces. With the default 4, 6, 15:
- LCM: 60
- Prime factors: 4 = 2², 6 = 2 × 3, 15 = 3 × 5
60 is the smallest number divisible by 4, 6 and 15.
Method 1: list the multiples
Write out multiples of each number until you find one they share.
- 4: 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60
- 6: 6, 12, 18, 24, 30, 36, 42, 48, 54, 60
- 15: 15, 30, 45, 60
The first number in every list is 60. This works for small numbers but gets slow quickly.
Method 2: prime factorization
Take every prime that appears in any number, using its highest power.
- 4 = 2²
- 6 = 2 × 3
- 15 = 3 × 5
LCM = 2² × 3 × 5 = 60.
Compare this with the GCF, which uses only shared primes at their lowest power. The prime factorization calculator gives the factors.
Method 3: using the GCF
For two numbers, there is a shortcut:
For 12 and 18: GCF = 6, so LCM = 216 ÷ 6 = 36. For more numbers, work in pairs: LCM(4, 6) = 12, then LCM(12, 15) = 180 ÷ 3 = 60. The GCF calculator finds the GCF with Euclid's algorithm.
Adding fractions with the LCM
To add or subtract fractions, you need a common denominator, and the LCM of the denominators is the smallest one, which keeps numbers manageable.
1/4 + 1/6 + 1/15:
- LCM(4, 6, 15) = 60.
- Convert: 15/60 + 10/60 + 4/60.
- Add: 29/60.
The fraction calculator does this for any pair of fractions.
Timing problems
The LCM tells you when repeating cycles line up.
Buses. One bus leaves every 12 minutes and another every 18 minutes. If both leave at 8:00, they next leave together after LCM(12, 18) = 36 minutes, at 8:36.
Shopping. Hot dogs come in packs of 10 and buns in packs of 8. To have exactly the same number of each, buy LCM(10, 8) = 40 of each: 4 packs of hot dogs and 5 packs of buns.
Gears. Two meshing gears with 24 and 36 teeth return to their starting positions together after LCM(24, 36) = 72 teeth have passed, which is 3 turns of the first and 2 of the second.
Schedules. Tasks every 4, 6 and 15 days all fall on the same day every 60 days.
Quick facts
- If one number divides the other, the larger is the LCM: LCM(5, 20) = 20.
- If two numbers are coprime, the LCM is their product: LCM(8, 15) = 120.
- The LCM is never smaller than the largest number in the list.
- LCM × GCF = the product of the two numbers (for exactly two numbers).
LCM versus GCF
People often mix them up. The LCM is a multiple, so it is at least as big as the numbers. The GCF is a factor, so it is no bigger than the smallest number. For 4, 6 and 15, the LCM is 60 and the GCF is 1. The common factor calculator lists all shared factors.
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 calculation is the same.
Can I find the LCM of more than two numbers?
Yes. Enter as many numbers as you like. The calculator combines them in pairs.
What is the LCM of two prime numbers?
Their product, because they share no factors. LCM(7, 11) = 77.
Can the LCM be one of the numbers?
Yes, when that number is a multiple of all the others. LCM(3, 6, 12) = 12.
Try it yourself
Run your own numbers with our free tool: Least common multiple (LCM) calculator. No sign-up, and it works on any device.