Pascal's Triangle and Binomial Expansion

Show Pascal's triangle up to row n and the full expansion of (a + b)ⁿ.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Pascal's Triangle and Binomial Expansion and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Pascal's Triangle and Binomial Expansion does

    Show Pascal's triangle up to row n and the full expansion of (a + b)ⁿ.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter n. The calculator lists the rows of Pascal's triangle, the sum of row n (2ⁿ) and the expansion of (a + b)ⁿ with its binomial coefficients.

The triangle

Each entry is the sum of the two above it. Row n holds C(n, 0) … C(n, n). The sum of row n is 2ⁿ.

Binomial theorem

(a + b)ⁿ = Σ C(n, k) aⁿ⁻ᵏ bᵏ. So (a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴. Rows up to n = 30 are shown.

Worked example

Row 8 is 1 8 28 56 70 56 28 8 1; it sums to 256 = 2⁸.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

Where does the 70 come from?

C(8, 4) = 70, the middle of row 8.

Does the row count start at 0?

Yes, the top row is row 0.

What is the maximum n?

30.

Can I get exact large coefficients?

Use the combinations calculator for any n.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages