Factoring Calculator
Factor a quadratic expression ax² + bx + c using the greatest common factor, difference of squares or trinomial factoring. If it cannot be factored over the integers, the tool says so clearly.
Expression: x² + 7x + 12
How this calculator works
The Factoring Calculator rewrites a quadratic expression ax² + bx + c as a product of simpler factors. It tries three strategies in order: pull out a greatest common factor (GCF), recognise a difference of squares, and perform integer trinomial factoring. If none apply, it tells you plainly that the expression does not factor over the integers.
The greatest common factor is the largest factor shared by every term. Removing it first simplifies the rest of the work — for example 3x² + 6x becomes 3x(x + 2). A difference of squares has the form a² − b² and factors as (a + b)(a − b), so x² − 9 becomes (x + 3)(x − 3).
For a trinomial x² + bx + c, the tool looks for two numbers that multiply to c and add to b. When the leading coefficient a is not 1, it uses the "ac method": find two numbers that multiply to a×c and add to b, split the middle term, then factor by grouping. This works whenever the discriminant is a perfect square.
You can verify any result by expanding the factored form — you should recover the original expression exactly. The steps panel shows which strategy was used and the numbers that made it work.
Worked example
x² + 7x + 12: find two numbers that multiply to 12 and add to 7 (3 and 4) → (x + 3)(x + 4).
Common uses
- Simplifying quadratics before solving
- Homework on factoring
- Recognising difference of squares
- Finding roots by inspection
Common mistakes
- Expecting every quadratic to factor over integers
- Missing a common factor before factoring the trinomial
- Sign errors in the two numbers
Frequently asked questions
Which methods are used?
Greatest common factor, difference of squares, and integer trinomial factoring.
What if it cannot be factored?
When the discriminant is not a perfect square, the expression does not factor neatly over the integers and the tool tells you.
Can I verify the result?
Yes — expand the factored form and you should recover the original expression.