Finding Common Ground: HCF and LCM Made Simple

Two dependable ways to find the Highest Common Factor and Lowest Common Multiple of any numbers — plus the one neat relationship that connects them both.

The Highest Common Factor: The Biggest Piece That Fits Everywhere

Quick answer The HCF of two numbers is the largest number that divides both of them exactly, and prime factorisation finds it without listing every factor.

Suppose a room measures 18 feet by 24 feet, and you want to cover the floor with the largest possible square tiles whose side is a whole number of feet, with no tile cut or overlapping. The tile's side must divide 18 exactly and must also divide 24 exactly — it has to be a common factor of both numbers. The factors of 18 are 1, 2, 3, 6, 9, 18. The factors of 24 are 1, 2, 3, 4, 6, 8, 12, 24. The common factors are 1, 2, 3, 6 — and the largest of these, 6, is called the Highest Common Factor (HCF) of 18 and 24. So the biggest tile you can use has a 6 ft side, and you'd need (18 ÷ 6) × (24 ÷ 6) = 3 × 4 = 12 tiles.

Listing every factor works, but it gets slow and error-prone for bigger numbers. Prime factorisation gives a faster, more reliable route. Write each number as a product of primes: 18 = 2 × 3 × 3 and 24 = 2 × 2 × 2 × 3. To build the HCF, pick out only the primes that appear in both factorisations, using the smallest number of times either number has that prime. Both have at least one 2 (18 has one 2, 24 has three — take the minimum, one 2). Both have at least one 3 (18 has two 3s, 24 has one — take the minimum, one 3). So HCF = 2 × 3 = 6, exactly matching the tiling answer.

This minimum-power rule is the whole method: factorise every number, then for each prime that shows up in all of them, multiply in the smallest number of copies seen anywhere. If two numbers share no prime factor at all — for example 17 and 19, which are both prime and different — their only common factor is 1, and their HCF is 1. Such number pairs are called co-prime.

HCF: common prime factors, lowest power Take only the primes common to both numbers, each raised to the smaller power.
Remember
  • HCF(a, b) is the largest number that divides both a and b exactly.
  • By prime factorisation, HCF = product of the common primes, each raised to the smallest power it has in either number.
  • Two numbers with HCF = 1, like 17 and 19, are called co-prime.

The Lowest Common Multiple: The Smallest Shared Landing Spot

Quick answer The LCM of two or more numbers is the smallest number that is a multiple of every one of them, and it can also be built directly from prime factorisation.

Now flip the question around. A cyclist rides laps of a track and passes the start line every 12 minutes. A second cyclist passes the same start line every 18 minutes. If both start together, when do they next cross the start line at exactly the same moment? The answer has to be a number that is a multiple of both 12 and 18. Multiples of 12 are 12, 24, 36, 48...; multiples of 18 are 18, 36, 54, 72.... The smallest number appearing in both lists is 36, so they meet again after 36 minutes. This smallest shared multiple is called the Lowest Common Multiple (LCM).

Prime factorisation builds the LCM just as cleanly as it builds the HCF — except now you take the maximum power of every prime that appears in any of the numbers, not just the shared ones. Checking the cyclist example: 12 = 2 × 2 × 3 and 18 = 2 × 3 × 3. The highest power of 2 appearing anywhere is 2 × 2 (from 12), and the highest power of 3 appearing anywhere is 3 × 3 (from 18). So LCM = 2 × 2 × 3 × 3 = 36 — matching exactly.

This extends naturally to three or more numbers. If a third cyclist passes the start line every 24 minutes, all three meet again at the LCM of 12, 18 and 24. Factorising: 12 = 2² × 3, 18 = 2 × 3², 24 = 2³ × 3. Taking the highest power of each prime across all three — 2³ and 3² — gives LCM = 8 × 9 = 72. All three cyclists cross the start line together again after 72 minutes.

LCM: all prime factors, highest power Take every prime that appears in either number, each raised to the larger power.
Remember
  • LCM(a, b) is the smallest number that both a and b divide into exactly.
  • By prime factorisation, LCM = product of every prime appearing in any of the numbers, each raised to the highest power it has anywhere.
  • The same method extends to three or more numbers at once, as with the three-cyclist example (LCM of 12, 18, 24 = 72).

The Ladder Method: Getting Both HCF and LCM in One Go

Quick answer Repeatedly dividing both numbers by a shared prime factor, written as a ladder, finds the HCF and LCM together without separately listing out full factorisations.

There's a faster layout that finds the HCF and LCM of two numbers in a single working. Take 48 and 60. Divide both by a common prime factor, write the quotients in the next row, and repeat until the two numbers left share no common factor:

  • 2 | 48, 60 → 24, 30
  • 2 | 24, 30 → 12, 15
  • 3 | 12, 15 → 4, 5

Now 4 and 5 share no common factor, so the ladder stops. The HCF is the product of the divisors used on the left: 2 × 2 × 3 = 12. The LCM is the product of those same divisors and the two final numbers at the bottom: 2 × 2 × 3 × 4 × 5 = 240. Checking against full prime factorisation: 48 = 2⁴ × 3 and 60 = 2² × 3 × 5 — the common minimum gives HCF = 2² × 3 = 12, and the combined maximum gives LCM = 2⁴ × 3 × 5 = 240. Both methods agree exactly.

The ladder method is especially handy because you're allowed to divide by any common factor at each step, not just a single prime at a time — dividing both numbers by a bigger shared factor straightaway just shortens the ladder. For instance, since both 48 and 60 are divisible by 12 right away, you could divide by 12 first to get 4 and 5 directly, then read off HCF = 12 and LCM = 12 × 4 × 5 = 240 in one fewer step.

Remember
  • The ladder method divides both numbers by shared factors step by step until no common factor remains.
  • HCF = product of all the divisors used; LCM = product of the divisors used together with the final leftover pair.
  • Dividing by a larger shared factor early (not just one prime at a time) shortens the ladder without changing the answer.

The Golden Rule: HCF x LCM = Product of the Numbers

Quick answer For any two numbers, multiplying their HCF by their LCM always gives back the product of the original two numbers — a shortcut that also reveals useful patterns for special number pairs.

Take 48 and 60 again. We found HCF = 12 and LCM = 240. Multiply them: 12 × 240 = 2880. Now multiply the original numbers: 48 × 60 = 2880. They match exactly! This is not a coincidence — for any two numbers a and b, HCF(a, b) × LCM(a, b) = a × b. The reason lies in prime factorisation: every prime factor of a and b ends up contributing to either the HCF (if it's shared) or the LCM (if it's extra in one number), and between the two products, every prime factor from both original numbers gets counted exactly once — which is exactly what a × b also does.

This relationship is useful both for checking your work and for working backwards. Consider 96 and 275: their prime factorisations share no common prime at all (96 = 2⁵ × 3, and 275 = 5² × 11), so HCF = 1 and LCM is simply their product, 26400 — and indeed, 1 × 26400 = 96 × 275 = 26400.

Special number pairs follow neat patterns too. If one number divides the other exactly — say 13 and 26, where 26 = 2 × 13 — the smaller number is automatically the HCF (13) and the larger is automatically the LCM (26), since 13 × 26 = 338 and HCF × LCM = 13 × 26 = 338 as well. For two co-prime numbers like 17 and 19, HCF = 1 always, so LCM is simply their product: 17 × 19 = 323.

HCF × LCM = a × b For any two numbers a and b, the product of their HCF and LCM always equals the product of the numbers themselves.
Remember
  • For any two numbers, HCF x LCM always equals the product of the two numbers.
  • When one number is a factor of the other, the smaller number IS the HCF and the larger number IS the LCM.
  • For co-prime numbers (HCF = 1), the LCM is simply the product of the two numbers.

Putting It to Work: Real Problems That Hide an HCF or LCM

Quick answer Recognising whether a problem is really asking for the largest equal split (HCF) or the smallest shared repeat (LCM) is the key skill, and the working backward from HCF x LCM = product solves trickier puzzles too.

Problems about splitting things into the largest possible equal groups — tiles, lengths of rope cut into equal pieces, items packed into bags — are HCF problems. For example, two ropes of length 60 m and 84 m need to be cut into equal pieces with no leftover rope and as few pieces as possible: the longest possible piece length is HCF(60, 84) = 12 m, giving (60 ÷ 12) + (84 ÷ 12) = 5 + 7 = 12 pieces in total.

Problems about things that happen repeatedly and need to line up again at the same time — bells ringing, buses departing, patterns repeating — are LCM problems, as seen already with the cyclists meeting every 36 or 72 minutes.

Some problems run the HCF–LCM relationship in reverse: given the HCF and LCM of two numbers, find the numbers themselves. Suppose two numbers have HCF 6 and LCM 60. Since HCF × LCM = product of the numbers, their product must be 6 × 60 = 360. Checking pairs of factors of 360 whose HCF is actually 6: 12 and 30 works, since HCF(12, 30) = 6 and LCM(12, 30) = 60 — and so does 6 and 60 itself.

Remember
  • Splitting things into the largest possible equal groups with nothing left over is an HCF problem.
  • Finding when repeating events next line up together is an LCM problem.
  • Given HCF and LCM, their product gives the product of the original numbers, which narrows down the possible number pairs.

The formula sheet

Every formula in this chapter, in one place — screenshot it before your exam.

HCF: common prime factors, lowest power
LCM: all prime factors, highest power
HCF × LCM = a × b

Test yourself

Tap an answer to check it instantly — you'll see why it's right, and what to revise if it isn't.

0 correct · 0/12 answered
Q1 HCF basics easy

What is the HCF of 12 and 18?

Q2 LCM basics easy

What is the LCM of 4 and 6?

Q3 co-prime numbers easy

Which of these is co-prime, meaning its HCF is 1?

Q4 prime factorisation medium

What is the prime factorisation of 60?

Q5 HCF by prime factorisation medium

Using prime factorisation (45 = 3 x 3 x 5, 75 = 3 x 5 x 5), what is the HCF of 45 and 75?

Q6 LCM by prime factorisation medium

What is the LCM of 14 and 35, given 14 = 2 x 7 and 35 = 5 x 7?

Q7 HCF word problems medium

A room measuring 18 ft by 24 ft needs to be tiled with the largest possible square tiles of whole-number side length, with no cutting. What should the tile's side be?

Q8 HCF word problems medium

36 kg and 60 kg of two types of grain must each be packed into bags of equal whole-number weight, using as few bags as possible, with no grain mixed between types. What should each bag weigh, and how many bags are needed in total?

Q9 LCM word problems hard

Three bells ring every 12, 18 and 24 minutes respectively, and all three ring together at 9:00 am. When will all three next ring together?

Q10 HCF x LCM = product hard

If HCF(96, 275) = 1, what is LCM(96, 275)?

Q11 working backward from HCF and LCM hard

Two numbers have HCF 6 and LCM 60. Which of these could be the two numbers?

Q12 factor-multiple number pairs medium

If one number is a multiple of another, like 13 and 26, what are their HCF and LCM?

NCERT solutions & previous-year questions

Step-by-step model answers — tap a question to reveal the full solution.

NCERT questions 6

1 Find the HCF and LCM of 48 and 60 using prime factorisation, and verify that HCF x LCM equals the product of the two numbers.

48 = 2 x 2 x 2 x 2 x 3 and 60 = 2 x 2 x 3 x 5.

Common primes with minimum power: two 2s and one 3, so HCF = 2 x 2 x 3 = 12.

For the LCM, take the highest power of every prime seen anywhere: four 2s (from 48), one 3, and one 5, so LCM = 2 x 2 x 2 x 2 x 3 x 5 = 240.

Check: HCF x LCM = 12 x 240 = 2880. Product of the numbers = 48 x 60 = 2880. Both match, confirming the relationship holds.

2 Two ropes of length 60 m and 84 m need to be cut into equal pieces, with no rope left over and as few total pieces as possible. What is the length of each piece, and how many pieces are made in total?

The piece length must divide both 60 and 84 exactly, and to minimise the number of pieces, we want the longest such length — the HCF of 60 and 84.

60 = 2 x 2 x 3 x 5 and 84 = 2 x 2 x 3 x 7. The common part is 2 x 2 x 3 = 12, so HCF(60, 84) = 12 m.

Number of pieces from the first rope: 60 / 12 = 5. Number of pieces from the second rope: 84 / 12 = 7. Total pieces = 5 + 7 = 12, each exactly 12 m long.

3 Find the HCF and LCM of 36 and 48.

36 = 2 x 2 x 3 x 3 and 48 = 2 x 2 x 2 x 2 x 3.

HCF: common primes at minimum power are two 2s and one 3, giving HCF = 2 x 2 x 3 = 12.

LCM: highest power of each prime anywhere is four 2s (from 48) and two 3s (from 36), giving LCM = 2 x 2 x 2 x 2 x 3 x 3 = 144.

Check: 12 x 144 = 1728, and 36 x 48 = 1728. They match.

4 Two friends go jogging on the same circular track. One completes a lap every 15 minutes, the other every 20 minutes. If they start together, after how many minutes will they next be at the starting point together?

This is an LCM problem, since we need the smallest time that is a multiple of both 15 and 20.

15 = 3 x 5 and 20 = 2 x 2 x 5. The LCM takes the highest power of every prime seen anywhere: 2 x 2, 3, and 5, giving LCM = 2 x 2 x 3 x 5 = 60.

They will next be at the starting point together after 60 minutes.

5 Show that 17 and 19 are co-prime, and use this to find their LCM without listing multiples.

17 and 19 are both prime numbers, and since they are different primes, neither has any factor in common with the other except 1. So HCF(17, 19) = 1, which makes them co-prime by definition.

Since HCF x LCM = product of the numbers, and HCF = 1 here, the LCM is simply the product: LCM(17, 19) = 17 x 19 = 323.

6 Find the HCF and LCM of 12, 18 and 24 together.

12 = 2 x 2 x 3, 18 = 2 x 3 x 3, 24 = 2 x 2 x 2 x 3.

HCF: the minimum power of 2 across all three is one (from 18), and the minimum power of 3 across all three is one (from 12 and 24). So HCF = 2 x 3 = 6.

LCM: the maximum power of 2 across all three is three (from 24), and the maximum power of 3 across all three is two (from 18). So LCM = 2 x 2 x 2 x 3 x 3 = 72.

Previous-year board questions 4

Q1 Using the prime factorisations of 48 and 60, explain in your own words why HCF(48, 60) x LCM(48, 60) must equal 48 x 60. Do not just state the relationship — justify it. 3 marks mark

48 = 2^4 x 3 and 60 = 2^2 x 3 x 5. The HCF keeps the minimum power of each shared prime: 2^2 x 3. The LCM keeps the maximum power of every prime seen anywhere: 2^4 x 3 x 5.

Multiplying HCF x LCM gives (2^2 x 3) x (2^4 x 3 x 5) = 2^6 x 3^2 x 5. Multiplying the original numbers gives (2^4 x 3) x (2^2 x 3 x 5) = 2^6 x 3^2 x 5 as well — because between the minimum power (in the HCF) and the maximum power (in the LCM), every prime factor that exists in either original number gets accounted for exactly once overall, the same way it does in a straightforward multiplication of the two numbers. That is why the two products always match.

Q2 What is the smallest number that is exactly divisible by 12, 15 and 18 at the same time? 2 marks mark

We need LCM(12, 15, 18). Factorising: 12 = 2^2 x 3, 15 = 3 x 5, 18 = 2 x 3^2.

Taking the highest power of each prime seen anywhere: 2^2 (from 12), 3^2 (from 18), and 5 (from 15). So LCM = 4 x 9 x 5 = 180.

The smallest number divisible by 12, 15 and 18 is 180.

Q3 Two numbers have HCF 6 and LCM 60. Find at least two different pairs of numbers that satisfy this, and explain your method. 4 marks mark

Since HCF x LCM = product of the numbers, the two numbers must multiply to 6 x 60 = 360.

We need pairs of factors of 360 whose HCF is exactly 6 (not more, since a bigger shared factor would make the HCF higher). Checking 12 and 30: 12 x 30 = 360, and HCF(12, 30) = 6, LCM(12, 30) = 60 — this pair works.

Checking 6 and 60: 6 x 60 = 360, and since 6 divides 60 exactly, HCF(6, 60) = 6 and LCM(6, 60) = 60 — this pair also works.

So two valid pairs are (12, 30) and (6, 60).

Q4 What is the HCF of two consecutive integers, such as 15 and 16? Explain why this is always true for any pair of consecutive integers. 3 marks mark

15 = 3 x 5 and 16 = 2 x 2 x 2 x 2. They share no common prime factor at all, so HCF(15, 16) = 1.

This is always true for consecutive integers: if some number d greater than 1 divided both n and n+1 exactly, then d would also have to divide their difference, (n+1) - n = 1. But no number greater than 1 can divide 1 exactly. So the only possible common factor between any two consecutive integers is 1 — meaning any two consecutive integers are always co-prime.

Part of Priodemy for School

Interactive CBSE lessons, Class 8–12 — free with every school on Priodemy EduSuite. Explore more chapters and labs on the Priodemy for School hub.

Ask AI