Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

FOIL Calculator

First binomial: coefficient of x (a): enter a number. Prefilled example: 2.

First binomial: constant (b): enter a number. Prefilled example: 3.

Second binomial: coefficient of x (c): enter a number. Prefilled example: 1.

Second binomial: constant (d): enter a number. Prefilled example: -4.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. First binomial: coefficient of x (a): enter a number.
  2. First binomial: constant (b): enter a number.
  3. Second binomial: coefficient of x (c): enter a number.
  4. Second binomial: constant (d): enter a number.
  5. 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

  1. X2=a×c
Symbols used in the formula
SymbolMeaning
aFirst binomial: coefficient of x
cSecond binomial: coefficient of x
X2Coefficient 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
  1. X2=2×1=2

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.

Related calculators