Enter two or three whole numbers to find their Least Common Multiple.
Least Common Multiple Methods & Applications
The least common multiple (LCM) is the smallest positive number that every number in the set divides into evenly. For 4 and 6 it is 12. For two numbers the quickest route is LCM(a, b) = a × b ÷ GCF(a, b), so 4 × 6 ÷ 2 = 12. Enter two or three numbers above to get the LCM with prime factorization steps and the matching common denominator.
The Least Common Multiple (LCM) is the smallest positive number that is a multiple of all given numbers. LCM is most commonly used to find the Lowest Common Denominator (LCD) when adding or subtracting fractions with different denominators.
Formula: LCM(a, b) = (a × b) / GCF(a, b). This makes GCF and LCM closely related: knowing one gives you the other instantly.
LCM for Fraction Addition
Prime Factorization Method
Listing Multiples Method
Real-World Uses
LCM Reference Table
| Numbers | GCF | LCM | Numbers | GCF | LCM |
|---|---|---|---|---|---|
| 2 and 3 | 1 | 6 | 9 and 12 | 3 | 36 |
| 3 and 4 | 1 | 12 | 10 and 15 | 5 | 30 |
| 4 and 6 | 2 | 12 | 12 and 15 | 3 | 60 |
| 4 and 10 | 2 | 20 | 12 and 18 | 6 | 36 |
| 6 and 8 | 2 | 24 | 15 and 20 | 5 | 60 |
| 6 and 9 | 3 | 18 | 16 and 24 | 8 | 48 |
| 8 and 12 | 4 | 24 | 18 and 24 | 6 | 72 |
Every row satisfies GCF × LCM = the product of the two numbers, for example 6 × 36 = 216 = 12 × 18. The LCM of all the numbers from 1 to 10 is 2,520, from 1 to 12 it is 27,720, and from 1 to 20 it is 232,792,560.
Worked Examples
LCM(8, 12, 18) by prime factors
8 = 2³, 12 = 2² × 3 and 18 = 2 × 3². Take the highest power of each prime that appears: 2³ and 3². LCM = 8 × 9 = 72. Check: 72 ÷ 8 = 9, 72 ÷ 12 = 6, 72 ÷ 18 = 4, all whole.
Adding three fractions: 1/6 + 3/8 + 5/12
The least common denominator is LCM(6, 8, 12) = 24. Rewrite: 4/24 + 9/24 + 10/24 = 23/24. Multiplying the denominators instead would give 576 and a lot of extra simplifying. The fraction calculator does this for two fractions at a time.
Packs that do not match
Hot dogs come 10 to a pack and buns 8 to a pack. To end up with none left over you need LCM(10, 8) = 40 of each: 4 packs of hot dogs and 5 packs of buns.
Three numbers with no common factor overall
For 6, 10 and 15 the GCF of all three is 1, yet the LCM is only 30, not 6 × 10 × 15 = 900. Each pair shares a factor (2, 3 or 5), so the product is far too big.
Edge Cases and Common Mistakes
- LCM(a, 1) = a, and if one number divides the other, the LCM is the larger one: LCM(3, 12) = 12.
- Zero. The only common multiple of 0 and another number is 0, so a positive LCM does not exist. By convention LCM(a, 0) = 0, and the calculator asks for numbers above 0.
- Negative numbers. The LCM is taken as positive, so LCM(−4, 6) = 12. The calculator ignores signs.
- Just multiplying. 4 × 6 = 24 is a common multiple, but not the least one (12). The product is the LCM only when the GCF is 1.
- Using the two-number formula on three numbers. For 4, 6 and 8, the product 192 divided by the overall GCF (2) gives 96, but the real LCM is 24. With three or more numbers, chain the pairs: LCM(4, 6) = 12, then LCM(12, 8) = 24.
- Taking the lowest powers. The lowest shared powers give the GCF. For the LCM you need the highest power of every prime, including primes found in only one number. The GCF calculator shows the other side.