Binomial Expansion Calculator: Unlocking (a+b)^n
ByMuhammad Ali•Founder of KruskalCode
16:55
6 min read

Have you ever faced an expression like (x + y)^5 and wondered how to expand it without multiplying everything out by hand? That's where binomial expansion comes in! It's a powerful method in algebra for expanding expressions that consist of two terms raised to a power. Our Binomial Expansion Calculator is here to make this process straightforward, helping you understand the underlying principles of the Binomial Theorem.
Explanation
The Binomial Theorem provides a systematic way to expand any binomial (a + b) raised to a non-negative integer power 'n'. Instead of tedious multiplication, the theorem uses a formula involving binomial coefficients and powers of 'a' and 'b'. These coefficients are the same numbers you'd find in Pascal's Triangle, making the expansion process much more predictable and manageable. Understanding this theorem is crucial for various topics in algebra, calculus, and probability.
Formula
(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k Where:
\( \binom{n}{k} \) is the binomial coefficient, calculated as \( \frac{n!}{k!(n-k)!} \)
'n' is the power to which the binomial is raised (a non-negative integer)
'k' is the term index, ranging from 0 to 'n'Example
Let's walk through an example to see the Binomial Expansion Calculator in action. Suppose you need to expand (3x - 2)^4. Here, 'a' is 3 (representing 3x), 'b' is -2, and 'n' is 4. Using the formula, the expansion would look like this: \( \binom{4}{0}(3x)^4(-2)^0 + \binom{4}{1}(3x)^3(-2)^1 + \binom{4}{2}(3x)^2(-2)^2 + \binom{4}{3}(3x)^1(-2)^3 + \binom{4}{4}(3x)^0(-2)^4 \) Calculating each term: \( 1(81x^4)(1) + 4(27x^3)(-2) + 6(9x^2)(4) + 4(3x)(-8) + 1(1)(16) \) \( = 81x^4 - 216x^3 + 216x^2 - 96x + 16 \) To get this result with our calculator, you would simply enter '3' for 'Coefficient a', '-2' for 'Coefficient b', and '4' for 'Power n'. The tool will then display the full expanded polynomial.
How to use the related calculator
Using the Binomial Expansion Calculator is straightforward. First, identify the 'a' and 'b' coefficients from your binomial expression (a + b)^n. For example, if you have (5x + 7)^3, 'a' would be 5 and 'b' would be 7. Then, identify the power 'n', which is 3 in this case. Enter these values into the respective input fields: 'Coefficient a', 'Coefficient b', and 'Power n'. Click 'Calculate' or similar, and the tool will instantly provide the fully expanded form of your binomial, showing each term with its correct coefficient and variable power.
Try the related calculator
Open toolFAQ
What is binomial expansion?
Binomial expansion is a method for expanding algebraic expressions that are powers of binomials (expressions with two terms), such as (x + y)^n. The Binomial Theorem provides a formula to find each term in the expanded form without direct multiplication.
How does the Binomial Theorem work?
The Binomial Theorem uses binomial coefficients, often found in Pascal's Triangle, to determine the numerical part of each term. For an expression (a + b)^n, the terms follow a pattern where the power of 'a' decreases from 'n' to 0, and the power of 'b' increases from 0 to 'n'.
Can I use this calculator for negative or fractional powers?
Our calculator is designed for non-negative integer powers ('n'). While the binomial theorem can be extended to negative or fractional powers using infinite series, this tool focuses on the standard finite expansion taught in school algebra.
Related articles

About the author
Muhammad Ali. Muhammad Ali is a full-stack developer and founder of KruskalCode. He builds SaaS platforms and automation systems with React and Laravel, and helps teams ship fast, scalable tools.
Need a custom calculator, dashboard, or automation workflow? Reach out to KruskalCode.