LCM and HCF formulas: the concept in plain words
A factor of a number divides it exactly; a multiple of a number is that number times a whole number. The HCF (highest common factor, also called GCD) of two or more numbers is the largest number that divides all of them. The LCM (least common multiple) is the smallest number that is a multiple of all of them. For 12 and 18, the common factors are 1, 2, 3 and 6, so the HCF is 6; the common multiples are 36, 72 and so on, so the LCM is 36. The HCF always divides the LCM.
HCF or LCM? Read the question
Words like largest, greatest, maximum size or most students point to HCF (you are cutting or sharing into equal pieces). Words like smallest number, least time, next together or minimum length point to LCM (you are waiting for things to line up).
LCM and HCF tricks, each with a worked example
- 1
Trick 1: prime factors for small numbers
Write each number as a product of primes. 84 = 2² × 3 × 7 and 126 = 2 × 3² × 7. HCF takes the common primes at their lowest powers: 2 × 3 × 7 = 42. LCM takes every prime at its highest power: 2² × 3² × 7 = 252. Check: 42 × 252 = 10,584 = 84 × 126.
- 2
Trick 2: division method for big numbers
For large numbers, divide the larger by the smaller, then divide the divisor by the remainder, and repeat until the remainder is 0. The last divisor is the HCF. Example: HCF of 1071 and 462. 1071 = 2 × 462 + 147; 462 = 3 × 147 + 21; 147 = 7 × 21 + 0. HCF = 21.
- 3
Trick 3: the product rule, two numbers only
For two numbers only, HCF × LCM = product of the numbers. Example: two numbers have HCF 12 and product 2,160. LCM = 2160 / 12 = 180. This rule does not hold for three or more numbers: for 2, 4 and 6, HCF × LCM = 2 × 12 = 24, but the product is 48.
- 4
Trick 4: LCM + r and LCM − k
Read the remainder pattern. Same remainder r: answer = LCM + r. Example: the smallest number above 3 that leaves remainder 3 when divided by 6, 8 and 12 is 24 + 3 = 27 (3 itself fits trivially, so exams mean the next one). Each remainder short of its divisor by the same k: answer = LCM − k. Example: divided by 6, 8 and 12 it leaves 4, 6 and 10 (each 2 short), so the number is 24 − 2 = 22.
- 5
Trick 5: same unknown remainder
When the remainder is the same but not given, take the HCF of the differences. Example: the greatest number that divides 43, 91 and 183 leaving the same remainder. Differences: 48, 92 and 140. HCF(48, 92, 140) = 4. Check: each of 43, 91 and 183 leaves remainder 3 when divided by 4.
- 6
Trick 6: HCF and LCM of fractions
For fractions: HCF = HCF of numerators / LCM of denominators, and LCM = LCM of numerators / HCF of denominators. Example: for 2/3, 4/9 and 8/15, HCF = HCF(2, 4, 8) / LCM(3, 9, 15) = 2/45, and LCM = LCM(2, 4, 8) / HCF(3, 9, 15) = 8/3.
Solved LCM and HCF questions, from easy to exam level
1. Find the HCF and LCM of 84 and 126.
84 = 2² × 3 × 7 and 126 = 2 × 3² × 7. HCF = 2 × 3 × 7 = 42. LCM = 2² × 3² × 7 = 252. Check with the product rule: 42 × 252 = 10,584 and 84 × 126 = 10,584. Prime factors are the safest method when the numbers are small.
2. Find the HCF of 1,155 and 2,013.
Use the division method. 2013 = 1 × 1155 + 858; 1155 = 1 × 858 + 297; 858 = 2 × 297 + 264; 297 = 1 × 264 + 33; 264 = 8 × 33 + 0. The last divisor is the HCF: 33. Check: 1155 = 33 × 35 and 2013 = 33 × 61, and 35 and 61 share no factor.
3. The HCF of two numbers is 16 and their LCM is 240. One number is 48. Find the other.
HCF × LCM = product of the two numbers, so 16 × 240 = 48 × other. Other number = 3840 / 48 = 80. Check: HCF(48, 80) = 16 and LCM(48, 80) = 240. The rule works for two numbers only.
4. Three bells ring at intervals of 9, 12 and 15 minutes. They ring together at 8:00 am. When will they next ring together?
They ring together again after LCM(9, 12, 15) minutes. 9 = 3², 12 = 2² × 3, 15 = 3 × 5, so LCM = 2² × 3² × 5 = 180 minutes = 3 hours. Starting at 8:00 am, they next ring together at 11:00 am.
5. Find the largest number that divides 245 and 1,029 leaving remainder 5 in each case.
Subtract the remainder first: 245 − 5 = 240 and 1029 − 5 = 1024. The required number is HCF(240, 1024). 240 = 2⁴ × 15 and 1024 = 2¹⁰, so the HCF is 2⁴ = 16. Check: 245 = 15 × 16 + 5 and 1029 = 64 × 16 + 5.
6. Find the smallest number greater than 8 which, when divided by 12, 15, 20 and 54, leaves remainder 8 in each case.
12 = 2² × 3, 15 = 3 × 5, 20 = 2² × 5 and 54 = 2 × 3³. LCM = 2² × 3³ × 5 = 540. The number that leaves remainder 8 in each case is 540 + 8 = 548.
7. Find the greatest 4-digit number exactly divisible by 15, 25, 40 and 75.
LCM(15, 25, 40, 75) = 600. The largest 4-digit number is 9,999, and 9999 ÷ 600 leaves remainder 399. So the answer is 9999 − 399 = 9,600. Check: 9600 = 16 × 600.
8. A courtyard 18 m 72 cm long and 13 m 20 cm wide is to be paved with identical square tiles. Find the least number of tiles needed.
Convert to cm: 1,872 cm by 1,320 cm. The largest square tile has side HCF(1872, 1320) = 24 cm. Number of tiles = (1872 / 24) × (1320 / 24) = 78 × 55 = 4,290.
Practice set 1: easy LCM and HCF questions
Start here. Each question uses one rule from the table.
1Find the HCF of 36 and 84.
Show answer
Answer: (D) 12
Explanation: 36 = 2² × 3² and 84 = 2² × 3 × 7. Common primes at their lowest powers: 2² × 3 = 12. 6 and 4 also divide both numbers, but they are not the highest common factor.
2Find the LCM of 12, 18 and 30.
Show answer
Answer: (A) 180
Explanation: 12 = 2² × 3, 18 = 2 × 3², 30 = 2 × 3 × 5. Every prime at its highest power: 2² × 3² × 5 = 180. Check: 180 ÷ 12 = 15, 180 ÷ 18 = 10, 180 ÷ 30 = 6.
3The product of two numbers is 2,880 and their HCF is 24. Find their LCM.
Show answer
Answer: (C) 120
Explanation: For two numbers, HCF × LCM = product. LCM = 2880 / 24 = 120. Example pair: 24 and 120 (HCF 24, LCM 120, product 2,880).
4Find the HCF of 2/3, 8/9 and 10/27.
Show answer
Answer: (B) 2/27
Explanation: HCF of fractions = HCF of numerators / LCM of denominators = HCF(2, 8, 10) / LCM(3, 9, 27) = 2/27.
5Find the LCM of 3/4, 5/6 and 9/10.
Show answer
Answer: (A) 45/2
Explanation: LCM of fractions = LCM of numerators / HCF of denominators = LCM(3, 5, 9) / HCF(4, 6, 10) = 45/2. Check: 45/2 ÷ 3/4 = 30, 45/2 ÷ 5/6 = 27, 45/2 ÷ 9/10 = 25, all whole numbers.
6Two numbers are in the ratio 3 : 4 and their HCF is 5. Find their LCM.
Show answer
Answer: (D) 60
Explanation: Since 3 and 4 share no factor, the numbers are 3 × 5 = 15 and 4 × 5 = 20. LCM = 5 × 3 × 4 = 60.
7Find the HCF of 2⁴ × 3² × 5 and 2² × 3³ × 7.
Show answer
Answer: (C) 36
Explanation: Take only the common primes, 2 and 3, at their lowest powers: 2² × 3² = 4 × 9 = 36. 5 and 7 are not common, so they are left out.
Practice set 2: moderate LCM and HCF questions
Remainders, bells and the product rule. Decide HCF or LCM before you calculate.
8Find the largest number that divides 398, 436 and 542 leaving remainders 7, 11 and 15 respectively.
Show answer
Answer: (C) 17
Explanation: Subtract each remainder: 391, 425 and 527 must be exact multiples. 391 = 17 × 23, 425 = 17 × 25, 527 = 17 × 31. HCF = 17.
9Find the smallest number greater than 5 which, when divided by 16, 20 and 24, leaves remainder 5 in each case.
Show answer
Answer: (B) 245
Explanation: LCM(16, 20, 24) = 2⁴ × 3 × 5 = 240. Add the common remainder: 240 + 5 = 245. Check: 245 = 15 × 16 + 5 = 12 × 20 + 5 = 10 × 24 + 5.
10Find the smallest number which, when divided by 5, 6 and 8, leaves remainders 3, 4 and 6 respectively.
Show answer
Answer: (D) 118
Explanation: Each remainder is 2 less than its divisor (5 − 3 = 6 − 4 = 8 − 6 = 2). So the number = LCM(5, 6, 8) − 2 = 120 − 2 = 118. Check: 118 = 23 × 5 + 3 = 19 × 6 + 4 = 14 × 8 + 6.
11Four bells ring at intervals of 6, 8, 12 and 18 seconds. They start together. How many more times will they ring together in the next 30 minutes?
Show answer
Answer: (A) 25
Explanation: LCM(6, 8, 12, 18) = 72 seconds. 30 minutes = 1,800 seconds. They ring together every 72 seconds, so 1800 / 72 = 25 more times. Counting the start as well would give 26.
12Find the greatest number that divides 1,657 and 2,037 leaving remainders 6 and 5 respectively.
Show answer
Answer: (B) 127
Explanation: Required number = HCF(1657 − 6, 2037 − 5) = HCF(1651, 2032). 2032 = 1 × 1651 + 381; 1651 = 4 × 381 + 127; 381 = 3 × 127 + 0. HCF = 127.
13The HCF and LCM of two numbers are 11 and 693. If one number is 77, what is the other?
Show answer
Answer: (A) 99
Explanation: Other number = HCF × LCM / 77 = 11 × 693 / 77 = 7623 / 77 = 99. Check: 77 = 11 × 7 and 99 = 11 × 9, so HCF = 11 and LCM = 11 × 7 × 9 = 693.
14Find the least perfect square that is divisible by each of 8, 12, 15 and 20.
Show answer
Answer: (D) 3,600
Explanation: LCM(8, 12, 15, 20) = 120 = 2³ × 3 × 5. To make every power even, multiply by 2 × 3 × 5 = 30: 120 × 30 = 3,600 = 60². 900 is a square but not divisible by 8.
Practice set 3: exam-level LCM and HCF questions
These hide LCM and HCF inside tiles, laps, digit limits and counting, the way SSC CGL and CHSL frame them.
15A floor 15 m 17 cm long and 9 m 2 cm wide is to be covered with identical square tiles. What is the least number of tiles needed?
Show answer
Answer: (B) 814
Explanation: In cm: 1,517 by 902. The largest tile has side HCF(1517, 902) = 41 cm, since 1517 = 41 × 37 and 902 = 41 × 22. Tiles = 37 × 22 = 814.
16Find the smallest 5-digit number that is exactly divisible by 16, 24, 36 and 54.
Show answer
Answer: (C) 10,368
Explanation: LCM(16, 24, 36, 54) = 2⁴ × 3³ = 432. 10000 ÷ 432 leaves remainder 64 (432 × 23 = 9,936). Add 432 − 64 = 368: 10000 + 368 = 10,368 = 432 × 24.
17The HCF of two numbers is 23, and the other two factors of their LCM are 13 and 14. Find the larger number.
Show answer
Answer: (A) 322
Explanation: The numbers are 23 × 13 = 299 and 23 × 14 = 322, since 13 and 14 share no factor. The larger is 322. Check: LCM = 23 × 13 × 14 = 4,186.
18The sum of two numbers is 216 and their HCF is 27. How many such pairs of numbers are possible?
Show answer
Answer: (D) 2
Explanation: Write the numbers as 27a and 27b with a and b sharing no factor. 27(a + b) = 216, so a + b = 8. Co-prime pairs: (1, 7) and (3, 5). (2, 6) and (4, 4) fail. So 2 pairs: 27 and 189, 81 and 135.
19Three runners take 252, 308 and 198 seconds to complete one lap of a track. They start together from the same point. After how long will they next be together at the start?
Show answer
Answer: (B) 46 min 12 s
Explanation: 252 = 2² × 3² × 7, 308 = 2² × 7 × 11, 198 = 2 × 3² × 11. LCM = 2² × 3² × 7 × 11 = 2,772 seconds = 46 minutes 12 seconds (46 × 60 = 2,760).
20What is the greatest number of students among whom 1,001 pens and 910 pencils can be shared so that each student gets the same number of pens and the same number of pencils?
Show answer
Answer: (C) 91
Explanation: The number of students must divide both 1001 and 910, and we want the largest such number: HCF(1001, 910). 1001 = 7 × 11 × 13 and 910 = 2 × 5 × 7 × 13, so HCF = 7 × 13 = 91. Each student gets 11 pens and 10 pencils.
Common mistakes in LCM and HCF questions
- Using HCF × LCM = product for three numbers. It holds for two numbers only.
- Taking the highest powers for HCF or the lowest for LCM. HCF uses the lowest powers of common primes; LCM uses the highest powers of all primes.
- Forgetting to subtract the remainders before taking the HCF.
- Adding the remainder when each remainder differs from its divisor by the same amount. That case needs LCM − k, not LCM + r.
- Mixing units in tile and rope questions. Convert metres and centimetres to centimetres first.
- Counting the starting moment in bell questions when the question asks how many more times.
How LCM and HCF appear in SSC, RRB and bank exams
LCM and HCF belong to the number system part of the mathematics or quantitative aptitude section in SSC CGL, CHSL, MTS and GD and in RRB NTPC and Group D. Questions come in a few fixed shapes: find the HCF or LCM, use the product rule, find a divisor or a number from remainders, bells or traffic lights, tiles and rooms, laps on a track, and the largest or smallest n-digit number. Bank exams use LCM mostly inside time and work, where the LCM of the days is taken as the total work.
Most of these take under a minute once you can read the remainder pattern. Finish the three practice sets, then take the SSC quant test under time and move on to simplification questions, where LCM is used to add fractions quickly.
Frequently asked questions
- What is the formula connecting LCM and HCF?
- For any two numbers a and b, HCF × LCM = a × b. If you know three of the four values you can find the fourth. For example, HCF 6, LCM 72 and one number 18 gives the other as 6 × 72 / 18 = 24. The rule does not work for three or more numbers.
- How do I find the HCF of large numbers quickly?
- Use the division method. Divide the larger number by the smaller, then divide the last divisor by the remainder, and repeat until the remainder is zero. The last divisor is the HCF. For 1071 and 462 the steps give 147, then 21, then 0, so the HCF is 21.
- When do I use HCF and when LCM in word problems?
- Use HCF when you split things into the largest equal parts: biggest tile, longest measuring rod, most students sharing equally. Use LCM when you wait for things to coincide: bells ringing together, runners meeting at the start, the smallest number divisible by several numbers.
- How do I find the HCF and LCM of fractions?
- HCF of fractions = HCF of the numerators divided by the LCM of the denominators. LCM of fractions = LCM of the numerators divided by the HCF of the denominators. Write each fraction in lowest terms before you apply the rule.
- Can the HCF of two numbers be greater than their LCM?
- No. The HCF divides each number and each number divides the LCM, so the HCF is always a factor of the LCM. For two equal numbers the HCF and LCM are equal; otherwise the HCF is smaller. A question that gives an HCF that does not divide the LCM has no solution.
- Is LCM and HCF asked in SSC CGL?
- Yes. LCM and HCF are part of the number system topics in the SSC CGL quantitative aptitude syllabus and also appear in CHSL, MTS and railway papers. SSC does not publish a fixed count per topic, so practise all the remainder and word-problem shapes on this page.
Timed test
Take the timed SSC quant test
Done with the LCM and HCF set? Take a free timed quantitative aptitude test in SSC Tier-I style, with 2 marks per question and 0.50 off for each wrong answer.
10–50 Qs · pick length
