GCF Calculator

Greatest common factor of two or more numbers — free, private, no signup. It works alongside the Factoring Calculator, the lead tool in this group.

2+ numbers Euclid’s algorithm Free forever

✓ Meets the ToolVaultly Standard · Last tested: Oct 10, 2026

Try

🔒Private by design. Everything runs in your browser — nothing is uploaded or stored.
Quick answer: enter two or more numbers above — the calculator instantly finds their greatest common factor, e.g. GCF of 8 and 12 is 4.

GCF calculator

Short answer: the GCF (greatest common factor) is the largest number dividing all your numbers evenly — e.g. GCF(12, 18, 24) = 6. Enter numbers above for an instant answer.

Greatest common factor

Short answer: the greatest common factor of 8 and 12 is 4 — the largest divisor they share. The calculator uses Euclid's algorithm, extended across all numbers.

How to find the GCF

Short answer: list each number's factors and take the largest shared one — or let the calculator do it. For 12 and 18: factors of 12 are 1, 2, 3, 4, 6, 12; of 18 are 1, 2, 3, 6, 9, 18; GCF = 6.

When to use this calculator

Short answer: use it when you need to simplify a fraction, split items into equal groups, or find shared divisors for up to 12 numbers. Reducing 18/24? The fraction calculator does it in one step; need the flip side? The LCM calculator finds the least common multiple.

How it was tested: the Euclid's algorithm implementation was verified against 25+ cases — GCF(12, 18, 24) = 6, GCF(100, 75) = 25, coprime pairs, and three-number chains.

Worked example: GCF of 48 and 180

Step 1 — Prime factorisations: 48 = 2 × 2 × 2 × 2 × 3, and 180 = 2 × 2 × 3 × 3 × 5.

Step 2 — Take the shared primes, at the lower power where they overlap: 2 × 2 × 3.

Answer: GCF(48, 180) = 2² × 3 = 12. Check: 48 ÷ 12 = 4 and 180 ÷ 12 = 15, and 4 and 15 share no further factor.

For three numbers, work in pairs: GCF(24, 36) = 12, then GCF(12, 60) = 12, so GCF(24, 36, 60) = 12. The calculator above chains this automatically for up to twelve numbers.

The Euclidean algorithm, step by step

For large numbers, listing factors is slow. The Euclidean algorithm instead divides and keeps the remainder:

  1. Divide the larger number by the smaller: 180 ÷ 48 = 3 remainder 36.
  2. Now divide the old divisor by that remainder: 48 ÷ 36 = 1 remainder 12.
  3. Repeat: 36 ÷ 12 = 3 remainder 0.
  4. The last non-zero remainder is the GCF: 12.

It works because any factor common to both numbers must also divide their remainder, so the problem shrinks at every step without losing the answer.

GCF vs LCM, and where the GCF earns its keep

The GCF and the LCM are mirror images. The GCF is the largest number that divides into both numbers — for 12 and 18 it is 6. The LCM is the smallest number that both numbers divide into — for 12 and 18 it is 36. A GCF can never be bigger than the smaller number; an LCM can never be smaller than the larger one.

Simplifying fractions is the everyday use: 48/180 divides top and bottom by the GCF of 12 to give 4/15, fully reduced in one step instead of several. Tiling works the same way in reverse: the largest square tile that fits a 180 cm × 48 cm strip with no cutting has sides of 12 cm — you would need 15 × 4 = 60 of them.

Frequently asked questions

What is the GCF of 8 and 12?
4. Factors of 8: 1, 2, 4, 8. Factors of 12: 1, 2, 3, 4, 6, 12. Largest shared: 4. Enter any numbers above for an instant answer.
What is the difference between GCF and GCD?
Nothing — GCF (greatest common factor) and GCD (greatest common divisor) are two names for the same thing. HCF (highest common factor) is a third name.
How do you find the GCF of three numbers?
Find the GCF of the first two, then the GCF of that result with the third. The calculator does this automatically — enter up to 12 numbers.
What is the GCF used for?
Simplifying fractions (divide top and bottom by the GCF), factoring polynomials, and solving ratio problems.
What is the GCF of 100 and 75?
25. Tap the preset above to verify instantly.
Is this GCF calculator free?
Yes — unlimited calculations, free forever. No account, no limits. Everything runs in your browser.