Skip to content
D DocNectar

Free Pascal's Triangle Calculator

Generate any row of Pascal's triangle, or every row from 0 up to n, as binomial coefficients C(n, k).

100% Free No Signup Works on all devices

Last updated September 24, 2026 · Report an error

Thanks for rating!

Pascal's triangle is a triangular array of binomial coefficients, where each entry is simply the sum of the two entries diagonally above it, with a 1 anchoring both edges of every row. Named after Blaise Pascal (though the pattern was documented by earlier mathematicians in India, Persia, and China centuries before him), it's a compact way to read off the coefficients of any binomial expansion (a+b)ⁿ, and it also encodes combinatorics directly — the k-th entry of row n equals C(n,k), the number of ways to choose k items from a set of n. It shows up in probability (binomial distribution probabilities), combinatorics coursework, and even in patterns related to fractals when coefficients are colored by parity (the Sierpiński triangle).

How it works

Enter the row number n (rows are numbered starting from 0). The calculator computes C(n, 0) through C(n, n) using the multiplicative binomial coefficient formula, C(n,k) = n!/(k!(n-k)!), and can optionally list every row from 0 up to n, letting you see the full triangle build up.

  1. Enter row number (n).
  2. Enter also show rows 0 through n.
  3. Click Calculate to see your results.

Examples

Row 4

[1, 4, 6, 4, 1] — the coefficients of (a+b)⁴, since C(4,0)=1, C(4,1)=4, C(4,2)=6, C(4,3)=4, C(4,4)=1.

Row 6

[1, 6, 15, 20, 15, 6, 1] — notice each interior entry is the sum of the two entries above it in row 5 ([1,5,10,10,5,1]), e.g. 15=5+10.

Common mistakes to avoid

  • Forgetting that row numbering starts at 0, so "row 4" has 5 entries, not 4.
  • Assuming the entries in row n are just n repeated — they follow the binomial coefficient pattern, not a simple linear sequence.
  • Miscounting when manually summing two entries from the row above to check a value — remember to align diagonally, not directly above.

Frequently asked questions

Row n gives the coefficients of (a+b)ⁿ: for row 4, (a+b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴, matching the row [1, 4, 6, 4, 1] exactly.
This mirrors the identity C(n,k) = C(n-1,k-1) + C(n-1,k), sometimes called Pascal's rule — choosing k items from n either includes a specific item (leaving C(n-1,k-1) ways to pick the rest) or excludes it (leaving C(n-1,k) ways).
Always exactly 2ⁿ — because setting a=b=1 in the binomial expansion (a+b)ⁿ makes every term equal to just its coefficient, and the sum collapses to (1+1)ⁿ=2ⁿ.
It's named for Blaise Pascal, who wrote an influential 17th-century treatise on it, but the pattern of binomial coefficients arranged this way was documented centuries earlier by Indian, Persian, and Chinese mathematicians.
Exactly n+1 entries, running from C(n,0) through C(n,n) — one more than the row number itself, since counting starts at 0.
Yes — each row reads the same forwards and backwards, since C(n,k) always equals C(n,n-k), a direct consequence of choosing k items being equivalent to choosing which n-k items to leave out.

Get new calculators and guides in your inbox

No spam — just new tools like Pascal's Triangle Calculator and practical guides.

Favorites