Example 1: Expanding \((x+2)^3\)
Start with the binomial theorem:
Here, \(a=2\) and \(n=3\). The Pascal row for \(n=3\) is:
Build each term:
So:
Use this Binomial Expansion Calculator to enter values, adjust options, and review results in a compact responsive workspace.
Results are calculated automatically as you enter data.
Binomial Expansion Calculator
Expand expressions in the form (x + a)^n using Pascal coefficients. Calculations update in real time.
Use a negative constant for forms like (x - 3)^n. Exponents 0 through 20 are supported.
▼ See explanations and tips below ▼
Binomial expansion is the process of rewriting a power of a two-term expression as a polynomial. A binomial has two terms, such as \(x+2\), \(y-1\), or \(x+a\). When a binomial is raised to a nonnegative whole-number power, the result can be written as a finite sum of terms.
For the form \((x+a)^n\), the binomial theorem gives a direct way to expand the expression without multiplying \((x+a)\) by itself over and over. Instead of doing repeated multiplication, you use a pattern of coefficients, powers of the variable, and powers of the constant.
For example, expanding \((x+2)^3\) gives:
The expanded polynomial is equivalent to the original expression. It is simply written in a different form that makes each power of the variable visible.
Binomial expansion is useful because repeated multiplication becomes slow and error-prone as the exponent grows. Squaring a binomial is manageable by hand, but expanding a fifth, tenth, or twentieth power is much easier with the binomial theorem.
The same idea also connects several important algebra and precalculus topics:
For students, binomial expansion helps explain where polynomial coefficients come from. For teachers, it gives a clear bridge between algebra and counting. For anyone checking algebra work, it provides a structured way to verify each term instead of relying on repeated distribution.
For a nonnegative integer exponent \(n\), the binomial theorem can be written as:
Each term has this form:
where:
The binomial coefficient can be calculated with factorials:
The pattern is easier to see if you track the powers. In each successive term, the power of the variable decreases by \(1\), while the power of the constant increases by \(1\).
For \((x+a)^5\), the powers follow this structure:
The Pascal coefficients for row \(5\) are:
So the full expansion pattern is:
When \(a\) is a specific number, each coefficient is simplified by multiplying the Pascal coefficient by the correct power of \(a\).
Start with the binomial theorem:
Here, \(a=2\) and \(n=3\). The Pascal row for \(n=3\) is:
Build each term:
So:
A different one-letter variable works the same way. For \((y+3)^4\), the Pascal row for \(n=4\) is:
The powers of \(y\) decrease from \(4\) to \(0\), and the powers of \(3\) increase from \(0\) to \(4\):
Now simplify the numeric parts:
When \(a=0\), every term after the first contains a positive power of \(0\). For example:
All terms after \(x^4\) become zero, so the expansion simplifies to:
This is why a full Pascal row can contain \(n+1\) coefficients while the simplified polynomial may show fewer visible nonzero terms.
The expanded polynomial is the simplified polynomial form of the binomial you entered. It should represent the same algebraic value as the original expression, but written as a sum of powers of the selected variable.
The Pascal row shows the binomial coefficients before they are multiplied by powers of the constant. For example, the row \(1, 4, 6, 4, 1\) gives the coefficient pattern for any fourth power of a binomial, but the final simplified coefficients depend on the value of \(a\).
The terms table is useful because it separates the construction of each term from the simplified term. This helps you see whether a coefficient came from Pascal's triangle, from a power of the constant, or from both.
The degree indicates the highest power of the variable in the expansion. For \((x+a)^n\), the degree is generally \(n\). When \(n=0\), the result is the constant \(1\), so it is treated as a degree \(0\) constant case.
The visible term count may be smaller than \(n+1\) when some simplified coefficients are algebraically zero. This commonly happens when \(a=0\). If a nonzero decimal input would make a term too small for the browser's number range, the calculator reports a precision/range error and does not publish a partial expansion.
One common mistake is confusing Pascal coefficients with final simplified coefficients. In \((x+2)^3\), the Pascal row is \(1,3,3,1\), but the final coefficients are \(1,6,12,8\) because the powers of \(2\) must also be multiplied in.
Another common mistake is entering a full variable term such as \(2x\) when the intended form is only \((x+a)^n\). A binomial like \((2x+3)^4\) can still be expanded with the general binomial theorem, but it is not the same input form as \((x+3)^4\).
Negative constants also require careful sign handling. In \((x-1)^5\), the powers of \(-1\) alternate between positive and negative values:
A fractional or negative exponent is another source of confusion. The finite polynomial form of the binomial theorem applies when \(n\) is a nonnegative integer. Other exponent types belong to binomial series topics and may not produce a finite polynomial.
Rounding can also matter when decimal constants are used. The algebraic formula defines the expansion, but displayed decimal coefficients may be formatted to a readable precision.
Use binomial expansion when you need to:
It is especially helpful when the exponent is large enough that repeated multiplication would be tedious.
The calculator is designed for binomials of the form \((x+a)^n\), where the variable term has coefficient \(1\) and the second term is a numeric constant. It is not meant for every possible binomial form.
It does not support expressions such as:
The exponent is limited to whole numbers from \(0\) through \(20\). This keeps the expansion finite, readable, and practical for a calculator interface.
Decimal constants are accepted when they are valid finite numbers, but decimal arithmetic may be displayed with rounding. Values are formatted to a readable precision, and extremely large non-finite results are blocked rather than displayed as invalid output. Likewise, if a nonzero decimal constant or one of its terms is below the browser's numerical range, the calculator reports a precision/range error and does not publish a partial expansion.
A coefficient of \(1\) or \(-1\) may be hidden when a variable part is present. For example, \(1x^3\) is normally written as \(x^3\), and \(-1x^3\) is normally written as \(-x^3\).
The binomial theorem is used to expand powers of binomials without multiplying every factor by hand. It gives a direct formula for each term in the expansion using binomial coefficients, variable powers, and constant powers.
Each row of Pascal's triangle contains the binomial coefficients for a matching exponent. Row \(3\) gives the coefficients for a third power, row \(4\) gives the coefficients for a fourth power, and so on.
The term index \(k\) runs from \(0\) through \(n\), which creates \(n+1\) possible terms. Some terms may disappear from the simplified polynomial only when their coefficients are algebraically zero. If a nonzero term is outside the browser's numerical range, the calculator reports a precision/range error and does not publish a partial expansion.
No. This calculator is for the specific form \((x+a)^n\), where the variable term has coefficient \(1\). To expand \((2x+3)^n\), you need the more general binomial theorem with the full first term treated as one part of the binomial.
A negative constant affects signs through the powers of \(a\). Even powers of a negative constant are positive, while odd powers are negative, so signs may alternate in the expanded polynomial.
A nonnegative whole-number exponent produces a finite polynomial expansion. Negative or fractional exponents are related to binomial series, which are a different topic and may require convergence conditions instead of producing a finite polynomial.