Audited 31 Jul 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Multiplying Binomials Calculator

Expand (ax + b)(cx + d) into ac x² + (ad + bc)x + bd. Enter the x coefficient and constant of each bracket to get all three coefficients of the product.

Multiplying Binomials Calculator

x^2 coefficient
8
The coefficient of x² in the expanded product, equal to a × c.
x coefficient
2
Constant term
-15
Model scope
Exact distributive expansion of two real-coefficient binomials; it does not factor higher-degree expressions or simplify symbolic coefficients.

Background.

Every product of two binomials comes down to four multiplications. In (ax + b)(cx + d), each term of the first bracket has to meet each term of the second: ax with cx, ax with d, b with cx, and b with d. Students learn the order as FOIL — First, Outer, Inner, Last — and teachers often draw it as a rectangle cut into four pieces whose areas add up to the whole. Either way the result is a quadratic: ac x² from the first pair, bd from the last, and a middle term built from the two cross products.

That middle term is where most mistakes happen, because it is the only place two pieces combine and the only place signs can cancel. In (x + 3)(x − 3) the outer and inner products are −3x and +3x, so the middle term vanishes and the answer is x² − 9. In (x + 3)² they are both +3x, and forgetting them produces the wrong x² + 9 instead of x² + 6x + 9.

Enter the four numbers that define the brackets — the coefficient of x and the constant for each — and the page returns the three coefficients of the expanded quadratic. Negative values and decimals are both allowed. It expands only: it does not factor, multiply longer polynomials or work with letters in place of the coefficients.

What is multiplying binomials calculator?

Multiplying two binomials means applying the distributive law twice so that the product (ax + b)(cx + d) is written as a single polynomial in standard form, ac x² + (ad + bc)x + bd. Here a and c are the coefficients of x in each bracket and b and d are the constant terms, all real numbers. The three outputs are the coefficient of x², the coefficient of x and the constant term of that expanded quadratic.

How to use this calculator.

  1. Write each bracket as (number × x + constant). For (x − 4) that means 1 and −4; for (3 − 2x), reorder it as (−2x + 3), giving −2 and 3.
  2. Enter the first bracket's values as a and b and the second bracket's as c and d. Fractions go in as decimals, such as 0.5 for ½.
  3. Read the three coefficients and assemble the answer as (x² coefficient)x² + (x coefficient)x + constant, writing any negative coefficient as a subtraction.
  4. To check by hand, substitute x = 1: the original brackets and the expanded quadratic must give the same value.

The formula.

(ax+b)(cx+d) = ac x^2 + (ad+bc)x + bd

Distributing the first bracket over the second gives ax(cx + d) + b(cx + d) = acx² + adx + bcx + bd. The two middle products, adx (outer) and bcx (inner), are like terms, so they add to (ad + bc)x. The result has three coefficients: ac for x², ad + bc for x and bd for the constant. Only the middle coefficient mixes the two brackets, which is why it alone can come out as zero, as in (x + 3)(x − 3) = x² − 9. A useful identity hides in the arithmetic: the outer and inner products multiply to the same value as the first and last, (ad)(bc) = (ac)(bd), and that is what the ac method of factoring exploits in reverse. If a or c is zero, one bracket is only a constant and the product is linear rather than quadratic.

A worked example.

Example

Expand (2x + 3)(4x − 5), so a = 2, b = 3, c = 4 and d = −5. First: 2x × 4x = 8x². Outer: 2x × (−5) = −10x. Inner: 3 × 4x = 12x. Last: 3 × (−5) = −15. The outer and inner terms combine to −10x + 12x = 2x, so the product is 8x² + 2x − 15 — an x² coefficient of 8, an x coefficient of 2 and a constant of −15. Substituting x = 1 confirms it: (2 + 3)(4 − 5) = 5 × (−1) = −5, and 8 + 2 − 15 = −5. The brackets also give away the roots of the quadratic: 2x + 3 = 0 at x = −1.5 and 4x − 5 = 0 at x = 1.25.

a2
b3
c4
d-5

Frequently asked questions.

What does FOIL stand for, and when does it stop working?
First, Outer, Inner, Last — the four products you form when multiplying two binomials. It is only a checklist for distributing every term of one bracket over every term of the other. It covers two-term brackets alone; once either factor has three or more terms you need every cross product, and FOIL no longer lists them all.
Why does (x + 3)(x − 3) have no x term?
The outer and inner products are equal and opposite: x × (−3) = −3x and 3 × x = 3x, so they cancel. Any product of the form (ax + b)(ax − b) gives a²x² − b², the difference of two squares. Entering 1, 3, 1 and −3 returns an x coefficient of 0.
Why is (x + 3)² not equal to x² + 9?
Squaring a binomial means multiplying it by itself, so the outer and inner products are both 3x and add to 6x: (x + 3)² = x² + 6x + 9. Dropping that middle term is the most common expansion error. In general (ax + b)² = a²x² + 2abx + b²; enter the same bracket twice to see it.
How do I enter a bracket written like (5 − x)?
Rewrite it with the x term first: (5 − x) is (−1x + 5), so its x coefficient is −1 and its constant is 5. Reordering terms inside a bracket does not change its value, only how you read off the two numbers. A bracket with no constant, such as (3x), has a constant of 0.
How does expanding relate to factoring a quadratic?
Factoring runs the expansion backwards. For 8x² + 2x − 15 you look for two numbers that multiply to 8 × (−15) = −120 and add to 2; they are −10 and 12, the outer and inner products from the original brackets. Splitting the middle term with them, 8x² − 10x + 12x − 15, regroups to (2x + 3)(4x − 5).
Where are the roots of the expanded quadratic?
They are the values of x that make either bracket zero: x = −b/a from the first and x = −d/c from the second. For (2x + 3)(4x − 5) that is x = −1.5 and x = 1.25, and substituting either into 8x² + 2x − 15 gives exactly zero.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
(ax+b)(cx+d) = ac x^2 + (ad+bc)x + bd
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon