Multiply Binomials Instantly

FOIL Calculator

Enter any binomial expression and get a beautiful, color-coded step-by-step solution using the First, Outer, Inner, Last method.

Type or paste two binomial expressions — e.g. (x + 3)(x - 5)  or  (2x - 1)²
Expanded Result
Visual Breakdown
First
Outer
Inner
Last
Step-by-Step Solution
Combine All Terms
Simplified Result
FOIL Method Calculator

FOIL Method Calculator

A precise binomial expansion tool that applies the distributive property to any pair of binomial expressions.

The FOIL method calculator takes any two binomials in the format (ax + b)(cx + d) and expands them into a simplified polynomial. It applies the distributive property four times — multiplying First terms, Outer terms, Inner terms, and Last terms — then combines like terms to produce the final algebraic expression.

Unlike traditional algebra tools that show only the answer, this FOIL calculator provides a step-by-step solver with color-coded term pairs. Each coefficient, variable, and constant term is tracked through the expansion. The result appears in standard form, ready for use in quadratic equations or further polynomial operations.

(a + b)(c + d) ac + ad + bc + bd
Distributive Property

The FOIL method is the distributive property applied twice. For any binomials (a + b)(c + d), you distribute a across (c + d), then distribute b across (c + d). FOIL is the mnemonic that keeps the order straight.

Binomial Multiplication

Binomial Multiplication Calculator

Visualize binomial multiplication using the area model — a grid-based approach to polynomial expansion.

Binomial multiplication is the process of multiplying two algebraic expressions that each contain exactly two terms. The area model (also called algebra tiles or the box method) organizes this multiplication into a 2×2 grid where each cell represents a partial product.

Each coefficient multiplies across rows and columns. The four cells of the grid correspond to the four FOIL products. Combining the cell values — grouping like terms along the diagonals — yields the expanded polynomial. This visual approach reduces distribution errors and makes the connection between multiplication and area concrete.

x
+3
x
+2
x × x = x²
3x x × 3 = 3x
2x 2 × x = 2x
6 2 × 3 = 6
= + 3x + 2x + 6 = x² + 5x + 6
Hover over each cell to see the multiplication
Multiply Binomials

Multiply Binomials Calculator

Expand any binomial product into standard form using term-by-term distribution.

To multiply binomials, distribute each term of the first binomial across every term of the second. For (a + b)(c + d), this produces four products: ac, ad, bc, and bd. After combining like terms (typically the middle two), you get a trinomial in standard form.

This technique is foundational in common core math and appears in SAT math prep, ACT algebra, and college prerequisites. Binomial expansion extends to problems involving factoring, solving quadratic equations with the quadratic formula, and simplifying nested parentheses in advanced calculus.

(a+b) (c+d)
ac ad bc bd
F ac
+
O ad
+
I bc
+
L bd
Learn

What is the FOIL Method?

A systematic technique for multiplying two binomials, powered by the distributive property.

The FOIL method is a mnemonic for multiplying two binomials. FOIL stands for First, Outer, Inner, Last — the four multiplications you perform, then combine. It is a specific application of the distributive property that ensures every term in the first binomial is multiplied by every term in the second.

Given two binomials (a + b)(c + d), the FOIL method produces: First (a × c), Outer (a × d), Inner (b × c), and Last (b × d). The sum ac + ad + bc + bd is then simplified by combining like terms into the final polynomial.

( a + b )( c + d ) FIRST OUTER INNER LAST
F
First
Multiply the first terms: a × c
O
Outer
Multiply the outer terms: a × d
I
Inner
Multiply the inner terms: b × c
L
Last
Multiply the last terms: b × d
(a + b)(c + d) = ac + ad + bc + bd
The general FOIL expansion formula

The FOIL method works with any pair of binomials containing variables, constants, or both. It is the same process used by algebra calculators like Mathway, Symbolab, and Wolfram Alpha, and is taught in Khan Academy courses on polynomial expansion.

Step-by-Step Guide

How to Do the FOIL Method?

Follow these four steps to expand any binomial product using the FOIL method.

FOIL step by step: Start with two binomials such as (2x + 3)(x − 4). The FOIL method breaks this into four multiplications. Each step isolates one pair of terms, calculates the product, and moves to the next pair.

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

First Terms

Multiply the first term of each binomial: 2x × x = 2x²

2x × x = 2x²
O

Outer Terms

Multiply the outermost terms: 2x × (−4) = −8x

2x × (−4) = −8x
I

Inner Terms

Multiply the innermost terms: 3 × x = 3x

3 × x = 3x
L

Last Terms

Multiply the last term of each binomial: 3 × (−4) = −12

3 × (−4) = −12
Combined Result
2x² 8x + 3x 12 = 2x² − 5x − 12

After all four products are computed, write them as a sum and combine like terms. The result is the expanded polynomial — in this example, 2x² − 5x − 12. This same process works on a TI-84 Plus, Casio fx-991EX, or any algebra calculator that supports step-by-step solving.

The Acronym

What Does FOIL Stand For?

FOIL is a mnemonic that maps each letter to a specific term pair in binomial multiplication.

FOIL stands for First, Outer, Inner, Last. Each letter tells you which two terms to multiply from the pair of binomials. The mnemonic ensures you never skip a product — a common source of errors when using the distributive property by hand.

F
First Multiply the first term of each binomial together
O
Outer Multiply the two outermost terms in the expression
I
Inner Multiply the two innermost terms in the expression
L
Last Multiply the last term of each binomial together

The reverse FOIL method works backward: given a trinomial like x² + 5x + 6, you find two binomials (x + 2)(x + 3) whose FOIL expansion produces the original. This reverse process is called factoring and connects directly to the quadratic formula for solving quadratic equations.

Worked Example

FOIL Calculator Step by Step

A complete worked example showing every step of the FOIL method with color-coded terms.

Expand (3x − 2)(4x + 1) using the FOIL method. This FOIL calculator online tool performs each multiplication and tracks every coefficient through the process — with step-by-step verification that avoids distribution errors.

F
First
3x × 4x
= 12x²
O
Outer
3x × 1
= 3x
I
Inner
(−2) × 4x
= −8x
L
Last
(−2) × 1
= −2
Final Answer
12x² + 3x 8x 2 = 12x² − 5x − 2

After computing all four products, combine like terms: 12x² + 3x − 8x − 2 simplifies to 12x² − 5x − 2. FOIL method examples like this appear across educational tools including Desmos, Khan Academy, Mathway, and Symbolab.

Special Patterns in FOIL

Difference of Squares
(a + b)(a − b) = a² − b²
Example
(x + 5)(x − 5)
Result: x² − 25
The outer and inner products cancel out, leaving only two terms.
Perfect Square Trinomial
(a + b)² = a² + 2ab + b²
Example
(x + 4)²
Result: x² + 8x + 16
The middle term is always twice the product of the two binomial terms.
Squaring a Difference
(a − b)² = a² − 2ab + b²
Example
(x − 3)²
Result: x² − 6x + 9
Same pattern as above, but the middle term is negative.
Tools

Explore Algebra Calculators

Choose from our specialized tools to expand, factor, and master algebraic equations step-by-step.

FAQ

Frequently Asked Questions

Common questions about the FOIL method, this calculator, and binomial multiplication.