Teacher Guide: 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.
Use this lesson with your class
Free, no student accounts needed.
Share with students
Students open the lesson and practise with instant feedback.
Class quiz
10 questions on Factors & Multiples. Students join with a name, you see everyone's score.
For Teachers
- Write a division with remainder in the form with
- Find the GCF of two numbers with the Euclidean algorithm and with its subtraction version
- Explain why and connect the algorithm to cutting a rectangle into squares
- Use the GCF to simplify fractions and to compute
- Decide whether two numbers are coprime and compare the algorithm with prime factorization
- • Greatest Common Factor (GCF): finding it by listing factors and by prime factorization
- • Least Common Multiple (LCM) and its meaning
- • Prime factorization and prime and composite numbers
- • Division of whole numbers with a remainder
- 1. Why must the algorithm always stop? What happens to the numbers at each step?
- 2. If divides and , why must it also divide ?
- 3. When would you rather use prime factorization, and when the Euclidean algorithm?
- 4. Why do neighboring Fibonacci numbers like and need so many steps?
- 5. How does cutting a rectangle into squares show the same steps as the divisions?
The GCF is the last number written down, which is often the remainder or a quotient
Remediation: Label each row with q and r in different colors. Circle the divisor of the row whose remainder is and check that it divides both original numbers.
After the first division you continue with the original larger number
Remediation: Use the rectangle picture: once the squares are cut off, the large side is gone and only the leftover rectangle (b by r) remains.
The algorithm is a trick that happens to work
Remediation: Show with , , that every common divisor of and divides , and every common divisor of and divides . List both sets of common divisors: they are equal.
For Struggling Students:
- • Start with the subtraction version on small pairs like (35, 14) before using division
- • Use grid paper rectangles and cut off squares physically
- • Provide a table with columns a, b, q, r to fill in row by row
For On-Level Students:
- • Run the algorithm on three- and four-digit pairs like (1071, 462)
- • Simplify fractions like with the GCF
- • Find LCMs with and check them
For Advanced Students:
- • Prove that in general
- • Investigate why neighboring Fibonacci numbers give the most steps
- • Explore the extended Euclidean algorithm: write as
- 6.NS.B.4 (CCSS.MATH.CONTENT.6.NS.B.4)
Find the greatest common factor of two whole numbers and the least common multiple of two whole numbers
- 6.NS.B.2 (CCSS.MATH.CONTENT.6.NS.B.2)
Fluently divide multi-digit numbers using the standard algorithm
- MP.7 (CCSS.MATH.PRACTICE.MP7)
Look for and make use of structure
- visualRectangle into Squares
Interactive view that cuts an a by b rectangle into the largest squares while writing each row a = q × b + r
- activityGrid Paper Squares
Students draw a 48 by 18 rectangle on grid paper and cut off the largest squares with scissors until only equal squares remain
- gameGCF Race
One team uses prime factorization, the other the Euclidean algorithm, on pairs like (1071, 462) and (391, 667)
- worksheetEuclid Rows Practice
Fill in quotients and remainders, then simplify fractions and find LCMs from the GCF
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Definition
Worked Examples
Cut squares of side 18 from the long side
Cut squares of side 12 from the leftover
Cut squares of side 6
Tile the whole rectangle with the last square
Answer: The squares of side fit exactly, so . Each cut is one row of the algorithm.
Common Mistakes
Keeping the old large number: after , continuing with and
Why it's wrong: The algorithm works because . The number is no longer needed after the first division.
Correct: The next pair is : the old divisor and the remainder. So .
Giving or the last quotient as the GCF
Why it's wrong: The last row has remainder , which only tells you to stop. The quotient counts how many squares fit, it is not a common factor.
Correct: The GCF is the last nonzero remainder, the divisor in the final row. In it is .
Writing a remainder that is too big, like
Why it's wrong: The equation is true, but , so still fits into it. The remainder must be smaller than the divisor.
Correct: Take the largest quotient possible: with .
Taking as the LCM
Why it's wrong: is always a common multiple, but usually not the least one: counts the common factor twice.
Correct: Divide by the GCF: .
Why It Matters
- Big numbers: factoring or into primes is slow, but three or four divisions give the GCF right away. For numbers with hundreds of digits, prime factorization is practically impossible, while the Euclidean algorithm still finishes in at most a few thousand quick steps.
- Fractions: to simplify you need , which is hard to see by factoring but quick with the algorithm.
- LCM: once you know the GCF, , so one algorithm gives both.
- Tiles, gears and screens: the largest square tile for a floor, when two gears line up again, and why a screen is all come down to the GCF.
- Internet security: encryption systems like RSA use an extended version of this algorithm every time you open a secure website.
Real World Applications
Tiling a Floor with the Largest Square Tiles
A tiler wants to cover a rectangular floor with equal square tiles without cutting any. The largest possible tile side is the GCF of the two lengths.
Example:
A cm by cm panel is covered exactly by cm squares: , so tiles.
A hallway floor is cm by cm. It must be covered with equal square tiles, with no cutting and no gaps.
What is the side of the largest square tile that works, in cm?
Step 1: Write the mathematical expression
Find with the Euclidean algorithm:
Gears and Repeating Cycles
When two gears turn together, the same pair of teeth meets again after a number of teeth equal to the LCM of the tooth counts. The Euclidean algorithm gives the GCF, and the LCM follows.
Example:
Gears with and teeth: , so the same teeth meet again after teeth.
A bicycle gear has teeth and a small gear has teeth. Two marked teeth touch now.
After how many teeth have passed do the two marked teeth touch again?
Step 1: Write the mathematical expression
Find :
Screen Aspect Ratios
A screen resolution like $1920 \times 1080$ is turned into an aspect ratio by dividing both numbers by their GCF.
Example:
: , so the ratio is .
A monitor has by pixels. To write its aspect ratio, you divide both numbers by their GCF.
What is ?
Step 1: Write the mathematical expression
Run the Euclidean algorithm on and :
Key Takeaways
- 1Euclidean algorithm: divide by as with , then replace by until the remainder is
- 2The GCF is the last nonzero remainder, the divisor in the final row
- 3It works because : both pairs have the same common divisors
- 4Geometrically, it cuts an rectangle into the largest possible squares; the last square side is the GCF
- 5The subtraction version subtracts the smaller number again and again; division is its shortcut
- 6Use it to simplify fractions, to find , and to test if two numbers are coprime (GCF )
Frequently Asked Questions
Does it matter which number I start with?
Is the Euclidean algorithm faster than prime factorization?
What does it mean if the algorithm ends with GCF 1?
Can I use it for three numbers?
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$