Part of the Maths & Statistics suite · 235 calculators

GCF Calculator (Greatest Common Factor)

The greatest common factor of two or more whole numbers — the largest number that divides them all exactly.

The greatest common factor, also called the highest common factor or greatest common divisor, is the biggest number that goes into every value you enter without a remainder.

Two or more, comma-separated
Results update as you type
Results
Greatest common divisor
6
Least common multiple
Numbers entered
Coprime?
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the national curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About gcf calculator (greatest common factor)

How the gcf calculator (greatest common factor) works

The greatest common factor, also called the highest common factor or greatest common divisor, is the biggest number that goes into every value you enter without a remainder. Euclid's algorithm finds it far faster than listing factors: repeatedly replace the larger number with the remainder of dividing it by the smaller, and the last non-zero value is the answer. It is what reduces a fraction to lowest terms.

Formula: gcd(a, b) = gcd(b, a mod b); lcm(a, b) = |a × b| / gcd(a, b)

Worked examples

InputsGreatest common divisorNote
GCF of 12, 18 and 3066
GCF of 48 and 601212
GCF of 17 and 2511 — they are coprime

Frequently asked questions

What is the greatest common factor?

The largest whole number that divides all your numbers exactly. For 12 and 18 it is 6.

Is GCF the same as HCF and GCD?

Yes — greatest common factor, highest common factor and greatest common divisor are three names for one thing.

How do I use it to simplify a fraction?

Divide top and bottom by it: 18/24 has GCF 6, giving 3/4.

What if the numbers share nothing?

The GCF is 1 and they are called coprime — like 8 and 15.

What is Euclid's algorithm?

Replace the larger number with its remainder when divided by the smaller, and repeat. The last non-zero value is the GCF, and it is thousands of times faster than listing factors.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.