FOIL Calculator
Multiply two linear binomials and see the First, Outer, Inner, and Last products before like terms are combined.
Use x as the variable and include a plus or minus constant term.
About the FOIL calculator
FOIL examples
| Binomial product | Expanded polynomial | Middle-term calculation |
|---|---|---|
| (2x + 3)(3x + 4) | 6x² + 17x + 12 | The middle coefficient is 8 + 9. |
| (x - 5)(x + 2) | x² - 3x - 10 | The middle coefficient is 2 - 5. |
| (3x - 1)(2x - 4) | 6x² - 14x + 4 | The middle coefficient is -12 - 2. |
| (-x + 2)(x + 3) | -x² - x + 6 | The middle coefficient is -3 + 2. |
How to use the FOIL calculator
- Enter the first binomial using x and a signed constant.
- Enter the second binomial in the same ax + b format.
- Select Calculate FOIL to multiply all four term pairs.
- Review the individual products and the combined expanded polynomial.
FOIL calculator FAQ
What does FOIL stand for?
FOIL stands for First, Outer, Inner, and Last. These names identify the four term pairs multiplied when expanding two binomials.
Can FOIL multiply expressions with subtraction?
Yes, subtraction is handled as addition of a negative term. Keep each minus sign with its coefficient when multiplying the corresponding pair.
Why are the outer and inner products combined?
Both products contain x to the first power, so they are like terms. Their numerical coefficients can therefore be added to make one middle term.
Can I use a variable other than x?
This calculator expects x so that input parsing remains clear and predictable. The same multiplication rule works for any variable when performed by hand.
Does FOIL work for three-term polynomials?
The four FOIL pairs cover only two terms multiplied by two terms. For larger polynomials, distribute every term in the first expression across every term in the second.