Overview
The least common multiple, LCM, is the smallest number that both numbers divide into exactly. It's what you need for a common denominator when adding fractions.
Enter two whole numbers. You also get their greatest common factor.
Worked examples
| Inputs | Result |
|---|---|
| First Number12Second Number18 | LCM(12, 18) = 36GCF = 6 |
Show 3 more examples
| First Number8Second Number12 | LCM(8, 12) = 24GCF = 4 |
| First Number7Second Number9 | LCM(7, 9) = 63GCF = 1 |
| First Number15Second Number25 | LCM(15, 25) = 75GCF = 5 |
LCM by first number
With the calculator's starting values, the result is 36. The table shows how it changes with the first number.
| First Number | LCM |
|---|---|
| 6 | 18 |
| 8 | 72 |
| 10 | 90 |
| 12starting value | 36 |
| 14 | 126 |
| 16 | 144 |
| 18 | 18 |
Other inputs: Second Number: 18. Change them in the calculator above for your own numbers.
How it works
The LCM is the product of the two numbers divided by their greatest common factor. The GCF comes from the Euclidean algorithm.
The formula
Practical tips
- LCM(12, 18) is 36, and their GCF is 6.
- To add 1/12 + 1/18, use 36 as the common denominator.
- If two numbers share no factors, their LCM is their product. LCM(7, 9) = 63.
Frequently asked questions
How do I find the LCM of three numbers?
Find the LCM of two, then the LCM of that and the third.
What's the difference between LCM and GCF?
The LCM is the smallest shared multiple. The GCF is the largest shared factor.
Where is LCM used?
Adding fractions, scheduling repeating events, and gear or cycle problems.