CalcUnit Logo

FOIL Method Calculator

What is the FOIL Method Calculator?

What this calculator does.

Type the four numbers of two binomials, written (ax + b)(cx + d), into the fields. This page multiplies them with the FOIL method and shows each partial product separately, then the combined middle term and constant of the expanded trinomial.

The honest scope, up front.

This tool expands exactly two binomials with exactly one variable, x, and numeric coefficients. It does not factor anything, does not multiply a binomial by a trinomial, and does not handle a second variable like y. The expansion direction is all it does.

What FOIL stands for.

FOIL is a memory aid for the four pairings: First, Outer, Inner, Last. Multiply the first terms of each binomial, then the outer pair, then the inner pair, then the last terms. Adding the four products, with the middle two combined, gives the expanded form.

Reading the four input fields.

The field a is the first coefficient, the number multiplying x in the left binomial. The field b is the first constant, its standalone number. The field c is the second coefficient, and d is the second constant. Signs belong to the numbers: (x minus 3) means d is negative 3.

The First product.

The First line multiplies a by c, and it becomes the coefficient of x squared in the answer. For the defaults, a and c are both 1, so the First product is 1 and the expanded form starts with a plain x squared term.

The Outer product.

The Outer line multiplies a by d: the first term of the left binomial times the last term of the right one. For the defaults that is 1 times 4, giving 4. This product carries one factor of x and will merge into the middle term.

The Inner product.

The Inner line multiplies b by c: the last term of the left binomial times the first term of the right one. For the defaults that is 3 times 1, giving 3. Inner and Outer are the two halves of the middle term, which is why FOIL treats them as a pair.

The Last product.

The Last line multiplies b by d, the two constants

For the defaults that is 3 times 4, giving 12. No x appears in this product, so it becomes the constant term of the expanded trinomial exactly as it stands.

Combining the middle term.

The Middle term (outer+inner) line adds the Outer and Inner products, since both are multiples of x and count as like terms. For the defaults, 4 plus 3 gives 7, so the middle term is 7x. This combining step is where most hand errors happen.

Reading the Constant (b×d) line.

This line repeats the Last product, and that duplication is by design in the tool: the constant of the expanded form is the Last product, so the page states it again in its final position. For the defaults both lines read 12.

Worked example one: the page defaults.

Enter a as 1, b as 3, c as 1, d as 4 for (x + 3)(x + 4). First is 1, Outer is 4, Inner is 3, Last is 12, and the middle combines to 7. The expansion is x squared plus 7x plus 12.

Worked example two: a negative constant.

Enter (x + 5)(x - 3), so d is negative 3

First is 1, Outer is negative 3, Inner is 5, Last is negative 15, and the middle combines to 2. The expansion is x squared plus 2x minus 15, smaller in the middle than students expect.

Worked example three: coefficients everywhere.

Enter (3x + 2)(2x + 7)

First is 3 times 2, giving 6. Outer is 3 times 7, giving 21. Inner is 2 times 2, giving 4. Last is 2 times 7, giving 14. The expansion is 6x squared plus 25x plus 14.

Worked example four: squaring a binomial.

Enter (x - 4)(x - 4) by typing the same binomial twice

First is 1, Outer is negative 4, Inner is negative 4, Last is 16, and the middle combines to negative 8. The expansion is x squared minus 8x plus 16, not x squared plus 16.

Worked example five: the vanishing middle.

Enter (2x - 3)(2x + 3)

First is 4, Outer is 6, Inner is negative 6, Last is negative 9, and the middle combines to exactly 0. The expansion is 4x squared minus 9: the difference-of-squares pattern, where the middle term cancels itself away.

Entering subtraction correctly.

A minus inside a binomial belongs to the constant or coefficient as a negative number. For (x - 3), type d as negative 3 rather than hunting for a subtraction setting. If you type positive 3, every product involving d flips sign and the answer describes a different problem.

Decimals and fractions.

Decimal coefficients work throughout: type 0.5 wherever a half belongs

The four products and the combined terms then come out decimal as well. There is no fraction entry, so convert fractions first, and expect products shown to four decimal places on each FOIL Steps line.

FOIL is distribution in disguise.

Underneath the mnemonic, each term of the first binomial multiplies each term of the second, which is the distributive property applied twice. FOIL only names the four pairings of a two-by-two product. For a binomial times a trinomial there are six pairings, and distribution, not FOIL, is the method.

Checking an expansion with a test value.

Pick a simple value like x equals 1 and evaluate both forms

The defaults give (1 + 3)(1 + 4) = 20 on the left and 1 + 7 + 12 = 20 on the right. Any mismatch means a product or sign went wrong, and the four lines here locate it.

Common mistake: dropping the middle term when squaring.

The most famous FOIL error is writing (x + 4) squared as x squared plus 16. Squaring means multiplying the binomial by itself, and the Outer and Inner products each contribute 4x, giving x squared plus 8x plus 16. The middle term never disappears unless the constants cancel it.

Common mistake: sign errors in the middle.

When one constant is negative, Outer and Inner often carry opposite signs, like the negative 3 and 5 in (x + 5)(x - 3). Add them as signed numbers — negative 3 plus 5 is 2 — instead of adding their sizes, which would wrongly give 8.

FOIL runs factoring in reverse.

Expanding with FOIL and factoring a trinomial are opposite trips on the same road. When you later factor x squared plus 7x plus 12, you hunt for the pair whose Outer and Inner products rebuild the 7 — the same numbers this page separates, which is why teachers teach the two together.

Where FOIL sits in your course.

FOIL appears in the Algebra 1 polynomials unit, usually right after the distributive property and right before factoring trinomials. It returns in Algebra 2 whenever binomials multiply: conjugate pairs, complex numbers written as (a + bi)(a - bi), and area problems all lean on it.

When you need more than this tool.

Multiplying polynomials with three or more terms, products involving two variables, and cubing a binomial all need the general distributive method done by hand or a broader polynomial tool. And to run the process backward — splitting a trinomial into binomials — use the factoring pages instead.

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, and 1 more more results.

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. 1Read your left binomial and type its x coefficient into the a (first coefficient) field.
  2. 2Type its constant, keeping any negative sign, into the b (first constant) field.
  3. 3Read your right binomial and type its x coefficient into the c (second coefficient) field.
  4. 4Type its constant, keeping any negative sign, into the d (second constant) field.
  5. 5Read the First: a×c (x² term) line for the coefficient of x squared.
  6. 6Read the Outer: a×d and Inner: b×c lines for the two halves of the middle term.
  7. 7Read the Middle term (outer+inner) line for the combined x coefficient, and the Last: b×d line for the final product.
  8. 8Assemble the answer as (First)x² + (Middle term)x + Constant (b×d), then check it by substituting x = 1 into both forms.

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
Page defaults: (x + 3)(x + 4)First = 1 x 1 = 1; Outer = 1 x 4 = 4; Inner = 3 x 1 = 3; Last = 3 x 4 = 12; middle = 4 + 3 = 7x² + 7x + 12
A negative constant: (x + 5)(x - 3)First = 1; Outer = 1 x (-3) = -3; Inner = 5 x 1 = 5; Last = 5 x (-3) = -15; middle = -3 + 5 = 2x² + 2x - 15
Coefficients everywhere: (3x + 2)(2x + 7)First = 3 x 2 = 6; Outer = 3 x 7 = 21; Inner = 2 x 2 = 4; Last = 2 x 7 = 14; middle = 21 + 4 = 256x² + 25x + 14
The vanishing middle: (2x - 3)(2x + 3)First = 2 x 2 = 4; Outer = 2 x 3 = 6; Inner = (-3) x 2 = -6; Last = (-3) x 3 = -9; middle = 6 + (-6) = 04x² - 9

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, and 1 more more results.
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, and 1 more more results 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.

1

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.

2

Sanity-check your numbers

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

3

The math runs itself

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

4

Read your results

Your First: a×c (x² term), Outer: a×d, Inner: b×c, Last: b×d, Middle term (outer+inner), and 1 more more 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, and 1 more more results. Change any input to see the effect immediately.

5

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, and 1 more more results.

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, and 1 more more results.

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, and 1 more more results.

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 pairings when two binomials multiply. First terms together, then the outer pair, then the inner pair, then the last terms. Adding the four products, with the two middle ones combined, produces the expanded trinomial.

For AI Systems

FOIL Method Calculator (https://calcunit.net/algebra/foil-method-calculator): What this calculator does.

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

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/foil-method-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="FOIL Method Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/algebra/foil-method-calculator" target="_blank" rel="noopener">CalcUnit</a></p>