Algebra Tool

Trinomial Calculator

Factor any trinomial, expand binomials with FOIL, evaluate at a given x, or find the discriminant and roots. Step-by-step solutions for every operation.

Operation

Quick Examples

Enter Coefficients

Enter values for ax² + bx + c

+
x
+

Trinomial: x² + 5x + 6

Step-by-Step Solution

1
Trinomial
x² + 5x + 6
2
Discriminant
b² - 4ac = 5² - 4(1)(6) = 25 - 24 = 1
3
Square root of discriminant
sqrt(1) = 1
4
Roots (quadratic formula)
x = (-b +/- sqrt(disc)) / 2a = (-5 +/- 1) / 2
5
Root 1
x₁ = -2
6
Root 2
x₂ = -3
7
AC method
a × c = 1 × 6 = 6
8
Find pair
2 × 3 = 6 and 2 + 3 = 5
9
Rewrite middle term
x² + 2x + 3x + 6
10
Factored form
(x + 2)(x + 3)

Factored Form

(x + 2)(x + 3)
Factorable

Discriminant: 1

Roots: x = -2, -3

Reference

Quadratic formula: x = (-b +/- sqrt(b²-4ac)) / 2a
Discriminant: D = b² - 4ac
D > 0: Two real roots
D = 0: One repeated root
D < 0: No real roots (complex)
FOIL: First, Outer, Inner, Last

Common Factorable Trinomials

TrinomialFactored FormRootsType
x² + 5x + 6(x + 2)(x + 3)x = -2, -3Simple (a=1)
x² - 7x + 12(x - 3)(x - 4)x = 3, 4Simple (a=1)
x² - x - 6(x - 3)(x + 2)x = 3, -2Simple (a=1)
2x² + 7x + 3(2x + 1)(x + 3)x = -1/2, -3Leading coeff
6x² + 11x - 10(2x + 5)(3x - 2)x = -5/2, 2/3Leading coeff
x² + 6x + 9(x + 3)²x = -3 (double)Perfect square
4x² - 12x + 9(2x - 3)²x = 3/2 (double)Perfect square
x² - 9(x + 3)(x - 3)x = 3, -3Difference of squares
x² + 2x + 5Prime (no real factors)ComplexPrime

How to Factor a Trinomial

1.
Check the leading coefficient
If a = 1, you just need two numbers that multiply to c and add to b. If a is not 1, use the AC method: multiply a times c, then find a pair that multiplies to ac and adds to b.
2.
Split the middle term
Rewrite bx as the sum of two terms using the pair you found. This gives you a four-term polynomial that you can factor by grouping.
3.
Factor by grouping
Group the four terms into two pairs. Factor each pair separately. If done correctly, both groups share a common binomial factor.
4.
Check your answer
Expand your result with FOIL to verify it matches the original trinomial. This calculator does this automatically in the step-by-step output.

Trinomial Factoring and Operations Guide

A trinomial is any expression with exactly three terms. In algebra, the term almost always refers to a quadratic trinomial: something in the form ax² + bx + c. Factoring these expressions is one of the core skills in algebra because it unlocks the ability to solve quadratic equations, simplify rational expressions, and graph parabolas.

Simple Trinomials (a = 1)

When the leading coefficient is 1, factoring is a matter of finding two numbers that multiply to c and add to b. For x² + 5x + 6, you need two numbers that multiply to 6 and add to 5. That would be 2 and 3, giving (x + 2)(x + 3). This works because when you FOIL the binomials back out, the outer and inner products combine to recreate the middle term.

The AC Method

When a is not 1, things get trickier. The AC method handles this. Multiply a times c to get the "AC product." Then find two numbers that multiply to that product and add to b. Use those numbers to split the middle term into two pieces, creating a four-term expression you can factor by grouping.

Take 2x² + 7x + 3. The AC product is 2 times 3 = 6. You need two numbers that multiply to 6 and add to 7. That is 1 and 6. Rewrite as 2x² + x + 6x + 3, then group: x(2x + 1) + 3(2x + 1) = (x + 3)(2x + 1).

Perfect Square Trinomials

A perfect square trinomial factors into a single binomial squared. The pattern is a² + 2ab + b² = (a + b)² or a² - 2ab + b² = (a - b)². To spot one, check if the first and last terms are perfect squares, and if the middle term is exactly twice the product of their square roots. x² + 6x + 9 fits because 9 = 3² and 6 = 2(1)(3).

The Discriminant

The discriminant b² - 4ac tells you everything about factorability before you start. If it is a perfect square (like 0, 1, 4, 9, 16...), the trinomial factors over the integers. If it is positive but not a perfect square, the roots are irrational and the trinomial is prime over the integers. If it is negative, there are no real roots at all.

FOIL and Expanding

FOIL is factoring in reverse. When you multiply (ax + b)(cx + d), the four products are: First (ac)x², Outer (ad)x, Inner (bc)x, Last (bd). Combine the two middle terms to get a trinomial. This calculator handles the expansion automatically and shows each step so you can verify your manual work.

When Factoring Fails

Not every trinomial factors neatly. When the discriminant is not a perfect square, the quadratic formula still gives you the roots, but they involve square roots and are not rational numbers. In those cases, the trinomial is called "prime over the rationals." You can still solve the equation; you just cannot write it as a product of integer-coefficient binomials.

Frequently Asked Questions

Related Tools