Euclidean Algorithm
Find the greatest common factor of any two numbers by repeated division with remainder, and use it to simplify fractions and find the LCM.
Advanced25 min18 problems
Definition
The Euclidean algorithm is a fast way to find the greatest common factor (GCF) of two whole numbers without listing factors or building factor trees.
Divide the larger number by the smaller number and write the result as a division with remainder:
Here is the quotient and is the remainder. Then **replace the pair by ** and divide again. Repeat until the remainder is . The last nonzero remainder (the divisor in the final row) is the GCF.
Example:
The remainder is , so .
Why it works: if a number divides both and , it also divides . And if divides both and , it also divides . So the pairs and have exactly the same common divisors, and therefore the same GCF:
The numbers get smaller at every step, so the algorithm always stops.
Try it now
In the Euclidean algorithm you write with . Which pair do you divide next?
Interactive Visual
Largest squares in a rectangle: pick a pair
Rectangle 1071 × 462
Press Next step to cut off the biggest squares that fit.
Your turn: type the quotient and the remainder of each row
Rectangle 168 × 120
How many times does 120 fit into 168, and what is left over?
168 =× 120 +
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
18 problemsProblem 1 of 18
Easy
In the Euclidean algorithm you write with . Which pair do you divide next?
Glossary
- Euclidean algorithm
- A method for the GCF of two numbers: divide with remainder, replace the pair by (divisor, remainder), repeat until the remainder is
- Division with remainder
- Writing with , for example
- Quotient
- The number of whole times fits into
- Remainder
- The number left over after division, always smaller than the divisor
- Coprime (relatively prime)
- Two numbers whose GCF is , like and
- Least common multiple (LCM)
- The smallest positive number that both numbers divide;
Formula Card
Division with remainder
One row of the algorithm: $q$ is the quotient, $r$ the remainder
Key step
Replace the pair by (divisor, remainder) and repeat until $r = 0$
LCM from the GCF
Multiply the numbers and divide by their GCF
Coprime numbers
The numbers share no factor except $1$