How to Find the LCM: 5 Methods, Worked Examples and Real-Life Uses

There are five standard ways to find the least common multiple (LCM). This guide works through each one with real numbers, shows which to pick for which problem, and explains why a pair of cicada broods only met again in 2024 after 221 years.

By Basit MuradReviewed

Published 10 min read

Just need the answer? Use the LCM Calculator, with every step shown.

Short answer

To find the LCM, break each number into prime factors and multiply every prime at the highest power it appears. For 18, 24 and 40 that is 2³ × 3² × 5 = 360. For two small numbers, listing multiples is faster; for two large numbers, divide their product by their HCF.

What the LCM is, and what “lowest common factor” usually means

A multiple of a number is what you get when you multiply it by 1, 2, 3 and so on. A common multiple of two numbers is a number in both of their times tables, and the least common multiple is the first one. The multiples of 6 are 6, 12, 18, 24, 30… and the multiples of 8 are 8, 16, 24, 32… The first number in both lists is 24, so the LCM of 6 and 8 is 24.

You will see it called the least common multiple (the usual name in the United States), the lowest common multiple (the usual name in UK schools), or LCM in both. People also search for the “lowest common factor”, but that phrase is a mix-up: a factor divides into a number, and 1 divides into everything, so the lowest common factor of any numbers is always 1. What they almost always want is either the LCM, covered here, or the highest common factor, covered in our guide to the HCF.

Two facts help you check any answer. The LCM is never smaller than the largest of your numbers, and every common multiple is a multiple of the LCM. The common multiples of 6 and 8 are 24, 48, 72… all multiples of 24.

Method 1: List the multiples

Write out the multiples of each number until one appears in every list. It needs no special knowledge, which is why it is taught first, and it is the quickest method when the numbers are small. The trick is to list the multiples of the larger number and test each one against the smaller numbers, which saves writing. For 6 and 8, test 8, 16, 24: 8 and 16 aren’t multiples of 6, but 24 is.

The method breaks down as numbers grow. The LCM of 18, 24 and 40 is 360, which is the 15th multiple of 24. Listing that far by hand is slow, and it is easy to skip a number.

Method 2: Prime factorisation

Every whole number above 1 can be written as a product of primes in exactly one way. This is the unique factorisation theorem, and it is why this method always works. Break each number into primes, then take every prime that appears anywhere, at the highest power it appears.

LCM of 18, 24 and 40 by prime factors

Write each number as a product of primes, then take each prime at its highest power.

18
2 × 3²
24
2³ × 3
40
2³ × 5
Highest powers
2³ (from 24 and 40), 3² (from 18), 5 (from 40)
LCM
8 × 9 × 5 = 360

LCM = 360

The 5 appears in only one number, but it still goes in: the LCM has to be a multiple of 40 as well.

The reason for the highest power is that the LCM must contain each number completely. To be a multiple of 24 it needs 2³; to be a multiple of 18 it needs 3². Anything less would leave one of the numbers unable to divide in, and anything more would no longer be the least.

Method 3: The Venn diagram

UK GCSE papers often ask for the HCF and LCM together, and a Venn diagram gives both in one picture. Draw two overlapping circles, one for each number. Put the primes the two numbers share in the overlap, and the rest in each circle’s own part. The product of the overlap is the HCF; the product of everything in the diagram is the LCM.

HCF and LCM of 84 and 90 with a Venn diagram

84 = 2² × 3 × 7 and 90 = 2 × 3² × 5.

Overlap (shared primes)
2, 3
84 only
2, 7
90 only
3, 5
HCF (overlap)
2 × 3 = 6
LCM (everything)
2 × 3 × 2 × 7 × 3 × 5 = 1,260

HCF = 6, LCM = 1,260

Each copy of a prime is written once. 84 has two 2s: one goes in the overlap with 90’s 2, the other in 84’s own part.

Method 4: The ladder (division) method

The ladder method, also called the cake or division method, handles three or more numbers at once without writing out separate factor trees. Write the numbers in a row. Divide by any prime that goes into at least two of them, and bring down the others unchanged. Repeat until no prime divides two of the numbers. The LCM is the product of the divisors down the side and the numbers left on the bottom row.

The ladder for 18, 24 and 40
Divide byRow of numbers
218, 24, 40
29, 12, 20
29, 6, 10
39, 3, 5
(stop)3, 1, 5

Divisors down the side: 2 × 2 × 2 × 3 = 24. Bottom row: 3 × 1 × 5 = 15. LCM = 24 × 15 = 360, which matches method 2. As a bonus, if you only divide by primes that go into every number, the divisors down the side give the HCF. Here only the first 2 divides all three, so the HCF of 18, 24 and 40 is 2.

Method 5: Divide the product by the HCF

LCM(a, b) = a × b ÷ HCF(a, b)

a, b
the two numbers
HCF(a, b)
their highest common factor, found quickly by Euclid’s algorithm

Multiplying two numbers counts their shared factors twice, and dividing by the HCF removes the extra copy. For 24 and 36, the HCF is 12, so the LCM is 24 × 36 ÷ 12 = 72. This is the best method for large numbers, because the HCF can be found by Euclid’s algorithm in a few divisions with no factorising at all. It is also how computers work out LCMs.

The formula is for two numbers only. For 12, 18 and 30, the product divided by the HCF is 6,480 ÷ 6 = 1,080, but the LCM is 180. With three or more numbers, work in pairs: LCM(12, 18) = 36, then LCM(36, 30) = 180.

Which method should you use?

Choosing an LCM method
SituationBest methodWhy
Two numbers under about 15List the multiplesYou can do it in your head
Exam asks for a “product of prime factors”Prime factorisation or VennShows the working examiners mark
HCF and LCM both neededVenn diagramOne diagram gives both answers
Three or more numbersLadderHandles them all in one table
Two large numbersProduct ÷ HCFEuclid’s algorithm avoids factorising
Checking an answerLCM CalculatorShows every step to compare with yours

Where the LCM shows up in real life

Periodical cicadas and the 221-year meeting

In the spring of 2024, two broods of periodical cicadas came out of the ground in Illinois in the same year: Brood XIII, which emerges every 17 years, and Brood XIX, which emerges every 13 years. According to the University of Illinois Extension, the last time that happened was 1803, and the next will be 2245. Both gaps are the LCM of 13 and 17: the numbers share no factor, so the LCM is 13 × 17 = 221 years, and 1803 + 221 = 2024.

Prime cycles may be no accident. One long-standing hypothesis is that 13 and 17-year cycles help cicadas avoid predators with shorter boom-and-bust cycles, because a prime number shares no factor with them. The table shows how often a cicada brood would coincide with a predator on a 2 to 6-year cycle.

Years between meetings with a predator, by life cycle (the LCM of the two cycles)
Cicada cycle2-yr3-yr4-yr5-yr6-yr
12 years1212126012
13 years2639526578
15 years3015601530
16 years1648168048
17 years34516885102

A 12-year brood would meet four of the five predators every time it emerged. A 17-year brood meets the commonest, a 2-year predator, only every 34 years, and the others far less often.

Gears and the “hunting tooth”

When a 12-tooth gear drives an 18-tooth gear, the same two teeth meet again after LCM(12, 18) = 36 teeth have passed: 3 turns of the small gear and 2 of the large one. Any wear between a bad pair of teeth is repeated every 3 turns. Engineers often avoid this by choosing tooth counts with no common factor, a design called a hunting tooth. With 13 and 18 teeth, the LCM is 234, so the same pair meets only every 18 turns of the small gear, and every tooth meets every other tooth, which spreads wear evenly.

Buying in packs

Sausages come in packs of 10 and rolls in packs of 8. To have exactly one roll per sausage with none left over, you need a number of each that is a common multiple of 10 and 8. The smallest is LCM(10, 8) = 40: four packs of sausages and five packs of rolls.

The LCM of fractions

Fractions have an LCM too: the smallest positive number that each fraction divides into a whole number of times. Write the fractions in their simplest form, then use this rule.

LCM(a/b, c/d) = LCM(a, c) ÷ HCF(b, d)

a, c
the numerators
b, d
the denominators

Two runners on a track

One runner laps a track every 2/3 of a minute (40 seconds) and another every 3/4 of a minute (45 seconds). They start together. When are they next side by side at the start line?

LCM of the numerators 2 and 3
6
HCF of the denominators 3 and 4
1
LCM of 2/3 and 3/4
6 ÷ 1 = 6 minutes
Check in seconds
LCM(40, 45) = 360 s = 6 min

After 6 minutes: 9 laps for the first runner, 8 for the second

This is different from the lowest common denominator used to add fractions. That is the LCM of the denominators only: for 5/6 + 3/8 it is LCM(6, 8) = 24.

Five mistakes that cost marks

  1. Taking a common multiple that isn’t the first. 48 is a common multiple of 6 and 8, but 24 comes earlier.
  2. Multiplying the numbers together. 12 × 18 = 216, but the LCM is 36. The product is only the LCM when the numbers share no factor.
  3. Taking the lowest power of each prime. That gives the HCF. For the LCM you need the highest.
  4. Leaving out a prime that appears in only one number, like the 5 in 40. Every prime from every number goes in.
  5. Using product ÷ HCF for three or more numbers. Work in pairs instead, or use the ladder.

Where the LCM appears in the curriculum

In the United States, the Common Core standard 6.NS.B.4 asks sixth graders to find the greatest common factor of two whole numbers up to 100 and the least common multiple of two whole numbers up to 12, a range where listing multiples is enough. In England, the GCSE specifications, such as AQA’s number content, expect students to find HCFs and LCMs using prime factorisation, with product notation such as 2³ × 3², and to understand the unique factorisation theorem. That is why methods 2 and 3 carry the marks at GCSE.

Want to check your working? The LCM Calculator takes up to 10 numbers, shows each prime factorisation and how the LCM is built, and gives the HCF alongside.

Open the LCM Calculator

Frequently asked questions

Can the LCM be one of the numbers?

Yes. When one number divides exactly into the others, it is their LCM. The LCM of 6 and 18 is 18, and the LCM of 4, 8 and 16 is 16.

What is the LCM of two prime numbers?

Their product. Two different primes share no factor except 1, so nothing can be saved. The LCM of 7 and 11 is 77, and the LCM of 13 and 17 is 221.

Is the lowest common denominator the same as the LCM?

The lowest common denominator is the LCM of the denominators. To add 5/6 and 3/8 you need a denominator that both 6 and 8 divide into, and the smallest is LCM(6, 8) = 24.

What is the smallest number divisible by every number from 1 to 10?

2,520. It is the LCM of 1 to 10: 2³ × 3² × 5 × 7. Adding 11 and 12 gives 27,720, and the LCM of 1 to 20 is 232,792,560.

How do I find the LCM of more than two numbers?

Use prime factorisation or the ladder method, which handle any number of values at once. Or work in pairs: find the LCM of the first two, then the LCM of that result and the next number. The LCM Calculator does this for up to 10 numbers.

Sources

All guides on the blog