Type any two whole numbers, or try a preset. Each line below divides and keeps the leftover — the pair shrinks until nothing is left over, and the last divisor standing is the greatest common divisor.
The idea is older than algebra: the greatest common divisor of two numbers does not change if you replace the larger number with the remainder after dividing it by the smaller one.
Hover any amber remainder above to see it drop down and become the divisor on the next line — that single move is the whole algorithm.