🧮

FOIL Calculator – Multiply Two Binomials Step by Step

FOIL Calculator

Enter binomials without parentheses, e.g., 2x+3 or x-5

Enter two binomials and click "Multiply (FOIL)". The calculator shows each FOIL step and combines like terms.

Example: (2x+3)(4x+5) = 8x² + 22x + 15

The FOIL Calculator multiplies two binomials using the FOIL method – First, Outer, Inner, Last. It provides a complete step‑by‑step breakdown, making it easy to learn and verify algebra homework. Whether you're studying for an exam or checking your work, this tool ensures accuracy and builds understanding.

What is the FOIL Method?

FOIL is a mnemonic for multiplying two binomials: (a + b)(c + d). The steps are:
First: multiply the first terms a·c.
Outer: multiply the outer terms a·d.
Inner: multiply the inner terms b·c.
Last: multiply the last terms b·d.
Then combine like terms (usually the outer and inner produce x‑terms). The result is a quadratic expression.

How to Use This FOIL Calculator

  • Enter the first binomial (e.g., 2x+3) – no parentheses needed.
  • Enter the second binomial (e.g., 4x+5).
  • Click "Multiply (FOIL)".
  • View the simplified product and the four FOIL steps.

Why FOIL Matters

FOIL is essential for quadratic equations, factoring polynomials, and many real‑world applications like area calculations, projectile motion, and revenue modeling. Mastering FOIL builds a strong foundation for algebra and calculus.

Key Definitions for FOIL Binomial Expansion

FOIL Method Mnemonic
An acronym for First, Outer, Inner, Last representing the distributive multiplication order for two binomials $(a+b)(c+d)$.
Difference of Squares Pattern
The special product rule $(a+b)(a-b) = a^2 - b^2$ where linear terms cancel ($ad + bc = 0$).
Perfect Square Trinomial
The quadratic product resulting from squaring a binomial: $(a \pm b)^2 = a^2 \pm 2ab + b^2$.

FOIL Multiplication & Binomial Product Reference Table

Binomial PairFirst (F)Outer (O)Inner (I)Last (L)Simplified Quadratic ResultSpecial Pattern / Type
(x + 3)(x + 5)5x3x15x² + 8x + 15Standard Positive Binomials
(2x + 3)(4x + 5)8x²10x12x158x² + 22x + 15Binomials with Coefficients
(x - 2)(x + 4)4x-2x-8x² + 2x - 8Mixed Signs
(x - 6)(x - 2)-2x-6x12x² - 8x + 12Double Negative Terms
(x + 5)(x - 5)-5x5x-25x² - 25Difference of Squares (a² - b²)
(x + 4)² = (x+4)(x+4)4x4x16x² + 8x + 16Perfect Square Trinomial (a + b)²
(x - 4)² = (x-4)(x-4)-4x-4x16x² - 8x + 16Perfect Square Trinomial (a - b)²
(3x - 1)(2x + 7)6x²21x-2x-76x² + 19x - 7General Linear Binomials
General FOIL Formula

For any binomials (Ax + B)(Cx + D), the product is AC·x² + (AD + BC)·x + BD. Our calculator shows each component: First = A·C, Outer = A·D, Inner = B·C, Last = B·D. Then it adds Outer + Inner to get the x‑coefficient.

If the binomials have subtraction (e.g., x – 2), enter as x-2. The calculator automatically treats the constant as negative.

Step‑by‑Step Manual FOIL Examples

(x + 3)(x + 5): First: x·x = x²; Outer: x·5 = 5x; Inner: 3·x = 3x; Last: 3·5 = 15 → x² + 8x + 15

(2x - 1)(x + 4): First: 2x·x = 2x²; Outer: 2x·4 = 8x; Inner: (-1)·x = -x; Last: (-1)·4 = -4 → 2x² + 7x – 4

(x - 6)(x - 2): First: x²; Outer: -2x; Inner: -6x; Last: 12 → x² – 8x + 12

Use the calculator above to practice and verify any pair of binomials.

Common FOIL Mistakes and How to Avoid Them

One of the most frequent errors when using the FOIL method is forgetting to combine the Outer and Inner terms correctly. Remember that both are linear terms (x terms) and must be added together before writing the final result. Another common mistake is mishandling negative signs. For example, in (x - 3)(x - 4), the Outer product is x · (-4) = -4x, and the Inner product is (-3) · x = -3x, so their sum is -7x. A third error is forgetting to multiply coefficients: (2x)(3x) gives 6x², not 5x². Our calculator shows each step explicitly, helping you catch these mistakes.

Special Products You Should Know

Some binomial products appear so often that they have special names and shortcut formulas:
  • Difference of squares: (a + b)(a – b) = a² – b². Example: (x + 3)(x – 3) = x² – 9.
  • Perfect square trinomial (sum): (a + b)² = a² + 2ab + b². Example: (x + 5)² = x² + 10x + 25.
  • Perfect square trinomial (difference): (a – b)² = a² – 2ab + b². Example: (x – 4)² = x² – 8x + 16.
Our FOIL calculator works for any binomial, but recognising these patterns can speed up your mental math significantly.

Real‑World Applications of FOIL

FOIL is not just an abstract algebra tool – it appears in many practical situations:
  • Area problems: If a rectangular garden has length (x + 5) metres and width (x + 3) metres, its area is (x+5)(x+3) = x² + 8x + 15 square metres.
  • Physics (projectile motion): The height of an object thrown upward might be modelled as h(t) = (at + b)(ct + d).
  • Business revenue: If price is (p – 2) dollars and quantity sold is (p + 10), total revenue = (p-2)(p+10) = p² + 8p – 20.
  • Probability and statistics: Binomial expansions rely on FOIL for small powers.

Extending FOIL to Larger Polynomials

While FOIL only works for two binomials, the underlying principle – multiplying every term in the first expression by every term in the second – extends to any polynomials. For trinomials, you can use the distributive property (sometimes called the “box method” or “vertical multiplication”). Our calculator specialises in binomials, but understanding FOIL gives you a solid foundation for more complex polynomial multiplication.

The FOIL method is also a building block for factoring quadratic equations. If you have a quadratic like x² + 8x + 15, you can reverse FOIL to find its binomial factors (x + 3)(x + 5). This “reverse FOIL” is the core of solving many quadratic equations.

How to Teach FOIL to Beginners

When teaching FOIL, start with simple binomials like (x + 2)(x + 3) and physically write the four products. Use colour coding: First in red, Outer in blue, Inner in green, Last in purple. Emphasise that Outer and Inner are both “x terms” and must be added. Once the learner masters positive coefficients, introduce negative signs gradually. Our calculator’s step‑by‑step output is designed to mimic this pedagogical approach, making it an excellent self‑learning tool.

Use the interactive FOIL calculator above to experiment with your own binomials. You’ll see the full process each time, reinforcing the method through practice and immediate feedback.

Frequently Asked Questions about FOIL

What does FOIL stand for?
FOIL stands for First, Outer, Inner, Last – the order in which you multiply terms of two binomials. First: first terms. Outer: outer terms. Inner: inner terms. Last: last terms. Then combine like terms.
When do I use the FOIL method?
FOIL is used specifically for multiplying two binomials (expressions with two terms each, such as (ax + b)(cx + d)).
What if the binomials have negative signs?
The calculator handles negative signs automatically. For example, (x - 2)(x + 4) is entered as 'x-2' and 'x+4'. Negative products are preserved throughout.
Can I multiply binomials with x coefficients like 3x+2 and 4x-5?
Yes! The calculator supports integer and decimal coefficients, e.g. '3x+2' and '4x-5'.
What is the general FOIL formula?
The general formula is (ax + b)(cx + d) = ac·x² + (ad + bc)x + bd.
What is the Difference of Squares formula?
(a + b)(a - b) = a² - b². The Outer and Inner terms cancel out completely (ad + bc = 0).
What is a Perfect Square Trinomial?
(a + b)² = a² + 2ab + b² and (a - b)² = a² - 2ab + b².
How does FOIL connect to factoring quadratic equations?
FOIL is the forward multiplication process. Factoring a quadratic trinomial ax² + bx + c is 'reverse FOIL' to find its binomial roots.