Euclidean Algorithm
Discover step by step how the greatest common divisor is calculated.
Initial numbers
Zero is allowedSpeed1400 ms
Animation progress0%
Division 1 / 3
Identify the operands
Dividend
48
Divisor
18
We will determine how many times the divisor fits into the dividend.
48 ÷ 18 = ?
Determine how many times the divisor can be subtracted without going negative.
Building the equation
48=18×?+?
The algorithm repeats divisions using the previous divisor as the new dividend and the remainder as the new divisor. When the remainder is zero, the last divisor is the GCD.