FOIL Calculator

Multiply two binomials (ax + b)(cx + d) using the FOIL method (First, Outer, Inner, Last) and get the fully expanded quadratic Ax² + Bx + C.

Quick Facts

FOIL formula
(ax+b)(cx+d) = acx² + (ad+bc)x + bd
First × Outer + Inner × Last, combined into a single quadratic.
FOIL acronym
First, Outer, Inner, Last
The order in which the four term-pairs are multiplied.
Scope
Two binomials only
For three or more terms, use the general distributive property instead.

Your Results

Calculated
Expanded polynomial
-
Ax² + Bx + C, fully simplified
First term (F = a·c)
-
Product of the two leading terms
Middle term (O + I)
-
Outer (a·d) plus Inner (b·c), combined
Last term (L = b·d)
-
Product of the two constants

Ready

Enter the coefficients of both binomials, then press Calculate.

Formula and Method for FOIL Multiplication

FOIL is a mnemonic — First, Outer, Inner, Last — for the four multiplications needed to expand the product of two binomials, (ax + b)(cx + d). It is really just the distributive property applied twice, and it always simplifies to the same quadratic form: acx² + (ad + bc)x + bd.

How the calculation works

Enter the coefficients a, b (from the first binomial) and c, d (from the second binomial). The calculator multiplies each pair in FOIL order: First multiplies the two leading terms (a·c)x², Outer multiplies the outermost terms (a·d)x, Inner multiplies the innermost terms (b·c)x, and Last multiplies the two constants (b·d). The Outer and Inner results are like terms (both have an x), so they are added together into a single middle term, giving the final expanded form acx² + (ad + bc)x + bd.

Common mistakes

  • Forgetting to combine like terms: the Outer and Inner products both contain x and must be added, not left as two separate terms.
  • Sign errors: a negative coefficient (e.g., b = -3) must carry its sign through every multiplication it's part of — losing the sign is the most common FOIL mistake.
  • Using FOIL on more than two binomials: FOIL only handles two two-term expressions; for a trinomial or a product of three binomials, distribute every term against every other term and then combine like terms.

Real-world applications

  • Algebra courses use FOIL as the standard first technique for expanding and simplifying quadratic expressions before factoring or solving.
  • Factoring quadratics in reverse relies on recognizing the FOIL pattern: given acx² + (ad+bc)x + bd, you look for a, b, c, d that reproduce it.
  • Area models in geometry (e.g., a rectangle with side lengths (x + 3) and (x + 5)) expand with exactly the same First-Outer-Inner-Last logic.
  • Engineering and physics formulas that multiply two linear expressions (such as combining two linear approximations) use the same acx² + (ad+bc)x + bd expansion.

Frequently Asked Questions

What does FOIL stand for?
FOIL stands for First, Outer, Inner, Last — a mnemonic for the four multiplications needed to expand the product of two binomials, (ax+b)(cx+d).
What is the FOIL formula?
(ax+b)(cx+d) = acx² + (ad+bc)x + bd, where ac is the First product, ad is the Outer product, bc is the Inner product, and bd is the Last product.
Does FOIL work for expressions with more than two terms?
No. FOIL only applies to multiplying two binomials (two two-term expressions). For a trinomial or longer expression, multiply every term in the first factor by every term in the second factor using the distributive property, then combine like terms.
How do I FOIL when a term is negative?
Keep the negative sign attached to its term as you multiply. For example, (x-3)(x+5) = x·x + x·5 + (-3)·x + (-3)·5 = x²+5x-3x-15 = x²+2x-15.