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.
Greatest Common Factor in a picture
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
- 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
Find the GCF of 16 and 40.
- Factors of 16: 1, 2, 4, 8, 16.
- Factors of 40: 1, 2, 4, 5, 8, 10, 20, 40.
- 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
Find the GCF of 36 and 60.
- Factor into primes: 36 = 22 × 32 and 60 = 22 × 3 × 5.
- Shared primes: 2 and 3. The 5 is in 60 only, so leave it out.
- Take the lower power of each: 22 (both have 22) and 31 (60 has only one 3).
- Multiply: 22 × 3 = 4 × 3 = 12.
Answer: The GCF of 36 and 60 is 12.
Example 3: Identical bouquets
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?
- Identical bouquets with nothing left over means the number of bouquets must divide both 48 and 60.
- The greatest such number is GCF(48, 60). 48 = 24 × 3 and 60 = 22 × 3 × 5, so the GCF is 22 × 3 = 12.
- Roses per bouquet: 48 ÷ 12 = 4. Tulips per bouquet: 60 ÷ 12 = 5.
- 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
The greatest common factor is a factor, not a multiple. It can never be larger than the smaller number.
Check that the quotients have no common factor left. Here 4 and 6 still share a 2, so 6 was not the greatest.
Multiplying every prime gives a multiple of both numbers, which is the LCM idea. The GCF keeps only the overlap.
1 divides every whole number, so any two whole numbers have a common factor of at least 1.
Not to be confused with
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.
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.
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
What is the GCF of 20 and 30?
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.Show answer and explanation
What is the GCF of 9 and 16?
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.Show answer and explanation
Use the GCF to write 1824 in simplest form.
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.Show answer and explanation
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
- Common Core State Standards, Grade 6 The Number System (6.NS.B.4)
- OpenStax, Elementary Algebra 2e, 7.1 Greatest Common Factor and Factor by Grouping
- 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
Browse all terms in the Math Dictionary · More number system terms · Random term



