Skip to content

FOIL Calculator – Multiply Binomials Step by Step

Updated:

Expand the product of two binomials with the FOIL method (First, Outer, Inner, Last). Enter expressions like x + 2 and x + 3, and get the simplified quadratic result instantly.

Expand Binomials Using the FOIL Method

Input Fields
Enter a binomial like x + 2 or 3x - 5
Enter another binomial like x + 3 or 2x - 4
If enabled, the result will update automatically when you change any value.

FOIL Expansion Formula

Formula
\[(a + b)(c + d) = ac + ad + bc + bd\]

Where:

  • \(a\) and \(b\) — the two terms of the first binomial
  • \(c\) and \(d\) — the two terms of the second binomial

The four products correspond to the letters of FOIL:

  • First: \(a \cdot c\) — the first terms of each binomial
  • Outer: \(a \cdot d\) — the outermost terms
  • Inner: \(b \cdot c\) — the innermost terms
  • Last: \(b \cdot d\) — the last terms of each binomial

After multiplying, combine the like terms — usually the Outer and Inner products — to obtain the simplified expression.

FOIL – Calculation Example

Example: expand \((x + 2)(x + 3)\) using the FOIL method.

\[ \text{First: } x \cdot x = x^2 \]</n

\[ \text{Outer: } x \cdot 3 = 3x \]

\[ \text{Inner: } 2 \cdot x = 2x \]

\[ \text{Last: } 2 \cdot 3 = 6 \]

Combine the like terms \(3x\) and \(2x\):

\[ x^2 + 3x + 2x + 6 = x^2 + 5x + 6 \]

Result: \(x^2 + 5x + 6\)

How to Use the FOIL Calculator

  1. Type the first binomial into the First binomial (a + b) field, for example x + 2 or 3x - 5.
  2. Type the second binomial into the Second binomial (c + d) field, such as x + 3 or 2x - 4.
  3. Make sure both binomials use the same variable letter.
  4. The Expanded expression field updates automatically, showing the simplified product.

What Is the FOIL Method?

FOIL is a mnemonic for First, Outer, Inner, Last — the order in which you multiply the terms when expanding the product of two binomials. It is simply an organized way of applying the distributive property twice:

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

Multiplying binomials appears everywhere in algebra: it is how quadratic expressions are built, how equations are rewritten before solving, and how many factoring problems are reversed. For example, \(x^2 + 5x + 6\) factors back into \((x + 2)(x + 3)\), and FOIL is the quickest way to verify such a factorization.

The result of FOIL on two linear binomials is always a quadratic of the form \(Ax^2 + Bx + C\). The middle coefficient \(B\) is the sum of the Outer and Inner products — this is exactly the sum you look for when factoring a quadratic by inspection. If you then need to solve \(Ax^2 + Bx + C = 0\), the Quadratic Equation Calculator or the Discriminant of a Quadratic Equation Calculator can take it from there.

Assumptions, Limitations and Tips

  • Two binomials only. FOIL works for products of two expressions with two terms each, like \((2x - 1)(x + 4)\). For longer polynomials, use repeated distribution or a general Multiplying Binomials Calculator as a starting point, then distribute term by term.
  • Same variable required. This calculator expects both binomials to use the same letter, e.g. both in \(x\). Mixing variables like \(x + 2\) and \(y + 3\) will return an error.
  • Accepted formats. Enter terms with an explicit coefficient (3x), an implied coefficient of 1 (x), or a constant only. Subtraction is written with a minus sign, e.g. 3x - 5.
  • Watch the signs. When both binomials contain subtraction, the Outer and Inner products are negative. For example, \((x - 2)(x - 3) = x^2 - 3x - 2x + 6 = x^2 - 5x + 6\).
  • Combine like terms. The raw FOIL output has four terms; always add the Outer and Inner products (the two middle terms) to simplify. This calculator does that step for you.
  • Special patterns. Products like \((x + a)^2\) give perfect square trinomials, and \((a + b)(a - b)\) gives a difference of squares where the middle terms cancel — useful shortcuts to recognize when checking your answer.

Frequently Asked Questions

How do I do the FOIL method by hand without a calculator?

Multiply the two binomials term by term in four steps: First terms, Outer terms, Inner terms, Last terms. For \\((2x + 1)(x - 4)\): First \\(2x \\cdot x = 2x^2\), Outer \\(2x \\cdot (-4) = -8x\), Inner \\(1 \\cdot x = x\), Last \\(1 \\cdot (-4) = -4\). Then combine the like middle terms: \\(2x^2 - 8x + x - 4 = 2x^2 - 7x - 4\). Always write all four products before simplifying so nothing is missed.

What does it mean when the middle terms cancel in FOIL?

When the Outer and Inner products are opposites, the \\(x\) term disappears. This happens with the difference of squares pattern \\((a + b)(a - b) = a^2 - b^2\), for example \\((x + 5)(x - 5) = x^2 - 25\). A missing middle term in your result is not an error — it signals that the two binomials were conjugates of each other.

Does FOIL work for multiplying a binomial by a trinomial?

No. FOIL is only a mnemonic for the product of two binomials, because two terms times two terms gives exactly four products. For a binomial times a trinomial like \\((x + 1)(x^2 + 2x + 3)\), use the distributive property: multiply every term of the first expression by every term of the second, then combine like terms. You can split the trinomial into two parts and apply FOIL twice.

What are the most common mistakes when using FOIL?

The biggest one is mishandling signs: a negative term keeps its minus sign through the whole product, so \\((x - 3)(x + 2)\) has a negative Inner term. Others include forgetting to combine the Outer and Inner terms, multiplying the coefficients but forgetting the variable, and squaring just the coefficient in \\((3x)^2\) instead of writing \\(9x^2\). Writing out all four products before simplifying prevents most of these errors.

How is the FOIL method related to factoring quadratics?

FOIL and factoring are inverse operations. When you factor \\(x^2 + 7x + 12\), you look for two numbers that multiply to 12 and add to 7 — those become the constants in \\((x + 3)(x + 4)\). FOIL verifies the answer: the Outer and Inner products \\(4x\) and \\(3x\) sum to the middle coefficient \\(7x\). You can use this calculator to check any factoring by hand.

Can I use FOIL with fractional or decimal coefficients?

Yes. The method is identical for any real coefficients. For \\((\\frac{1}{2}x + 3)(2x - 1)\), First gives \\(x^2\), Outer gives \\(-\\frac{1}{2}x\), Inner gives \\(6x\), and Last gives \\(-3\), so the result is \\(x^2 + \\frac{11}{2}x - 3\). When calculating by hand, multiplying fractions carefully is often easier than working with decimals, since rounding can hide exact answers.

What is the difference between FOIL and the distributive property?

FOIL is not a separate rule — it is the distributive property applied twice. First distribute the whole second binomial over \\(a\) and \\(b\): \\(a(c + d) + b(c + d)\), then distribute each part again to get \\(ac + ad + bc + bd\). FOIL is just a memorized ordering of those four products. Understanding the distributive property is more valuable because it generalizes to polynomials of any length, while FOIL does not.

Leave a Reply

Your email address will not be published. Required fields are marked *