Factoring Trinomials Calculator

Factor a trinomial ax² + bx + c into two binomials using the AC (product–sum) method — enter a, b, and c to get the discriminant, both roots, and the factored form.

Quick Facts

Standard form
ax² + bx + c, a ≠ 0
a, b, and c are the trinomial's coefficients.
Discriminant
D = b² − 4ac
A perfect-square D means the trinomial factors over the integers.
AC method
Find m, n: mn = ac, m + n = b
Split bx into mx + nx, then factor by grouping.
Roots & factors
x = (−b ± √D) / (2a)
ax² + bx + c = a(x − x₁)(x − x₂)

Your Results

Calculated
Factored Form
-
ax² + bx + c in binomial form
Discriminant (D)
-
D = b² − 4ac
Root x₁
-
(−b + √D) / (2a)
Root x₂
-
(−b − √D) / (2a)

Ready

Enter a, b, and c, then press Calculate.

How to Factor a Trinomial with the AC Method

A trinomial is a three-term polynomial of the form ax² + bx + c, where a, b, and c are constants and a ≠ 0. Factoring rewrites it as a product of two binomials, such as (px + q)(rx + s), so that multiplying the binomials back out returns the original trinomial. This calculator uses the AC method (also called the product–sum method, or factoring by grouping) together with the discriminant and the quadratic formula, so it can factor any trinomial with real coefficients — whether the leading coefficient a is 1 or not, and even when the trinomial only factors over the reals or the complex numbers.

Step by step: the AC (product–sum) method

To factor ax² + bx + c, first multiply a and c together. Then look for two numbers, m and n, whose product equals a·c and whose sum equals b. Rewrite the middle term bx as mx + nx, splitting the trinomial into four terms: ax² + mx + nx + c. Group the first two terms and the last two terms, factor the greatest common factor out of each group, and — when m and n were chosen correctly — both groups share the same binomial factor, which then factors out to leave two binomials. For example, to factor 2x² + 7x + 3: a·c = 6, and the pair (1, 6) sums to 7, so 2x² + x + 6x + 3 = x(2x + 1) + 3(2x + 1) = (2x + 1)(x + 3).

When a trinomial doesn't factor over the integers

Not every trinomial breaks into binomials with whole-number coefficients. The discriminant D = b² − 4ac tells you what to expect before you start testing factor pairs. If D is a perfect square, integer (or rational) factors exist and the AC method will find them. If D is positive but not a perfect square, the roots x = (−b ± √D) / (2a) are irrational, and the trinomial only factors using those irrational roots, as a(x − x₁)(x − x₂). If D is negative, the trinomial has no real roots at all — it does not factor into real binomials, though it does factor over the complex numbers using a complex-conjugate pair of roots.

Checking a factored answer

Always verify a factorization by multiplying the binomials back out (FOIL) and confirming you recover the original ax² + bx + c. A faster check compares just the constant term — the product of the two second terms in the binomials — against c, and the cross-sum of the terms against b. This calculator performs both checks automatically and reports the discriminant and both roots alongside the factored form, so you can see exactly why an answer works.

Frequently Asked Questions

What is the AC method for factoring a trinomial?
The AC method factors ax² + bx + c by finding two numbers m and n whose product equals a×c and whose sum equals b, splitting the middle term into mx + nx, and then factoring the resulting four-term expression by grouping. It works whether or not the leading coefficient a equals 1.
How do I factor a trinomial when a is not 1?
Use the same AC method: multiply a and c, find m and n with mn = ac and m + n = b, split the middle term, and factor by grouping. For 2x² + 7x + 3, ac = 6 and the pair (1, 6) works, giving 2x² + x + 6x + 3 = x(2x + 1) + 3(2x + 1) = (2x + 1)(x + 3).
What does a negative discriminant mean for factoring?
If the discriminant D = b² − 4ac is negative, the trinomial has no real roots, so it cannot be written as a product of two binomials with real coefficients. It still factors over the complex numbers, using a pair of complex-conjugate roots x = (−b ± i√|D|) / (2a).
How can I check that a factored trinomial is correct?
Multiply the two binomials back together (FOIL) and confirm the result matches the original ax² + bx + c. A quick shortcut is to check that the product of the constant terms in the binomials equals c and that their cross-sum equals b.