The LCM of two or more numbers is the smallest number that each of them divides into exactly, so the LCM of 12 and 18 is 36. LCM stands for least common multiple, and you need it to add fractions, solve bell and traffic light problems, and answer a fixed question in almost every school test.
The LCM calculator just below shows the answer and the prime factor working for each number. Read its result from the bottom up: the last line is the LCM, and the lines above it show which prime powers were picked. Then learn the three hand methods on this page, because exams ask you to show the steps.
At a glance
Full name
Least common multipleLCM of 4 and 6
12LCM of 12 and 18
36Two number formula
LCM = (a × b) ÷ HCFHand methods
Listing, prime factors, divisionCo-prime numbers
LCM = their product
What is LCM in maths: meaning and definition
A multiple of a number is what you get when you multiply it by 1, 2, 3 and so on. The multiples of 4 are 4, 8, 12, 16, 20 and onwards. A common multiple is a number found in the multiple lists of all the given numbers. The LCM is the least, or smallest, of those common multiples.
Definition: the LCM of whole numbers a and b is the smallest positive number that both a and b divide without a remainder. So LCM means the first place where the times tables of the numbers meet. Two facts follow at once. The LCM is never smaller than the biggest given number, and if one number divides the other, the bigger number is the LCM. For example, the LCM of 5 and 20 is 20.
LCM is often taught next to HCF, the highest common factor. If you mix up the two, read our page on how to find HCF and the wider number system notes.
How to find LCM: choose one of three methods
Here is how to calculate LCM by hand in three standard ways. All of them give the same answer. Pick the one that suits the numbers in front of you.
- Listing multiples: best for small numbers, up to about 12. Quick for class 3 and class 4 sums.
- Prime factorisation: best for two or three larger numbers, and the method asked in class 10 answers.
- Division method: best for three or more numbers at once. Many students find it the fastest LCM method on paper.
Whichever you use, finish with a check: divide your answer by each of the given numbers. Every division must come out exact.
Method 1: list the multiples
- Write the first few multiples of each number in a row.
- Circle the numbers that appear in every row.
- The smallest circled number is the LCM.
Example 1. Find the LCM of 4 and 6.
- Multiples of 4: 4, 8, 12, 16, 20, 24
- Multiples of 6: 6, 12, 18, 24
- Common multiples: 12, 24
- Smallest common multiple: 12
So LCM (4, 6) = 12.
This is the method to start with for LCM for class 3. Ask the child to say the two tables aloud and stop at the first number that comes in both. The weakness of listing is speed. For 18 and 24 you would need many terms before the rows meet, so switch to prime factors.
Method 2: prime factorisation and the LCM formula with powers
Break each number into primes and write them with powers. The LCM takes every prime that appears, each raised to its highest power.
Example 2. Find the LCM of 24 and 36.
- 24 = 2 × 2 × 2 × 3 = 23 × 3
- 36 = 2 × 2 × 3 × 3 = 22 × 32
- Highest power of 2 is 23, highest power of 3 is 32
- LCM = 23 × 32 = 8 × 9 = 72
Check: 72 ÷ 24 = 3 and 72 ÷ 36 = 2. Both exact.
Taking the lowest powers instead gives the HCF, which here is 22 × 3 = 12. Keep the two rules apart: highest powers for LCM, lowest powers for HCF.
Method 3: the division method for three numbers
Write the numbers in a row. Divide by a prime that goes into at least one of them. Bring down any number that does not divide. Keep going until the whole row is 1. Multiply all the divisors on the left.
Example 3. Find the LCM of 12, 15 and 20.
| Divisor | 12 | 15 | 20 |
|---|---|---|---|
| 2 | 6 | 15 | 10 |
| 2 | 3 | 15 | 5 |
| 3 | 1 | 5 | 5 |
| 5 | 1 | 1 | 1 |
LCM = 2 × 2 × 3 × 5 = 60.
Notice that 15 was carried down unchanged in the first two rows because 2 does not divide it. Students lose marks when they cross it out. For a full set of practice rows see our LCM by division method page.
LCM formula using HCF (two numbers only)
For any two numbers a and b, the product of the LCM and the HCF equals the product of the numbers. It shows how to take LCM in one step when the HCF is already known.
Example 4. The HCF of 18 and 24 is 6. Find their LCM.
- Product of the numbers: 18 × 24 = 432
- LCM = 432 ÷ 6 = 72
The formula works only for two numbers. For three numbers the product of LCM and HCF is usually not the product of all three, so use prime factors or division. The proof and more uses are on our page on the relation between HCF and LCM.
Word problems: what is the LCM of the timings
Questions about things that happen together again, such as bells, lights or runners on a track, are LCM questions. The word "together" or "again at the same time" is your clue.
Example 5. Three school bells ring every 6, 8 and 12 minutes. They ring together at 9:00 a.m. When will they next ring together?
- 6 = 2 × 3, 8 = 23, 12 = 22 × 3
- LCM = 23 × 3 = 24
- They ring together again after 24 minutes, at 9:24 a.m.
Example 6. Find the smallest number of sweets that can be shared equally among 4, 6 or 10 children with none left over.
- 4 = 22, 6 = 2 × 3, 10 = 2 × 5
- LCM = 22 × 3 × 5 = 60
The answer is 60 sweets.
More of these, graded by class, are in our LCM questions set.
Mistakes that cost marks
- Multiplying the numbers and stopping. 4 × 6 = 24, but the LCM is 12. The product is the LCM only when the numbers share no factor other than 1, as with 7 and 9, whose LCM is 63.
- Using lowest powers. That gives the HCF, not the LCM.
- Dropping a prime. In 12, 15 and 20, the 5 from 15 and 20 must appear in the answer.
- Dividing by a non-prime in the division method, such as 4 or 6. It can hide a factor. Use 2, 3, 5, 7 and other primes only.
- Using the HCF formula for three numbers. It is a two number rule.
Quick check and next steps
Before you move on, run two checks on your answer. First, the LCM must be a multiple of every given number. Second, it must be at least as large as the largest number. If the LCM of 15 and 25 came out as 50, the first check fails at once, because 50 ÷ 15 is not exact. The right answer is 75.
When fractions are involved, the LCM of the denominators gives the common denominator. See LCM of fractions for that case, and LCM and HCF for a side by side summary.
Frequently asked questions
What is the LCM of 8 and 12?
The LCM of 8 and 12 is 24. Write 8 = 23 and 12 = 22 × 3, then take the highest powers: 23 × 3 = 24.
What is the LCM of 9 and 12?
It is 36. The multiples of 9 are 9, 18, 27, 36 and those of 12 are 12, 24, 36, so 36 is the first common one.
Can the LCM be smaller than the given numbers?
No. The LCM is a multiple of each number, so it is always equal to or larger than the biggest of them. It equals the biggest number only when that number is divisible by all the others.
How to do LCM of three numbers quickly?
Use the division method. Write the three numbers in a row, divide by primes, carry down any number that does not divide, and multiply the divisors when the row becomes all 1s.
What is the difference between LCM and HCF?
The LCM is the smallest common multiple and the HCF is the largest common factor. In prime factor form, the LCM uses the highest power of each prime and the HCF uses the lowest power of each common prime.
Is there an LCM formula?
For two numbers, LCM = (a × b) ÷ HCF. For any count of numbers, the LCM is the product of every prime factor raised to its highest power.