Home · Everyday · Algebra · FOIL Calculator
FOIL Calculator
Multiply two binomials by FOIL — First, Outer, Inner, Last — and combine the middle terms.
What this calculator does
Multiply two binomials by FOIL — First, Outer, Inner, Last — and combine the middle terms. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Coefficients are the numbers in front of each power of x, in the order shown.
Expansion multiplies every pair of terms (FOIL: First, Outer, Inner, Last) and collects like powers.
Factoring over the integers is reported when integer factors exist; otherwise the tool says so plainly.
Worked example
With the example inputs this page opens with (a in (ax + b) 2, b in (ax + b) 3, c in (cx + d) 1, d in (cx + d) 4), the result is 2x^2 + 11x + 12 — expanded product. FOIL: First, Outer, Inner, Last — multiply each pair, then combine the two middle terms. The headline figure is the x² coefficient.
Quick reference
| a in (ax + b) | Expanded product |
|---|---|
| 1 | x^2 + 7x + 12 |
| 1.6 | 1.6x^2 + 9.4x + 12 |
| 2 | 2x^2 + 11x + 12 |
| 2.5 | 2.5x^2 + 13x + 12 |
| 3 | 3x^2 + 15x + 12 |
| 4 | 4x^2 + 19x + 12 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the FOIL Calculator work?
Multiply two binomials by FOIL — First, Outer, Inner, Last — and combine the middle terms. (ax + b)(cx + d) → Expanded trinomial. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the FOIL Calculator need?
(ax + b)(cx + d) → Expanded trinomial. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the FOIL Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.