Factoring Polynomials: Methods & Examples

#Algebra
TL;DR
Factoring polynomials means rewriting a polynomial as a product of simpler polynomials, the reverse of expanding brackets. The reliable order is to pull out the greatest common factor first, then match the leftover to a pattern: difference of squares, perfect-square trinomial, sum or difference of cubes, grouping for four terms, or splitting the middle term for a trinomial. For degree three and higher, the factor theorem plus synthetic division finds the factors.
BT
Bhanzu TeamLast updated on September 6, 202613 min read

What Is Factoring Polynomials?

Factoring polynomials is the process of writing a polynomial as a product of simpler polynomials that multiply back to the original. A polynomial is an expression built from variables and numbers using only addition, subtraction, and whole-number powers, such as x2+5x+6x^2 + 5x + 6. Factoring reverses multiplication: instead of expanding (x+2)(x+3)(x + 2)(x + 3) into x2+5x+6x^2 + 5x + 6, you start from x2+5x+6x^2 + 5x + 6 and recover (x+2)(x+3)(x + 2)(x + 3).

The factors are the building blocks. Just as 1212 breaks into 2×2×32 \times 2 \times 3, a polynomial breaks into pieces that cannot be factored further. When every piece is broken down as far as it will go, the polynomial is fully factored.

Most factoring uses a small set of named methods, and choosing the right one depends on how many terms the polynomial has and what pattern it matches. The rest of this article walks each method with a worked example, then gives a single guide for picking between them. For the wider family of expressions this connects to, see polynomials and factorization of algebraic expressions.

How Do You Factor Out The Greatest Common Factor (GCF)?

To factor out the greatest common factor, find the largest expression that divides every term, then write the polynomial as that factor times what remains. The greatest common factor is the product of the shared numerical factor and the lowest power of each shared variable. This is always the first step in any factoring problem.

Take 12x3+18x212x^3 + 18x^2. The number 66 divides both coefficients, and x2x^2 is the highest power of xx present in both terms.

12x3+18x2=6x2(2x+3)12x^3 + 18x^2 = 6x^2(2x + 3)

Check by expanding: 6x2×2x=12x36x^2 \times 2x = 12x^3 and 6x2×3=18x26x^2 \times 3 = 18x^2. Pulling out the GCF first is the cheapest move in factoring, and it often turns a messy expression into one that matches a clean pattern. For the number-side of this idea, see greatest common factor.

How Do You Factor A Polynomial By Grouping?

Grouping factors a four-term polynomial by splitting it into two pairs, factoring each pair, then pulling out the factor the two pairs share. It works when the four terms have no single common factor but split into pairs that do.

Factor x3+3x2+2x+6x^3 + 3x^2 + 2x + 6. Group the first two terms and the last two terms.

x3+3x2+2x+6=(x3+3x2)+(2x+6)x^3 + 3x^2 + 2x + 6 = (x^3 + 3x^2) + (2x + 6)

Factor each pair on its own.

=x2(x+3)+2(x+3)= x^2(x + 3) + 2(x + 3)

Both pieces now share the factor (x+3)(x + 3), so factor it out.

=(x+3)(x2+2)= (x + 3)(x^2 + 2)

The shared bracket is the signal that grouping worked. If the two pairs do not produce a matching bracket, try reordering the terms before giving up on the method.

How Do You Factor A Difference Of Squares?

A difference of squares is two perfect squares separated by a minus sign, and it factors as a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b). Both terms must be perfect squares, and the sign between them must be subtraction.

For 9x2−169x^2 - 16, note that 9x2=(3x)29x^2 = (3x)^2 and 16=4216 = 4^2, so a=3xa = 3x and b=4b = 4.

9x2−16=(3x)2−42=(3x−4)(3x+4)9x^2 - 16 = (3x)^2 - 4^2 = (3x - 4)(3x + 4)

A sum of squares, a2+b2a^2 + b^2, does not factor this way over the real numbers, a trap covered in the mistakes section below. This pattern is one of several standard algebraic identities worth memorising.

How Do You Factor A Perfect-Square Trinomial?

A perfect-square trinomial is a three-term polynomial that equals a single bracket squared, following a2+2ab+b2=(a+b)2a^2 + 2ab + b^2 = (a + b)^2 or a2−2ab+b2=(a−b)2a^2 - 2ab + b^2 = (a - b)^2. Spot it by checking that the first and last terms are perfect squares and the middle term is twice the product of their roots.

Take x2+6x+9x^2 + 6x + 9. Here x2x^2 and 9=329 = 3^2 are the squares, and the middle term 6x=2×x×36x = 2 \times x \times 3 fits the pattern.

x2+6x+9=(x+3)2x^2 + 6x + 9 = (x + 3)^2

If the middle term does not equal 2ab2ab, the trinomial is not a perfect square, and you factor it by splitting the middle term instead. A dedicated walk-through lives at perfect square trinomial.

How Do You Factor A Sum Or Difference Of Cubes?

A sum or difference of cubes factors with two fixed formulas that many students misremember:

a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2)

a3−b3=(a−b)(a2−ab+b2)a^3 - b^3 = (a - b)(a^2 - ab + b^2)

Wait, that second formula is wrong on the middle sign, and it is exactly the slip to guard against. The correct difference-of-cubes formula is:

a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2)

The linear bracket copies the sign of the original, and the quadratic bracket takes the opposite sign on its middle term. Factor x3−8x^3 - 8 with a=xa = x and b=2b = 2.

x3−8=(x−2)(x2+2x+4)x^3 - 8 = (x - 2)(x^2 + 2x + 4)

Final answer: x3−8=(x−2)(x2+2x+4)x^3 - 8 = (x - 2)(x^2 + 2x + 4). The quadratic bracket rarely factors further, so once you reach it the work is usually done.

How Do You Factor A Trinomial By Splitting The Middle Term?

Splitting the middle term factors a trinomial ax2+bx+cax^2 + bx + c by rewriting the middle term as two terms whose coefficients multiply to acac and add to bb, then grouping. It is the workhorse method for quadratics that are not perfect squares.

Factor 2x2+7x+32x^2 + 7x + 3. Here a=2a = 2, b=7b = 7, c=3c = 3, so ac=6ac = 6. Find two numbers that multiply to 66 and add to 77: those are 66 and 11.

2x2+7x+3=2x2+6x+x+32x^2 + 7x + 3 = 2x^2 + 6x + x + 3

Now group the four terms in pairs.

=2x(x+3)+1(x+3)= 2x(x + 3) + 1(x + 3)

=(x+3)(2x+1)= (x + 3)(2x + 1)

For more cases, including negative and larger coefficients, see factoring trinomials and factorization of quadratic polynomials.

How Do You Factor Higher-Degree Polynomials With The Factor Theorem?

For degree three and higher, the factor theorem finds a first factor: if substituting x=rx = r into the polynomial gives zero, then (x−r)(x - r) is a factor. You test small values (the divisors of the constant term are the smart guesses), then divide out the factor you find.

Factor x3−6x2+11x−6x^3 - 6x^2 + 11x - 6. Test x=1x = 1: 1−6+11−6=01 - 6 + 11 - 6 = 0, so (x−1)(x - 1) is a factor. Now divide using synthetic division, which strips the algebra down to the coefficients:

11−611−61−561−560\begin{array}{c|cccc}1&1&-6&11&-6\\&&1&-5&6\\\hline&1&-5&6&0\end{array}

The bottom row gives the quotient x2−5x+6x^2 - 5x + 6 and a remainder of 00, which confirms the factor. Factor the quadratic by splitting the middle term.

x3−6x2+11x−6=(x−1)(x2−5x+6)=(x−1)(x−2)(x−3)x^3 - 6x^2 + 11x - 6 = (x - 1)(x^2 - 5x + 6) = (x - 1)(x - 2)(x - 3)

The factor theorem is a special case of the remainder theorem, and the division step is set out in full at synthetic division of polynomial and dividing polynomials.

What Are The Special Factoring Formulas?

These identities are the ones worth knowing by sight, because spotting them saves the longer methods.

Table: The standard factoring identities and when each one applies.

Pattern

Formula

When to use it

Difference of squares

a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b)

Two terms, both perfect squares, subtracted

Perfect-square trinomial

a2+2ab+b2=(a+b)2a^2 + 2ab + b^2 = (a + b)^2

Three terms, ends are squares, middle is 2ab2ab

Perfect-square trinomial

a2−2ab+b2=(a−b)2a^2 - 2ab + b^2 = (a - b)^2

Same, with a negative middle term

Sum of cubes

a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2)

Two terms, both perfect cubes, added

Difference of cubes

a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2)

Two terms, both perfect cubes, subtracted

A sum of squares, a2+b2a^2 + b^2, is missing on purpose: it does not factor over the real numbers. The factored form of any polynomial is unique once the pieces are broken down as far as they go.

Which Factoring Method Should You Use?

The method depends on two things you can read off at a glance: how many terms the polynomial has, and whether it matches a known pattern. Start with the GCF every time, then follow the guide.

Table: Which factoring method to use, based on what the polynomial looks like.

What you see

Method to try

Result shape

A factor common to every term

Factor out the GCF (always first)

k⋅(simpler polynomial)k \cdot (\text{simpler polynomial})

Two terms, both squares, subtracted

Difference of squares

(a−b)(a+b)(a - b)(a + b)

Two terms, both cubes

Sum or difference of cubes

(a±b)(a2∓ab+b2)(a \pm b)(a^2 \mp ab + b^2)

Three terms, a perfect square

Perfect-square trinomial

(a±b)2(a \pm b)^2

Three terms, general trinomial

Split the middle term

(px+q)(rx+s)(px + q)(rx + s)

Four terms

Grouping

(binomial)(binomial)(\text{binomial})(\text{binomial})

Degree ≥3\geq 3, no obvious pattern

Factor theorem plus synthetic division

product of lower-degree factors

Read the shape before you compute. Picking the method from the structure, rather than guessing, is what separates fast factoring from trial and error. A wider survey of the options sits at factoring methods.

Why Do We Factor Polynomials?

Factoring is not busywork. It exists because the factored form answers questions the expanded form hides.

  • Solving equations. A product equals zero only when one of its factors is zero. Factoring x2−5x+6=0x^2 - 5x + 6 = 0 into (x−2)(x−3)=0(x - 2)(x - 3) = 0 turns a quadratic into two easy statements, x=2x = 2 or x=3x = 3. This is the engine behind quadratic equations.

  • Simplifying expressions. A factor shared by the top and bottom of a fraction cancels only after both are factored, which is how algebraic fractions get reduced.

  • Revealing structure. The factored form shows a polynomial's roots and where its graph crosses the horizontal axis. The expanded form carries the same information but keeps it locked away.

Factoring is the reverse of multiplying, the move from a single lump back to the parts that built it. Every use above is really the same wish: to see the pieces instead of the whole.

Who Discovered How To Factor Polynomials?

The link between roots and factors came from the birth of modern algebra, and the tools students still use carry the names of the people who found them.

Two other figures shaped how we factor today:

  • René Descartes (1596–1650, France) connected roots to factors: if rr is a root of a polynomial, then (x−r)(x - r) is one of its factors. That single link, stated in his 1637 work La Géométrie, is the factor theorem.

  • Carl Friedrich Gauss (1777–1855, Germany) proved the fundamental theorem of algebra in his 1799 doctoral thesis: once complex numbers are allowed, every polynomial factors completely into linear pieces.

Where Is Factoring Polynomials Used In The Real World?

The same handful of methods runs under a surprising range of technology and science.

  • Physics and engineering: the height of a thrown object over time is a quadratic, and factoring it finds the exact moments it leaves and hits the ground.

  • Computer graphics: finding where a ray meets a curve or surface reduces to solving a polynomial equation, which is done by factoring or finding its roots.

  • Cryptography and error-correcting codes: codes such as CRC and Reed-Solomon, used in QR codes, hard drives, and deep-space transmissions, factor polynomials over finite fields to detect and repair damaged data.

  • Economics: break-even analysis factors a profit polynomial to find the output levels where profit is exactly zero.

  • Signal processing: an audio or radio filter is described by a polynomial that engineers factor into roots to predict how the filter behaves.

One toolkit runs falling objects, rendered images, self-correcting data, and balanced budgets. The same move a student makes on paper is the move a spacecraft makes to fix a corrupted signal.

What Are The Most Common Factoring Polynomials Mistakes?

These four errors account for most lost marks on factoring, verified against West Texas A&M University's College Algebra tutorial, a Germanna College factoring handout, and Mathematics LibreTexts.

Not factoring out the GCF first.

Where it slips in:

A student jumps straight to a pattern on 4x2−164x^2 - 16 and writes (2x−4)(2x+4)(2x - 4)(2x + 4), missing that a 44 could come out first.

Don't do this:

Do not hunt for a pattern before checking for a common factor. Skipping the GCF leaves the answer half-factored.

The correct way:

Pull out the GCF first, then factor what remains: 4x2−16=4(x2−4)=4(x−2)(x+2)4x^2 - 16 = 4(x^2 - 4) = 4(x - 2)(x + 2).

Sign errors in the cubes formulas.

Where it slips in:

A student writes a3−b3=(a−b)(a2−ab+b2)a^3 - b^3 = (a - b)(a^2 - ab + b^2), copying the minus sign into the quadratic bracket.

Don't do this:

Do not let the linear bracket's sign leak into the middle term of the quadratic bracket.

The correct way:

The quadratic bracket always takes the opposite middle sign: a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2) and a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2).

Stopping before the polynomial is fully factored.

Where it slips in:

A student factors x4−16x^4 - 16 to (x2−4)(x2+4)(x^2 - 4)(x^2 + 4) and stops, not noticing that x2−4x^2 - 4 is itself a difference of squares.

Don't do this:

Do not treat the first factorisation as the last. A factor that still matches a pattern is not finished.

The correct way:

Keep going until no factor can be broken down: x4−16=(x2+4)(x−2)(x+2)x^4 - 16 = (x^2 + 4)(x - 2)(x + 2).

Trying to factor a sum of squares.

Where it slips in:

A student sees x2+9x^2 + 9 and forces it into (x+3)(x+3)(x + 3)(x + 3) or (x−3)(x+3)(x - 3)(x + 3), expecting a squares pattern.

Don't do this:

Do not factor a2+b2a^2 + b^2 over the real numbers. Expanding either guess does not return x2+9x^2 + 9.

The correct way:

Recognise that a sum of squares is prime over the reals and leave it as x2+9x^2 + 9.

Practice Problems On Factoring Polynomials

Factor each polynomial fully. Answers follow each line.

  1. Factor 5x2+10x5x^2 + 10x.
    (Answer: 5x(x+2)5x(x + 2).)

  2. Factor x2−49x^2 - 49.
    (Answer: (x−7)(x+7)(x - 7)(x + 7).)

  3. Factor x2+8x+16x^2 + 8x + 16.
    (Answer: (x+4)2(x + 4)^2.)

  4. Factor 3x2+10x+83x^2 + 10x + 8.
    (Answer: ac=24ac = 24, split with 66 and 44, giving (3x+4)(x+2)(3x + 4)(x + 2).)

  5. Factor x3+27x^3 + 27.
    (Answer: sum of cubes, (x+3)(x2−3x+9)(x + 3)(x^2 - 3x + 9).)

  6. Factor x3−4x2+x+6x^3 - 4x^2 + x + 6.
    (Answer: test x=−1x = -1 to get (x+1)(x + 1), then (x+1)(x−2)(x−3)(x + 1)(x - 2)(x - 3).)

Where Should You Go Next After Factoring Polynomials?

Factoring opens straight into the parts of algebra that use it as a tool, and a few doors lead on from here.

  1. Factoring trinomials. Go deeper on splitting the middle term, including trinomials with negative and larger leading coefficients.

  2. Factoring cubic polynomials. Practise the factor-theorem-and-synthetic-division workflow on a full run of degree-three problems.

  3. Quadratic equations. See how the factored form solves equations in one step through the zero-product property.

If your child is building these foundations, a live Bhanzu trainer teaches factoring starting from the "why", the roots and structure the factored form reveals, in the Bhanzu algebra program.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the first step in factoring polynomials?
Always factor out the greatest common factor first. It is the cheapest check, and it often reveals a pattern that the raw expression was hiding.
What are the main methods of factoring polynomials?
The core methods are GCF, grouping, difference of squares, perfect-square trinomials, sum and difference of cubes, splitting the middle term, and the factor theorem with synthetic division for higher degrees. Which one you reach for depends on the number of terms and the pattern you can see.
Can every polynomial be factored?
No. Over the real numbers, some polynomials are irreducible, such as a sum of squares like x2+4x^2 + 4 or a quadratic with a negative discriminant. Once complex numbers are allowed, every polynomial factors completely into linear pieces.
How do you factor a cubic polynomial?
Use the factor theorem to find one root by testing the divisors of the constant term, divide that factor out with synthetic division, then factor the resulting quadratic. For x3−6x2+11x−6x^3 - 6x^2 + 11x - 6, testing x=1x = 1 gives (x−1)(x - 1), and the rest factors to (x−2)(x−3)(x - 2)(x - 3).
What is the difference between factoring and expanding?
Expanding multiplies brackets out into a sum of terms, while factoring runs that backwards into a product of brackets.
How is factoring polynomials different from factoring numbers?
The idea is the same: break something into the pieces that multiply to make it. With numbers you find prime factors like 12=22×312 = 2^2 \times 3; with polynomials you find factor expressions like x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3).
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →