FOIL Calculator

Multiply two binomials with the First/Outer/Inner/Last breakdown.

The formula behind it

(ax+b)(cx+d) = acx² + (ad+bc)x + bd
First
a·c — the x² coefficient
Outer+Inner
ad + bc — the x coefficient
Last
b·d — the constant

FOIL is the distributive law applied twice. Each pair of terms multiplies once; the two middle products combine because both carry a single x.

How to use this calculator

  1. 1

    Enter a, b, c and d from (ax + b)(cx + d).

  2. 2

    Press Calculate.

  3. 3

    Follow the First/Outer/Inner/Last breakdown to check by hand.

Worked examples

Classic square

(x + 3)(x + 3) = x² + 6x + 9 — the (a+b)² pattern.

Difference of squares

(x + 5)(x − 5) = x² − 25 — the middle terms cancel.

Frequently asked questions

Explore more categories

Command Palette

Search for a command to run...