How to Factor Polynomials: A Complete Step-by-Step Guide

Factoring polynomials means rewriting a polynomial as a product of simpler polynomials. Instead of leaving an expression like x² + 5x + 6, you recover (x + 2)(x + 3).

That one skill unlocks a lot of algebra: solving equations, simplifying rational expressions, finding zeros of functions, and graphing. If you remember only one rule from this guide, make it this:

Always factor out the greatest common factor first. Then count the terms and choose the method that matches the structure.

Quick answer: the factoring decision tree

Use this order every time.

  1. Write the polynomial in standard form (highest degree first).
  2. Factor out the GCF (include a negative if the leading coefficient is negative).
  3. Count the remaining terms:
    • 2 terms: difference of squares, or sum/difference of cubes.
    • 3 terms: perfect-square trinomial, then x² + bx + c, then the AC method for ax² + bx + c.
    • 4+ terms: grouping.
  4. Check whether any factor can be factored again.
  5. Multiply to confirm.

A sum of squares such as x² + 9 does not factor over the real numbers.

What “factored completely” means

A polynomial is factored completely (over the integers) when you cannot factor it any further using integer coefficients.

Example:x⁴ − 81 = (x² + 9)(x² − 9) = (x² + 9)(x + 3)(x − 3)

Stopping at (x² + 9)(x² − 9) is incomplete, because x² − 9 is still a difference of squares.

If a polynomial cannot be factored further over the integers, it is called prime (or irreducible over the integers). 

Example: x² + x + 1.

Method 1: Greatest common factor (always first)

Factoring out a GCF is the reverse of the distributive property:ab + ac = a(b + c)

How to find the GCF

Example 1: 15x³ − 10x² = 5x²(3x − 2)

Example 2: 12x³ − 18x² + 6x = 6x(2x² − 3x + 1)

The leftover trinomial still factors:2x² − 3x + 1 = (2x − 1)(x − 1)

So the complete factorization is:12x³ − 18x² + 6x = 6x(2x − 1)(x − 1)

Example 3 (negative leading coefficient):

Factor out −1 (or a negative GCF) so the first term inside is positive:−2x³ + 8x² − 6x = −2x(x² − 4x + 3) = −2x(x − 1)(x − 3)

Method 2: Difference of squares

Pattern:a² − b² = (a − b)(a + b)

Both terms must be perfect squares, and the sign must be minus.

Examples:

x² − 16 = (x − 4)(x + 4)

9x² − 25 = (3x − 5)(3x + 5)

8x² − 50 = 2(4x² − 25) = 2(2x − 5)(2x + 5)

x⁴ − 81 = (x² − 9)(x² + 9) = (x − 3)(x + 3)(x² + 9)

Important: a² + b² does not factor over the reals. So x² + 16 stays as it is.

Method 3: Perfect-square trinomials

Patterns:a² + 2ab + b² = (a + b)²

a² − 2ab + b² = (a − b)²

Check three things:

  1. First term is a square.
  2. Last term is a square.
  3. Middle term equals 2ab or −2ab.

Examplesx² + 6x + 9 = (x + 3)²4x² − 20x + 25 = (2x − 5)²

If the middle term is not exactly 2ab, it is not a perfect square. Then use the next method.

Method 4: Trinomials of the form x² + bx + c

Find two numbers that:

Then write (x + p)(x + q).Examplex² + 7x + 12Numbers that multiply to 12 and add to 7: 3 and 4.x² + 7x + 12 = (x + 3)(x + 4)Sign shortcuts

Examplex² − 5x − 6 = (x − 6)(x + 1)because (−6)(1) = −6 and −6 + 1 = −5.

Method 5: The AC method for ax² + bx + c

When the leading coefficient is not 1, use grouping after splitting the middle term.Steps

  1. Factor out any GCF first.
  2. Compute a · c.
  3. Find two numbers that multiply to ac and add to b.
  4. Split the middle term.
  5. Factor by grouping.

Example: Factor 2x² + 9x + 10a · c = 20. 

Numbers that multiply to 20 and add to 9: 

4 and 5.2x² + 4x + 5x + 10 = 2x(x + 2) + 5(x + 2) = (x + 2)(2x + 5)

Example: Factor 6x² + 5x − 4a · c = −24.

 Numbers that multiply to −24 and add to 5: 8 and −3.

6x² + 8x − 3x − 4 = 2x(3x + 4) − 1(3x + 4) = (3x + 4)(2x − 1)

Example: Factor 6x² − x − 2a · c = −12.

Numbers: −4 and 3.

6x² − 4x + 3x − 2 = 2x(3x − 2) + 1(3x − 2) = (3x − 2)(2x + 1)

Method 6: Factoring by grouping (4 terms)

Group in pairs, factor each pair, then pull out the common binomial.

Example:3x³ + 6x² + 2x + 4

(3x³ + 6x²) + (2x + 4) = 3x²(x + 2) + 2(x + 2) = (x + 2)(3x² + 2)

If the first grouping fails, try a different pairing, such as first with third, or rearrange terms.

The AC method is grouping in disguise: you create four terms on purpose so grouping works.

Method 7: Sum and difference of cubes

Patterns:a³ + b³ = (a + b)(a² − ab + b²)a³ − b³ = (a − b)(a² + ab + b²)

Use the SOAP sign pattern:

Memorize the first few cubes: 1, 8, 27, 64, 125, 216

.Examples:

x³ − 8 = (x − 2)(x² + 2x + 4)27 + 8y³ = (3 + 2y)(9 − 6y + 4y²)

The quadratic factor from a sum or difference of cubes is usually prime.

 Do not try to force it into binomials over the reals.

How to factor higher-degree polynomials

After GCF and special patterns, use substitution or the factor theorem.

Substitution example:x⁴ − 5x² + 4

Let u = x²:

u² − 5u + 4 = (u − 1)(u − 4) = (x² − 1)(x² − 4) = (x − 1)(x + 1)(x − 2)(x + 2)

Factor theoremIf P(c) = 0, then x − c is a factor. Possible rational roots are factors of the constant term over factors of the leading coefficient. Test them, then divide.This is the standard path for many cubics that do not fit grouping.

Common mistakes that cost points

Always check by expanding. If you do not get the original polynomial, the factorization is wrong.

Practice problems

Factor completely.

  1. 8x + 4
  2. x² − 25
  3. x² + 8x + 12
  4. 2x² + 7x + 3
  5. x³ + 27
  6. x³ + 3x² + 4x + 12
  7. 16x⁴ − 1
  8. 6x² − 7x − 3

Answers

  1. 4(2x + 1)
  2. (x − 5)(x + 5)
  3. (x + 2)(x + 6)
  4. (2x + 1)(x + 3)
  5. (x + 3)(x² − 3x + 9)
  6. (x + 3)(x² + 4)
  7. (4x² − 1)(4x² + 1) = (2x − 1)(2x + 1)(4x² + 1)
  8. (3x + 1)(2x − 3)

FAQ: How to factor polynomials

What is the first step in factoring a polynomial?

Factor out the greatest common factor. Do this before grouping, special formulas, or the AC method.

How do you factor a polynomial with 3 terms?

Check for a perfect-square trinomial. If it is not one, use two numbers that multiply to c and add to b when a = 1. If a is not 1, use the AC method.

How do you factor a polynomial with 4 terms?

Try grouping. If that fails, rearrange the terms and group again.

Can every polynomial be factored?

No. Some are prime over the integers, such as x² + 1 or x² + x + 1. Over the complex numbers, more factorizations exist, but school algebra usually stays with integers or reals.

What is the difference between factoring a polynomial and solving an equation?

Factoring rewrites an expression. Solving uses that factorization plus the zero product property: if AB = 0, then A = 0 or B = 0.

Why does factoring matter?

It turns hard products into simple pieces. Those pieces give intercepts, simplified fractions, and faster equation solving.

Final checklist

Before you submit an answer, run this:

Master that checklist and factoring stops feeling like a bag of disconnected tricks. It becomes one repeatable process.

Looking for Practice Material?

Leave a Reply

Your email address will not be published. Required fields are marked *

To download this worksheet collection, select the bellow option either to Login or Register (it only takes a minute) and you’ll be brought right back to this page to start the download!
  • Sign Up
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.