Enter two or more numbers to find their least common multiple, worked out with prime factors.
Two or more whole numbers, separated by commas or spaces.
Write each number as a product of primes. The least common multiple uses every prime that appears, each raised to the highest power it has in any of the numbers. For two numbers there is a shortcut: LCM = a × b ÷ GCF.
| Numbers | LCM |
|---|---|
| 2 and 3 | 6 |
| 3 and 4 | 12 |
| 4 and 6 | 12 |
| 6 and 8 | 24 |
| 8 and 12 | 24 |
| 12 and 18 | 36 |
| 6 and 10 | 30 |
| 9 and 12 | 36 |
| 12 and 15 | 60 |
| 15 and 20 | 60 |
36. 12 = 2² × 3 and 18 = 2 × 3², so the LCM is 2² × 3² = 36.
Mostly for adding and subtracting fractions: the least common denominator is the LCM of the denominators. It also answers "when will two repeating events line up again" problems.
The LCM is the smallest number both numbers divide into. The GCF is the largest number that divides into both. For 12 and 18, the LCM is 36 and the GCF is 6.