LCM Calculator
The least common multiple (LCM) of two or more numbers is the smallest number that all of them divide into exactly. This LCM calculator finds it with two methods: taking the highest power of each prime factor, and the formula LCM = product ÷ GCF. Both methods must agree.
How to use the lcm calculator
- Enter two or more whole numbers, separated by commas.
- Press Calculate.
- See the LCM, the prime factorisations and the GCF check.
Formula
Worked example: 12, 18
- Numbers: 12, 18
✓ Answer checked
Step-by-step working (3 steps)
Prime factorise each number Prime factorisation
Write each number as a product of primes.
Take the highest powers
Use every prime that appears, each to its highest power.
Check with the GCF lcm(a,b) = ab / gcd(a,b)
For two numbers, LCM = product ÷ GCF.
Formulas used
How this was checked
- ✓ 36 is a multiple of every number.
- ✓ The prime-power method gives the same result.
When to use the LCM Calculator
- Add fractions using the lowest common denominator.
- Find when two repeating events happen together, such as buses every 12 and 18 minutes.
- Plan schedules and rotations.
- Solve gear and cycle problems.
Quick facts to remember
- LCM = the smallest number that both numbers divide into.
- For two numbers, LCM = a × b ÷ GCF.
- The LCM of two primes is their product.
- With prime factors, take the highest power of each prime.
Frequently asked questions
What is the LCM of 12 and 18?
36. It is the smallest number that both 12 and 18 divide into.
How do I find the LCM with prime factors?
Prime factorise each number, then multiply each prime to its highest power. 12 = 2² × 3 and 18 = 2 × 3², so the LCM is 2² × 3² = 36.
When do I use the LCM?
To find a common denominator when adding fractions, or to work out when repeating events happen together.
People also search for
lcm calculatorleast common multiplelowest common multiplelcm calculator with stepsfree lcm calculator online
