How-to guides · 6 min read

How to Factor Trinomials Step by Step (With Examples)

How to Factor Trinomials Step by Step (With Examples) — illustration
In short: To factor x² + 5x + 6, find two numbers that multiply to 6 and add to 5. They are 2 and 3, so x² + 5x + 6 = (x + 2)(x + 3). For trinomials with a leading coefficient other than 1, the AC method extends the same idea.

What factoring a trinomial means

A trinomial is a polynomial with three terms, such as x² + 5x + 6. Factoring writes it as a product of simpler expressions. It is the reverse of multiplying brackets: if (x + 2)(x + 3) expands to x² + 5x + 6, then factoring x² + 5x + 6 gives you back (x + 2)(x + 3). The expansion side is covered in the FOIL method.

Factoring is the main way to solve quadratic equations by hand when the numbers are friendly: once you have (x + 2)(x + 3) = 0, each bracket gives a solution, x = −2 and x = −3.

Always start with a common factor

Before anything else, check whether all three terms share a factor. In 3x² + 15x + 18 every coefficient is divisible by 3, so write 3(x² + 5x + 6) and factor the trinomial inside: 3(x + 2)(x + 3). Skipping this step is the most common reason a factoring attempt gets messy.

Case 1: x² + bx + c (leading coefficient 1)

Find two numbers that multiply to c and add to b. Those numbers are the constants in the brackets. For x² + 5x + 6, test factor pairs of 6.

Pair with product 6SumEquals b = 5?
1 × 67No
2 × 35Yes

The pair 2 and 3 works, so x² + 5x + 6 = (x + 2)(x + 3). The signs help: if c is positive, both numbers have the same sign as b. If c is negative, they have opposite signs.

TrinomialNeeds product / sumPairFactored
x² − 7x + 1212 / −7−3, −4(x − 3)(x − 4)
x² + 2x − 15−15 / 2−3, 5(x − 3)(x + 5)
x² − x − 12−12 / −13, −4(x + 3)(x − 4)
x² + 8x + 1515 / 83, 5(x + 3)(x + 5)

Case 2: ax² + bx + c with a ≠ 1 (the AC method)

Factor 6x² + 11x − 10. Multiply a and c: 6 × (−10) = −60. Find two numbers that multiply to −60 and add to 11. Those are 15 and −4.

  • Split the middle term: 6x² + 15x − 4x − 10
  • Group in pairs: (6x² + 15x) + (−4x − 10)
  • Factor each group: 3x(2x + 5) − 2(2x + 5)
  • Factor out the shared bracket: (3x − 2)(2x + 5)

Check by expanding: 6x² + 11x − 10. ✓ This method works for every factorable trinomial, and it is the same idea as the simpler case, only with a first step of multiplying a by c.

Worked example: x² − 16x + 73 = 9

A common homework form is a trinomial that is not yet equal to zero. Solve x² − 16x + 73 = 9 by factoring. First move everything to one side so the right-hand side is 0: subtract 9 from both sides.

  • x² − 16x + 73 − 9 = 0, so x² − 16x + 64 = 0.
  • Find two numbers that multiply to 64 and add to −16: that is −8 and −8.
  • Factor: (x − 8)(x − 8) = (x − 8)² = 0.
  • Set the bracket to zero: x − 8 = 0, so x = 8.
Live solver: x² − 16x + 64 = 0 (the same equation after subtracting 9)
Answer x = 8 (double root)
  • Discriminant D = 0
  • Vertex: (8, 0)
Step-by-step working 4 steps
  1. 1
    Identify a, b and c
    x² − 16x + 64 = 0
    a = 1,  b = −16,  c = 64
  2. 2
    Calculate the discriminant
    D = b² − 4ac = (−16)² − 4(1)(64) = 0

    D is zero: one repeated real root.

  3. 3
    One repeated root
    x = −b / 2a = 16 / 2 = 8
  4. 4
    Vertex of the parabola
    x = −b / 2a = 8,  y = 0  →  vertex (8, 0)

    The parabola opens upward, so the vertex is the minimum point.

The discriminant is (−16)² − 4(1)(64) = 256 − 256 = 0, which confirms one repeated solution. Check: 8² − 16(8) + 73 = 64 − 128 + 73 = 9 ✓. The key habit is moving the 9 across before looking for factors; trying to factor x² − 16x + 73 directly will not work.

Special patterns worth recognising

PatternFormulaExample
Perfect squarea² + 2ab + b² = (a + b)²x² + 6x + 9 = (x + 3)²
Perfect squarea² − 2ab + b² = (a − b)²x² − 10x + 25 = (x − 5)²
Difference of squaresa² − b² = (a − b)(a + b)x² − 49 = (x − 7)(x + 7)

Difference of squares has no middle term and only two terms, so strictly it is a binomial, but it often appears next to trinomials. Sum of squares such as x² + 49 does not factor over the real numbers.

How to tell if a trinomial will factor

Compute the discriminant b² − 4ac. If it is a perfect square (0, 1, 4, 9, 16, 25, …) the trinomial factors over the integers. If not, it is prime over the integers, and you must use the quadratic formula to find irrational roots.

Trinomialb² − 4acPerfect square?Factors?
x² + 5x + 61YesYes
6x² + 11x − 10361YesYes
x² + x + 1-3NoNo (prime)
x² + 2x − 420NoNo (prime)
2x² − 7x + 325YesYes

For x² + x + 1 the discriminant is −3, so there are no real roots and no factorisation. Recognising that early saves a lot of time.

Always check by multiplying back

Expand (x + 2)(x + 3) with FOIL: x² + 3x + 2x + 6 = x² + 5x + 6. If your expansion does not return the original, one of your signs or numbers is off. You can also test with a number: at x = 1, the trinomial is 12 and the factored form gives 3 × 4 = 12.

Check the factorisation by substituting x = 1
Answer12
Order-of-operations steps 3 steps

Start: (1 + 2) × (1 + 3)

  1. Add
    1 + 2 = 3→ 3 × (1 + 3)
  2. Add
    1 + 3 = 4→ 3 × 4
  3. Multiply
    3 × 4 = 12→ 12

You can confirm results with the add and subtract polynomials calculator or by solving with the quadratic equation solver, whose "Factored form" line should match yours.

Common mistakes

  • Sign errors in the pair. Check the sum with its signs: −3 and −4 add to −7, not 7.
  • Ignoring a common factor at the start.
  • Writing (x + 2)(x + 3) when you need (x − 2)(x − 3). Negative middle with positive c means both numbers are negative.
  • Stopping too early. Check whether the result factors further.

For other typical slips see common algebra mistakes and keep the algebra formulas cheat sheet close.

Frequently asked questions

What is the first step in factoring a trinomial?

Check for a greatest common factor shared by all three terms and take it out first.

How do I factor when the coefficient of x² is not 1?

Use the AC method: multiply a and c, find two numbers with that product that add to b, split the middle term and factor by grouping.

How do I know if a trinomial is prime?

If b² − 4ac is not a perfect square, the trinomial cannot be factored over the integers.

How can I check my factoring?

Multiply the brackets back out with FOIL or the distributive property and confirm you get the original trinomial.

Written and reviewed by Mateuss M.

Mateuss M. writes and reviews mathematical content for CalcSolver, focusing on online calculators, formulas, equations, and practical math tools. He reviews calculator functionality, calculation methods, formulas, examples, and explanations to help ensure that each tool is clear, useful, and easy to understand.

Keep reading