Calculator and Converter

GCF calculator

The greatest common factor is the biggest whole number that divides every number in your list with no remainder.

Results

Enter your values to see the result.

About this tool

Enter two or more whole numbers separated by commas or spaces and the calculator finds it using the Euclidean algorithm. It helps when reducing fractions or splitting items into equal groups without leftovers.

How it is calculated
GCF uses the Euclidean algorithm: gcd(a, b) = gcd(b, a mod b)
Worked example
With Whole numbers (separated by commas or spaces): 48,36,60, the result is: Greatest common factor: 12.
Good to know
At least two numbers are needed, all must be whole numbers, and zero is not accepted. Any decimal or zero entry triggers an error. The result is the single largest factor shared by every number.

Frequently asked questions

Can I find the GCF of more than two numbers?

Yes. Enter as many whole numbers as you like. The calculator combines them one at a time, finding the common factor of the first two and then of that result with the next number.

How does the Euclidean algorithm work?

It replaces the larger number with the remainder after dividing by the smaller, and repeats until the remainder is zero. The last non-zero value is the greatest common factor. It is much quicker than listing factors.

What if the numbers share no factor except 1?

Then the Greatest common factor is 1, and the numbers are called coprime. For instance 8 and 15 have no common divisor above 1, so the result is 1.

Related calculators