FOIL Calculator

Multiply two binomials, with all four products shown.

Math Calculators Free, no sign-up Runs in your browser

FOIL Calculator tool

From (ax + b).

From (cx + d).

—
Expanded
—
First
—
Outer
—
Inner
—
Last
StepProduct

About the FOIL Calculator

FOIL Calculator multiplies two binomials and shows the four products separately before collecting them. FOIL is a memory aid for the order: First, Outer, Inner, Last, meaning the two leading terms, the two outside terms, the two inside terms and the two constants.

The two middle products are the part people get wrong, because they have to be added together rather than written separately. The page prints that collection as its own line, so if your answer differs from this one it is usually visible immediately which of the four products went astray.

FOIL only works for two binomials. It is not a general rule for multiplying brackets, and for a trinomial or anything longer the right method is to multiply every term in the first bracket by every term in the second, which is what FOIL is a special case of.

The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.

Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.

More tools: FreeToolsHub.org

How to use the FOIL Calculator

  1. Enter a (first x coefficient), b (first constant) and c (second x coefficient)Decimals are fine, and thousands separators are accepted and ignored.
  2. Read the expanded, first and outerThe figures update as you type. The Calculate button is there if you would rather press something, but nothing waits for it.
  3. Copy or check the resultCopy the summary with the copy button, or open the table to check it row by row and read the formula with your own numbers in it.

What the FOIL Calculator does

  • Shows expanded, first, outer, inner and last together, so you are not running it twice
  • A results table you can read across
  • Prints the formula with your own figures substituted in
  • Updates as you type, with no button to press and no page reload
  • Copy the result in one click
  • Free, no sign-up, and it runs entirely in your browser

Who uses the FOIL Calculator

The FOIL Calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Checking an expanded bracket in algebra homework
  • Seeing which of the four products a wrong answer came from
  • Expanding a difference of two squares and watching the middle cancel
  • Confirming a factorisation by multiplying it back out

Common questions about the FOIL Calculator

What does FOIL stand for?

First, Outer, Inner, Last — the order in which the four pairs of terms are multiplied when two binomials are expanded.

Why do the two middle terms get added?

Because the Outer and Inner products are both multiples of x, so they are like terms. Collecting them is what turns four products into a three-term quadratic.

Does FOIL work for three terms?

No. FOIL is specific to two binomials. For longer brackets, multiply each term of the first by each term of the second; FOIL is just that rule when both brackets have two terms.

Why did my middle term vanish?

Because the Outer and Inner products cancelled, which happens when the brackets are (x + k)(x - k). That is the difference of two squares, and the result has no x term.

If the FOIL Calculator is not quite what you need, these other free tools solve closely related problems, and there are 35 more in math calculators.

Factoring Calculator

Factorise a quadratic into brackets, or say why it will not factorise.

Math Calculators Use tool

Exponent Calculator

Powers, including negative and fractional exponents.

Math Calculators Use tool

Percentage Calculator

Three calculators: percent of a number, what percent one number is, and change.

Math Calculators Use tool

Checked and rebuilt on 2026-10-18. The method this calculator uses is described in the section above, and corrections go through the contact page.