The coefficients, not a rounded decimal guess

Binomial Expansion Calculator

(2x + 3)² is 4x² + 12x + 9. Each coefficient is a combination times a power of 2 times a power of 3. The page stops at the 6th power so every term can sit on the page. FOIL is the other job: (a + b)(c + d) is four products. (2 + 3)(4 + 5) is 8 + 10 + 12 + 15 = 45. That mode is not a power. It is two different binomials.

In the power mode, a is the coefficient of x.

x² coefficient

4.0000

x coefficient
12.0000
Constant
9.0000

Row of Pascal’s triangle for (x + 1)^n

These are C(n, k) when a = 1 and b = 1.

nCoefficients of x^n … x^0
01
11, 1
21, 2, 1
31, 3, 3, 1
41, 4, 6, 4, 1
51, 5, 10, 10, 5, 1
61, 6, 15, 20, 15, 6, 1

Combinations, or four products

  1. For (ax + b)^n, the coefficient of x^k is C(n, n−k) × a^k × b^(n−k). The page labels that coefficient by the power of x.
  2. C(n, k) is the combination n! ÷ (k! (n−k)!), built by multiplying, for n up to 6.
  3. FOIL: a×c, a×d, b×c, b×d, and their sum.

Worked examples

(2x + 3)²

4x² + 12x + 9.

4.0000 · ≈ 12.0000

(2 + 3)(4 + 5)

The four products add to 45.

45.0000 · ≈ 8.0000

Good for practice

  • Checking (2x + 3)² before you move on
  • Reading the x³ term of a cube without a table
  • Multiplying (a + b)(c + d) when the four products matter

Do not treat as an official score

  • FOILing a power. (a + b)³ is not four terms
  • Dropping the sign on b when the binomial is x − 3
  • Expecting a term past the power you typed

Frequently asked questions

Why does a higher power hide some lines?

A square has no x³ term. Blank lines are powers above the one you typed.

Is FOIL the same as the binomial theorem?

FOIL is the n = 1 case of multiplying two binomials that are not copies of each other. The power mode expands one binomial raised to n.

Can n be 7?

Not here. The form stops at 6 so the coefficients stay on the page. The same rule continues; this UI does not.

What if b is negative?

Type the minus. The constant and the odd or even powers pick up that sign.

Sources and updates

Last reviewed .

  • Binomial theorem – Coefficient of x^k in (ax+b)^n is C(n, n−k) a^k b^(n−k), n ≤ 6. FOIL is the four products.

Related calculators