Try it yourself · Class 10 Maths · Real Numbers
Euclid's division algorithm: HCF in steps
Euclid’s algorithm divides the larger number by the smaller, then the smaller by the remainder, and goes on until the remainder is 0. The last divisor is the HCF of the two numbers. Each bar shows the blocks of the divisor that fit in the dividend, with the left-over in orange.
Each step is ; the last divisor is the HCF, and .
The simulation needs JavaScript; everything it shows is explained below.
What to change
- Slide the First number and the Second number to any values from 10 to 500.
- Pick two numbers where one divides the other, such as 100 and 25, and see the algorithm finish in one step.
- Try two neighbouring Fibonacci numbers, such as 233 and 144, to see the longest chains of steps.
- Compare HCF × LCM with a × b in the readout each time.
What to watch
- With 225 and 135 there are 3 steps: 225 = 135 × 1 + 90, 135 = 90 × 1 + 45, 90 = 45 × 2 + 0. The readout shows HCF 45 and LCM 675.
- HCF × LCM is 45 × 675 = 30375 and a × b is 225 × 135 = 30375, so the two rows of the readout match.
- With 455 and 42 the readout shows HCF 7, 3 steps and LCM 2730, and the last bar is made of 5 blocks of 7.
- With 233 and 144 the readout shows 11 steps and HCF 1, so the numbers have no common factor except 1, and the LCM is the whole product 33552.
The formula
Each step replaces the pair (a, b) by (b, r). The pair has the same HCF all the way down, and the last non-zero remainder’s divisor is that HCF.
Try these questions
Work each one out with the simulation, tap to see the answer, then try the chapter quiz.
-
Bihar Board 2026
Using Euclid's division algorithm find the H.C.F. of 135 and 225.Show the answer
45 -
Bihar Board 2020
Using Euclid's division algorithm, find the HCF of 272 and 1032.Show the answer
8
