Overview

Factoring rewrites a trinomial such as 2x² − 5x − 12 as two simpler brackets multiplied together. This works it out for whole-number coefficients.

Enter a, b and c. If it doesn’t factor neatly, you get the reason and any real roots.

Worked examples

InputsResult
a2b-5c-12Factored: (x − 4)(2x + 3)Roots: x = 4 and x = -1.5
Show 2 more examples
a1b-5c6Factored: (x − 3)(x − 2)Roots: x = 3 and x = 2
a6b7c-3Factored: (3x − 1)(2x + 3)Roots: x = 0.3333 and x = -1.5

How it works

A trinomial with integer coefficients factors over the integers only when its discriminant, b² − 4ac, is a perfect square. Any common factor is taken out first. The roots then give the brackets, so a root of 3/2 becomes (2x − 3).

The formula

Discriminant = b² − 4ac
a, b, cCoefficients of ax² + bx + c

Practical tips

  • 2x² − 5x − 12 has a discriminant of 121, a perfect square, and factors as (x − 4)(2x + 3).
  • Check your answer by multiplying the brackets back out with our FOIL calculator.
  • Always look for a common factor first, as with 2x² + 4x + 2 = 2(x + 1)(x + 1).

Frequently asked questions

What if the discriminant is negative?

There are no real roots, so it doesn’t factor over the real numbers.

What if it’s positive but not a perfect square?

The roots are irrational, so there are no integer factors. The quadratic formula still gives the roots.