GCF Calculator: Greatest Common Factor

Use this greatest common factor calculator to find the largest number that divides evenly into two or more numbers. Enter your numbers to get the GCF with factor lists, prime factor steps and the Euclidean method. Great for simplifying fractions. Want every factor the numbers share? Use the common factors calculator.

Greatest Common Factor Calculator

Also known as GCD (greatest common divisor) or HCF.

GCF (GCD)

-

Euclidean Steps

-

This greatest common factor calculator finds the GCF (also called the GCD or HCF) of two or more whole numbers and shows every step of the Euclidean algorithm. Enter a list of numbers and see exactly how the answer was reached.

How to use the Greatest Common Factor Calculator

  1. Type two or more integers in the box, separated by commas or spaces, for example 48, 180, 120. Zeros are ignored.
  2. Press Calculate GCF / GCD.
  3. Read the GCF (GCD) result.
  4. Follow the step list. With three or more numbers, the tool finds the GCF of the first two, then combines that result with the next number, and so on. The chart compares each number with the GCF.

Formula

Euclidean algorithm: gcd(a, b) = gcd(b, a mod b), until the remainder is 0
Several numbers: gcd(a, b, c) = gcd(gcd(a, b), c)

Each line has the form a = q × b + r. The divisor b becomes the next a, and the remainder r becomes the next b. When the remainder reaches 0, the last non-zero divisor is the GCF.

Example

GCF of 84 and 120: 120 = 1 × 84 + 36; 84 = 2 × 36 + 12; 36 = 3 × 12 + 0. The remainder is 0, so the GCF is 12. The tool may begin with a line like 84 = 0 × 120 + 84, which just puts the numbers in order. Check: 84 ÷ 12 = 7 and 120 ÷ 12 = 10.

Frequently asked questions

What is the greatest common factor?

It is the largest whole number that divides each of the given numbers with no remainder. The GCF of 24 and 36 is 12.

Are GCF, GCD and HCF the same thing?

Yes. Greatest common factor, greatest common divisor and highest common factor are three names for the same number. Different textbooks and countries simply prefer different terms.

How do I find the GCF of three numbers?

Find the GCF of the first two, then find the GCF of that result and the third number. For 48, 180 and 120: gcd(48, 180) = 12, and gcd(12, 120) = 12.

How is the GCF used to simplify fractions?

Divide the numerator and denominator by their GCF. For 84/120 the GCF is 12, so 84/120 = 7/10, which is already in lowest terms.

To find the smallest shared multiple instead, use the Least Common Multiple Calculator.

Find the GCF

How to use it

  1. Enter two or more numbers.
  2. Read the GCF.
  3. Check the factor lists.
  4. Review the steps.

More questions

Is GCF the same as GCD?

Yes. GCF and GCD both mean the greatest common divisor, so they are the same thing.

What is the GCF of 12 and 18?

The GCF of 12 and 18 is 6, because 6 is the largest number that divides both evenly.

How is GCF different from LCM?

LCM is the smallest number both divide into.

Related tools: Least Common Multiple Calculator, Prime Factors & All Factors Finder, Fraction Calculator.