Greatest Common Factor

Definitionnoun phrase

What is the greatest common factor?

The greatest common factor (GCF) is the largest factor shared by two or more numbers: the largest number that divides into both without a remainder. The GCF of 18 and 24 is 6. Find it by listing factors or by multiplying the prime factors the numbers share. The GCF is how you simplify fractions in one step.

In Spanish
máximo común divisor
Also called
GCF, greatest common divisor, GCD, highest common factor, HCF
Grade level
6-8
Grade 5Grade 6Grade 7Grade 8CCSS 6.NS.B.4GED

Greatest Common Factor in a picture

Two ways to find the GCF of 18 and 24Top: the factors of 18 are 1, 2, 3, 6, 9, 18 and the factors of 24 are 1, 2, 3, 4, 6, 8, 12, 24. The common factors 1, 2, 3 and 6 are highlighted, and the greatest, 6, is the GCF. Bottom: a Venn diagram of prime factors. 18 is 2 times 3 times 3 and 24 is 2 times 2 times 2 times 3; the overlap holds 2 and 3, and 2 times 3 is 6.List the factors, mark the common ones181236918241234681224common: 1, 2, 3, 6 · greatest = 618 = 2 × 3 × 324 = 2 × 2 × 2 × 332322shared primes: GCF = 2 × 3 = 6
Both methods agree: the largest factor on both lists is 6, and the primes the two numbers share multiply to 6. The prime-factor method is faster for big numbers.

Formal definition and notation

For whole numbers a and b, not both 0, the greatest common factor gcd (a, b) is the largest whole number d that is a factor of both a and b. Every common factor of a and b is itself a factor of the GCF. If gcd (a, b) = 1, the numbers are relatively prime. The GCF and the least common multiple are linked by gcd (a, b) × lcm(a, b) = a × b for positive a and b.

Symbol Read it as Meaning
GCF(18, 24) = 6 the GCF of 18 and 24 is 6 the usual school notation
gcd (a, b) g c d of a and b greatest common divisor, the same number; spreadsheets use GCD

Key facts

  • The GCF is never larger than the smallest of the numbers. If one number divides the other, it is the GCF: GCF(7, 21) = 7.
  • 1 is a common factor of every pair, so the GCF is at least 1. Two different primes always have GCF 1.
  • Dividing the numerator and denominator of a fraction by their GCF puts it in simplest form in one step: 1824 = 34.
  • Factoring out the GCF rewrites a sum as a product: 18 + 24 = 6(3 + 4), and 12x + 8 = 4(3x + 2).
  • For two positive numbers, GCF × LCM = the product of the numbers: 6 × 72 = 18 × 24 = 432.

GCF from prime factors

GCF from prime factors
GCF = product of the shared primes, each with its smaller exponent
18 = 2 × 32
prime factorization of the first number
24 = 23 × 3
prime factorization of the second number
21 × 31 = 6
shared primes 2 and 3, each to the lower power

A prime that appears in only one of the numbers (like 5 in 60) is not shared, so it is left out. If no primes are shared, the GCF is 1.

Greatest Common Factor examples, step by step

Example 1: List the factors

Warm-up

Find the GCF of 16 and 40.

  1. Factors of 16: 1, 2, 4, 8, 16.
  2. Factors of 40: 1, 2, 4, 5, 8, 10, 20, 40.
  3. Common factors: 1, 2, 4 and 8. The greatest is 8.

Answer: The GCF of 16 and 40 is 8.

Example 2: Use prime factorization

Core

Find the GCF of 36 and 60.

  1. Factor into primes: 36 = 22 × 32 and 60 = 22 × 3 × 5.
  2. Shared primes: 2 and 3. The 5 is in 60 only, so leave it out.
  3. Take the lower power of each: 22 (both have 22) and 31 (60 has only one 3).
  4. Multiply: 22 × 3 = 4 × 3 = 12.

Answer: The GCF of 36 and 60 is 12.

Example 3: Identical bouquets

Test-style

A florist has 48 roses and 60 tulips. She wants to make identical bouquets that use every flower. What is the greatest number of bouquets she can make, and what goes in each?

  1. Identical bouquets with nothing left over means the number of bouquets must divide both 48 and 60.
  2. The greatest such number is GCF(48, 60). 48 = 24 × 3 and 60 = 22 × 3 × 5, so the GCF is 22 × 3 = 12.
  3. Roses per bouquet: 48 ÷ 12 = 4. Tulips per bouquet: 60 ÷ 12 = 5.
  4. Trap: the LCM, 240, would be the answer to a “when do they match up again” question, not this one.

Answer: She can make 12 bouquets, each with 4 roses and 5 tulips.

Common mistakes

✗ MistakeThe GCF of 6 and 8 is 24.
✓ InsteadThe GCF of 6 and 8 is 2. (24 is their LCM.)

The greatest common factor is a factor, not a multiple. It can never be larger than the smaller number.

✗ MistakeThe GCF of 24 and 36 is 6, because 6 divides both.
✓ Instead6 is a common factor, but 12 is the greatest: 24 = 12 × 2 and 36 = 12 × 3.

Check that the quotients have no common factor left. Here 4 and 6 still share a 2, so 6 was not the greatest.

✗ Mistake12 = 2 × 2 × 3 and 18 = 2 × 3 × 3, so the GCF is 2 × 2 × 3 × 3 = 36.
✓ InsteadUse only the primes they share: one 2 and one 3, so the GCF is 6.

Multiplying every prime gives a multiple of both numbers, which is the LCM idea. The GCF keeps only the overlap.

✗ Mistake8 and 15 have no GCF.
✓ InsteadGCF(8, 15) = 1. The numbers are relatively prime.

1 divides every whole number, so any two whole numbers have a common factor of at least 1.

Not to be confused with

Greatest Common Factorvs.Least Common Multiple

The GCF is the largest number that divides both; the LCM is the smallest number both divide into. For 6 and 8: GCF = 2, LCM = 24.

Greatest Common Factorvs.Common factor

Any number that divides both is a common factor. 18 and 24 have four: 1, 2, 3 and 6. The GCF is the greatest of them.

Greatest Common Factorvs.Factor

A factor belongs to one number (the factors of 18). The GCF compares two or more numbers and picks the largest factor they share.

Quick check: 3 questions

Question 1 of 3

What is the GCF of 20 and 30?

Show answer and explanation

Answer: C. The common factors of 20 and 30 are 1, 2, 5 and 10, and 10 is the greatest. 5 and 2 are common factors but not the greatest; 60 is the LCM.

Question 2 of 3

What is the GCF of 9 and 16?

Show answer and explanation

Answer: A. 9 = 32 and 16 = 24 share no prime, so the only common factor is 1. 3 divides 9 but not 16, 144 is the product (and the LCM), and 0 is never a GCF.

Question 3 of 3

Use the GCF to write 1824 in simplest form.

Show answer and explanation

Answer: B. GCF(18, 24) = 6, and 18 ÷ 624 ÷ 6 = 34. 912 and 68 are equal but divide by a smaller common factor, so they are not simplest. 23 is a different number.

Greatest Common Factor: frequently asked questions

How do you find the GCF of three numbers?

Use the same methods with all three. Factor each into primes and keep only the primes that appear in every number, with the lowest power. For 12, 18 and 30: 12 = 22 × 3, 18 = 2 × 32, 30 = 2 × 3 × 5. All share one 2 and one 3, so the GCF is 6. You can also find GCF(12, 18) first, then the GCF of that and 30.

What is the GCF used for?

The GCF simplifies fractions in one step: divide the top and bottom by it. It also factors expressions, as in 15x + 20 = 5(3x + 4), and it solves sharing problems where you split groups into the largest possible equal sets with nothing left over, such as packing 24 pencils and 36 erasers into identical kits.

Can the GCF be 1?

Yes. When two numbers share no prime factors, their only common factor is 1, and they are called relatively prime (or coprime). Examples: 8 and 15, 9 and 16, or any two different primes. Neither number has to be prime itself: 8 and 15 are both composite but still have GCF 1.

Practice and tools

Sources

  1. Common Core State Standards, Grade 6 The Number System (6.NS.B.4)
  2. OpenStax, Elementary Algebra 2e, 7.1 Greatest Common Factor and Factor by Grouping
  3. OpenStax, Prealgebra 2e, 2.5 Prime Factorization and the Least Common Multiple

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 6.NS.B.4

Cite this entry

Effortless Math Team. “Greatest Common Factor.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/greatest-common-factor/

Flashcard

TermGreatest Common FactorGCF of 18 and 24
DefinitionThe largest number that divides into both without a remainder. GCF(18, 24) = 6, so 1824 = 34.
Study the full deck

Browse all terms in the Math Dictionary · More number system terms · Random term