FOIL calculator
Calculator
The calculator needs JavaScript. The tables below give the same numbers for common cases.
How it is worked out
- First terms: 2x × 4x = 8x².
- Outer terms: 2x × -5 = -10x.
- Inner terms: 3 × 4x = 12x.
- Last terms: 3 × -5 = -15.
- Combine like terms: 8x² + 2x − 15.
| Inputs | Answer |
|---|---|
| a in: 2; b: 3; c in: 4; d: -5 | (2x + 3)(4x − 5) = 8x² + 2x − 15. |
| a in: 1; b: 2; c in: 1; d: 3 | (x + 2)(x + 3) = x² + 5x + 6. |
| a in: 3; b: -1; c in: 3; d: 1 | (3x − 1)(3x + 1) = 9x² − 1. |
How to use it
FOIL is a memory aid for multiplying two binomials: multiply the First terms, the Outer terms, the Inner terms and the Last terms, then add the results and combine the like terms. For (ax + b)(cx + d) the answer is ac·x² + (ad + bc)·x + bd.
FOIL is just the distributive property applied twice, so it works only for two terms times two terms. For longer expressions multiply every term by every term.
Frequently asked questions
What does FOIL stand for?
First, Outer, Inner, Last.
Does FOIL work for trinomials?
No. FOIL is for two binomials; for more terms multiply every term by every term.
What is the product of (x + 2)(x + 3)?
x² + 5x + 6.
Method: standard arithmetic shown step by step; no outside data is used. Checked 2026-11-12.
About · How we verify this · Editorial policy · Corrections
General information only. Results are plain arithmetic on the numbers you enter; check anything important (money, health, school work) against your own records or the official source.