Free Online Calculator

Greatest Common Factor Calculator

Find the greatest common factor of two or more numbers.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: finding the GCF

The GCF is the largest number that divides all your numbers exactly. The GCF of 48, 180 and 60 is 12.

Overview of the Greatest Common Factor Calculator

The greatest common factor (GCF) — also called the greatest common divisor (GCD) or highest common factor (HCF) — is the largest whole number that divides every number in a list. Enter two or more whole numbers and the calculator gives the GCF, the LCM, each number's prime factors and the step-by-step Euclidean algorithm.

The GCF is used to simplify fractions and ratios. See the LCM Calculator, Factor Calculator, Common Factor Calculator and Fraction Calculator.

How We Calculate

The calculator applies the standard method step by step.

  1. Euclid's method: divide the larger number by the smaller; replace the larger with the smaller and the smaller with the remainder.
  2. Repeat until the remainder is 0 — the last non-zero remainder is the GCF.
  3. For three or more numbers, find the GCF of the first two, then of that result and the next number.
  4. Check with prime factors: multiply the primes common to all numbers, each to its lowest power.
gcd(a, b) = gcd(b, a mod b) until the remainder is 0   lcm(a, b) = a × b ÷ gcd(a, b)
Worked example — greatest common factor calculator
ItemValue
GCF12
LCM720
Numbers divided by the GCF4, 15, 5
Prime factors of 482⁴ × 3
Prime factors of 1802² × 3² × 5
Prime factors of 602² × 3 × 5
Euclidean algorithm for 48 and 180
Division stepRemainder
180 = 3 × 48 + 3636
48 = 1 × 36 + 1212
36 = 3 × 12 + 00
GCF of different sets
NumbersGCF
48 and 186
48, 180, 6012
100, 75, 5025
17 and 51
84, 126, 21042

Greatest Common Factor Calculator — Frequently Asked Questions

What is the greatest common factor?

The largest whole number that divides each of the numbers without a remainder.

Are GCF, GCD and HCF the same?

Yes — three names for the same thing, used in different countries and textbooks.

How do I find the GCF by prime factorization?

Write each number as a product of primes and multiply the primes they share, using the smallest power of each.

What is the Euclidean algorithm?

A fast method that repeatedly replaces the pair (a, b) by (b, a mod b) until the remainder is zero.

What is the GCF of two coprime numbers?

1. Coprime numbers share no factor other than 1, such as 8 and 15.

How is the GCF used?

To simplify fractions and ratios, to split things into equal groups and in cryptography.

How is the greatest common factor calculator calculated?

It uses the standard method: gcd(a, b) = gcd(b, a mod b) until the remainder is 0   lcm(a, b) = a × b ÷ gcd(a, b) The full working and a worked example are shown on this page.

How accurate is this calculator?

Decimal results use standard double-precision arithmetic (about 15–16 significant digits). Tools that work with whole numbers — big numbers, factors, bases, combinations — use exact integer arithmetic, so no digits are lost.

Can I use it for homework or exams?

Yes for checking your work and learning the method. The steps and formula are shown so you can understand the answer, but follow your teacher's rules about calculators in exams.

Is my data stored?

No. Everything is calculated in your browser and nothing you enter is uploaded or saved.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

5 + 1 =
Call WhatsApp