GCF Calculator

The greatest common factor, and how it was found.

Math Calculators Free, no sign-up Runs in your browser

GCF Calculator tool

Separate them with spaces or commas. Up to twenty.

—
Greatest common factor
—
The common primes
—
Coprime?
—
Least common multiple
—
How many numbers
NumberAs primesDivided by the GCF
Step by step, two numbers at a time
PairRunning GCF

About the GCF Calculator

GCF Calculator finds the greatest common factor -- also called the greatest common divisor or the highest common factor, three names for one thing -- of any set of whole numbers, and shows how it got there rather than only what it got.

There are two methods and the page does both, because which one is wanted depends on why you are asking. Euclid's algorithm, in the step-by-step table, takes the numbers two at a time and repeatedly replaces the larger with the remainder; it is fast and it is what a computer does. Prime factorisation, in the main table, writes each number as a product of primes and takes every prime to its lowest power; it is slower and it is what a textbook asks for, because it shows why the answer is what it is.

The commonest use is simplifying a fraction. Divide the top and the bottom by their GCF and the fraction is in lowest terms in one step -- 48/180 has a GCF of 12, so it is 4/15, and no further cancelling is possible. The column on the right of the table does that division for every number you enter.

If the GCF comes out as 1 the numbers are coprime: nothing above 1 divides all of them. That does not mean they are prime -- 8 and 9 are coprime and neither is prime -- it means they share no factor, which is what matters when reducing a fraction or choosing gear teeth that should not wear in the same place.

The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.

Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.

How to use the GCF Calculator

  1. Enter numbersDecimals are fine, and thousands separators are accepted and ignored.
  2. Read the greatest common factor, the common primes and coprime?The figures update as you type. The Calculate button is there if you would rather press something, but nothing waits for it.
  3. Copy or check the resultCopy the summary with the copy button, or open the table to check it row by row.

What the GCF Calculator does

  • Shows greatest common factor, the common primes, coprime?, least common multiple and how many numbers together, so you are not running it twice
  • Full step by step, two numbers at a time you can open and check
  • Updates as you type, with no button to press and no page reload
  • Copy the result in one click
  • Free, no sign-up, and it runs entirely in your browser

Who uses the GCF Calculator

The GCF Calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Simplifying a fraction to its lowest terms
  • Finding the largest tile or box size that divides two lengths evenly
  • Checking whether two numbers are coprime
  • Showing the prime factorisation method for homework

Common questions about the GCF Calculator

What is the GCF of 48 and 180?

12. As primes, 48 is 2^4 x 3 and 180 is 2^2 x 3^2 x 5; the primes they share, each to its lowest power, are 2^2 x 3, which is 12.

Is GCF the same as GCD and HCF?

Yes. Greatest common factor, greatest common divisor and highest common factor are three names for the same number. American textbooks tend to say GCF, British ones HCF, and computing says GCD.

How do I use the GCF to simplify a fraction?

Divide the numerator and the denominator by it. 48/180 has a GCF of 12, so it becomes 4/15, and because 4 and 15 are coprime it cannot be reduced further.

What if the GCF is 1?

The numbers are coprime -- they share no factor above 1. They need not be prime: 8 and 9 are coprime and neither is a prime number.

How does Euclid’s algorithm work?

Divide the larger by the smaller and keep the remainder; repeat with the smaller and the remainder until the remainder is zero. The last non-zero remainder is the GCF. The step table shows each pass.

If the GCF Calculator is not quite what you need, these other free tools solve closely related problems, and there are 35 more in math calculators.

LCM Calculator

Least common multiple of any set of numbers, with the working.

Math Calculators Use tool

Factors Calculator

Every factor of a number, in pairs, with the prime factorisation.

Math Calculators Use tool

Fraction Calculator

Calculate with fractions and mixed numbers, simplified and explained.

Math Calculators Use tool

Checked and rebuilt on 2026-10-18. The method this calculator uses is described in the section above, and corrections go through the contact page.