Reverse Foil Calculator - Factoring by the FOIL Identity

Use this reverse foil calculator to factor quadratic trinomials ax²+bx+c. Enter a, b, c to see the two binomials, discriminant, and roots in one step.

Updated: June 16, 2026 • Free Tool

Reverse Foil Calculator

Leading coefficient. Must be non-zero for a quadratic trinomial.

Middle coefficient. The reverse FOIL search matches this against α·δ + β·γ.

Constant term. The reverse FOIL search looks for β·δ pairs whose product equals c.

Results

Factored Form
0
Status 0
Original Trinomial 0
Roots 0
Discriminant (b² − 4ac) 0

What Is a Reverse Foil Calculator?

A reverse foil calculator is a factoring tool that takes a quadratic trinomial of the form ax² + bx + c and recovers the two binomials (αx + β)(γx + δ) that multiply back to it. You type in the three coefficients a, b, c, and the tool applies the reverse of the FOIL product identity: it searches for factor pairs of a and c whose inner-and-outer products sum to b. Because the same identity underlies binomial multiplication, the same calculator doubles as a check on your hand-computed factorizations.

  • Homework and exam checks: Confirm a trinomial factoring answer before submitting it, especially when the leading coefficient is not 1 or signs get tricky.
  • Quadratic equation solving: Skip the quadratic formula when the trinomial is factorable; the two binomials give the roots directly through the zero product property.
  • Teaching the FOIL identity: Show students how First, Outer, Inner, Last products combine by displaying them alongside the two binomials.
  • Graphing helpers: Find the x-intercepts of a parabola in factored form so you can sketch the graph or confirm a computer-algebra result.

Reverse foil is the algebraic opposite of FOIL. Forward FOIL multiplies two binomials into a trinomial; reverse foil pulls a trinomial apart into the binomials that produced it. Most algebra courses meet it in the factoring unit, where students search for two numbers that add to b and multiply to c. The reverse foil search is the same procedure written in different letters and extended to the case where the leading coefficient is not 1.

When the search succeeds, the two binomials you recover are exactly the factors you would have found with the box method, the AC method, or trial and error. When it fails, the trinomial is either prime over the integers or it has no real roots, and the calculator will tell you which case you are in.

If you also want to see the roots of the corresponding quadratic equation, the factoring trinomials calculator runs the same factorization and prints the solutions in one step.

How the Reverse Foil Calculator Works

The calculator applies the FOIL product identity in reverse. It first enumerates every divisor of a and every divisor of c, then tests each pair of pairs against the equation α·δ + β·γ = b. The first pair that satisfies the equation is reported as the factorization, along with the discriminant and the roots.

(αx + β)(γx + δ) = αγx² + (αδ + βγ)x + βδ
  • a: Coefficient of x²; equals α·γ
  • b: Coefficient of x; equals α·δ + β·γ
  • c: Constant term; equals β·δ
  • α, γ: Coefficients of x in the two binomials
  • β, δ: Constant terms in the two binomials

When the discriminant b² − 4ac is negative, the trinomial has no real roots, so no real binomials can multiply back to it. The calculator reports 'No real factorization' and points you to the quadratic formula. When the discriminant is non-negative but no divisor pair of a and c satisfies the inner-and-outer equation, the trinomial is prime over the integers — meaning the binomials would have irrational coefficients rather than integers. You still get the discriminant and the roots from the quadratic formula in that case.

Worked example: 6x² − 7x − 5

a = 6, b = −7, c = −5

Divisors of 6 give α, γ ∈ {±1, ±2, ±3, ±6}. Divisors of −5 give β, δ ∈ {±1, ±5}. Testing (α=2, γ=3, β=1, δ=−5): 2·(−5) + 1·3 = −10 + 3 = −7 = b.

(2x + 1)(3x − 5)

The product 2·3 = 6 reproduces the leading coefficient, the inner-and-outer sum equals the middle coefficient, and the constant 1·(−5) = −5 closes the loop. Roots come from setting each binomial to zero: x = −1/2 and x = 5/3.

According to Omni Calculator, reverse FOIL recovers the two binomials of a quadratic trinomial by finding α·γ = a, β·δ = c, and α·δ + β·γ = b.

When the discriminant is negative, the quadratic formula calculator returns the complex roots without you needing to factor the trinomial first.

Key Concepts Behind Reverse Foil

Four short ideas make the reverse foil search click. Keep them next to the calculator and the rest of the algebra will follow.

FOIL acronym

F, O, I, L are the four products you get when you multiply two binomials: First terms, Outer terms, Inner terms, Last terms. Reverse foil recovers the binomials whose F, O, I, L products reproduce a, b, c.

Quadratic trinomial

A polynomial of the form ax² + bx + c with a ≠ 0. The middle term b is what the inner-and-outer sum must equal; that is the only equation the search has to solve.

Discriminant

The value b² − 4ac. It decides how many real roots the quadratic has: positive for two real, zero for one repeated, negative for two complex. The calculator prints it so you can switch tools when needed.

Prime trinomial

A trinomial whose integer factor pairs do not satisfy the inner-and-outer sum. It still has roots (irrational or rational) but they cannot be written as a product of two binomials with integer coefficients.

These four ideas are enough to read every line of the calculator output. The first and last products give you a and c, the discriminant tells you whether the roots are real, and the prime check explains why a search can fail even when the discriminant is non-negative.

If you prefer to see FOIL laid out as a grid, the box method calculator shows the same four products as cells you can fill in by hand.

How to Use This Calculator

Five short steps take you from a trinomial to a verified factorization. You can stop after any step if you only need the result.

  1. 1 Enter coefficient a: Type the leading coefficient of x². Most algebra problems use a small integer, often 1, but the calculator accepts any non-zero value in the range ±100.
  2. 2 Enter coefficient b: Type the coefficient of x, keeping its sign. The reverse foil search compares α·δ + β·γ against this value, so the sign matters.
  3. 3 Enter coefficient c: Type the constant term, including its sign. The search enumerates divisor pairs of c, so c = 0 collapses the trinomial to a binomial and the calculator factors it as such.
  4. 4 Read the factored form: The black panel on the right shows (αx + β)(γx + δ) when the trinomial is factorable, or 'Prime over the integers' / 'No real factorization' when it is not.
  5. 5 Verify the roots: Check that the roots match the discriminant, then move on to graphing, equation solving, or further algebraic manipulation.

Try a = 6, b = −7, c = −5. The calculator returns (2x + 1)(3x − 5) and the roots x = −1/2 and x = 5/3, which is the same result the Omni reverse foil example walks through by hand.

Once you have the two binomials, you can divide a higher-degree polynomial by either of them with the polynomial division calculator to check for further factors.

Benefits of Using This Calculator

Reverse foil is the fastest factoring route for many homework problems, and the calculator keeps the search honest.

  • Fast factor verification: Type a, b, c and confirm the two binomials without redoing the inner-and-outer sum by hand.
  • Handles leading coefficients that are not 1: Generalises the simple 'find two numbers that add to b, multiply to c' rule to a ≠ 1, including negative a.
  • Catches prime trinomials early: Tells you when the trinomial has no integer factorization so you can switch to the quadratic formula without wasting time on fruitless factor pairs.
  • Shows the discriminant alongside the factorization: Lets you check the roots in the same step rather than computing b² − 4ac separately.
  • Works for negative inputs and zero constant: Accepts negative coefficients, c = 0, and the GCD case where the entire trinomial factors out, and reports each correctly.
  • Pairs naturally with FOIL multiplication: If you also need the forward direction, the result here can be plugged back into a FOIL calculator to double-check the original expansion.

The largest payoff is when a, b, and c are large enough that hand search is slow. A reverse foil calculator enumerates every divisor pair of a and c in milliseconds, which beats scanning a factor table for problems like 12x² − 17x + 6. Once the search has narrowed the candidate binomials to a small set, the inner-and-outer check is a single arithmetic comparison.

For higher-degree polynomials where reverse foil only peels off one factor at a time, the synthetic division calculator reduces the degree so you can keep factoring.

Factors That Affect the Result

The same three numbers a, b, c drive every part of the calculation. Here is what each one controls, and the limitations you should plan around.

Coefficient a

Decides the divisor pool for α and γ. Larger absolute values mean more pairs to test, which is why a = 1 trinomials feel easier than a = 12 trinomials even when both factor.

Coefficient b

Sets the target for the inner-and-outer sum. Changing b by one can flip a trinomial from factorable to prime, so it is the most sensitive input.

Coefficient c

Decides the divisor pool for β and δ. The sign of c controls whether the two binomial constants share a sign or carry opposite signs.

Discriminant b² − 4ac

Determines the number of real roots. Non-negative discriminants keep the factorization real; negative discriminants force complex roots and rule out real binomials.

Greatest common divisor

When a, b, c share a GCD, the trinomial factors into GCD × trinomial. The calculator factors out the GCD first so the remaining search is on a primitive trinomial.

  • The calculator searches for integer coefficients only. Trinomials whose binomials have fractional coefficients (such as x² − 2) are reported as prime over the integers, even though the quadratic formula returns the real roots.
  • The search assumes real arithmetic. Complex binomials are out of scope by design; the discriminant value tells you when to switch to a complex-roots tool.

If you are factoring for a calculus class, keep in mind that the x-intercepts of a parabola are the negatives of the binomial constants divided by their x-coefficients. The calculator prints those roots next to the factored form so you do not have to solve for them again.

According to Cuemath, a trinomial ax²+bx+c is factorable over the real numbers when b²−4ac ≥ 0, and the sign pattern of c controls whether both binomial constants share or differ in sign.

According to Khan Academy, when a ≠ 1 you can still factor ax²+bx+c by searching for two numbers whose product is ac and whose sum is b, which is the same cross-product test reverse FOIL performs.

reverse foil calculator - factor ax²+bx+c into two binomials using the FOIL identity
reverse foil calculator - factor ax²+bx+c into two binomials using the FOIL identity

Frequently Asked Questions

Q: What is the reverse FOIL method?

A: Reverse FOIL is a factorization algorithm for quadratic trinomials ax² + bx + c. You search for two binomials (αx + β)(γx + δ) such that α·γ equals a, β·δ equals c, and the cross sum α·δ + β·γ equals b. When that search succeeds, the two binomials are your factorization.

Q: How do you factor a trinomial with reverse FOIL step by step?

A: List every divisor pair of a, then every divisor pair of c, and test each combination. The first combination whose inner-and-outer products add to b gives you the two binomials. If no combination works and the discriminant is non-negative, the trinomial is prime over the integers.

Q: Can reverse FOIL factor a trinomial with a leading coefficient that is not 1?

A: Yes. The general form is (αx + β)(γx + δ) = αγx² + (αδ + βγ)x + βδ, so the search uses α·γ = a, β·δ = c, and α·δ + β·γ = b. When a = 1, α and γ are forced to be 1 and 1, which is the simpler case most textbooks present first.

Q: What does FOIL stand for in algebra?

A: FOIL is an acronym for the four products you get when multiplying two binomials: First (αx times γx), Outer (αx times δ), Inner (β times γx), and Last (β times δ). Reverse FOIL walks the same four products in reverse to recover the original binomials.

Q: How do you know when a trinomial is prime and cannot be factored?

A: Run the reverse FOIL search on every divisor pair of a and c. If no pair produces the right inner-and-outer sum, and the discriminant b² − 4ac is still non-negative, the trinomial is prime over the integers. The roots are real but they are irrational, so the quadratic formula is the right next step.

Q: How is reverse FOIL different from the quadratic formula?

A: Reverse FOIL returns the two binomials when the coefficients are integer-friendly; the quadratic formula returns the roots for any quadratic, even ones with irrational or complex roots. Reverse FOIL is faster for homework-style trinomials, while the quadratic formula always works.