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

Factoring a polynomial means rewriting it as a product of simpler polynomials, the same way 12 becomes 3 times 4. Take x² + 5x + 6. Written in factored form it is (x + 2)(x + 3), and you can see the structure of the expression immediately: its roots are x = -2 and x = -3. That rewritten version is easier to solve, graph, and simplify than the original.
Students meet factoring everywhere: solving equations, simplifying rational expressions, finding zeros of functions. This guide gives you the order of attack that works on any polynomial, the patterns to recognize on sight, fully worked examples for every case, the mistakes that lose the most marks, and practice problems at the end.
What “factored form” actually means
Factored form is just the polynomial written as a multiplication of its factors. Expanded form x² + 5x + 6 and factored form (x + 2)(x + 3) are the same expression; multiply the factors back out and you get the original. A factorization is complete when every factor is prime in the sense that it cannot be broken down further: numbers are prime, linear factors like (x + 2) cannot split, and any remaining quadratic cannot factor over the integers.
Two quick checks keep you honest. First, multiply your answer back out; if you do not get the original polynomial, something went wrong. Second, the number of factors times their degrees should match the original degree: (x + 2)(x + 3) is two degree-1 factors for a degree-2 polynomial. That is factored form done right.
The 4-step order that never fails
Most factoring errors come from picking the wrong method, not from bad arithmetic. Run every polynomial through this order and the right method picks itself.
Step 1: pull out the GCF first, always. Before anything else, look for a greatest common factor shared by all terms, numbers and variables both. In 3x³ + 12x² the GCF is 3x², giving 3x²(x + 4). Skipping this step is the most common reason students get stuck or end up with half-factored answers. Our GCF calculator finds it with steps shown.
Step 2: count the terms and match the pattern. Two terms: look for a difference of squares (x² – 49) or a sum/difference of cubes (x³ – 27). Three terms: it is a trinomial, so use the product-sum method when the leading coefficient is 1 or the AC method when it is not. Four terms: try factoring by grouping. Our guides cover each case: the difference of squares guide, the trinomial factoring guide, the AC method calculator page, and the factoring by grouping calculator.
Step 3: factor each piece completely. After the first split, check every factor again. A difference of squares can hide inside a larger factorization, and a quadratic factor might itself be a perfect square trinomial. Keep going until nothing factors further.
Step 4: check by multiplying back. Expand your factored form and confirm you get the original polynomial. This ten-second check catches almost every sign error.
Example 1: 3x³ + 12x² (factor out the GCF)
Step 1: the GCF of 3x³ and 12x² is 3x². Factor it out: 3x²(x + 4).
Step 2: the remaining factor (x + 4) is linear and cannot split further.
Step 3: nothing left to factor. Check: 3x²(x + 4) = 3x³ + 12x². Correct.
This is the warm-up case, but it is also the step students skip most. A polynomial like 2x² + 8x + 8 looks like a trinomial problem until you notice the GCF of 2: 2(x² + 4x + 4) = 2(x + 2)², a perfect square trinomial hiding behind the common factor.
Example 2: x² – 49 (difference of squares)
Step 1: no GCF here (the GCF is 1).
Step 2: two terms, and both are perfect squares: x² – 7². That is the difference of squares pattern a² – b² = (a – b)(a + b).
Step 3: x² – 49 = (x – 7)(x + 7). Neither factor splits further.
Step 4: (x – 7)(x + 7) = x² + 7x – 7x – 49 = x² – 49. Correct.
Watch out: x² + 49 is a sum of squares, which does not factor over the real numbers. The minus sign is the whole pattern.
Example 3: x² + 7x + 12 (trinomial, leading coefficient 1)
Step 1: no GCF.
Step 2: three terms with a leading coefficient of 1, so use the product-sum method: find two numbers that multiply to 12 and add to 7. Those are 3 and 4.
Step 3: x² + 7x + 12 = (x + 3)(x + 4).
Step 4: (x + 3)(x + 4) = x² + 4x + 3x + 12 = x² + 7x + 12. Correct.
When the leading coefficient is not 1, the same idea needs the AC method. Our simple trinomial calculator handles the a = 1 case and the general trinomial calculator handles the rest, both with steps.
Example 4: x³ + 3x² + 2x + 6 (four terms, grouping)
Step 1: no GCF across all four terms.
Step 2: four terms means factoring by grouping. Group the first two and the last two: (x³ + 3x²) + (2x + 6).
Step 3: factor each group: x²(x + 3) + 2(x + 3). Now (x + 3) is a common factor: (x + 3)(x² + 2).
Step 4: (x + 3)(x² + 2) = x³ + 2x + 3x² + 6 = x³ + 3x² + 2x + 6. Correct. Note that x² + 2 is a sum of squares, so it cannot factor further over the reals.
If the grouping does not produce a common binomial on the first try, rearrange the terms and try a different pairing. The full technique is on our factoring by grouping page.
Example 5: 2x³ – 8x (GCF, then difference of squares)
This one shows why step 3 matters: one pass is not enough.
Step 1: the GCF is 2x. Factor it out: 2x(x² – 4).
Step 2 and 3: look at the remaining factor. x² – 4 is a difference of squares: (x – 2)(x + 2). So the complete factorization is 2x(x – 2)(x + 2).
Step 4: 2x(x – 2)(x + 2) = 2x(x² – 4) = 2x³ – 8x. Correct.
Stopping at 2x(x² – 4) is the classic half-factored answer. Always re-examine every factor.
When a polynomial will not factor
Some polynomials are prime over the integers: x² + x + 1, for example, has no factorization with whole-number coefficients. That is a valid answer, not a failure. For quadratics there is a quick test: compute the discriminant b² – 4ac. If it is a perfect square, the quadratic factors neatly. If it is not, the quadratic is prime over the integers (its zeros are irrational or complex), and you should reach for the quadratic formula instead. Cubes have their own patterns: x³ – 27 is a difference of cubes and x³ + 8 needs the sum of cubes formula.
5 mistakes that cost students the most marks
1. Skipping the GCF. The single most common error. Always factor out the common factor before choosing a method.
2. Stopping one step early. 2x(x² – 4) looks finished but is not. Re-check every factor.
3. Trying to factor a sum of squares. x² + 49 does not factor over the reals. Only the difference of squares splits.
4. Sign errors in the trinomial step. In x² – 5x + 6 the numbers are -2 and -3, giving (x – 2)(x – 3). Track the signs through the product-sum search.
5. Forgetting the multiply-back check. Ten seconds of expansion catches nearly every error. Make it a habit.
Practice problems
Factor each completely, then check your answers below.
- 4x² + 16x (Answer: 4x(x + 4))
- x² – 81 (Answer: (x – 9)(x + 9))
- x² + 9x + 20 (Answer: (x + 4)(x + 5))
- x³ – 2x² + 4x – 8 (Answer: (x – 2)(x² + 4))
- 3x² – 12 (Answer: 3(x – 2)(x + 2))
Frequently asked questions
What is the first step in factoring any polynomial?
Always look for a greatest common factor first. Pull it out before you choose any other method; it simplifies everything that follows.
What is factored form?
The polynomial written as a product of its factors, like (x + 2)(x + 3) instead of x² + 5x + 6. A factorization is complete when no factor can be broken down further.
How do I know which factoring method to use?
Count the terms after pulling out the GCF. Two terms: difference of squares or sum/difference of cubes. Three terms: trinomial methods (product-sum or AC). Four terms: grouping.
Can every polynomial be factored?
No. Some are prime over the integers, like x² + x + 1. For quadratics, check the discriminant: a non-perfect-square means it will not factor with integer coefficients.
How do I check my factored answer?
Multiply the factors back out. If you get the original polynomial, the factorization is correct.
Decision flowchart at a glance
Follow this 5-step process, it handles 99 percent of algebra problems.
- Step 1: GCF check.
- Step 2: Count terms.
- Step 3: Apply method.
- Step 4: Check if more factoring needed.
- Step 5: Multiply back to verify.

Quartic polynomials (x⁴)
x⁴ – 5x² + 4
Substitute u = x²: u² – 5u + 4
Factor the trinomial: (u – 4)(u – 1)
Substitute back: (x² – 4)(x² – 1)
Factor further: (x – 2)(x + 2)(x – 1)(x + 1)
This substitution method works for even powers.
Real-world applications
Physics: Find when a projectile hits the ground using factored form. h = -16t² + 64t = -16t(t – 4). Hits ground: t = 4s.
Business: Profit function, find break-even production units. P = -2x² + 40x – 50 = -2(x – 1)(x – 19). Break-even: x = 1, 19.
Geometry: Area expression reveals rectangle dimensions instantly. Area = x² + 10x + 21 = (x + 3)(x + 7). Sides: (x + 3), (x + 7).
Quick reference chart
| Type | Example | Method |
|---|---|---|
| 2 terms, squares | x² – 9 | Difference of squares |
| 2 terms, cubes | x³ + 8 | Sum/difference cubes |
| 3 terms, a=1 | x² + 5x + 6 | Simple trinomial |
| 3 terms, a≠1 | 2x² + 7x + 3 | AC method |
| 3 terms, perfect square | x² + 6x + 9 | Perfect square |
| 4 terms | x³ + 2x² + 3x + 6 | Grouping |
| Any | 6x² + 9x | Check GCF FIRST |
Related factoring tools
- Factoring Calculator – factor any polynomial with steps
- GCF Calculator – always the first step
- How to Factor Trinomials – the product-sum and AC methods in full
- Difference of Squares Guide – the a² – b² pattern
- Perfect Square Trinomial Guide – the (a + b)² pattern
- Factoring by Grouping Calculator – for four-term polynomials
- How to Solve Quadratic Equations by Factoring – put factored form to work solving equations
- Rational Expressions Calculator – factoring in action, simplifying fractions
- Factors of 30 – every factor pair, listed with its prime factorization
- Factors of 75 – every factor pair, listed with its prime factorization
Factoring polynomials is a routine, not a guessing game: pull out the GCF, count the terms, match the pattern, factor each piece completely, and multiply back to check. Learn the order, recognize the four patterns on sight, and know when a polynomial is prime. With that routine, most factoring problems become mechanical.
