Greatest Common Factor Calculator

Find the greatest common factor of two integers with the Euclidean algorithm.

Formula
Euclidean algorithm: GCD(a,b) = GCD(b, a mod b), repeated until the remainder is zero. The last non-zero divisor is the GCD.