LCM calculator
Least common multiple
What is LCM in math?
Worked example: LCM of 8, 12 and 15
Step 1 — Prime factorisations: 8 = 2³, 12 = 2² × 3, and 15 = 3 × 5.
Step 2 — Take the highest power of every prime that appears anywhere: 2³, 3 and 5.
Answer: LCM = 2³ × 3 × 5 = 120. Check: 120 ÷ 8 = 15, 120 ÷ 12 = 10 and 120 ÷ 15 = 8 — all whole numbers, and no smaller number manages all three.
This prime factorisation method beats listing multiples once the numbers grow, because you never write out long lists — the highest powers do all the work.
The LCM × GCF rule
For any two numbers, the numbers multiplied together always equal their LCM multiplied by their GCF: a × b = LCM(a, b) × GCF(a, b). Test it on 12 and 18: 12 × 18 = 216, and LCM 36 × GCF 6 = 216. So if you know one of the pair, the other is a single division away — LCM(12, 18) = 216 ÷ 6 = 36. Note the rule holds for two numbers only; with three or more numbers, use the prime factorisation method above instead.
Where the LCM shows up: timetables and denominators
Scheduling problems are LCM problems in disguise. If one bus leaves every 20 minutes and another every 30 minutes, and both leave together at 9:00, they next leave together after LCM(20, 30) = 60 minutes, at 10:00. The same logic lines up shift rotas, flashing lights and gym classes that repeat on different cycles.
Adding fractions is the other classic use. To work out 2/5 + 1/6, the denominators 5 and 6 need a common one: LCM(5, 6) = 30, so the sum becomes 12/30 + 5/30 = 17/30. Using the least common denominator keeps the numbers small and the final fraction easier to simplify.
Frequently asked questions
What is the LCM of 6 and 10?
How do you find the LCM of two numbers?
What is the difference between LCM and GCF?
Can I find the LCM of more than two numbers?
What is the least common denominator?
Is this LCM calculator free?
Worked example: LCM of 12 and 18
Multiples of 12 run 12, 24, 36, 48… and multiples of 18 run 18, 36, 54… The first number in both lists is the least common multiple: 36. The prime-factor method agrees: 12 = 2² × 3 and 18 = 2 × 3², so the LCM takes the highest power of each prime — 2² × 3² = 36.
The LCM is the tool behind adding fractions with different denominators: 1/12 + 5/18 becomes 3/36 + 10/36 = 13/36, because 36 is the smallest denominator both fractions can share.