How it works
Every whole number can be written as a product of prime numbers. The LCM needs enough of each prime to build every number in your list — no more.
- Type two or more whole numbers, separated by commas or spaces.
- Read the least common multiple and the greatest common factor instantly.
- Open Show the working to see each prime factorization and how the LCM is built.
The method
LCM = product of each prime at its highest power
The GCF works the other way round: it takes each prime that appears in every number, at its lowest power.
Worked examples
Example
LCM of 12, 18 and 30
12 = 2² × 3, 18 = 2 × 3², 30 = 2 × 3 × 5.
Highest powers: 2² × 3² × 5 = 180. The GCF is 2 × 3 = 6.
Example
Adding fractions
To add 5/12 + 7/18, use the LCM of 12 and 18 as the common denominator: 36.
15/36 + 14/36 = 29/36.
LCM of common pairs
| Numbers | LCM | GCF |
|---|---|---|
| 4 and 6 | 12 | 2 |
| 6 and 8 | 24 | 2 |
| 8 and 12 | 24 | 4 |
| 9 and 12 | 36 | 3 |
| 12 and 18 | 36 | 6 |
| 15 and 20 | 60 | 5 |