Expand (ax + b)n Instantly
Enter values for a, b, and n. This calculator expands the binomial using the binomial theorem and shows each term.
What this binomial theorem expansion calculator does
This page helps you expand expressions of the form (ax + b)n quickly and correctly. Instead of multiplying the expression by itself repeatedly, the calculator applies binomial coefficients to generate every term in one pass. It is useful for algebra homework, exam review, and checking your manual work.
Binomial theorem formula
The binomial theorem states:
(u + v)n = Σk=0n C(n,k)un-kvk
For this calculator, we set u = ax and v = b. So:
(ax + b)n = Σk=0n C(n,k)an-kbkxn-k
Key ideas behind the expansion
- C(n,k) is the binomial coefficient, often read as “n choose k.”
- The exponent of x starts at n and decreases to 0.
- The power of b starts at 0 and increases to n.
- A degree-n binomial expansion has exactly n + 1 terms.
How to use this calculator
- Enter the value of a (the coefficient in front of the variable).
- Enter the value of b (the constant term).
- Enter a non-negative integer for n.
- Optionally change the variable symbol (for example, x, t, or y).
- Click Calculate Expansion.
The output includes the final polynomial and a term-by-term table showing coefficient and power for each term.
Worked examples
Example 1: (x + 1)5
Coefficients from Pascal’s triangle row 5 are 1, 5, 10, 10, 5, 1. So:
(x + 1)5 = x5 + 5x4 + 10x3 + 10x2 + 5x + 1
Example 2: (2x - 3)4
This introduces both scaling and sign changes:
(2x - 3)4 = 16x4 - 96x3 + 216x2 - 216x + 81
Common mistakes to avoid
- Forgetting that a negative constant changes signs across terms depending on odd/even powers.
- Using the wrong binomial coefficient row.
- Dropping powers on either the variable or the constant during simplification.
- Confusing (ax + b)n with a(x + b)n, which are not equivalent.
Why this tool is useful
A binomial expansion calculator saves time and reduces arithmetic errors while strengthening your understanding of algebraic structure. It is especially handy when practicing for SAT/ACT algebra sections, high-school polynomial units, pre-calculus, and early calculus courses.
FAQ
Can I use decimal values for a and b?
Yes. Decimal inputs are supported. Integer inputs are shown exactly, while decimal results are displayed numerically.
What values of n are allowed?
This calculator accepts non-negative integers from 0 to 80.
Does this work for expressions like (x + y)n?
This specific tool expands one-variable forms (ax + b)n. For two-variable symbolic expansions, the same theorem still applies, but term formatting includes both variables.