Pascal’s Triangle Calculator

StatisticsFreeNo sign-up

Pascal’s triangle starts with 1 at the top, and every other number is the sum of the two numbers above it. Row n lists the binomial coefficients C(n, 0) to C(n, n): row 4 is 1, 4, 6, 4, 1, so (x + y)⁴ = x⁴ + 4x³y + 6x²y² + 4xy³ + y⁴.

Try it

Triangle Calculator

Open the full calculator →

Type the problems from this lesson and check each step.

FreeStep by stepBinomial theorem

Rows are counted from 0 (the top 1). Up to row 1,000.

Position in the row, counted from 0. Leave empty to see the whole row.

Try:
Entry C(6, 2)
\(\displaystyle \binom{6}{2} = 15\)
Row 6, position 2 (counting from 0) is 15: the number of ways to choose 2 items from 6.
111121133114641151010511615201561

Rows 0 to 6. Row 6 is highlighted, with entry k = 2 in orange.

Row 6 1, 6, 15, 20, 15, 6, 1
Sum of row 6 2^6 = 64
Largest entry (middle) 20
Odd entries in row 6 4 (always a power of 2)
Row 6 as one number (11^6 pattern) Carries spoil the 11^n pattern after row 4
Show steps
  1. Formula: \(\binom{n}{k} = \frac{n!}{k!\,(n-k)!}\).
  2. \(\binom{6}{2} = \frac{6!}{2!\cdot 4!}\) = 15.
  3. Pascal's rule: add the two entries above it in row 5: 5 + 10 = 15.

How to use the Pascal's triangle calculator

  1. Type a row number n (the single 1 at the top is row 0).
  2. Add a position k to get one entry, C(n, k), or leave it empty for the whole row.
  3. Switch to Binomial expansion to expand (x + y)n, or to Odd numbers to see the Sierpiński triangle hidden in the pattern.

How the triangle is built

Each row starts and ends with 1. Every inside number is the sum of the two numbers just above it. This is Pascal’s rule: \(\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}\).

Row Entries Sum
0 1 1
1 1 1 2
2 1 2 1 4
3 1 3 3 1 8
4 1 4 6 4 1 16
5 1 5 10 10 5 1 32
6 1 6 15 20 15 6 1 64

Patterns to look for

  • Row sums double each time: row n adds to 2n.
  • Diagonals: the second diagonal is 1, 2, 3, 4, … (counting numbers); the third is 1, 3, 6, 10, … (triangular numbers).
  • Powers of 11: rows 0 to 4 read as 1, 11, 121, 1331, 14641.
  • Symmetry: each row reads the same forwards and backwards, because C(n, k) = C(n, n − k).
  • Odd entries form the Sierpiński triangle, a fractal.

Pascal's triangle and combinations

Entry k of row n counts the ways to choose k things from n: \(\binom{n}{k} = \frac{n!}{k!\,(n-k)!}\). For example, there are C(5, 2) = 10 ways to pick 2 toppings from 5. The same numbers are the coefficients in the binomial theorem, and they give coin-flip probabilities: in 4 flips, the chance of exactly 2 heads is 6/16.

Pascal's triangle practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. What are the entries of row 4?

Found a mistake? Let us know!

2. Each inner entry equals…

Found a mistake? Let us know!

3. What is the sum of row 6?

Found a mistake? Let us know!

4. C(5, 2) = ?

Found a mistake? Let us know!

5. Which row gives the coefficients of (x + y)³?

Found a mistake? Let us know!

6. C(9, 7) equals…

Found a mistake? Let us know!

7. The third diagonal 1, 3, 6, 10 is the…

Found a mistake? Let us know!

8. How many entries does row 10 have?

Found a mistake? Let us know!

9. In 4 coin flips, how many outcomes have exactly 2 heads?

Found a mistake? Let us know!

10. The coefficient of x²y³ in (x + y)⁵ is…

Found a mistake? Let us know!

Frequently asked questions

How do you find a row of Pascal's triangle without drawing it?

Start with 1 and multiply by (n − k + 1)/k for each next entry. For row 5: 1, 1·5/1 = 5, 5·4/2 = 10, 10·3/3 = 10, 10·2/4 = 5, 5·1/5 = 1.

Why is the top row called row 0?

Because row n gives the coefficients of (x + y)ⁿ, and (x + y)⁰ = 1. Counting from 0 makes entry k equal C(n, k).

What is Pascal's triangle used for?

Expanding binomials, counting combinations, finding probabilities for repeated yes/no trials, and spotting number patterns such as triangular numbers and the Fibonacci numbers along shallow diagonals.

How large a row can the calculator handle?

Up to row 1,000. It uses exact whole-number arithmetic, so even entries with hundreds of digits are exact.

Who discovered Pascal's triangle?

The pattern was known centuries before Blaise Pascal, for example to Yang Hui in China and to mathematicians in Persia and India. Pascal wrote a famous treatise on it in the 1650s.

Sources

Related calculators

Browse all calculators

More statistics calculators

Browse all 457 calculators

Related to This Article

What people say about "Pascal's Triangle Calculator: Rows, C(n, k), Expansion"?

No one replied yet.

Leave a Reply