Binomial Expansion Calculator

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.

Formula and steps
    Expanded polynomial

    ▼ See explanations and tips below ▼

    What Is Binomial Expansion?

    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:

    $$ (x+2)^3=x^3+6x^2+12x+8 $$

    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.


    Why Binomial Expansion Matters

    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:

    • Polynomial multiplication and simplification.
    • Pascal's triangle.
    • Binomial coefficients and combinations.
    • Exponent rules.
    • Polynomial degree and leading terms.
    • Pattern recognition in algebraic expressions.

    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.


    Key Terms to Know

    • Binomial: A polynomial with two terms, such as \(x+5\) or \(y-3\).
    • Expansion: Rewriting a factored or powered expression as a sum of terms.
    • Polynomial: A sum of terms made from coefficients and nonnegative integer powers of a variable.
    • Coefficient: The number multiplying a variable part. In \(6x^2\), the coefficient is \(6\).
    • Binomial coefficient: A number of the form \(\binom{n}{k}\), read as “\(n\) choose \(k\).” These are the coefficients that appear in binomial expansions before the constant powers are multiplied in.
    • Pascal's triangle: A triangular arrangement of binomial coefficients. Row \(n\) supplies the coefficients for a binomial raised to the power \(n\).
    • Term index \(k\): The counting position of a term in the binomial theorem, starting at \(0\) and ending at \(n\).
    • Polynomial degree: The highest power of the variable that appears in the polynomial after expansion.

    How the Binomial Theorem Works

    For a nonnegative integer exponent \(n\), the binomial theorem can be written as:

    $$ (x+a)^n=\sum_{k=0}^{n}\binom{n}{k}x^{n-k}a^k $$

    Each term has this form:

    $$ T_k=\binom{n}{k}x^{n-k}a^k $$

    where:

    • \(x\) is the variable term.
    • \(a\) is the constant term.
    • \(n\) is the exponent.
    • \(k\) is the term index, running from \(0\) to \(n\).
    • \(\binom{n}{k}\) is the binomial coefficient for that term.

    The binomial coefficient can be calculated with factorials:

    $$ \binom{n}{k}=\frac{n!}{k!(n-k)!} $$

    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:

    $$ x^5a^0,\ x^4a^1,\ x^3a^2,\ x^2a^3,\ xa^4,\ a^5 $$

    The Pascal coefficients for row \(5\) are:

    $$ 1,\ 5,\ 10,\ 10,\ 5,\ 1 $$

    So the full expansion pattern is:

    $$ (x+a)^5=x^5+5x^4a+10x^3a^2+10x^2a^3+5xa^4+a^5 $$

    When \(a\) is a specific number, each coefficient is simplified by multiplying the Pascal coefficient by the correct power of \(a\).


    Examples of Binomial Expansion in Practice

    Example 1: Expanding \((x+2)^3\)

    Start with the binomial theorem:

    $$ (x+a)^n=\sum_{k=0}^{n}\binom{n}{k}x^{n-k}a^k $$

    Here, \(a=2\) and \(n=3\). The Pascal row for \(n=3\) is:

    $$ 1,\ 3,\ 3,\ 1 $$

    Build each term:

    $$ \binom{3}{0}x^3(2)^0=x^3 $$
    $$ \binom{3}{1}x^2(2)^1=6x^2 $$
    $$ \binom{3}{2}x(2)^2=12x $$
    $$ \binom{3}{3}(2)^3=8 $$

    So:

    $$ (x+2)^3=x^3+6x^2+12x+8 $$

    Example 2: Using Pascal's Row for \((y+3)^4\)

    A different one-letter variable works the same way. For \((y+3)^4\), the Pascal row for \(n=4\) is:

    $$ 1,\ 4,\ 6,\ 4,\ 1 $$

    The powers of \(y\) decrease from \(4\) to \(0\), and the powers of \(3\) increase from \(0\) to \(4\):

    $$ (y+3)^4=y^4+4y^3(3)+6y^2(3^2)+4y(3^3)+3^4 $$

    Now simplify the numeric parts:

    $$ (y+3)^4=y^4+12y^3+54y^2+108y+81 $$

    Example 3: Constant Equal to Zero

    When \(a=0\), every term after the first contains a positive power of \(0\). For example:

    $$ (x+0)^4=x^4+4x^3\cdot 0+6x^2\cdot 0^2+4x\cdot 0^3+0^4 $$

    All terms after \(x^4\) become zero, so the expansion simplifies to:

    $$ (x+0)^4=x^4 $$

    This is why a full Pascal row can contain \(n+1\) coefficients while the simplified polynomial may show fewer visible nonzero terms.


    How to Interpret the Result

    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.


    Common Mistakes and Misconceptions

    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:

    $$ (x-1)^5=x^5-5x^4+10x^3-10x^2+5x-1 $$

    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.


    When to Use Binomial Expansion

    Use binomial expansion when you need to:

    • Expand an expression of the form \((x+a)^n\).
    • Check algebra homework involving powers of binomials.
    • Understand how Pascal's triangle supplies expansion coefficients.
    • Study the connection between combinations and polynomial coefficients.
    • Find the degree and terms of a polynomial produced by a binomial power.
    • Compare the original factored form with the expanded polynomial form.

    It is especially helpful when the exponent is large enough that repeated multiplication would be tedious.


    Limitations and Things to Keep in Mind

    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:

    • \((2x+3)^n\), where the variable term has a coefficient.
    • \((x+y)^n\), where the second term is symbolic.
    • \((x+\sqrt{2})^n\), where the constant is written as an expression rather than a numeric decimal.
    • \((x+a)^n\) with a negative, fractional, or very large exponent.
    • Multi-letter variables, Greek letters, subscripts, or full expressions as variables.

    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\).


    How to Use This Calculator

    1. Enter a single letter for the variable, such as \(x\) or \(y\).
    2. Enter the numeric constant \(a\). Negative and decimal constants are allowed when they are finite numbers.
    3. Enter a whole-number exponent \(n\) from \(0\) through \(20\).
    4. Review the expanded polynomial.
    5. Use the Pascal row to see the binomial coefficients for the selected exponent.
    6. Check the terms table to see how each term was constructed and simplified.
    7. Use the degree and term-count information to understand the structure of the result.

    Frequently Asked Questions

    What is the binomial theorem used for?

    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.


    Why does Pascal's triangle appear in binomial expansion?

    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.


    Why are there usually \(n+1\) terms?

    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.


    Can this calculator expand \((2x+3)^n\)?

    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.


    What happens when the constant is negative?

    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.


    Why does the exponent have to be a whole number?

    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.


    Sources and References