Life Calculator
MAKE THE FORMULA CLEAR

Binomial expansion and coefficient calculator

Expand an integer binomial (ax+b) to a non-negative power and find a selected coefficient exactly.

Start with your own numbers

Editable example

An example is filled in. Replace it with your own data to calculate.

Enter integer a, b and n for (ax+b)ⁿ, then choose the power of x to inspect.

Loading calculator…

Enter an integer from minus 999 through 999 as the coefficient multiplying x.
Enter an integer from minus 999 through 999; a negative value represents subtraction.
Choose a non-negative integer from zero through twelve for the expansion power.
Choose the power of x whose coefficient you need, from zero through the expansion power.

Results update when inputs are complete. A plan is kept only when you save it. Inputs and results are not uploaded.

Saved plans →

Saved in this browser. Before changing devices, export a backup from My tools.

Example result

Expanded expression

8x³ + 36x² + 54x + 27

Only integer coefficients and powers from 0 to 12 are supported. Zero terms are omitted but the selected coefficient is shown.

Coefficient of selected power36
Coefficients from highest power to constant8、36、54、27
Binomial coefficients from highest power to constant1、3、3、1

Worked steps

  1. Use the binomial theorem to calculate each term from the highest power.
  2. Each coefficient is the binomial coefficient multiplied by the corresponding powers of a and b.
  3. Combine nonzero terms; a missing selected power has coefficient zero.

Use integer a and b between −999 and 999 and an integer n from 0 to 12. The selected power cannot exceed n. Coefficients are exact integers; zero terms are omitted and a selected zero coefficient is shown as zero. If a, b and n are all zero, the expression is undefined. Fractions, decimals, negative powers, more than two terms and arbitrary expression parsing are not supported.

Method and scope

Coefficients are computed exactly using integers. Missing powers have a coefficient of zero.

Only integer a and b and non-negative powers through 12 are supported; an all-zero base to power zero is undefined.

References:OpenStax: Binomial theorem、National Central University: combinations and the binomial theorem

Purpose

Expand an expression of the form (ax+b)ⁿ and find the coefficient of a selected power of x.

Inputs

Enter integer a and b, choose a non-negative power n, and specify which x power to inspect.

Formula

For each k from zero to n, multiply C(n,k) by a^(n-k) and b^k to obtain the coefficient of x^(n-k).

Example

For (2x+3)³ the result is 8x³ + 36x² + 54x + 27, and the coefficient of x² is 36.

Reading the result

The full expression omits zero terms. A selected power with no term is reported as coefficient zero.

Limits

Inputs are limited to integers and n at most 12; fractions, negative exponents and arbitrary expression parsing are not supported.

Keep it handy for next time

Add Binomial expansion and coefficient calculator to your home screen

This icon opens this tool. Confirm installation in your browser.

  1. iPhone: Open in Safari, tap Share → Add to Home Screen, then confirm.
  2. Android: Open in Chrome and choose Install app or Add to Home screen from the menu.
  3. In an in-app browser such as LINE or Facebook, use its menu to open the page in Safari or Chrome first.

Browser options vary. A shortcut does not provide cross-device synchronization, and an installed app may have separate storage. Export a backup from My tools first. The first load requires a connection.

Checking offline data.