Learn · Algebra and geometry (grades 8–10)

How to Factor Quadratics (x² + bx + c), Step by Step

Factoring rewrites a quadratic like x² + 5x + 6 as a product of two simpler pieces, (x + 2)(x + 3). It is the reverse of multiplying out, and it is the fastest way to solve many quadratic equations.

Try it with your own problem ↓

The steps

  1. Make sure the quadratic is in order: x² + bx + c.
  2. Find two numbers that multiply to c and add to b. List the factor pairs of c to find them.
  3. Write the factors as (x + p)(x + q), where p and q are those two numbers.
  4. Check by multiplying out (FOIL).
  5. To solve = 0, set each factor equal to 0.

A worked example

Factor x² + 5x + 6.

  1. We need two numbers that multiply to 6 and add to 5.
  2. Pairs that multiply to 6: 1 × 6 (sum 7) and 2 × 3 (sum 5). The pair 2 and 3 works.
  3. Write (x + 2)(x + 3).
  4. Check: x · x = x², x · 3 + 2 · x = 5x, 2 · 3 = 6. So x² + 5x + 6. ✓
  5. If asked to solve x² + 5x + 6 = 0: x + 2 = 0 or x + 3 = 0, so x = −2 or x = −3.

x² + 5x + 6 = (x + 2)(x + 3).

Try it with your own problem

Open the free The Area Box with this example already filled in. It shows every step, and you can type over it with your own numbers.

Work it out: factor x^2+5x+6Opens The Area Box with this example

Or try these

Common mistakes

Questions people ask

What if the first number isn't 1, like 6x² + 7x − 3?

Use the "ac method": find two numbers that multiply to 6 × (−3) = −18 and add to 7 (9 and −2), split the middle term, and factor by grouping. This gives (3x − 1)(2x + 3).

What if it won't factor?

Some quadratics don't factor with whole numbers. Use the quadratic formula instead.

What is a difference of squares?

a² − b² = (a − b)(a + b). So x² − 9 = (x − 3)(x + 3).

Keep learning

Show The Steps is free, with no accounts or ads, and everything is worked out in your own browser. Start at the home page.