Factoring polynomials is one of those skills that quietly unlocks the rest of algebra. Once you can break a polynomial back into the pieces that were multiplied to create it, solving equations, simplifying fractions, and graphing curves all become dramatically easier. If factoring has ever felt like guesswork, this guide will give you a clear, repeatable system instead.
In this complete guide you will learn what factoring really means, how to choose the right method based on the polynomial in front of you, and how to handle the four big situations you will meet most often: pulling out a greatest common factor, factoring trinomials, recognizing special patterns, and factoring by grouping. Every method comes with fully worked examples where we show every single step.
Want to check your answers as you practice? You can type any expression into our algebra solver and compare your work step by step. Let’s start with the big idea.
What Does Factoring a Polynomial Mean?
To factor a polynomial means to rewrite it as a product of simpler polynomials. It is the exact reverse of multiplying (or “expanding”). When you multiply \((x+2)(x+3)\) you get \(x^2 + 5x + 6\). Factoring goes the other direction: you start with \(x^2 + 5x + 6\) and recover \((x+2)(x+3)\).
Key idea
Multiplying combines factors into one expression. Factoring splits one expression back into the factors that were multiplied. They are mirror images of each other, which is why you can always check factoring by multiplying back.
A factor is something being multiplied. In the number world, \(12 = 4 \times 3\), so 4 and 3 are factors of 12. In the polynomial world, \((x+2)\) and \((x+3)\) are factors of \(x^2 + 5x + 6\). A polynomial is fully factored when none of its factors can be broken down any further using whole numbers.
Why Factoring Matters
Factoring is not just an exercise for its own sake. It is the engine behind several important techniques:
- Solving equations. If a product equals zero, at least one factor must equal zero. This “zero product property” is the fastest way to solve many polynomial equations, and it powers the factoring method in our guide on How to Solve Quadratic Equations (4 Methods).
- Simplifying fractions. Rational expressions like \(\dfrac{x^2 - 9}{x + 3}\) simplify beautifully once both parts are factored.
- Graphing. The factors tell you where a curve crosses the \(x\)-axis.
How to Approach Factoring Polynomials: A Method Overview
The secret to factoring polynomials confidently is to follow a strategy rather than guess. The first move is always the same, and after that you decide based on how many terms the polynomial has.
| Number of terms | Most likely method | Example form |
|---|---|---|
| Any number | Factor out the GCF first | \(6x^2 + 9x = 3x(2x+3)\) |
| 2 terms | Difference of squares or sum/difference of cubes | \(x^2 - 25\), \(x^3 + 8\) |
| 3 terms | Trinomial factoring (simple or the AC method) | \(x^2 - 7x + 12\) |
| 4 terms | Factoring by grouping | \(x^3 + 3x^2 + 2x + 6\) |
Keep this table in mind. We will walk through each row with a complete example.
Step 1: Always Factor Out the Greatest Common Factor
The greatest common factor (GCF) is the largest expression that divides evenly into every term. Pulling it out first makes everything that follows simpler, and forgetting to do it is the number one reason students get “stuck.”
To find the GCF, look at the coefficients (the numbers) and the variables separately. Take the largest number that divides all coefficients, and the lowest power of each variable that appears in every term.
Worked Example 1: GCF, then a hidden trinomial
Factor \(3x^3 + 3x^2 - 36x\) completely.
Step 1 — Find the GCF. The coefficients are 3, 3, and 36. The largest number dividing all three is 3. Every term has at least one \(x\), so \(x\) comes out too. The GCF is \(3x\).
Step 2 — Divide each term by the GCF.
$$3x^3 + 3x^2 - 36x = 3x\left(x^2 + x - 12\right)$$Step 3 — Factor what remains. Inside the parentheses is the trinomial \(x^2 + x - 12\). We need two numbers that multiply to \(-12\) and add to \(+1\). Those numbers are \(+4\) and \(-3\), because \(4 \times (-3) = -12\) and \(4 + (-3) = 1\).
$$x^2 + x - 12 = (x + 4)(x - 3)$$Step 4 — Write the full factorization.
Check by multiplying back: \(3x(x+4)(x-3) = 3x(x^2 + x - 12) = 3x^3 + 3x^2 - 36x\). It matches the original, so we are done.
Common mistake
Pulling out the GCF and then stopping. After you factor out \(3x\), always ask whether the leftover polynomial can be factored again. Here it could, all the way down to three factors.
Factoring Trinomials (Three Terms)
A trinomial has three terms and usually looks like \(ax^2 + bx + c\). There are two cases: when the leading coefficient \(a = 1\), and when \(a \ne 1\).
Case 1: When the leading coefficient is 1
For \(x^2 + bx + c\), find two numbers that multiply to \(c\) and add to \(b\). Then the factorization is \((x + \text{first number})(x + \text{second number})\).
Worked Example 2: Factoring \(x^2 - 7x + 12\)
Step 1 — Identify \(b\) and \(c\). Here \(b = -7\) and \(c = 12\).
Step 2 — List factor pairs of 12 and find the right one. Because \(c\) is positive and \(b\) is negative, both numbers must be negative.
| Factor pair of 12 | Sum |
|---|---|
| \(-1, -12\) | \(-13\) |
| \(-2, -6\) | \(-8\) |
| \(-3, -4\) | \(-7\) ✓ |
The pair \(-3\) and \(-4\) multiplies to \(12\) and adds to \(-7\).
Step 3 — Write the factors.
Check: \((x-3)(x-4) = x^2 - 4x - 3x + 12 = x^2 - 7x + 12\). Correct.
Study tip
Let the signs guide you. If \(c\) is positive, both numbers share the same sign as \(b\). If \(c\) is negative, the two numbers have opposite signs, and the larger one matches the sign of \(b\).
Case 2: When the leading coefficient is not 1 (the AC method)
When \(a \ne 1\), the simple “two numbers” trick needs an upgrade. The reliable approach is the AC method (also called factoring by grouping with a split middle term).
- Multiply \(a \times c\).
- Find two numbers that multiply to \(ac\) and add to \(b\).
- Rewrite the middle term \(bx\) using those two numbers.
- Group the four terms in pairs and factor each pair.
- Factor out the common binomial.
Worked Example 3: Factoring \(6x^2 + 11x - 10\)
Step 1 — Compute \(ac\). Here \(a = 6\), \(b = 11\), \(c = -10\), so \(ac = 6 \times (-10) = -60\).
Step 2 — Find two numbers. We need numbers that multiply to \(-60\) and add to \(+11\). Testing pairs, \(+15\) and \(-4\) work, since \(15 \times (-4) = -60\) and \(15 + (-4) = 11\).
Step 3 — Rewrite the middle term. Replace \(11x\) with \(15x - 4x\):
$$6x^2 + 11x - 10 = 6x^2 + 15x - 4x - 10$$Step 4 — Group and factor each pair.
$$\left(6x^2 + 15x\right) + \left(-4x - 10\right) = 3x(2x + 5) - 2(2x + 5)$$Step 5 — Factor out the common binomial \((2x + 5)\).
Check: \((2x+5)(3x-2) = 6x^2 - 4x + 15x - 10 = 6x^2 + 11x - 10\). Correct.
Not sure whether you split the middle term correctly? Type the trinomial into our step-by-step equation solver and watch each grouping step appear, so you can see exactly where any slip happened.
Special Patterns Worth Memorizing
Some polynomials follow famous patterns. Recognizing them on sight saves a lot of time, especially with two-term polynomials, where the trinomial method does not apply.
| Pattern | Formula | Example |
|---|---|---|
| Difference of squares | \(a^2 - b^2 = (a-b)(a+b)\) | \(9x^2 - 25\) |
| Perfect square trinomial | \(a^2 + 2ab + b^2 = (a+b)^2\) | \(x^2 + 6x + 9\) |
| Perfect square trinomial | \(a^2 - 2ab + b^2 = (a-b)^2\) | \(x^2 - 10x + 25\) |
| Sum of cubes | \(a^3 + b^3 = (a+b)(a^2 - ab + b^2)\) | \(x^3 + 8\) |
| Difference of cubes | \(a^3 - b^3 = (a-b)(a^2 + ab + b^2)\) | \(27x^3 - 1\) |
Difference of squares in action
Factor \(9x^2 - 25\). Notice that \(9x^2 = (3x)^2\) and \(25 = 5^2\), so this is a difference of squares with \(a = 3x\) and \(b = 5\).
$$9x^2 - 25 = (3x)^2 - (5)^2 = (3x - 5)(3x + 5)$$Check: \((3x-5)(3x+5) = 9x^2 + 15x - 15x - 25 = 9x^2 - 25\). Correct.
Common mistake
A sum of squares like \(x^2 + 25\) does not factor over the real numbers. Only the difference of squares factors this way. Don’t force a pattern that isn’t there.
Sum of cubes in action
Factor \(x^3 + 8\). Since \(8 = 2^3\), this is a sum of cubes with \(a = x\) and \(b = 2\). Apply \(a^3 + b^3 = (a+b)(a^2 - ab + b^2)\):
$$x^3 + 8 = (x + 2)\left(x^2 - 2x + 4\right)$$Check: \((x+2)(x^2 - 2x + 4) = x^3 - 2x^2 + 4x + 2x^2 - 4x + 8 = x^3 + 8\). Correct.
Factoring by Grouping (Four Terms)
When a polynomial has four terms and no overall GCF, grouping is usually the way in. The idea is to split the polynomial into two pairs, factor each pair, and hope a common binomial appears.
Worked Example 4: Factoring \(x^3 + 3x^2 + 2x + 6\)
Step 1 — Group into two pairs.
$$\left(x^3 + 3x^2\right) + \left(2x + 6\right)$$Step 2 — Factor the GCF out of each pair. The first pair shares \(x^2\); the second pair shares \(2\).
$$x^2(x + 3) + 2(x + 3)$$Step 3 — Factor out the common binomial \((x + 3)\).
Check: \((x+3)(x^2 + 2) = x^3 + 2x + 3x^2 + 6 = x^3 + 3x^2 + 2x + 6\). Correct.
Study tip
If grouping produces two different binomials (for example \((x+3)\) and \((x-3)\)), try reordering the original terms before giving up. Sometimes a different pairing reveals the common factor.
A Complete Factoring Strategy
Put everything together into one decision flow you can run on any polynomial:
- GCF first. Factor out the greatest common factor from all terms.
- Count the terms of what remains.
- Two terms: check for a difference of squares or a sum/difference of cubes.
- Three terms: use trinomial factoring (the AC method if the leading coefficient is not 1), or spot a perfect square trinomial.
- Four terms: try grouping.
- Factor again. Examine every factor to see whether it can be broken down further.
- Verify by multiplying everything back to the original polynomial.
This strategy mirrors the structured thinking you use elsewhere in algebra, such as in How to Solve Linear Equations Step by Step and How to Solve Systems of Equations (Substitution, Elimination & Graphing). The more you reuse a consistent process, the faster these problems become.
Common Mistakes and How to Avoid Them
- Skipping the GCF. Always factor it out first; otherwise your trinomial numbers will be larger and messier than necessary.
- Sign errors. When \(c\) is negative, the two numbers must have opposite signs. Slow down and check the sum.
- Stopping too early. A factor like \(x^2 - 4\) still factors into \((x-2)(x+2)\). Keep going until nothing factors.
- Forcing a sum of squares. \(x^2 + 9\) does not factor over the real numbers.
- Not checking. Multiplying your factors back together takes seconds and catches almost every error.
Stuck on a tricky problem? Enter it into our free online algebra solver to see a clean, step-by-step breakdown and confirm your final answer in seconds.
Practice Makes Factoring Automatic
Try these on your own, then verify each one by multiplying back:
- \(x^2 + 9x + 20\) → \((x+4)(x+5)\)
- \(2x^2 + 7x + 3\) → \((2x+1)(x+3)\)
- \(x^2 - 49\) → \((x-7)(x+7)\)
- \(4x^3 - 12x^2 + 8x\) → \(4x(x-1)(x-2)\)
The more patterns you see, the faster your brain recognizes them. With a few practice sessions, factoring shifts from a puzzle into a routine.
Conclusion
Factoring polynomials comes down to one habit: follow the strategy. Pull out the GCF, count the terms, choose the matching method, factor completely, and check by multiplying back. With the GCF, trinomial, special-pattern, and grouping techniques in this guide, you have a tool for nearly every polynomial you will meet through early college.
Ready to put it into practice? Work a problem by hand, then confirm it instantly with our algebra solver, and explore more clear, worked tutorials on the Math Solver AI blog. Every problem you check builds the confidence that makes the next one easier.
