Multiplying Binomials Calculator - FOIL Method

Multiply two binomials of the form (ax + b)(cx + d) using the FOIL method and get a step-by-step expanded result instantly.

Multiplying Binomials Calculator
Enter the coefficients and constants of your two binomials to expand (ax + b)(cx + d) using the FOIL method.

First Binomial (ax + b)

Second Binomial (cx + d)

About the Multiplying Binomials Calculator

A binomial is a polynomial that contains exactly two terms joined by either addition or subtraction. Examples include (x + 3), (2y − 7), and (5a + 1). Multiplying two binomials produces a four-term intermediate expression that simplifies into a trinomial after combining like terms. This operation is one of the most foundational skills in algebra and underlies factoring, quadratic equations, and polynomial arithmetic throughout mathematics. The FOIL method is the standard mnemonic for multiplying two binomials. FOIL stands for First, Outer, Inner, Last — the four pairs of terms that must be multiplied together when expanding (ax + b)(cx + d). The First step multiplies the leading terms: ax × cx = acx². The Outer step multiplies the first term of the first binomial by the last term of the second: ax × d = adx. The Inner step multiplies the second term of the first binomial by the first term of the second: b × cx = bcx. The Last step multiplies the two trailing constants: b × d = bd. After collecting all four products, the Outer and Inner terms both contain x, so they combine into (ad + bc)x, yielding the standard trinomial acx² + (ad + bc)x + bd. FOIL is really just the distributive property applied twice. Writing ax(cx + d) + b(cx + d) makes the logic explicit: each term of the first binomial distributes across the entire second binomial. This perspective is important because it explains how to multiply longer polynomials — a trinomial multiplied by a binomial requires distributing all three terms of the trinomial over the binomial, producing six intermediate products rather than four. Several special products follow predictable patterns that are worth recognising. The difference of squares, (a + b)(a − b), always collapses to a² − b² because the outer and inner terms cancel. A perfect square trinomial, (a + b)², expands to a² + 2ab + b², where the middle term is twice the product of the two constants. Knowing these shortcuts speeds up mental arithmetic and makes factoring significantly easier, because factoring is simply the inverse of expansion. Practical applications of binomial multiplication arise across many fields. In geometry, if the length and width of a rectangle are both expressed as binomials, the area is found by multiplying them. In physics and engineering, kinematic equations for displacement and quadratic models for projectile paths often require expanding binomial expressions. In finance, compound-interest approximations for small rates use binomial expansion. Mastering this calculation builds the algebraic fluency needed for completing the square, working with the quadratic formula, and eventually tackling polynomial calculus.

Multiplying Binomials Examples

Click any row to see typical binomial products computed by the FOIL method.

ExpressionProductNotes
(x + 2)(x + 3)x² + 5x + 6Both constants positive; middle term = 3x + 2x
(2x − 4)(3x + 1)6x² − 10x − 4Mixed signs; watch the inner product
(x − 5)(x − 7)x² − 12x + 35Both constants negative; last term positive
(3x + 2)(x − 1)3x² − x − 2Non-unit leading coefficient

How to Use the Calculator

  1. Enter the coefficient of x in the first binomial as 'Value of a' (e.g., 1 for x + 3).
  2. Enter the constant term of the first binomial as 'Value of b' (e.g., 3 for x + 3).
  3. Enter the coefficient of x in the second binomial as 'Value of c' and its constant as 'Value of d'.
  4. Click Calculate to see the expanded polynomial and the four FOIL steps.
  5. Click Reset to clear all fields and start a new calculation.

Frequently Asked Questions

What does FOIL stand for?
FOIL is an acronym for First, Outer, Inner, Last. It describes the four pairs of terms you multiply when expanding two binomials: the first terms of each binomial, the outermost terms, the innermost terms, and the last terms of each binomial.
Can I use this calculator with negative numbers?
Yes. Enter negative values directly into any field. For example, to represent (x − 5), enter a = 1 and b = −5. The calculator handles negative coefficients and constants correctly, including sign changes in the FOIL steps.
What if the coefficient of x is 0?
Entering 0 for a or c effectively makes one factor a constant rather than a true binomial. The calculator still computes correctly and returns a simplified polynomial, which may be a monomial or constant depending on the inputs.
Why does multiplying two binomials give a trinomial?
Because the four FOIL products include two x-terms (the Outer and Inner results) that combine into a single term. The remaining x² and constant terms cannot combine, so you end up with three distinct terms: ax², bx, and a constant.
What is the difference of squares pattern?
When you multiply (a + b)(a − b), the outer and inner terms are +ab and −ab, which cancel out. The result is always a² − b², a two-term polynomial. Recognising this pattern lets you factor or expand very quickly without going through all four FOIL steps.