Category

FOIL Calculator — Multiply Two Binomials with the First, Outer, Inner, Last Method

Multiply two binomials step by step with the FOIL method (First, Outer, Inner, Last). Shows each of the four partial products, the sum before simplifying, and the final answer after combining like terms. Supports linear and higher-degree binomials, plus optional evaluation at a given x in world currencies, metric or US units.

0 calculations

Calculation Parameters

(2x + 3) × (x − 4)

First binomial: a·xⁿ + b

Second binomial: c·xᵏ + d


Quick examples:

What FOIL stands for:

  • F First — the first term of each binomial
  • O Outer — the two outermost terms
  • I Inner — the two middle terms
  • L Last — the last term of each binomial

Enter your two binomials

Fill in the coefficients on the left and we will multiply the binomials step by step using the FOIL method.

FOIL Calculator — First, Outside, Inside, Last

We developed this FOIL Calculator to help you learn the FOIL method (First, Outer, Inner, Last) for multiplying two binomials. In the text below, we explain what the FOIL method is and show you step-by-step examples of how to do multiplication according to the FOIL method.

Please remember that the FOIL method works for binomials only. For multiplying other polynomials, see CalcuGo's polynomial multiplication calculator.

What is the FOIL method?

FOIL is a method for multiplying two binomials. Let's recall that a binomial is the sum of two monomials, and a monomial is a product of a number (coefficient) and a variable (unknown) raised to a non-negative integer power — neither negative powers nor fractional powers are allowed. For instance:

  • 3, x, 3x, x³ are monomials;
  • 3 + x, 3x + 3, x³ + 1, 4x³ + x² are binomials.

A binomial whose highest degree is equal to one is called a linear binomial. Of the four binomials listed above, only the first two — 3 + x and 3x + 3 — are linear binomials.

Suppose now that we want to multiply two linear binomials ax + b and cx + d. By the distributive law, we get:

(ax + b) × (cx + d) = ax × (cx + d) + b × (cx + d)

That is, the binomial cx + d is distributed over the addition in the binomial ax + b. Each of the two resulting terms gets further distributed:

  • ax × (cx + d) = ax × cx + ax × d
  • b × (cx + d) = b × cx + b × d

So, in the end, we obtain the following:

(ax + b) × (cx + d) = acx² + adx + bcx + bd

Note that, in total, we've applied the distributive property three times.

This is when the FOIL method enters the stage. The FOIL method allows you to multiply two binomials quickly — that is, without performing all the intermediate steps. In other words, the FOIL method allows you to go from (ax + b) × (cx + d) directly to acx² + adx + bcx + bd.

How to do the FOIL method?

The strange word FOIL is an acronym for the four terms appearing in the final result:

  • F ➺ First terms of each binomial are multiplied. That is, the first term of the first binomial and the first term of the second binomial.
  • O ➺ Outer terms are multiplied (the terms located at the outermost ends of the binomials). That is the first term of the first binomial and the second term of the second binomial.
  • I ➺ Inner terms are multiplied (the middle two terms of the binomials). That is the second term of the first binomial and the first term of the second binomial.
  • L ➺ Last terms are multiplied. That is the second term of the first binomial and the second term of the second binomial.

When we've calculated the four partial products (First, Outer, Inner, and Last), there is one last step before we reach the final answer: we need to add the four FOIL terms together. Obviously, the order in which the four terms appear in the sum does not matter and does not need to match the order F-O-I-L.

It was William Betz who came up with the word FOIL in his 1929 text Algebra for Today. He intended it as a mnemonic for students. He wrote: "…first terms, outer terms, inner terms, last terms. (The rule stated above may also be remembered by the word FOIL, suggested by the first letters of the words first, outer, inner, last.)"

⚠️ Remember that the FOIL method only works for multiplying binomials! For more general polynomials, you need to use other methods.

How do you use this FOIL calculator?

The FOIL method calculator is really straightforward:

  1. Decide whether you need to multiply two linear binomials or binomials of higher degrees, and pick the matching mode.
  2. For linear binomials, enter the four coefficients a, b, c, d into the calculator's respective fields.
  3. For general binomials, enter the four coefficients and the two exponents n and k.
  4. Optionally, enter a value of x to evaluate the product numerically, and choose a unit or currency for that result.
  5. Read off the F, O, I, L partial products and the simplified final answer.

Tip: binomials with two variable terms

If your binomial is of the form axn + bxk, you need to factor out xmin(n,k) so that you get either:

  • xk × (axn−k + b)   if n ≥ k, or
  • xn × (bxk−n + a)   if n < k.

Keep in mind the factored term and use the expression in brackets in our calculator. Don't forget about this factored-out term when you write down the final solution!

FOIL method examples — How to use the FOIL method?

Example 1 — (2x + 3)(x − 4)

  • F: 2x × x = 2x²
  • O: 2x × (−4) = −8x
  • I: 3 × x = 3x
  • L: 3 × (−4) = −12

Sum: 2x² − 8x + 3x − 12, and after combining like terms: 2x² − 5x − 12.

Example 2 — difference of squares (x + 2)(x − 2)

  • F: x × x = x²    O: x × (−2) = −2x
  • I: 2 × x = 2x    L: 2 × (−2) = −4

Sum: x² − 2x + 2x − 4 = x² − 4. The Outer and Inner terms cancel — this is the classic (a + b)(a − b) = a² − b² identity.

Example 3 — higher degrees (3x³ + 1)(2x² − 5)

  • F: 3x³ × 2x² = 6x⁵    O: 3x³ × (−5) = −15x³
  • I: 1 × 2x² = 2x²    L: 1 × (−5) = −5

Sum: 6x⁵ − 15x³ + 2x² − 5. Here nothing combines, because all four exponents differ.

Reverse FOIL method

The reverse FOIL method (also called factoring) goes the other way: it starts from a quadratic trinomial Ax² + Bx + C and recovers the two binomials whose product it is.

To reverse-FOIL x² + Bx + C (where A = 1), look for two numbers p and q such that:

  • p × q = C (they multiply to the constant term — the L product), and
  • p + q = B (they add to the middle coefficient — the O + I sum).

Then x² + Bx + C = (x + p)(x + q).

Example: factor x² + x − 6. We need p × q = −6 and p + q = 1. The pair p = 3, q = −2 works, so x² + x − 6 = (x + 3)(x − 2). You can verify it instantly by running (x + 3)(x − 2) through the calculator above.

When A ≠ 1, the search is a little longer: you need p × q = A × C and p + q = B, then split the middle term and factor by grouping.

Special products worth memorizing

  • Perfect square: (a + b)² = a² + 2ab + b²
  • Difference of squares: (a + b)(a − b) = a² − b²
  • Perfect square (minus): (a − b)² = a² − 2ab + b²

Units and currencies

FOIL itself is symbolic — the product of two binomials is a polynomial, not a measured quantity. That's why the unit selector applies to the optional evaluation step: when you supply a value of x, the calculator computes the numeric value of the product and labels it with your chosen unit. You can pick a world currency (US dollar, Russian ruble, euro, pound, yen and more), a metric unit (meters, kilograms, liters, °C), or a US/imperial unit (feet, pounds, gallons, °F).

Calculation History

Loading...