Pascal's Triangle Calculator tool

Pascal's Triangle Calculator

Pascal's triangle arranges binomial coefficients in a triangular grid.

What is a Pascal's triangle calculator?

A Pascal's triangle calculator prints row n of Pascal's triangle, the list of binomial coefficients C(n,0) through C(n,n). Row 5 reads 1, 5, 10, 10, 5, 1, matching the coefficients in (a + b)^5. It also shows that the row sum equals 2^n because it counts all subsets of an n-element set.

How to use the Pascal's Triangle Calculator

  1. Enter row index n (0 through 30 on this tool).
  2. Read the full coefficient list for that row.
  3. Note the row sum displayed as 2^n.
  4. Use entry k as C(n,k) for binomial problems.
  5. Try smaller n first to see the triangle pattern.

About this calculator

Pascal's triangle arranges binomial coefficients in a triangular grid. Row 5 reads 1, 5, 10, 10, 5, 1 — the coefficients in (a + b)⁵. Each number is the sum of the two above it.

Enter n to print the full row and its sum. The sum is always 2ⁿ because it counts all subsets of an n-element set.

Use this for binomial theorem homework and probability setups. For choosing r from n directly try the [[permutation-combination]] calculator. For n! values see the [[factorial]] calculator. For powers of two check the [[exponent]] calculator.

Formula for Pascal's triangle entries

C(n,k) = n! / (k! × (n − k)!)
Row sum: C(n,0) + … + C(n,n) = 2^n
Recurrence: C(n,k) = C(n−1,k−1) + C(n−1,k)
  • n is the row index starting at row 0
  • k is the column position from 0 to n
  • C(n,k) is the binomial coefficient at that cell

Pascal's triangle example: row 5 coefficients

Find row 5. Each entry is C(5,k) for k = 0 to 5. C(5,0) = 1, C(5,1) = 5, C(5,2) = 10, C(5,3) = 10, C(5,4) = 5, and C(5,5) = 1. The row is 1, 5, 10, 10, 5, 1. These are exactly the coefficients in (a + b)^5.

Add the row: 1 + 5 + 10 + 10 + 5 + 1 = 32, which equals 2^5. Enter n = 5 in the calculator. You should see that row and sum 32. Row 4 is 1, 4, 6, 4, 1 with sum 16 = 2^4, which you can use to cross-check the recurrence rule that each interior number is the sum of the two above it.

Row 0 is the single 1 at the triangle apex; row n always begins and ends with 1 no matter how large n is. Row 4 coefficients 1, 4, 6, 4, 1 expand (a+b)^4. Interior 6 equals 3 plus 3 from row 3. For probability, C(5,2) counts two-card hands from five distinct cards without order. Row 6 ends with 1, 6, 15, 20, 15, 6, 1 for quick checks.

Common uses

  • Print row n for binomial expansion homework
  • Look up C(n,k) without a formula sheet
  • Verify row sums equal 2ⁿ
  • Connect triangle entries to probability problems

Frequently asked questions

What is row 5 of Pascal's triangle?

1, 5, 10, 10, 5, 1. These are C(5,0) through C(5,5), the coefficients of (a+b)⁵.

Why does each row sum to 2ⁿ?

Setting a = b = 1 in (a+b)ⁿ gives 2ⁿ, and the coefficients add to the same value.

How is Pascal's triangle related to combinations?

Entry k in row n equals C(n,k) — the number of k-subsets from n items.

What is the largest n supported?

Row index is capped at 30 so numbers stay readable on screen. Larger n still grows quickly — row 30

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026