Home / All calculators / Mathematics, Numbers & Statistics

FOIL Calculator

Expand the product of two binomials using First, Outer, Inner and Last terms.

Enter your values

Formula

(ax + b)(cx + d) = acx² + (ad + bc)x + bd.

How to use this calculator

  1. Enter each numeric value in the unit shown.
  2. Check the signs and units before calculating.
  3. Select Calculate to view the result and intermediate values.

Worked example

The pre-filled values are illustrative. Change the inputs to explore how the formula responds.

Assumptions and limitations

Expand the product of two binomials using First, Outer, Inner and Last terms. The output is an educational estimate based on the displayed formula and entered values. Check the assumptions before relying on a result.

Updated: 17 November 2026. Inputs are processed in your browser.

Frequently asked questions

What formula does this calculator use?

(ax + b)(cx + d) = acx² + (ad + bc)x + bd.

Are my inputs uploaded?

The calculation runs in your browser; form values are not submitted to Friendly Calculator.