GCD Calculator

Calculate the Greatest Common Divisor (GCD) of two or more numbers.

Enter the numbers separated by commas or spaces and the GCD appears automatically, updated with every keystroke.

About this tool

This calculator finds the Greatest Common Divisor (GCD) — the largest number that evenly divides every number entered — using the Euclidean algorithm. It accepts two or more positive integers at once.

How to use

Enter two or more positive integers into the field, separated by commas or spaces (for example "12, 18, 24"). The result is calculated automatically.

Examples

The GCD of 12 and 18 is 6. The GCD of 12, 18, and 24 is also 6. The GCD of 7 and 13 (coprime numbers) is 1.

Frequently asked questions

The GCD (Greatest Common Divisor) is the largest whole number that divides two or more numbers with no remainder. It is also called the "highest common factor" (HCF).

At least two, with no upper limit — the calculator finds the GCD common to every number entered.

No — the calculation happens entirely in your browser; nothing is sent to the server.
GCD Calculator
GCD
0