Pascal's Triangle Calculator

Build Pascal's triangle row by row, list any single row, or look up one entry C(n, k) exactly, with row sums and the rule that links each entry to the two above it.

Row 101 10 45 120 210 252 210 120 45 10 1

Up to row 30.

Row 10

1 10 45 120 210 252 210 120 45 10 1

  • Rows shown11
  • Sum of row 10 (2¹⁰)1,024
Pascal's triangle, rows 0–10
Row nEntries C(n, 0) … C(n, n)Row sum 2ⁿ
011
11 12
21 2 14
31 3 3 18
41 4 6 4 116
51 5 10 10 5 132
61 6 15 20 15 6 164
71 7 21 35 35 21 7 1128
81 8 28 56 70 56 28 8 1256
91 9 36 84 126 126 84 36 9 1512
101 10 45 120 210 252 210 120 45 10 11,024

Row n lists the binomial coefficients of (x + y)ⁿ. Values are exact.

How this was calculated

Each row starts and ends with 1.

Every inner entry is the sum of the two entries above it: C(n, k) = C(n−1, k−1) + C(n−1, k).

Example: C(10, 1) = C(9, 0) + C(9, 1) = 1 + 9 = 10.

How the triangle is built

Rows and positions are numbered from 0. Each row starts and ends with 1, and every inner entry is the sum of the two entries above it: C(n, k) = C(n − 1, k − 1) + C(n − 1, k).

The entry in row n, position k is the binomial coefficient C(n, k) = n! ÷ (k! × (n − k)!). It is the number of ways to choose k items from n, and the coefficient of xᵏyⁿ⁻ᵏ in (x + y)ⁿ.

Worked example

Row 5 is 1, 5, 10, 10, 5, 1, so (x + y)⁵ = x⁵ + 5x⁴y + 10x³y² + 10x²y³ + 5xy⁴ + y⁵. Its entries add to 2⁵ = 32.

C(52, 5) = 2,598,960 is the number of different five-card hands from a 52-card deck.

Useful patterns

Each row reads the same forwards and backwards, because C(n, k) = C(n, n − k). Row n adds up to 2ⁿ. The second diagonal holds the counting numbers, the third holds the triangular numbers, and adding along the shallow diagonals gives the Fibonacci numbers.

How to use the Pascal's Triangle Calculator

Choose what to show.

  1. Choose a mode

    Show rows 0 to n, a single row, or one entry C(n, k).

  2. Enter n (and k)

    Rows up to 30 for the full triangle, up to 500 for one row, and up to 5,000 for one entry.

  3. Read the table

    Copy or download the rows, or read the exact entry.

References

Frequently asked questions

Why does the triangle start at row 0?

Row 0 is the single 1, matching (x + y)⁰ = 1 and C(0, 0) = 1. Counting from 0 makes row n line up with (x + y)ⁿ.

How large can C(n, k) get here?

Lookups go up to n = 5,000 and stay exact. Very long results appear in scientific notation, with every digit listed in a table.

What is the middle entry of a row?

For even n it is C(n, n/2), the largest entry in the row. For example, the middle of row 10 is 252.

Last updated . Results are estimates for informational purposes only.