GCF Calculator

Enter two or more positive integers separated by commas to find their Greatest Common Factor (GCF), also called the Greatest Common Divisor (GCD), along with all common factors.

How to use this calculator

  1. Enter two or more positive integers, separated by commas or spaces.
  2. Read the GCF and the complete list of all common factors.

Formula & method

Euclidean algorithm

GCF(a, b) = GCF(b, a mod b) — repeat until remainder = 0

For more than two numbers, compute GCF(GCF(a, b), c), etc. Common factors are all divisors of the GCF.

Example

GCF(24, 36, 60): GCF(24,36) = 12, GCF(12,60) = 12. Common factors of GCF = 12: 1, 2, 3, 4, 6, 12.

Key insights

How to interpret your result

GCF vs common factors

Common factors are all integers dividing all inputs. The GCF is the largest of those common factors.

GCF = 1 (coprime)

If GCF = 1, the numbers are coprime — they share no common factor other than 1. For example, GCF(8, 15) = 1.

Frequently asked questions

What is the GCF?
The Greatest Common Factor (GCF) is the largest positive integer that divides all given numbers without a remainder.
What is the difference between GCF and LCM?
GCF is the largest shared factor; LCM is the smallest common multiple. GCF × LCM = a × b for two numbers.
How is GCF used in fractions?
Divide numerator and denominator by their GCF to simplify. 12/16 → GCF = 4 → 3/4.

Related calculators

See all math calculators · Explore all online calculators