In short

Factoring a polynomial means writing it as a product of simpler polynomials — the reverse of multiplication. Five techniques cover almost every case you will meet in school algebra: pulling out a common factor, grouping terms, splitting a quadratic trinomial, recognising an algebraic identity, and using the sum-or-difference-of-cubes formulas. The Factor Theorem from Polynomial Operations ties them all together: if you can find a root, you can peel off a factor.

Multiplying (x - 2)(x - 3) gives x^2 - 5x + 6. Factoring goes in the opposite direction: starting from x^2 - 5x + 6, you discover that it splits into (x - 2)(x - 3).

Why bother going backwards? Because factored form reveals structure that expanded form hides. The expression x^2 - 5x + 6 does not obviously tell you where it equals zero. The form (x - 2)(x - 3) shouts it: x = 2 and x = 3. Factoring is how you solve polynomial equations, simplify rational expressions, and see the skeleton of a complicated expression. It is the single most useful transformation in school algebra.

This article covers the five standard techniques, in the order you should try them. Each method has a characteristic "shape" that you learn to recognise on sight.

Method 1: Common factor

Always look for this first. If every term of the polynomial shares a factor, pull it out.

Take 6x^3 + 9x^2 - 3x. Every term is divisible by 3x:

6x^3 + 9x^2 - 3x = 3x(2x^2 + 3x - 1)

The factored form is 3x times a quadratic. You have reduced the problem from a cubic to a quadratic — a simpler object.

The common factor can be a number, a variable, or both. It can also be a whole binomial. For instance, (x + 1)^2(x - 3) + (x + 1)(x - 3)^2 has a common factor of (x + 1)(x - 3):

(x + 1)(x - 3)\big[(x + 1) + (x - 3)\big] = (x + 1)(x - 3)(2x - 2) = 2(x + 1)(x - 3)(x - 1)

Always pull out the common factor before trying anything else. It makes whatever remains smaller and easier to handle.

Pulling out the common factor 3x from 6x cubed plus 9x squared minus 3xThree terms are shown stacked vertically on the left: 6x cubed, 9x squared, and negative 3x. An arrow labelled extract 3x from each term points to the right, where the expression is rewritten as 3x times the quantity 2x squared plus 3x minus 1. 6x³ + 9x² − 3x extract 3x 3x (2x² + 3x − 1) every term shares the factor 3x
Each of the three terms — $6x^3$, $9x^2$, $-3x$ — contains $3x$ as a factor. Extracting it leaves the cleaner expression $3x(2x^2 + 3x - 1)$.

Method 2: Grouping

When there is no common factor across all terms, but you can split the polynomial into groups that each have a common factor, grouping works.

Take x^3 + 3x^2 + 2x + 6. No single factor divides all four terms. But group the first two and the last two:

(x^3 + 3x^2) + (2x + 6)

Factor each group:

x^2(x + 3) + 2(x + 3)

Now both groups share the factor (x + 3):

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

Grouping works when the polynomial was created by multiplying two factors and then expanding — the groups are the ghost of the original structure. The technique is especially common for four-term polynomials, where a 2 + 2 split usually reveals the pattern.

Sometimes you need to rearrange terms before the grouping becomes visible. If the natural left-to-right split does not produce a common binomial, try a different partition.

Method 3: Factoring quadratic trinomials

A quadratic trinomial has the form ax^2 + bx + c. When a = 1, factoring is a search for two numbers that add to b and multiply to c.

Take x^2 + 7x + 12. You need two numbers whose sum is 7 and whose product is 12. Testing: 3 + 4 = 7 and 3 \times 4 = 12. So:

x^2 + 7x + 12 = (x + 3)(x + 4)

Check by expanding: (x + 3)(x + 4) = x^2 + 4x + 3x + 12 = x^2 + 7x + 12. Correct.

When a \neq 1, the method extends. For 6x^2 + 11x - 10, the product a \times c = 6 \times (-10) = -60. You need two numbers that multiply to -60 and add to 11. Those are 15 and -4 (since 15 \times (-4) = -60 and 15 + (-4) = 11). Now split the middle term:

6x^2 + 15x - 4x - 10

Group and factor:

(6x^2 + 15x) + (-4x - 10) = 3x(2x + 5) - 2(2x + 5) = (2x + 5)(3x - 2)

This "splitting the middle term" approach is the workhorse of quadratic factoring. It reduces every ax^2 + bx + c to grouping.

Factoring x squared plus 7x plus 12 by finding two numbers with sum 7 and product 12A diagram showing the pair search. At the top, a box contains the goal: find two numbers with sum 7 and product 12. Below, three candidate pairs are listed. The pair 3 and 4 is highlighted in red as the one that works. An arrow leads to the final factored form x plus 3 times x plus 4. x² + 7x + 12 find two numbers: sum = 7, product = 12 1, 12 → sum 13 2, 6 → sum 8 3, 4 → sum 7 (x + 3)(x + 4) check: (x + 3)(x + 4) = x² + 7x + 12 ✓
For a monic quadratic $x^2 + bx + c$, the two numbers that add to $b$ and multiply to $c$ become the constants in the two factors. Here $3 + 4 = 7$ and $3 \times 4 = 12$, so $x^2 + 7x + 12 = (x + 3)(x + 4)$.

Method 4: Factoring using identities

Several algebraic identities from Algebraic Identities give instant factorisations. The most commonly used ones are:

Recognising these patterns is a matter of practice. The difference of squares is the easiest to spot — two perfect squares separated by a minus sign. Perfect square trinomials are trickier: check that the first and last terms are perfect squares, and that the middle term is exactly 2ab.

Method 5: Factoring cubics — sum and difference of cubes

Two identities handle cubes specifically:

a^3 + b^3 = (a + b)(a^2 - ab + b^2)
a^3 - b^3 = (a - b)(a^2 + ab + b^2)

Take 8x^3 - 27. Recognise: 8x^3 = (2x)^3 and 27 = 3^3. This is a difference of cubes with a = 2x and b = 3:

8x^3 - 27 = (2x - 3)(4x^2 + 6x + 9)

Check: the quadratic factor 4x^2 + 6x + 9 has discriminant 36 - 144 = -108 < 0, so it does not factor further over the reals. The factorisation is complete.

For x^3 + 125 = x^3 + 5^3:

x^3 + 125 = (x + 5)(x^2 - 5x + 25)

Again, the quadratic has discriminant 25 - 100 = -75 < 0, so it stays as is.

A useful mnemonic for keeping the signs straight: in the linear factor, the sign matches the original (a^3 + b^3 gives a + b; a^3 - b^3 gives a - b). In the quadratic factor, the signs go opposite, positive: in a^3 + b^3, the quadratic is a^2 - ab + b^2 (the ab term has the opposite sign); the last term is always +b^2.

Sum and difference of cubes formulas side by sideTwo boxed formulas arranged horizontally. On the left, a cubed plus b cubed equals the quantity a plus b times the quantity a squared minus ab plus b squared. On the right, a cubed minus b cubed equals the quantity a minus b times the quantity a squared plus ab plus b squared. Below each, sign patterns are annotated: the linear factor matches the original sign, and the quadratic factor has opposite then positive. a³ + b³ = (a + b)(a² − ab + b²) same, opposite, positive a³ − b³ = (a − b)(a² + ab + b²) same, opposite, positive the linear factor's sign matches the original expression's sign the middle term of the quadratic factor has the opposite sign the last term of the quadratic is always +b²
The two cube identities, side by side. The sign pattern is consistent: "same, opposite, positive" — the linear factor carries the same sign as the original expression, the $ab$ term in the quadratic carries the opposite sign, and the $b^2$ term is always positive.

The strategy: which method to use

Faced with a polynomial to factor, apply the methods in this order:

  1. Common factor first. Always. Even if the polynomial needs further factoring, pulling out a common factor makes everything smaller.
  2. Count the terms. Two terms? Look for difference of squares or sum/difference of cubes. Three terms? Look for a quadratic trinomial or a perfect square pattern. Four or more terms? Try grouping.
  3. Check the discriminant. For a quadratic ax^2 + bx + c, compute b^2 - 4ac. If it is a perfect square, the trinomial factors over the integers. If it is negative, the quadratic is irreducible over the reals — you are done.
  4. Use the Factor Theorem for higher-degree polynomials. If the polynomial is cubic or higher and none of the pattern-based methods work, try plugging in small integers (0, \pm 1, \pm 2, \pm 3, \dots). If p(a) = 0, then (x - a) is a factor, and you can use long division to find the quotient.

This hierarchy covers every factoring problem in the standard curriculum. The more you practise, the faster you recognise which shape you are looking at.

Drag the red point along the quadratic below to see where p(x) = x^2 - 2x - 8 crosses the x-axis. Each crossing is a root, and the Factor Theorem guarantees a factor (x - a) at each one.

Interactive graph of x squared minus 2x minus 8 with a draggable point showing roots at negative 2 and 4A coordinate plane showing the parabola y equals x squared minus 2x minus 8. The curve crosses the x-axis at x equals negative 2 and x equals 4. A draggable red point sits on the curve. A readout panel shows the current value of x and p of x, updating as the reader drags. x y −2 −1 1 2 3 4 5 ↔ drag the red point
The parabola $p(x) = x^2 - 2x - 8$ crosses the $x$-axis at $x = -2$ and $x = 4$. Drag the red point to those crossings and watch $p(x)$ hit zero. The Factor Theorem turns each root into a factor: $p(x) = (x + 2)(x - 4)$.

Two worked examples

Example 1: Factor $2x^3 - 8x^2 - 10x$ completely

This cubic has a common factor visible across all terms. After extracting it, the remaining quadratic should factor by the trinomial method.

Step 1. Pull out the common factor. Every term is divisible by 2x.

2x^3 - 8x^2 - 10x = 2x(x^2 - 4x - 5)

Why: extracting 2x reduces a cubic to a quadratic. 2x^3 \div 2x = x^2, -8x^2 \div 2x = -4x, -10x \div 2x = -5. The cubic is now a product of a linear factor and a quadratic.

Step 2. Factor the quadratic x^2 - 4x - 5. Find two numbers with sum -4 and product -5. Testing: (-5) + 1 = -4 and (-5) \times 1 = -5.

x^2 - 4x - 5 = (x - 5)(x + 1)

Why: the pair (-5, 1) satisfies both conditions. The factored form is (x - 5)(x + 1).

Step 3. Write the complete factorisation.

2x^3 - 8x^2 - 10x = 2x(x - 5)(x + 1)

Why: substituting the factored quadratic back into the expression from Step 1 gives three factors. None of them can be factored further — 2x is linear, and both binomials are linear.

Step 4. Verify by expanding. (x - 5)(x + 1) = x^2 - 4x - 5. Multiply by 2x: 2x^3 - 8x^2 - 10x. Matches the original.

Result. 2x^3 - 8x^2 - 10x = 2x(x - 5)(x + 1).

Graph of 2x cubed minus 8x squared minus 10x with roots at 0, negative 1, and 5A coordinate plane showing the cubic curve y equals 2x cubed minus 8x squared minus 10x. The curve crosses the x-axis at three points: x equals negative 1, x equals 0, and x equals 5. Each crossing is marked with a red dot and labelled. The factored form 2x times x minus 5 times x plus 1 is written above the graph. x y 0 −1 1 2 3 4 5 x = −1 x = 0 x = 5 2x(x − 5)(x + 1)
The cubic $2x^3 - 8x^2 - 10x$ crosses the $x$-axis at exactly the three roots predicted by the factors: $x = -1$ (from $x + 1$), $x = 0$ (from $2x$), and $x = 5$ (from $x - 5$). Each factor contributes one root. The graph confirms the factorisation.

The three roots -1, 0, and 5 are exactly where the three factors equal zero. The graph and the algebra tell the same story.

Example 2: Factor $x^3 - 8$ and verify by the Factor Theorem

This is a two-term cubic — a strong hint that the sum/difference of cubes formula applies.

Step 1. Recognise the structure. x^3 = (x)^3 and 8 = 2^3. This is a difference of cubes: a = x, b = 2.

Why: any expression of the form (\text{something})^3 - (\text{something else})^3 fits the difference-of-cubes identity. Here the "somethings" are x and 2.

Step 2. Apply the identity a^3 - b^3 = (a - b)(a^2 + ab + b^2).

x^3 - 8 = (x - 2)(x^2 + 2x + 4)

Why: plugging a = x and b = 2 into the identity gives the linear factor (x - 2) and the quadratic factor (x^2 + 2x + 4).

Step 3. Check whether the quadratic factor can be factored further. The discriminant is b^2 - 4ac = 4 - 16 = -12 < 0.

Why: a negative discriminant means the quadratic has no real roots, so it cannot be factored further over the real numbers. The factorisation is complete.

Step 4. Verify using the Factor Theorem. If (x - 2) is a factor, then p(2) should be 0. Check: 2^3 - 8 = 8 - 8 = 0. Confirmed.

Result. x^3 - 8 = (x - 2)(x^2 + 2x + 4).

Step-by-step factorisation of x cubed minus 8 using difference of cubesA vertical flow diagram. The top box contains x cubed minus 8. An arrow labelled recognise as a cubed minus b cubed leads to a box with the substitution a equals x and b equals 2. A second arrow labelled apply identity leads to the factored form x minus 2 times x squared plus 2x plus 4. A final check box shows that the discriminant of the quadratic is negative, confirming it is irreducible, and that p of 2 equals 0 confirming the Factor Theorem. x³ − 8 recognise: a³ − b³ a = x, b = 2 apply identity (x − 2)(x² + 2x + 4) checks discriminant of x² + 2x + 4: 4 − 16 = −12 < 0 irreducible ✓ Factor Theorem: p(2) = 8 − 8 = 0 (x − 2) is a factor ✓
The expression $x^3 - 8$ factors cleanly into $(x - 2)(x^2 + 2x + 4)$ using the difference-of-cubes identity. The quadratic factor has a negative discriminant, so it does not split further over the reals. The Factor Theorem confirms: $p(2) = 0$.

The real root x = 2 comes from the linear factor. The quadratic x^2 + 2x + 4 has two complex roots (which you will meet in a later chapter), but over the real numbers, the factorisation stops here.

Common confusions

Going deeper

If you came here to learn the five factoring methods and the strategy for choosing between them, you have everything you need — you can stop here. The rest is for readers who want to see the bigger picture.

Irreducibility over the reals vs. over the rationals

When you say a polynomial "cannot be factored further," you need to specify where the coefficients are allowed to live. The quadratic x^2 - 2 does not factor over the rationals (there are no rational numbers whose product is -2 and whose sum is 0). But over the reals, it factors as (x - \sqrt{2})(x + \sqrt{2}).

In school algebra, "factor completely" almost always means "over the rationals" or "over the integers" — whichever gives factors with clean coefficients. The cube-identity quadratics like x^2 + 2x + 4 are irreducible over the reals (negative discriminant), so they are irreducible over the rationals too. But x^2 - 2 is reducible over \mathbb{R} and irreducible over \mathbb{Q}, which is a finer distinction.

The Rational Root Theorem narrows the search

When using the Factor Theorem to find roots of a polynomial with integer coefficients, the Rational Root Theorem limits the candidates. If \dfrac{p}{q} (in lowest terms) is a root of a_n x^n + \cdots + a_1 x + a_0, then p divides a_0 and q divides a_n. So you only need to test a finite list of fractions, not every real number.

For example, to factor 2x^3 + x^2 - 5x + 2, the possible rational roots are \pm \{1, 2, \tfrac{1}{2}\}. Testing: p(1) = 2 + 1 - 5 + 2 = 0. So (x - 1) is a factor. Dividing gives 2x^2 + 3x - 2 = (2x - 1)(x + 2), and the full factorisation is (x - 1)(2x - 1)(x + 2).

Factoring over the complex numbers

Over the complex numbers, every polynomial of degree n factors into exactly n linear factors — this is the Fundamental Theorem of Algebra. The "irreducible" quadratics you met in the cube identities are only irreducible over \mathbb{R}. Over \mathbb{C}, x^2 + 2x + 4 factors as (x - (-1 + i\sqrt{3}))(x - (-1 - i\sqrt{3})), where i = \sqrt{-1}. Every polynomial shatters completely into linear pieces once you allow complex coefficients.

Where this leads next

Factoring is a bridge between raw algebra and the deeper structure of polynomial equations.