The least common multiple (LCM) of two or more whole numbers is the smallest positive number that each of them divides into evenly. For 12 and 18, the multiples of 12 are 12, 24, 36, 48… and the multiples of 18 are 18, 36, 54… The first number on both lists is 36, so the LCM of 12 and 18 is 36.
How to use this calculator
- Type two or more whole numbers, separated by commas, spaces or line breaks.
- Press FIND LCM.
- Read the LCM at the top, then check the steps: the calculator works through the numbers two at a time.
- The GCF of your numbers is shown too, since the two are linked by the formula below.
The formula
For two numbers, LCM(a, b) = a × b ÷ GCF(a, b). For 12 and 18: 12 × 18 = 216, and the GCF of 12 and 18 is 6, so 216 ÷ 6 = 36.
For three or more numbers, work in pairs: LCM(a, b, c) = LCM(LCM(a, b), c).
Worked example
Step 1: LCM(12, 18) = 36. Step 2: LCM(36, 24) = 72.
Check: 72 ÷ 12 = 6, 72 ÷ 18 = 4, 72 ÷ 24 = 3. All whole, and no smaller number works.
LCM(12, 18, 24) = 72. The GCF of the three numbers is 6.
Smaller case: LCM(4, 6) = 12, since 12 ÷ 4 = 3 and 12 ÷ 6 = 2.
Where the LCM shows up
Adding fractions with different denominators: to add 1/4 and 1/6, use the LCM of 4 and 6, which is 12, as the common denominator. Repeating schedules: if one bus runs every 12 minutes and another every 18, both leave together every 36 minutes. Any time two cycles have to line up, the answer is their LCM.
Frequently asked questions
What is the LCM of 12 and 18?
36. The multiples of 12 are 12, 24, 36… and the multiples of 18 are 18, 36… The first match is 36.
How do you find the LCM of three numbers?
Work in pairs: first find the LCM of the first two, then the LCM of that result and the third number. For 12, 18 and 24: LCM(12, 18) = 36, then LCM(36, 24) = 72.
What is the difference between LCM and GCF?
The LCM is the smallest number both divide into; the GCF is the largest number that divides both. For 12 and 18, the LCM is 36 and the GCF is 6.
Can the LCM be smaller than the numbers?
No. For positive whole numbers the LCM is at least as big as the largest number you started with. It equals the largest number when that number is a multiple of the others: the LCM of 6 and 12 is 12.
What if the numbers share no common factor?
Then the LCM is just their product. 7 and 5 share no factor except 1, so their LCM is 7 × 5 = 35.
Sources
Math is Fun: Least Common Multiple explains the listing-multiples method with worked examples.