Overview
FOIL is a way to multiply two binomials: First, Outer, Inner, Last. This multiplies (ax + b)(cx + d) and shows each step.
Enter the four numbers, using negative values for subtraction. For (2x + 3)(x − 4), that is 2, 3, 1 and −4.
Worked examples
| Inputs | Result |
|---|---|
| a in (ax + b)2b in (ax + b)3c in (cx + d)1d in (cx + d)-4 | Result: 2x² − 5x − 12First: 2x²Outer: -8xInner: 3xLast: -12 |
Show 2 more examples
| a in (ax + b)1b in (ax + b)1c in (cx + d)1d in (cx + d)-1 | Result: x² − 1First: 1x²Outer: -1xInner: 1xLast: -1 |
| a in (ax + b)3b in (ax + b)-2c in (cx + d)2d in (cx + d)5 | Result: 6x² + 11x − 10First: 6x²Outer: 15xInner: -4xLast: -10 |
How it works
Multiply each term in the first bracket by each term in the second. The outer and inner products are both x terms, so they combine into one middle term. FOIL is simply the distributive property in a memorable order.
The formula
| a, b | Terms of the first binomial |
| c, d | Terms of the second binomial |
Practical tips
- (2x + 3)(x − 4) gives 2x² − 8x + 3x − 12, which is 2x² − 5x − 12.
- If the middle terms cancel, you have a difference of squares, as in (x + 1)(x − 1) = x² − 1.
- To go the other way, use our factoring trinomials calculator.
Frequently asked questions
What does FOIL stand for?
First, Outer, Inner, Last: the order for multiplying the terms.
Does FOIL work with more terms?
No, it’s for two binomials only. Otherwise, multiply every term by every other term.