Step by step
- Find the GCF of the two numbers.
- Multiply the numbers.
- Divide the product by the GCF to get the LCM.
At a glance
| Numbers | GCF | LCM = a × b ÷ GCF |
|---|---|---|
| 12, 18 | 6 | 216 ÷ 6 = 36 |
| 21, 28 | 7 | 588 ÷ 7 = 84 |
| 9, 20 | 1 | 180 ÷ 1 = 180 |
Related questions
Why does it fail for three numbers?
Primes shared by only some of the numbers are counted the wrong number of times.
How do I find the GCF quickly?
The Euclidean algorithm: divide and keep the remainder until it is 0; for 18 and 12: 18 mod 12 = 6, 12 mod 6 = 0, so GCF = 6.
Does the calculator use this?
It shows prime factorization and the division table, which work for any count.
More questions: lcm and gcf calculator
- How to find the LCM and GCF of two or more numbers
- What are LCM and GCF in maths?
- What is the difference between LCM and GCF?
- When to use LCM or GCF in word problems
- LCM and GCF examples with solutions
Open the full lcm and gcf calculator →
Updated November 14, 2026.