GCF Calculator

Enter two or more whole numbers to get the greatest common factor and least common multiple. The GCF of 24, 36 and 60 is 12.

By Mustansar Iqbal Khan, independent developerUpdated

GCF Calculator

Result

Working it out…

How do I find the GCF?

List the prime factors of each number and multiply the primes they share. Or use Euclid's method: divide the larger number by the smaller and repeat with the remainder until it is 0.

GCF(a, b) = GCF(b, a mod b)

GCF and LCM together

For two numbers, GCF × LCM = a × b. The GCF simplifies fractions; the LCM finds common denominators.

Frequently asked questions

What is the GCF of 12 and 18?

6.

What if the GCF is 1?

The numbers are coprime: they share no factor except 1.

Is GCF the same as GCD and HCF?

Yes. Greatest common divisor and highest common factor mean the same thing.