LCM Calculator (Least Common Multiple)
Enter 2 to 6 whole numbers, for example 12, 18, 24.
LCM(6, 10) = 30
- GCF: 2
Step-by-step solution
- Prime factorisation of 6: 6 = 2 × 3.
- Prime factorisation of 10: 10 = 2 × 5.
- Take the highest power of each prime: 2, 3, 5.
- Multiply them: 2 × 3 × 5 = 30.
- Check with the formula LCM = (a × b) ÷ GCF = 60 ÷ 2 = 30.
Example shown: the default numbers above. Change them and press Calculate.
What you get when you use this calculator
Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.
How to use the LCM Calculator
- Type your numbers into the boxes above.
- Press Calculate (or hit Enter).
- Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
- Use Copy answer to paste the result into your homework or notes.
Formula and method
| Two numbers | LCM(a, b) = (a × b) ÷ GCF(a, b) |
|---|---|
| Prime method | multiply the highest power of every prime |
Worked examples
Example 1: 6, 10
LCM(6, 10) = 30
- Prime factorisation of 6: 6 = 2 × 3.
- Prime factorisation of 10: 10 = 2 × 5.
- Take the highest power of each prime: 2, 3, 5.
- Multiply them: 2 × 3 × 5 = 30.
- Check with the formula LCM = (a × b) ÷ GCF = 60 ÷ 2 = 30.
Example 2: 4, 6, 15
LCM(4, 6, 15) = 60
- Prime factorisation of 4: 4 = 22.
- Prime factorisation of 6: 6 = 2 × 3.
- Prime factorisation of 15: 15 = 3 × 5.
- Take the highest power of each prime: 22, 3, 5.
- Multiply them: 4 × 3 × 5 = 60.
Example 3: 12, 18, 24, 30
LCM(12, 18, 24, 30) = 360
Show the steps
- Prime factorisation of 12: 12 = 22 × 3.
- Prime factorisation of 18: 18 = 2 × 32.
- Prime factorisation of 24: 24 = 23 × 3.
- Prime factorisation of 30: 30 = 2 × 3 × 5.
- Take the highest power of each prime: 23, 32, 5.
- Multiply them: 8 × 9 × 5 = 360.
Example 4: 21, 6
LCM(21, 6) = 42
Show the steps
- Prime factorisation of 21: 21 = 3 × 7.
- Prime factorisation of 6: 6 = 2 × 3.
- Take the highest power of each prime: 2, 3, 7.
- Multiply them: 2 × 3 × 7 = 42.
- Check with the formula LCM = (a × b) ÷ GCF = 126 ÷ 3 = 42.
Practice problems
Try each one on paper first, then open the answer.
Problem 1: 8, 12
LCM(8, 12) = 24
Problem 2: 9, 15
LCM(9, 15) = 45
Problem 3: 5, 7, 10
LCM(5, 7, 10) = 70
Problem 4: 14, 21, 35
LCM(14, 21, 35) = 210
Frequently asked questions
What is the LCM of 6 and 10?
30. The multiples of 6 are 6, 12, 18, 24, 30 and of 10 are 10, 20, 30, so 30 is the first they share.
What is the difference between LCM and GCF?
The GCF is the largest number that divides all your numbers. The LCM is the smallest number that all your numbers divide into.
When do I use the LCM?
To add or subtract fractions (the LCM of the denominators is the least common denominator) and to solve scheduling problems that repeat in cycles.
Learn the method
Related calculators
GCF Calculator
Find the greatest common factor, also called GCD or HCF, of two or more numbers. Shows prime factors and a Venn diagram.
Least Common Denominator
Find the least common denominator of two or more fractions and rewrite each fraction over it.
Prime Factorization
Break any whole number into prime factors. Shows the factor tree, the exponent form and all factors of the number.
Calculators are for learning and general use. If a result matters (an exam, a build, a purchase), double-check it. Read the disclaimer.