Skip to content

HCF and LCM

Highest common factor and lowest common multiple, and word problems built on them. Open a topic to read its notes and practise it, then take the mixed tests: each question shows whether you were right and why, as soon as you answer.

Topics: notes and practice

Finding HCF15 questions

The HCF (also called GCD or GCF) of some numbers is the greatest number that divides all of them exactly. Co-prime numbers have HCF 1. Consecutive numbers are always co-prime, and co-prime numbers need not be prime (8 and 15).

Prime factor method. Write each number as a product of prime powers. Take only the primes common to all the numbers, each with its lowest power. For 360 = 2³ × 3² × 5 and 84 = 2² × 3 × 7, the HCF is 2² × 3 = 12. A prime missing from even one number is left out.

Division method. Divide the larger number by the smaller, then the divisor by the remainder, and repeat. The last divisor is the HCF. For 252 and 198: 252 = 1 × 198 + 54, 198 = 3 × 54 + 36, 54 = 1 × 36 + 18, 36 = 2 × 18. The HCF is 18. For three numbers, find the HCF of the first two, then the HCF of that result and the third. Use this method when the numbers are large and hard to factorise.

Fractions and decimals.

Case Rule
Fractions in lowest terms HCF = HCF of numerators ÷ LCM of denominators
Decimals Give all the same number of places, remove the points, find the HCF, put the points back
Mixed numbers Change to improper fractions first

Reduce every fraction before using the rule. For 0.12 and 0.18, use 12 and 18: the HCF is 6, so the answer is 0.06.

Where the HCF is used. Ask for "the largest", "the greatest" or "the most", with nothing left over.

  • Ropes or rods cut into equal pieces of the greatest length: the HCF of the lengths.
  • Items shared equally among the greatest number of people: the HCF of the quantities.
  • Square tiles for a rectangular floor: the side is the HCF of length and width, and the number of tiles is the floor area ÷ the area of one tile.

If two numbers have HCF h, write them as hx and hy, where x and y are co-prime.

The HCF always divides the LCM, so a pair with HCF 12 and LCM 100 cannot exist. Also HCF(a, b) = HCF(a, a − b), so the HCF of two numbers that differ by a small gap divides that gap: HCF(n, n + 1) = 1, and the HCF of 59 and 65 divides 6. For 2ᵐ − 1 and 2ⁿ − 1 the HCF is 2ᵏ − 1 with k = HCF(m, n): HCF(2⁶ − 1, 2⁴ − 1) = 2² − 1 = 3.

Problem 1. Find the HCF of 84, 126 and 210.

Answer: 42

84 = 2² × 3 × 7, 126 = 2 × 3² × 7 and 210 = 2 × 3 × 5 × 7. The lowest powers of the common primes give 2 × 3 × 7 = 42.

Problem 2. Find the HCF of 462 and 1,001 by the division method.

Answer: 77

1,001 = 2 × 462 + 77. Then 462 = 6 × 77 + 0. The last divisor is 77. Check: 462 = 77 × 6 and 1,001 = 77 × 13.

Problem 3. Find the HCF of the fractions 4/6, 10/25 and 9/12.

Answer: 1/60

Reduce first: 4/6 = 2/3, 10/25 = 2/5, 9/12 = 3/4. HCF = HCF of (2, 2, 3) ÷ LCM of (3, 5, 4) = 1/60.

Practise this topic15 questions, each with its solution

Finding LCM15 questions

The LCM (lowest common multiple) of some numbers is the least number that all of them divide exactly. For co-prime numbers the LCM is the product of the numbers.

Prime factor method. Take every prime that appears in any number, each with its highest power. For 360 = 2³ × 3² × 5 and 84 = 2² × 3 × 7, the LCM is 2³ × 3² × 5 × 7 = 2,520.

Ladder method. Divide by a common prime, bringing down any number it does not divide, until no prime divides two of the numbers. The LCM is the product of the divisors and the numbers left. For 12, 18, 30: divide by 2 to get 6, 9, 15, then by 3 to get 2, 3, 5. The LCM is 2 × 3 × 2 × 3 × 5 = 180.

Fractions and decimals. For fractions in lowest terms, LCM = LCM of numerators ÷ HCF of denominators. For decimals, remove the points after giving all the same places, find the LCM, and put the points back. For 0.12 and 0.18 the LCM of 12 and 18 is 36, so the answer is 0.36.

The product rule.

Situation Rule
Two numbers a and b HCF × LCM = a × b
Two fractions HCF × LCM = product of the fractions
Three or more numbers The rule does not hold, except when the numbers are pairwise co-prime

So for two numbers the other number is HCF × LCM ÷ the given number.

LCM of 1 to n. Multiply the highest power of each prime not above n. For 1 to 8: 2³ × 3 × 5 × 7 = 840.

Problem 4. Find the LCM of 90, 126 and 150.

Answer: 3,150

90 = 2 × 3² × 5, 126 = 2 × 3² × 7 and 150 = 2 × 3 × 5². Highest powers: 2 × 3² × 5² × 7 = 2 × 9 × 25 × 7 = 3,150.

Problem 5. Find the LCM of the fractions 2/9, 4/15 and 10/21.

Answer: 20/3

All three are in lowest terms. LCM of the numerators (2, 4, 10) is 20. HCF of the denominators (9, 15, 21) is 3. So the LCM is 20/3.

Problem 6. The HCF of two numbers is 15 and their LCM is 300. If one number is 75, find the other.

Answer: 60

HCF × LCM = 15 × 300 = 4,500. The other number is 4,500 ÷ 75 = 60. Check: 75 = 15 × 5 and 60 = 15 × 4, so the HCF is 15 and the LCM is 15 × 20 = 300.

Practise this topic15 questions, each with its solution

Greatest and least number with remainders15 questions

Here the answer depends on what the question asks for: a least number (use the LCM) or a greatest divisor (use the HCF).

Question Answer
Least number leaving the same remainder r when divided by a, b, c LCM + r. Every such number is LCM × k + r. For the least one above a given number N, take the first LCM × k + r that is greater than N
Least number leaving remainders that are each k less than the divisors LCM − k
Greatest n-digit number leaving remainder r on division by a, b, c (Greatest n-digit number − its remainder on division by the LCM) + r. If this has more than n digits, subtract the LCM once
Least number to add to N for divisibility by a, b, c LCM − (remainder of N ÷ LCM), or 0 if the remainder is 0
Greatest number that divides x, y (and z) leaving remainders r, s (and t) HCF of (x − r), (y − s) (and (z − t))
Greatest number that divides x, y, z leaving the same remainder HCF of the differences, such as (y − x) and (z − y)
Numbers up to N divisible by both a and b N ÷ LCM(a, b), ignoring the fraction

In the "greatest number that divides" cases, the answer must exceed the remainders.

Different remainders with a constant gap. If every divisor is k more than its remainder, the number is k short of a common multiple. For remainders 1, 2, 3 on division by 3, 4, 5 the gap is 2, so the least number is LCM − 2 = 60 − 2 = 58.

Perfect squares and cubes. To find the smallest perfect square divisible by given numbers, find the LCM, factorise it, and multiply by every prime that has an odd power. For the smallest perfect cube, multiply by whatever makes every power a multiple of 3.

Problem 7. Find the least number that leaves remainder 9 when divided by 14, 21 and 35.

Answer: 219

14 = 2 × 7, 21 = 3 × 7 and 35 = 5 × 7, so the LCM is 2 × 3 × 5 × 7 = 210. The least number is 210 + 9 = 219, and 9 is below every divisor.

Problem 8. The greatest number that leaves the same remainder when it divides 83, 131 and 203 is used as the divisor. What is that remainder?

Answer: 11

The divisor is the HCF of the differences 131 − 83 = 48 and 203 − 131 = 72, which is 24. 83 = 24 × 3 + 11. Check: 131 = 24 × 5 + 11 and 203 = 24 × 8 + 11.

Problem 9. Find the least number that leaves remainder 20 on division by each of 24, 32 and 48 and is exactly divisible by 11.

Answer: 308

24 = 2³ × 3, 32 = 2⁵, 48 = 2⁴ × 3, so the LCM is 2⁵ × 3 = 96, and the number is 96k + 20. Try k = 1, 2, 3: 116 and 212 are not multiples of 11, but 308 = 11 × 28. Check: 308 = 96 × 3 + 20.

Practise this topic15 questions, each with its solution

Bells, races and meeting points15 questions

All these problems ask for the first time or the least length at which several repeating things fit together, so the LCM is the tool. Convert every time to the same unit before taking the LCM.

Events repeating together. Bells, lights or buses with different intervals act together again after the LCM of the intervals. Add the LCM to the start time. Bells at 12, 18 and 30 minutes, together at 6:00 AM: the LCM is 180 minutes = 3 hours, so they next ring together at 9:00 AM.

  • In a time T, they act together T ÷ LCM times (ignore the fraction), plus 1 if the start is counted.
  • Days of the week: find the LCM in days, divide by 7, and move forward by the remainder. An LCM of 30 days from a Monday gives 30 = 28 + 2, so Wednesday.

Circular track. Runners with lap times t₁, t₂, t₃ are together at the start again after LCM(t₁, t₂, t₃). A runner's completed laps are LCM ÷ that runner's lap time. Laps of 4, 6 and 10 minutes: LCM 60, so the laps are 15, 10 and 6. If speeds are given, find lap time = track length ÷ speed first.

Least length that fits equal pieces.

  • A rod or wire cut exactly into pieces of several lengths: the least length is the LCM of the piece lengths.
  • Steps of different sizes: the least distance covered in whole steps by each is the LCM of the step lengths.
  • Tiles l × w forming the smallest square: the side is LCM(l, w), and the number of tiles is (side ÷ l) × (side ÷ w).
  • Cuboid bricks forming the smallest cube: the side is the LCM of the three edges, and the bricks are the product of the three quotients.

Problem 10. Three bells ring every 15, 20 and 24 minutes. They ring together at 6:00 AM. At what time do they next ring together?

Answer: 8:00 AM

15 = 3 × 5, 20 = 2² × 5 and 24 = 2³ × 3, so the LCM is 2³ × 3 × 5 = 120 minutes. 120 minutes is 2 hours, so the next time is 6:00 AM + 2 hours = 8:00 AM.

Problem 11. Three runners take 5, 8 and 12 minutes per lap on a circular track and start together at one point. When are they next together at the start, and how many laps has each completed?

Answer: after 120 minutes; 24, 15 and 10 laps

The LCM of 5, 8 and 12 is 5 × 2³ × 3 = 120 minutes. Laps: 120 ÷ 5 = 24, 120 ÷ 8 = 15 and 120 ÷ 12 = 10.

Problem 12. Three lamps blink every 20 s, 30 s and 45 s and all blink together at 9:00:00 PM. How many times do they blink together from 9:00:00 PM to 9:30:00 PM, counting both the blink at 9:00:00 PM and any at 9:30:00 PM?

Answer: 11

The LCM of 20, 30 and 45 is 2² × 3² × 5 = 180 s. 30 minutes = 1,800 s, and 1,800 ÷ 180 = 10 gaps. Counting the start as well, the total is 10 + 1 = 11.

Practise this topic15 questions, each with its solution

Ratio-based LCM and HCF problems15 questions

Numbers from a ratio. If two numbers are in the ratio p : q in lowest terms and their HCF is h, the numbers are hp and hq, and the LCM is hpq. If the LCM is given instead, h = LCM ÷ (p × q). For ratio 5 : 7 and LCM 105, h = 105 ÷ 35 = 3, so the numbers are 15 and 21, with sum 36. If the product is given, then pq × h² equals it. If the difference is given, (q − p) × h equals it.

For three numbers in a ratio, the LCM is h × LCM of the ratio terms, not h times their product, unless the terms are pairwise co-prime.

Pairs with a given HCF and LCM. Write the numbers as hx and hy with x, y co-prime. The LCM is hxy, so x × y = LCM ÷ h. List the co-prime pairs with that product. Count a pair once whichever order it is in. For HCF 6 and LCM 180, x × y = 30, and the co-prime pairs are (1, 30), (2, 15), (3, 10) and (5, 6).

Two numbers with LCM = k × HCF. Then x × y = k. For k = 28 the co-prime pairs are (1, 28) and (4, 7); (2, 14) is not co-prime. If the sum HCF + LCM = S is also given, HCF × (1 + k) = S, so HCF = S ÷ (1 + k) and LCM = k × HCF. The other number is HCF × LCM ÷ the given number.

Counting pairs with a given sum and HCF. If the numbers add to S and their HCF is h, then x + y = S ÷ h with x, y co-prime. Count the values of x from 1 up to half of S ÷ h that are co-prime to S ÷ h. When S ÷ h is 2 the only pair is x = y = 1; above 2, x equal to half is never co-prime. For S = 48 and h = 4: x + y = 12, and x below 6 co-prime to 12 are 1 and 5, so 2 pairs.

If the LCM is also given, then x + y = S ÷ h and x × y = LCM ÷ h, which fixes the pair.

Sum of reciprocals. 1/a + 1/b = (a + b)/(ab) = (a + b) ÷ (HCF × LCM).

Problem 13. Two numbers are in the ratio 8 : 11 and their LCM is 264. Find the numbers.

Answer: 24 and 33

The numbers are 8h and 11h, and the LCM is 8 × 11 × h = 88h = 264, so h = 3. The numbers are 8 × 3 = 24 and 11 × 3 = 33.

Problem 14. Two numbers add up to 130 and their HCF is 10. Their LCM is 360. Find the numbers.

Answer: 40 and 90

Let the numbers be 10x and 10y with x, y co-prime. x + y = 13 and x × y = 360 ÷ 10 = 36, so x and y are 4 and 9 (co-prime). The numbers are 40 and 90.

Problem 15. The LCM of two numbers is 28 times their HCF, and the sum of the HCF and LCM is 290. If one number is 40, find the other.

Answer: 70

HCF × (1 + 28) = 290, so the HCF is 10 and the LCM is 280. The other number is 10 × 280 ÷ 40 = 70. Check: 40 = 10 × 4 and 70 = 10 × 7, with 4 and 7 co-prime.

Practise this topic15 questions, each with its solution

Quick revision
Topic Rule
HCF Common primes, lowest powers. LCM: all primes, highest powers
Two numbers HCF × LCM = a × b (not for three or more)
Fractions (lowest terms) HCF = HCF of numerators ÷ LCM of denominators; LCM = LCM of numerators ÷ HCF of denominators
Same remainder r LCM × k + r; least is LCM + r
Remainders each k short LCM − k
Greatest divisor, remainders r and s HCF of (x − r) and (y − s)
Same unknown remainder HCF of the differences
Bells, laps, steps LCM; times together in T = T ÷ LCM, plus 1 for the start
Ratio p : q, HCF h Numbers hp and hq, LCM hpq
Pairs with HCF h hx and hy, x and y co-prime, x × y = LCM ÷ h
LCM of 1 to 8 840
Common mistakes
  • Using HCF × LCM = product of the numbers for three or more numbers. The rule is for two numbers only.
  • Mixing up the types. "Largest piece" or "greatest number" is the HCF; "next meeting" or "least number" is the LCM.
  • Forgetting to subtract the remainders before finding the HCF in "leaving remainders" questions.
  • Adding the remainder when each remainder is k short of its divisor. There the answer is LCM − k.
  • Using the fraction rules on fractions that are not in lowest terms. Reduce each fraction first.
  • Forgetting to count the start in "how many times together" questions, or forgetting to convert minutes and seconds to one unit.

By ICE Academy · Updated 4 Dec 2026 · Found a mistake? Write to info@iceacademy.in

Mixed tests

All 150 questions of this chapter on paper, with the answer key and solutions. Free: the first download asks for your name, phone number and email.

Exams that test this chapter