HCF by division method
LCM = 252 (check: HCF × LCM = 10584 = 84 × 126)
Division steps
- Divide 126 by 84: 126 = 84 × 1 + 42. Now divide 84 by the remainder 42.
- Divide 84 by 42: 84 = 42 × 2 + 0. The remainder is 0, so the last divisor, 42, is the HCF.
Updated 2026-11-25
What is the HCF by long division method?
The highest common factor (HCF), also called the greatest common divisor (GCD) or greatest common factor (GCF), is the largest number that divides each of the given numbers with no remainder. The long division method, often just called the division method, uses Euclid's division algorithm. It rests on one fact: if a = b × q + r, then the common factors of a and b are exactly the common factors of b and r. So you can keep replacing the pair by a smaller pair until the remainder is 0.
HCF(a, b) = HCF(b, r) where a = b × q + r, 0 ≤ r < b
Worked example: HCF of 84 and 126
- Divide the larger by the smaller: 126 = 84 × 1 + 42.
- Divide the old divisor by the remainder: 84 = 42 × 2 + 0.
- The remainder is 0, so the last divisor, 42, is the HCF.
Check with prime factors: 84 = 2² × 3 × 7 and 126 = 2 × 3² × 7, so the common part is 2 × 3 × 7 = 42.
A longer example: 1071 and 462
| Step | Division | Remainder |
|---|---|---|
| 1 | 1071 = 462 × 2 + 147 | 147 |
| 2 | 462 = 147 × 3 + 21 | 21 |
| 3 | 147 = 21 × 7 + 0 | 0 |
HCF(1071, 462) = 21. Each step is an ordinary division with remainder, which you can work out on the remainder calculator or by long division.
In many Indian and African textbooks the steps are drawn as a ladder of nested long divisions: each remainder moves to the left of the bracket and becomes the next divisor. The numbers in the ladder are exactly the ones in the table.
HCF of three numbers
HCF is associative, so find the HCF of any two numbers, then the HCF of that result and the third number. For 72, 120 and 192:
- HCF(72, 120): 120 = 72 × 1 + 48; 72 = 48 × 1 + 24; 48 = 24 × 2 + 0 → 24.
- HCF(24, 192): 192 = 24 × 8 + 0 → 24.
HCF(72, 120, 192) = 24
The calculator does the same for up to six numbers and shows each pair separately.
HCF and LCM
For two numbers, the HCF and the lowest common multiple (LCM) are linked by
HCF(a, b) × LCM(a, b) = a × b → 42 × 252 = 10584 = 84 × 126
So once you have the HCF, the LCM is a × b ÷ HCF: 84 × 126 ÷ 42 = 252. This rule does not hold for three or more numbers. For 72, 120 and 192 the LCM is 2880, but 24 × 2880 = 69,120, which is not 72 × 120 × 192 = 1,658,880. The calculator computes the LCM of several numbers pair by pair instead.
Why the division method is useful
- Fast for large numbers. Prime factorization of 4052 and 12576 takes time; the division method gives HCF = 4 in a handful of steps.
- Simplifying fractions. Divide the top and bottom by the HCF: 84/126 = 2/3. The division calculator does this automatically.
- Word problems. "The largest tile that fits a 84 cm by 126 cm floor exactly" or "the greatest number of identical bags" are HCF questions.
Two numbers whose HCF is 1, such as 35 and 64, are called co-prime. Quick tests for small common factors such as 2, 3 or 5 are on the divisibility rules page.
Frequently asked questions
How do you find the HCF by the long division method?
Divide the larger number by the smaller, then keep dividing the previous divisor by the remainder. When the remainder is 0, the last divisor is the HCF.
What is the HCF of 84 and 126 by the division method?
42, because 126 = 84 × 1 + 42 and 84 = 42 × 2 + 0.
How do you find the HCF of three numbers by division?
Find the HCF of two of them, then find the HCF of that answer and the third number. For 72, 120 and 192 the HCF is 24.
Is HCF the same as GCD and GCF?
Yes. Highest common factor, greatest common divisor and greatest common factor are different names for the same number.
How are HCF and LCM related?
For two numbers, HCF × LCM equals the product of the numbers, so LCM = a × b ÷ HCF. This does not work for three or more numbers.
What is Euclid's division lemma?
For positive whole numbers a and b there are unique whole numbers q and r with a = b × q + r and 0 ≤ r < b. Repeating it is Euclid's algorithm for the HCF.