FOIL Calculator

Multiply two binomials step by step using the FOIL method. Enter your first binomial (e.g. 2x + 3) and second binomial (e.g. x - 5), and get back the expanded result broken down into First, Outer, Inner, and Last term products — plus the fully simplified polynomial.

Coefficient of the first term in the first binomial (ax + b)

Constant term in the first binomial (ax + b)

Coefficient of the first term in the second binomial (cx + d)

Constant term in the second binomial (cx + d)

Results

x² Coefficient

--

x Coefficient

--

Constant Term

--

F — First Terms Product

--

O — Outer Terms Product

--

I — Inner Terms Product

--

L — Last Terms Product

--

FOIL Term Contributions

Results Table

Frequently Asked Questions

What is the FOIL method?

The FOIL method is a technique for multiplying two binomials in algebra. It stands for First, Outer, Inner, and Last — describing which pairs of terms you multiply together. After multiplying all four pairs, you combine like terms to get the simplified result.

What does FOIL stand for?

FOIL is an acronym: F = First (multiply the first terms of each binomial), O = Outer (multiply the outermost terms), I = Inner (multiply the innermost terms), L = Last (multiply the last terms of each binomial). All four products are then added together.

What is the FOIL formula?

For two binomials (ax + b) and (cx + d), FOIL gives: (ax + b)(cx + d) = ac·x² + ad·x + bc·x + bd, which simplifies to ac·x² + (ad + bc)·x + bd. The x² coefficient comes from the First terms, the x coefficient from the Outer and Inner terms combined, and the constant from the Last terms.

Is this a multiplying binomials calculator?

Yes — the FOIL method is specifically designed for multiplying two binomials. Each binomial has exactly two terms (e.g. 2x + 1 and 5x + 7), and FOIL systematically multiplies all four pairings to expand the expression.

What is the distributive property and how does it relate to FOIL?

The distributive property states that a(b + c) = ab + ac. FOIL is simply a mnemonic for applying the distributive property twice when multiplying two binomials. It ensures every term in the first binomial is multiplied by every term in the second binomial — no term gets missed.

Is FOIL the same as reverse FOIL (factoring)?

They are inverse operations. FOIL expands a product of two binomials into a polynomial. Reverse FOIL (also called factoring by grouping or factoring trinomials) works backwards — starting from a trinomial like x² + 5x + 6 and finding the two binomials (x + 2)(x + 3) that produce it.

Can FOIL be used for expressions with negative terms?

Absolutely. When a coefficient or constant is negative, you simply carry the negative sign through the multiplication. For example, (2x − 3)(x + 4) treats the second term as −3, so the Inner product is −3·x = −3x and the Last product is −3·4 = −12. Enter negative values in the constant fields to handle this.

When does FOIL not apply?

FOIL strictly applies to the product of exactly two binomials (two terms each). If you have a trinomial (three terms) or higher polynomial, you need to use the full distributive property or other polynomial multiplication techniques instead of FOIL.

More Math Tools