Find the Greatest Common Divisor (Highest Common Factor) of two or more numbers instantly.
The Greatest Common Divisor (GCD), also called the Highest Common Factor (HCF), is the largest positive integer that divides each of the given numbers without leaving a remainder. This calculator uses the Euclidean algorithm, which repeatedly replaces the larger number with the remainder of dividing the larger by the smaller. When the remainder reaches zero, the last non-zero value is the GCD. For multiple numbers, the GCD is computed iteratively: GCD(a, b, c) = GCD(GCD(a, b), c).
Use the Euclidean algorithm: divide the larger number by the smaller, take the remainder, then divide the smaller by that remainder. Repeat until the remainder is zero. The last non-zero remainder is the GCD.
The GCD of 0 and any non-zero number n is equal to n. Since every integer divides 0, the greatest divisor shared by 0 and n is n itself.
Yes. Calculate the GCD of the first two numbers, then find the GCD of that result with the third number, and continue sequentially for all remaining numbers.