Summarize this article:
167 LearnersLast updated on December 11, 2025

Euclid's division algorithm is a process used to find the greatest common divisor (GCD) of two integers. It is based on a concept called Euclid's division lemma, which lays the foundation for the algorithm. Let’s learn what these terms mean over the course of this article.

Euclid's division lemma states that for any two positive integers a and b, where a > b, there are integers q (quotient) and r (remainder) where:
\(a = bq + r (0 ≤ r < b).\)
For example, we can try to find the remainder and quotient of 72 ÷ 60.
Upon long division, we can divide the two numbers to get, 1 as its quotient and 12 as its remainder.
Let's see if this satisfies the Euclid's division algorithm.
Substitute the values of the quotient and remainder in the Euclid's division algorithm.
\(a = bq + r (0 ≤ r < b).\)
\(72 = 60 × 1 + 12\)
\(72 = 60 + 12 \)
\(72 = 72\)
L.H.S = R.H.S
Hence, proved.
Therefore, Euclid's division algorithm satisfies the given numbers.
Euclid’s division algorithm is the process of repeatedly applying Euclid’s division lemma several times, so that we can obtain the HCF of any two numbers. An algorithm is a sequence of steps used to achieve a specific task.
Let us now assume that there are two numbers a and b. By applying Euclid’s Division Lemma, we will get the quotient and remainder, which are in the form
a = b(q) + r.
Here, the common factors of a and b are also factors of r.
To prove that, let us assume that an integer k is a common factor of both a and b.
Now, by dividing the above relation on both sides by k, we have:
\(\frac ak = \frac bk (q) + \frac rk \\[1em] \frac ak - \frac bk (q) = \frac rk\)
Since k is a common factor of both a and b, the left side is clearly an integer. Therefore, the right side is also an integer. Thus, r must be divisible by k.
This equation helps us in understanding Euclid’s Division Algorithm.
Euclid's division algorithm uses a repeated long division method to simplify the problem until the GCD or HCF is found. We have to keep on dividing the previous divisor by the remainder we got, until the remainder becomes 0. Let's understand this with the help of the example given below:
E.g., find the HCF of 168 and 408
Step 1: Applying Euclid's division lemma on the given numbers
\(408 = 168 × 2 + 72 \)
Step 2: The HCF of 408 and 168 must also be the HCF of 168 and 72
\(168 = 72 × 2 + 24\)
Step 3: Again, here the HCF is a common factor of 168 and 72, which must also be a common factor of 24
\(72 = 24 × 3 + 0\)
Step 4: If the remainder is 0, it means the last non-zero remainder is the HCF. This is because in Euclid's division algorithm, when the remainder becomes 0, it means we’ve found the HCF. Therefore, the HCF is 24.
Hence, 24 is the highest possible common factor of 168 and 408.


Let us now try to generalize Euclid’s division algorithm. Let us assume we need to find the HCF of any two arbitrary numbers, a and b.
Apply Euclid’s Division Lemma repeatedly until we get the value of the remainder as zero.
\(a=b(q_1)+r_1 \\[1em] b=r_1(q_2)+r_2 \\[1em] r_1=r_2(q_3)+r_3 \\[1em] ⋮ \\[1em] r_{n−2}=r_{n−1}(q_n)+r_n \\[1em] r_{n−1}=r_n(q_{n+1})+0\)
The remainder of the second-to-last step is the remainder.
That is, \(HCF (a, b) = r_n\)
In order to prove this, we must first show that \(r_n\) is indeed a common factor of a and b. Then we should show that any common factor of a and b must also be a factor of \(r_n\). This would support, that \(r_n\) is the highest common factor of a and b.
We can also find the HCF of two numbers using the long division method. We will use this method to write the steps of Euclid's division algorithm.
Let us perform the long division method and write the steps of Euclid's division algorithm.
Let us take the example of the numbers 320 and 132.
The divisor of the last step, which leads to the remainder zero, is the HCF.
Therefore, from the division method, we found that the HCF(320, 132) = 4.
Here are some easy and affective tips and tricks for the students to master Euclid's division algorithm, which will useful for them to learn number theory:
Students tend to make mistakes while solving problems related to Euclid’s division algorithm. However, with enough focus and practice, it is possible to avoid those mistakes. The following are the most common mistakes students make while dealing with Euclid’s division algorithm.
Euclid’s division algorithm is used in various aspects of everyday life, and some of them are mentioned below:
Find the HCF of 103 and 465
1
We can find the HCF by dividing the give two numbers. Let's follow the steps to find their HCF by long division method.
Step 1: Let’s divide 465 by 103
By long division method,
465 ÷ 103 = quotient 4, remainder 53
In Euclid's division algorithm,
\(465 = 103 × 4 + 53\)
Repeat the process until the remainder becomes 0.
Step 2:
By long division,
103 ÷ 53 = quotient 1, remainder 50
In Euclid's division algorithm,
\(103 = 53 × 1 + 50\)
Step 3:
By long division,
53 ÷ 50 = quotient 1, remainder 3
In Euclid's division algorithm,
\(53 = 50 × 1 + 3\)
Step 4:
By long division,
50 ÷ 3 = quotient 16, remainder 2
In Euclid's division algorithm,
\(50 = 3 × 16 + 2\)
Step 5:
By long division,
3 ÷ 2 = quotient 1, remainder 1
In Euclid's division algorithm,
\(3 = 2 × 1 + 1\)
Step 6:
By long division,
2 ÷ 1 = quotient 2, remainder 0
HCF(465, 103) = 1 (These numbers are co-prime).
Find the HCF of 0 and 54
54
Here, we have to find the HCF of 0 and a number (special case)
We know that the HCF of 0 and a number is the number itself
So, by definition, we can say that HCF(0, a) = a
Therefore, HCF(0, 54) = 54
Find the HCF of 72 and 132
12
We can find the HCF by dividing the give two numbers. Let's follow the steps to find their HCF by long division method.
Step 1: Let’s divide 132 by 72.
By long division,
132 ÷ 72 = quotient 1, remainder 60
In Euclid's division algorithm,
\(132 = 72 × 1 + 60\)
Repeat the process until we get remainder as 0
Step 2:
By long division,
72 ÷ 60 = quotient1, remainder 12
In Euclid's division algorithm,
\(72 = 60 × 1 + 12\)
Step 3:
By long division,
60 ÷ 12 = quotient 5, remainder 0
In Euclid's division algorithm,
\(60 = 12 × 5 + 0\)
Final non-zero remainder is 12. Therefore, the remainder becomes their HCF.
HCF(132, 72) = 12
Two measuring rods are 240 cm and 192 cm long. What is the greatest length that can be used to measure both without leaving a remainder?
48 cm
Apply Euclid's Algorithm:
a = bq + r, where 0 ≤ r < b
Substituting the values, we get,
240 = 192 × 1 + 48
192 = 48 × 4 + 0
HCF = 48 cm
So, the largest measuring rod is 48 cm.
Find the HCF of (x^6 - 1) and (x³ - 1)
x3 - 1
Factor both:
The common factor in the two equations is x3 - 1
Therefore, HCF = x3 - 1




