Greatest Common Factor (GCF) Calculator

The greatest common factor (GCF) is the biggest number that divides two or more whole numbers exactly. Type your numbers to see it, every factor they share, and the steps. It's handy for simplifying fractions.

Two to 20 whole numbers, separated by commas or spaces. Type 1200, not 1,200.

Greatest common factor
6

The greatest common factor of 12 and 18 is 6: the largest number that divides both exactly.

Least common multiple 36
Common factors 1, 2, 3, 6
Numbers used 2

To simplify the fraction 12/18, divide the top and bottom by 6: 2/3.

What is the greatest common factor (GCF)?

The greatest common factor is the largest whole number that divides each of your numbers exactly, with nothing left over. It is also called the greatest common divisor (GCD), which is what Excel calls it. Finding it is part of grade 6 maths in the Common Core standards.

Source Microsoft Support · GCD function (greatest common divisor), with examples ↗Common Core State Standards · Grade 6, The Number System (6.NS.B.4) ↗

How to calculate the GCF

The quickest way works for numbers of any size: Euclid’s algorithm, which is just repeated division.

Divide the larger number by the smaller, then divide the smaller number by the remainder. Repeat until the remainder is 0: the last number you divided by is the GCF.

Here it is with your numbers:

  1. 18 = 1 × 12 + 6
  2. 12 = 2 × 6 + 0

It means 6 is the biggest number that goes into 12 and 18 with nothing left over.

Source NIST · Dictionary of Algorithms and Data Structures: Euclid's algorithm ↗

Factors of each number

For smaller numbers you can also list every factor of each number and pick the biggest one they share.

NumberFactors (common ones in bold)
121, 2, 3, 4, 6, 12
181, 2, 3, 6, 9, 18

GCF examples

NumbersGCF
24 and 3612
8 and 124
12 and 186
4 and 62
6 and 93
12, 18 and 306

FAQs

What is the greatest common factor?

The greatest common factor is the largest whole number that divides two or more numbers with no remainder. It is also called the greatest common divisor (GCD). For 24 and 36 it is 12.

Source Microsoft Support · GCD function (greatest common divisor), with examples ↗

How do you find the greatest common factor?

Divide the larger number by the smaller, then divide the smaller number by the remainder, and repeat until the remainder is 0. The last number you divided by is the GCF. For small numbers you can also list the factors of each number and pick the biggest one they share.

Source NIST · Dictionary of Algorithms and Data Structures: Euclid's algorithm ↗

What are the greatest common factors of 24 and 36?

The greatest common factor of 24 and 36 is 12. Their common factors are 1, 2, 3, 4, 6 and 12, and 12 is the largest.

Source Microsoft Support · GCD function (greatest common divisor), with examples ↗

Sources

Related calculators