GCD Calculator

    Calculate the greatest common divisor, also called GCF or HCF, for two or more positive integers with Euclidean algorithm steps and Bezout coefficients for pairs.

    Greatest common divisor, GCF, or HCF

    The English SERP uses GCD, GCF, and HCF almost interchangeably for integer arithmetic. A useful calculator should accept several numbers, show the final divisor first, then show the Euclidean algorithm steps.

    The Euclidean algorithm keeps replacing a pair by the divisor and remainder until the remainder is 0.

    1. Enter at least two positive integers.
    2. Read the final GCD at the top.
    3. For two numbers, use the Bezout coefficient check when modular arithmetic or Diophantine equations matter.

    When the GCD is 1

    If the GCD is 1, the numbers are relatively prime. That does not mean the numbers themselves are prime; it only means they share no positive divisor greater than 1.

    InputGCD
    48, 186
    252, 10521
    35, 641

    Frequently Asked Questions

    Sources and References

    Calculations are based on the listed reference sources. Links open in a new tab.

    Updated:

    Related Tools