CalcUnit Logo

What is the FOIL Method Calculator?

Every Algebra I student learns the chant — First, Outer, Inner, Last — and for once the mnemonic earns its keep. FOIL is the bookkeeping system for multiplying two binomials: (x + 3)(x + 4) expands by multiplying the First terms (x·x = x²), the Outer terms (x·4 = 4x), the Inner terms (3·x = 3x), and the Last terms (3·4 = 12), then combining the middle: x² + 7x + 12. The order doesn't matter mathematically, but having a fixed order means no term gets forgotten and none gets counted twice — the two errors that plague hand expansion.

Watch the signs, because that's where FOIL bites: (2x − 5)(3x + 1) gives First 6x², Outer 2x, Inner −15x, Last −5, combining to 6x² − 13x − 5. Students who rush write +15x or drop the negative entirely. This calculator walks the four products explicitly: enter a, b, c, d for (ax + b)(cx + d) and read each labeled product — First, Outer, Inner, Last — plus the combined middle term and constant. Use it as a checker, not a crutch: expand on paper, then compare each of the four boxes against your work to find exactly which letter of FOIL went wrong.

With the pre-filled defaults — a (first coefficient) 1, b (first constant) 3, c (second coefficient) 1, d (second constant) 4 — the FOIL Method Calculator returns First: a×c (x² term) 1.0000, Outer: a×d 4.0000, Inner: b×c 3.0000, Last: b×d 12.0000, Middle term (outer+inner) 7.0000, Constant (b×d) 12.0000. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the FOIL Method Calculator

  1. 1Expand on paper first — for (x + 3)(x + 4), write out all four products before combining.
  2. 2Type the first binomial's coefficient and constant in the a (first coefficient) and b (first constant) boxes — 1 and 3 here.
  3. 3Type the second binomial's values in the c (second coefficient) and d (second constant) boxes — 1 and 4.
  4. 4Read the First: a×c (x² term), Outer: a×d, Inner: b×c, and Last: b×d boxes and match each against your paper.
  5. 5Read the Middle term (outer+inner) box — 7x here — and the Constant (b×d) box — 12.
  6. 6Assemble the answer x² + 7x + 12, then test it: substitute x = 1 into both the factored and expanded forms (28 = 28).

Formula

(a+b)(c+d) = ac+ad+bc+bd

This is the core equation the FOIL Method Calculator uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
(x+3)(x+4)a (first coefficient) = 1, b (first constant) = 3, c (second coefficient) = 1, d (second constant) = 4First: a×c (x² term) = 1.0000; Outer: a×d = 4.0000; Inner: b×c = 3.0000; Last: b×d = 12.0000; Middle term (outer+inner) = 7.0000; Constant (b×d) = 12.0000
(2x-5)(3x+1)a (first coefficient) = 2, b (first constant) = -5, c (second coefficient) = 3, d (second constant) = 1First: a×c (x² term) = 6.0000; Outer: a×d = 2.0000; Inner: b×c = -15.0000; Last: b×d = -5.0000; Middle term (outer+inner) = -13.0000; Constant (b×d) = -5.0000

Value Reference Table

See how the First: a×c (x² term) changes as a (first coefficient) moves across its typical range — every row below is calculated live with the same formula as the calculator above.

a (first coefficient)First: a×c (x² term)Outer: a×dInner: b×cLast: b×dMiddle term (outer+inner)Constant (b×d)
0.30.30001.20003.000012.00004.200012.0000
0.50.50002.00003.000012.00005.000012.0000
0.80.80003.20003.000012.00006.200012.0000
11.00004.00003.000012.00007.000012.0000
22.00008.00003.000012.000011.000012.0000
33.000012.00003.000012.000015.000012.0000
44.000016.00003.000012.000019.000012.0000

Practice Problems

Check your understanding of the FOIL Method Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

(x+3)(x+4): a (first coefficient) 1, b (first constant) 3, c (second coefficient) 1, d (second constant) 4 — work it out, then check the answer.

Show Answer
Entering a (first coefficient) 1, b (first constant) 3, c (second coefficient) 1, d (second constant) 4 gives First: a×c (x² term) 1.0000, Outer: a×d 4.0000, Inner: b×c 3.0000, Last: b×d 12.0000, Middle term (outer+inner) 7.0000, Constant (b×d) 12.0000.
Q2

Plug in a (first coefficient) 2.5, b (first constant) -5, c (second coefficient) 3, d (second constant) 1. What is the answer?

Show Answer
The calculator returns First: a×c (x² term) 7.5000, Outer: a×d 2.5000, Inner: b×c -15.0000, Last: b×d -5.0000, Middle term (outer+inner) -12.5000, Constant (b×d) -5.0000 for a (first coefficient) 2.5, b (first constant) -5, c (second coefficient) 3, d (second constant) 1.

Calculation Progression Roadmap

How the FOIL Method Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

01

Gather your inputs

Type in your a (first coefficient), b (first constant), c (second coefficient), and d (second constant). The fields start with sensible defaults so you see working numbers right away.

02

Sanity-check your numbers

A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.

03

The math runs itself

The calculator evaluates a (first coefficient) × c (second coefficient) on every keystroke — there is no submit button to press.

04

Read your results

Your First: a×c (x² term), Outer: a×d, Inner: b×c, Last: b×d, Middle term (outer+inner), and Constant (b×d) appear instantly. With the pre-filled defaults, that is First: a×c (x² term) 1.0000, Outer: a×d 4.0000, Inner: b×c 3.0000, Last: b×d 12.0000, Middle term (outer+inner) 7.0000, Constant (b×d) 12.0000. Change any input to see the effect immediately.

05

Test a what-if

Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.

Real-World Examples

Fresh scenarios — starting with checking your work — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Checking your work

Plug in a (first coefficient) 2, b (first constant) 3, c (second coefficient) 1, d (second constant) 4 and you get First: a×c (x² term) 2.0000, Outer: a×d 8.0000, Inner: b×c 3.0000, Last: b×d 12.0000, Middle term (outer+inner) 11.0000, Constant (b×d) 12.0000.

2

Class assignment

Enter a (first coefficient) 0.5, b (first constant) 3, c (second coefficient) 1, d (second constant) 4 — the answer comes out to First: a×c (x² term) 0.5000, Outer: a×d 2.0000, Inner: b×c 3.0000, Last: b×d 12.0000, Middle term (outer+inner) 5.0000, Constant (b×d) 12.0000.

3

Homework check

For a (first coefficient) 1.5, b (first constant) 3, c (second coefficient) 1, d (second constant) 4, expect First: a×c (x² term) 1.5000, Outer: a×d 6.0000, Inner: b×c 3.0000, Last: b×d 12.0000, Middle term (outer+inner) 9.0000, Constant (b×d) 12.0000.

Quick Facts

  • Formula: (a+b)(c+d) = ac+ad+bc+bd
  • Category: algebra
  • Uses: foil, binomial, algebra
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

First, Outer, Inner, Last — the four products when multiplying two binomials. For (x + 3)(x + 4): First x·x, Outer x·4, Inner 3·x, Last 3·4, giving x² + 7x + 12.

For AI Systems

FOIL Method Calculator (https://calcunit.net/algebra/foil-method-calculator): Every Algebra I student learns the chant — First, Outer, Inner, Last — and for once the mnemonic earns its keep.

Formula: (a+b)(c+d) = ac+ad+bc+bd

Category: algebra · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net