foil calculator

Multiply two binomials in the form (ax + b)(cx + d) using FOIL (First, Outer, Inner, Last).

Tip: You can use negatives and decimals (e.g., -2.5).

What is a FOIL calculator?

A FOIL calculator expands the product of two binomials quickly and accurately. In algebra, a binomial is an expression with two terms, such as (2x - 3) or (x + 5). When you multiply two binomials, FOIL provides a clear structure so you do not miss any term.

This tool is useful for homework checks, test prep, and fast polynomial expansion. It supports whole numbers, fractions converted to decimals, and negative values.

FOIL meaning: First, Outer, Inner, Last

FOIL is a memory aid for multiplying two binomials in the form (ax + b)(cx + d):

  • First: multiply the first terms, (ax)(cx)
  • Outer: multiply the outer terms, (ax)(d)
  • Inner: multiply the inner terms, (b)(cx)
  • Last: multiply the last terms, (b)(d)

Then combine like terms. In most cases, the outer and inner products are both linear terms, so they combine into one middle term.

General FOIL formula

For (ax + b)(cx + d), the expanded result is:

acx2 + (ad + bc)x + bd

The calculator above automates this exact structure and also shows each intermediate FOIL product so you can learn the method—not just get the answer.

How to use this foil calculator

  1. Enter a, b, c, and d.
  2. Choose a variable name (such as x, t, or y).
  3. Click Calculate FOIL.
  4. Review the expanded polynomial and the step-by-step FOIL breakdown.
  5. Optionally enter a variable value to evaluate the expanded expression numerically.

Worked examples

Example 1: (x + 3)(x + 4)

First: x·x = x2
Outer: x·4 = 4x
Inner: 3·x = 3x
Last: 3·4 = 12

Combine like terms: x2 + 7x + 12

Example 2: (2x - 5)(3x + 7)

First: 2x·3x = 6x2
Outer: 2x·7 = 14x
Inner: -5·3x = -15x
Last: -5·7 = -35

Combine linear terms: 14x - 15x = -x, so result is 6x2 - x - 35.

Example 3: (0.5x + 1.2)(-4x - 3)

FOIL still works with decimals. You will get a quadratic expression with decimal coefficients, which is often needed in applied math and finance models.

Common mistakes this tool helps prevent

  • Forgetting one of the four multiplications
  • Sign errors with negative terms
  • Failing to combine like terms correctly
  • Dropping the squared variable term
  • Arithmetic slips when coefficients are large or decimal-based

FOIL vs distributive property

FOIL is really a shortcut for the distributive property when multiplying two binomials. If an expression has more than two terms, use full distribution rather than FOIL alone. For example, with trinomials like (x + 2)(x + 3 + 1), distribute every term to every term.

When FOIL is most useful

  • Expanding quadratic expressions in Algebra I and Algebra II
  • Factoring checks (expand to verify your factors are correct)
  • Graphing prep (convert to standard form)
  • Mental-math speed drills and exam practice

Quick FAQ

Does FOIL work for trinomials?

No. FOIL is designed for two binomials. For trinomials or larger polynomials, use full distribution.

Can I use negative numbers and decimals?

Yes. This calculator supports both.

Why do outer and inner terms combine?

Both are linear terms with the same variable and exponent (usually x to the first power), so they are like terms and can be added together.

Final thought

If you are learning polynomial multiplication, use the step output from this FOIL calculator to build confidence. Over time, the pattern acx2 + (ad + bc)x + bd becomes second nature.

🔗 Related Calculators