Beginner

Multiplying Binomials Calculator — FOIL Method

Expand (ax + b)(cx + d) using the FOIL method — First, Outer, Inner, Last — and combine like terms to get the trinomial result in seconds.
First binomial is (ax + b)
Second binomial is (cx + d)
Expanded product
x² + x - 6
x² coefficient
1
x coefficient
1
Constant term
-6
FOIL cross-terms sum
1
FOIL method step-by-step
1

First — leading terms × leading terms

(1x)(1x) = 1x²
2

Outer — first leading × second constant

(1x)(-2) = -2x
3

Inner — first constant × second leading

(3)(1x) = 3x
4

Last — constant × constant

(3)(-2) = -6
5

Combine like x-terms (Outer + Inner)

-2x + 3x = 1x
=

Expanded result

x² + x - 6
Step by step
  1. 1

    First: (ax)(cx) = acx²

    1 × 1 = 1
  2. 2

    Outer: (ax)(d)

    1 × -2 = -2
  3. 3

    Inner: (b)(cx)

    3 × 1 = 3
  4. 4

    Last: (b)(d)

    3 × -2 = -6
  5. 5

    Linear coefficient: outer + inner

    -2 + 3 = 1
    The two x-terms are like terms and combine into a single coefficient.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Multiply (ax + b)(cx + d) with FOIL: First = acx², Outer = adx, Inner = bcx, Last = bd. Combine the outer and inner x-terms to get (ad + bc)x. Result: acx² + (ad + bc)x + bd. The middle coefficient is the sum of the two cross products; the constant is the product of the two constants.

Formula
(ax + b)(cx + d) = acx² + (ad + bc)x + bd
How this is calculated

The FOIL method is a mnemonic for applying the distributive property when multiplying two binomials. Each letter stands for one of four term-pairs to multiply: First (the two leading terms ax and cx), Outer (the outermost pair ax and d), Inner (the innermost pair b and cx), and Last (the two constants b and d). Their four products are F = acx², O = adx, I = bcx, and L = bd.

After computing the four partial products, the two x-terms O and I are like terms and combine as (ad + bc)x. The final expanded form is therefore acx² + (ad + bc)x + bd — a trinomial with at most three distinct terms. If ac = 0 the quadratic term vanishes; if ad + bc = 0 the linear term cancels; if bd = 0 there is no constant. Any of the four coefficients can be negative or zero.

For the special case a = c = 1, the result is x² + (b + d)x + bd, so the middle coefficient equals the sum of the two constants and the constant term equals their product. This identity is the basis for factoring monic quadratics: given x² + px + q, find two numbers that add to p and multiply to q, and the binomials are (x + r)(x + s) where r + s = p and r · s = q.

Frequently asked questions

FOIL is a mnemonic for the four products that arise when you multiply two binomials: First (leading terms), Outer (outermost terms), Inner (innermost terms), Last (constant terms). Adding all four and combining like terms gives the complete expansion.

Yes. For the perfect square (x + b)², set a = c = 1 and d = b — the result is x² + 2bx + b². For the difference of squares (x + b)(x − b), set a = c = 1 and d = −b — the linear term cancels and you get x² − b².

For a monic trinomial x² + px + q, find two numbers r and s where r + s = p and r · s = q. Then x² + px + q = (x + r)(x + s). Set a = c = 1, b = r, d = s in this calculator to verify the expansion matches your original trinomial.

Also known as

multiplying binomials foil method
foil method calculator
expand two binomials
binomial multiplication calculator
ax plus b times cx plus d expand
algebra foil expansion
binomial product to trinomial

APA

TG we-Calculate Editorial Team. (2026). Multiplying Binomials Calculator — FOIL Method [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/multiplying-binomials-calculator

Chicago

TG we-Calculate Editorial Team. "Multiplying Binomials Calculator — FOIL Method." TG we-Calculate. 2026. https://we-calculate.com/calculator/multiplying-binomials-calculator.

IEEE

TG we-Calculate Editorial Team, "Multiplying Binomials Calculator — FOIL Method," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/multiplying-binomials-calculator

BibTeX

@misc{wecalculate_multiplying_binomials_calculator, title = {Multiplying Binomials Calculator — FOIL Method}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/multiplying-binomials-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?