Least Common Multiple (LCM) Calculator
Find the LCM of two or more numbers. You also get the prime factors and the GCD.
How to use it
- Type two or more whole numbers, separated by commas, spaces or new lines.
- Press Calculate.
- Read the LCM and the steps below it.
LCM words explained
- Multiple
- What you get when you multiply a number by 1, 2, 3 and so on. The multiples of 4 are 4, 8, 12, 16…
- Common multiple
- A number that is a multiple of two or more numbers. 12 and 24 are both common multiples of 4 and 6.
- LCM
- Least common multiple. The smallest common multiple. For 4 and 6, it is 12.
- Prime number
- A number bigger than 1 that only divides by 1 and itself, like 2, 3, 5, 7 and 11.
- Prime factorization
- Writing a number as a product of primes. 12 = 2 × 2 × 3.
- GCD
- Greatest common divisor. The biggest number that divides all your numbers evenly.
Three ways to find the LCM
Prime factorization (used by this calculator)
- Break each number into primes.
- For each prime, find the most times it appears in any one number.
- Multiply those primes together.
Example: 12 = 2 × 2 × 3 and 18 = 2 × 3 × 3. Take two 2s and two 3s: 2 × 2 × 3 × 3 = 36.
Listing multiples
- Write out the multiples of each number.
- Find the first number that is in every list.
Example: Multiples of 4: 4, 8, 12, 16. Multiples of 6: 6, 12, 18. The first match is 12.
Using the GCD (for two numbers)
- Find the GCD of the two numbers.
- Multiply the numbers together, then divide by the GCD.
Example: For 12 and 18, the GCD is 6. So the LCM is 12 × 18 ÷ 6 = 36.
Examples
| Numbers | LCM |
|---|---|
| 4, 6 | 12 |
| 8, 12 | 24 |
| 3, 5, 7 | 105 |
| 7, 13 | 91 |
| 12, 18, 30 | 180 |
| 330, 75, 450, 225 | 4950 |
Frequently asked questions
What is the LCM used for?
The most common use is adding or subtracting fractions. The LCM of the denominators is the smallest common denominator. For 1/4 + 1/6, the LCM of 4 and 6 is 12, so you work with twelfths.
What is the LCM of numbers with nothing in common?
If two numbers share no factors other than 1, their LCM is just the two numbers multiplied. The LCM of 7 and 13 is 7 × 13 = 91.
What if one number is a multiple of the other?
Then the LCM is the bigger number. The LCM of 5 and 20 is 20.
What is the difference between LCM and GCD?
The LCM is the smallest number that all your numbers divide into. The GCD is the biggest number that divides into all of them. The LCM is never smaller than your biggest number, and the GCD is never bigger than your smallest.
Why can't I use 0?
Zero is a multiple of every number, so there is no smallest positive common multiple. Use numbers greater than 0.
How many numbers can I enter?
From 2 to 50 numbers. Each can be a whole number with up to 15 digits. Separate them with commas, spaces or new lines.