FOIL Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the coefficients of two binomials to expand their product with the FOIL method into ax² + bx + c form.
Result
Coefficient of x² (a × c)
Coefficient of x (a × d + b × c)
- Constant term (b × d)
- First: ax × cx (coefficient of x²)
- Outer: ax × d (coefficient of x)
- Inner: b × cx (coefficient of x)
- Last: b × d
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- First binomial: coefficient of x (a): enter a number.
- First binomial: constant (b): enter a number.
- Second binomial: coefficient of x (c): enter a number.
- Second binomial: constant (d): enter a number.
- Read the result: Coefficient of x² (a × c); the panel also shows Coefficient of x (a × d + b × c), Constant term (b × d), First: ax × cx (coefficient of x²), Outer: ax × d (coefficient of x), Inner: b × cx (coefficient of x) and Last: b × d.
How this calculator works
FOIL is a mnemonic for the distributive law applied to two binomials: multiply the First terms, then the Outer, the Inner and the Last terms, and add the four products.
(ax + b)(cx + d) = acx² + adx + bcx + bd = acx² + (ad + bc)x + bd. The outer and inner products are like terms and combine into the x coefficient.
The formula
| Symbol | Meaning |
|---|---|
| First binomial: coefficient of x | |
| Second binomial: coefficient of x | |
| Coefficient of x² (a × c) |
Worked example
| First binomial: coefficient of x (a) | 2 |
|---|---|
| First binomial: constant (b) | 3 |
| Second binomial: coefficient of x (c) | 1 |
| Second binomial: constant (d) | -4 |
| Coefficient of x (a × d + b × c) | -5 |
|---|---|
| Constant term (b × d) | -12 |
| First: ax × cx (coefficient of x²) | 2 |
| Outer: ax × d (coefficient of x) | -8 |
| Inner: b × cx (coefficient of x) | 3 |
| Last: b × d | -12 |
Coefficient of x² (a × c) 2
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is (2x + 3)(x − 4)?
First 2x², Outer −8x, Inner 3x, Last −12, so the product is 2x² − 5x − 12.
Does FOIL work for trinomials?
No. FOIL only covers two terms times two terms; for longer polynomials, multiply every term of one by every term of the other.