Skip to main content
math

FOIL Calculator

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

Reviewed by Chase FloiedUpdated

This free online foil calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Results

x² coefficient (First)

1

Outer term

0

Inner term

0

Constant (Last)

0

x coefficient (Outer + Inner)

0

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the FOIL Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The FOIL Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

FOIL Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the FOIL Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • Use it to explore the behavior of mathematical functions across a range of inputs.

About This Calculator

The FOIL Calculator is a free mathematical calculation tool for students, educators, and professionals who need quick, reliable results. Multiply two binomials (ax + b)(cx + d) using the FOIL method: First, Outer, Inner, Last. The underlying algorithms implement well-established mathematical formulas and numerical methods. Results are computed instantly in the browser. This tool is useful for learning, verification of hand calculations, and rapid exploration of mathematical relationships. All computation happens locally — no data is sent to a server.

About FOIL Calculator

The FOIL Calculator multiplies two binomials using the First-Outer-Inner-Last mnemonic. FOIL is one of the most widely taught algebraic techniques, providing a structured way to expand the product of two binomials into a trinomial. The acronym stands for First (multiply the first terms of each binomial), Outer (multiply the outermost terms), Inner (multiply the innermost terms), and Last (multiply the last terms of each binomial). Although FOIL is specifically designed for binomial-by-binomial multiplication, the underlying principle is the distributive property of multiplication over addition. Mastering FOIL builds fluency in polynomial arithmetic and prepares students for more advanced topics like factoring, completing the square, and working with polynomial functions. This calculator breaks down each step so you can see exactly how the four partial products combine into the final result.

The Math Behind It

The FOIL method is a mnemonic for applying the distributive property to multiply two binomials. Given (ax + b)(cx + d), we distribute each term of the first binomial over the second: (ax)(cx + d) + b(cx + d) = acx² + adx + bcx + bd. Collecting like terms (the middle two), we get acx² + (ad + bc)x + bd. This is equivalent to the general formula for multiplying two linear expressions. The FOIL method works because multiplication distributes over addition. It produces exactly four terms before combining like terms, hence the four-letter mnemonic. FOIL only applies to the product of two binomials; for polynomials with more terms, you must use the full distributive property (sometimes called the 'claw' or 'box' method). Special products arise from FOIL: (a + b)² = a² + 2ab + b² (perfect square trinomial), (a - b)² = a² - 2ab + b² (also a perfect square), and (a + b)(a - b) = a² - b² (difference of squares). These patterns are worth memorizing as they appear frequently in algebra and calculus. Understanding FOIL deeply also helps with mental math, since (x + a)(x + b) = x² + (a+b)x + ab provides a quick way to multiply numbers close to a round number.

Formula Reference

FOIL Expansion

(ax+b)(cx+d) = acx² + (ad+bc)x + bd

Variables: a, b from first binomial; c, d from second binomial

Worked Examples

Example 1: Basic FOIL

Expand (2x + 3)(x + 5)

Step 1:First: 2x · x = 2x²
Step 2:Outer: 2x · 5 = 10x
Step 3:Inner: 3 · x = 3x
Step 4:Last: 3 · 5 = 15
Step 5:Combine: 2x² + 10x + 3x + 15 = 2x² + 13x + 15

2x² + 13x + 15

Example 2: Difference of squares

Expand (x + 4)(x - 4)

Step 1:First: x · x = x²
Step 2:Outer: x · (-4) = -4x
Step 3:Inner: 4 · x = 4x
Step 4:Last: 4 · (-4) = -16
Step 5:Combine: x² - 4x + 4x - 16 = x² - 16

x² - 16

Common Mistakes & Tips

  • !Forgetting to combine the Outer and Inner terms into a single middle term
  • !Dropping the negative sign when one or both constants are negative
  • !Trying to use FOIL for products of polynomials with more than two terms
  • !Forgetting that (x + a)² ≠ x² + a²; the cross term 2ax is essential

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

Does FOIL work for trinomials?

No. FOIL is specifically for multiplying two binomials (two-term expressions). For trinomials or higher-degree polynomials, use the distributive property (box/area method) to multiply every term by every other term.

Is FOIL the same as distribution?

FOIL is a specific application of the distributive property for the case of two binomials. It produces the same result as full distribution but provides a memorable structure for this common case.