Greatest Common Factor of a Polynomial

Factor a polynomial by identifying and pulling out the single largest expression that divides evenly into every term in the polynomial.

ab+ac=a(b+c)ab + ac = a(b + c)

Solve a problem with Greatest Common Factor of a Polynomial

Type the problem. The solver will use Greatest Common Factor of a Polynomial where Greatest Common Factor of a Polynomial is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Greatest Common Factor of a Polynomial takes
aa
bb
cc
Greatest Common Factor of a Polynomial
SymbolMeaning
aaThe greatest common factor—the largest expression (a number, variable, or their product) that divides evenly into every term of the polynomial.
bbThe result after dividing the first term of the polynomial by the common factor a.
ccThe result after dividing the second term of the polynomial by the common factor a.

When to use it

Reach for the Greatest Common Factor method whenever a polynomial has two or more terms that share a common factor.

Level

Usually taught in: Algebra I

Worked examples

1. Factor a simple polynomial with two terms

Problem

Factor 2x+42x + 4
  1. 2x+42x + 4

    Write the original polynomial.

  2. GCF of 2 and 4=2\text{GCF of } 2 \text{ and } 4 = 2

    Find the greatest common divisor of the coefficients.

  3. 2(x)+2(2)2(x) + 2(2)

    Rewrite each term as a product of 2 and what remains.

  4. 2(x+2)2(x + 2)

    Pull the common factor 2 outside the parentheses.

Answer: 2(x+2)2(x + 2)

Factoring out the GCF is the simplest and most direct factoring technique. It should always be tried first because it simplifies the expression and makes any further factoring easier.

2. Factor a polynomial with variables and negative terms

Problem

Factor 3a2b6ab+9b3a^2b - 6ab + 9b
  1. 3a2b6ab+9b3a^2b - 6ab + 9b

    Write the original polynomial.

  2. GCF of coefficients 3,6,9=3\text{GCF of coefficients } 3, 6, 9 = 3

    Find the greatest common divisor of the numerical coefficients: 3 divides all of them.

  3. Common variables: b appears in all three terms\text{Common variables: } b \text{ appears in all three terms}

    Check which variables appear in every term; aa does not appear in the third term, but bb does.

  4. 3a2b÷3b=a2;6ab÷3b=2a;9b÷3b=33a^2b \div 3b = a^2; \quad -6ab \div 3b = -2a; \quad 9b \div 3b = 3

    Divide each term by the GCF 3b3b to find what remains inside the parentheses.

  5. 3b(a22a+3)3b(a^2 - 2a + 3)

    Write the factorization with 3b3b outside and the remainders inside.

Answer: 3b(a22a+3)3b(a^2 - 2a + 3)

When a polynomial has terms with both numerical and variable factors in common, extracting the GCF reduces the expression to a simpler form. This is essential before trying other factoring methods.

3. Word problem: factor a polynomial representing game points

Problem

Your video game awards achievement points at difficulty level dd: 8d28d^2 points for defeating enemies, 12d212d^2 points for completing missions, and 4d4d points for bonus tasks. Write your total achievement points as a factored expression.
  1. 8d2+12d2+4d8d^2 + 12d^2 + 4d

    Set up the expression for total achievement points.

  2. GCF of coefficients 8,12,4=4\text{GCF of coefficients } 8, 12, 4 = 4

    Find the greatest common divisor of all the coefficients.

  3. Lowest power of d across all terms=d1\text{Lowest power of } d \text{ across all terms} = d^1

    The GCF of variables is dd because dd is the lowest power of dd appearing in all three terms.

  4. 8d2÷4d=2d;12d2÷4d=3d;4d÷4d=18d^2 \div 4d = 2d; \quad 12d^2 \div 4d = 3d; \quad 4d \div 4d = 1

    Divide each term by the complete GCF, which is 4d4d.

  5. 4d(2d+3d+1)=4d(5d+1)4d(2d + 3d + 1) = 4d(5d + 1)

    Write the factorization; the terms inside simplify by combining like terms.

Answer: 4d(5d+1)4d(5d + 1)

In real-world scenarios like game scoring, factoring the GCF from a polynomial reveals the underlying structure of how points are calculated. It shows that all achievement points share a common factor of 4d4d, making the structure of the scoring system clear.

Common mistakes

Where Greatest Common Factor of a Polynomial usually goes wrong
Answer came out wrong
Writing 12xy+8y=4(3xy+2y)12xy + 8y = 4(3xy + 2y)
The GCF must include all common factors: both numerical and variable. Here, GCF=4y\text{GCF} = 4y, so 12xy+8y=4y(3x+2)12xy + 8y = 4y(3x + 2) because 12xy÷4y=3x12xy \div 4y = 3x and 8y÷4y=28y \div 4y = 2.
Writing x2+x=x(x)x^2 + x = x(x) or stating x2+x=x+xx^2 + x = x + x
When you factor out xx, divide both terms by it: x2+x=x(x+1)x^2 + x = x(x + 1) because x2÷x=xx^2 \div x = x and x÷x=1x \div x = 1.
Writing 18x3+12x=6x(3x3+2x)18x^3 + 12x = 6x(3x^3 + 2x)
Carefully divide every term by the GCF: 18x3÷6x=3x218x^3 \div 6x = 3x^2 and 12x÷6x=212x \div 6x = 2, so the correct factorization is 6x(3x2+2)6x(3x^2 + 2).
The mistakeWhy it is wrongThe fix
Writing 12xy+8y=4(3xy+2y)12xy + 8y = 4(3xy + 2y)The student factored out the numerical GCF (4) but missed that yy is also a common factor in both terms.The GCF must include all common factors: both numerical and variable. Here, GCF=4y\text{GCF} = 4y, so 12xy+8y=4y(3x+2)12xy + 8y = 4y(3x + 2) because 12xy÷4y=3x12xy \div 4y = 3x and 8y÷4y=28y \div 4y = 2.
Writing x2+x=x(x)x^2 + x = x(x) or stating x2+x=x+xx^2 + x = x + xThe student forgot to divide each term by the GCF when factoring out, or confused factoring with combining like terms.When you factor out xx, divide both terms by it: x2+x=x(x+1)x^2 + x = x(x + 1) because x2÷x=xx^2 \div x = x and x÷x=1x \div x = 1.
Writing 18x3+12x=6x(3x3+2x)18x^3 + 12x = 6x(3x^3 + 2x)The student factored out part of the GCF but failed to divide the first term completely; 18x3÷6x18x^3 \div 6x equals 3x23x^2, not 3x33x^3.Carefully divide every term by the GCF: 18x3÷6x=3x218x^3 \div 6x = 3x^2 and 12x÷6x=212x \div 6x = 2, so the correct factorization is 6x(3x2+2)6x(3x^2 + 2).

Tips and when to use something else

  • The GCF must divide evenly into every single term in the polynomial—check each one individually, not just the first two.
  • When working with variables, always use the lowest power of each variable that appears in all terms. For example, in x3+x2x^3 + x^2, the GCF is x2x^2, not x3x^3.
  • After factoring out the GCF, check whether what remains inside the parentheses can be factored further using methods like Difference of Squares or Factoring Trinomials.
  • If the only common factor is 1, the polynomial cannot be simplified by the GCF method—try other factoring techniques like Factoring by Grouping instead.

Frequently asked questions

What's the difference between Greatest Common Factor and other factoring methods?
The GCF method is always the first step in factoring any polynomial. It pulls out what's common to all terms, making the expression simpler. Other methods like Difference of Squares or Trinomial Factoring handle what's left after the GCF is removed, or work on polynomials that have no common factor to extract.
Can a polynomial have a GCF of 1?
Yes. If no expression divides evenly into all terms, the GCF is 1, which means the polynomial cannot be factored using this method. In that case, you would move on to try other factoring techniques or determine that the polynomial is prime.
Do I always check for a GCF first when factoring?
Yes, always check for a GCF before trying any other factoring method. It's the simplest technique, and removing common factors first makes other methods easier to apply and can reveal patterns that other methods work with.
How do I find the GCF when there are variables in the polynomial?
Find the GCF of the numerical coefficients first using prime factorization or by listing factors. Then identify any variables or powers of variables that appear in every term, taking the lowest power. Multiply the numerical GCF and the variable GCF together. For example, in 12x3y+8x2y212x^3y + 8x^2y^2, the GCF is 4x2y4x^2y.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18