Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Pascal's Triangle

How to use
  1. Pascal's identity links the focused cell to its two amber parents and adds them in the panel. Learn more about Pascal's identity
  2. Hockey stick treats the focused cell as the puck and draws the amber stick up the column to its left. Learn more about the hockey stick
  3. Row sum outlines the whole focused row and labels its total, 2n2^n, at the right edge. Learn more about the row sum
  4. Symmetry marks the mirror cell C(n,n−r)C(n, n - r) in green with an arc between the two. Learn more about symmetry
  5. N − / + shows rows 0 through NN, from 4 to 9; lowering NN below the focused row clears the focus. Learn more about getting started
  6. Click any cell to focus it; Clear selection removes the focus and the panel asks for a new cell. Learn more about focusing cells
  7. The right panel shows the focused cell's factorial breakdown and the active mode's arithmetic. Learn more about the panel
  8. The banner under the triangle expands (a+b)n(a + b)^n for the focused row; with no focus it shows row 0. Learn more about the polynomial banner


Pascal's triangle displays the binomial coefficients C(n, r). Click any cell to focus on it, then switch modes to see different identities the triangle encodes: Pascal's rule, hockey-stick sums, row sums (= 2n), and symmetry.
n =6?
n = 0n = 1n = 2n = 3n = 4n = 5n = 61111211331146C(4, 2)41151010511615201561ROW 4 = COEFFICIENTS OF (a + b)⁴(a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴
Pascal's identity
Selected: C(4, 2) = 6
C(4, 2) = 4! / (2! · 2!)
= 24 / (2 · 2) = 6
C(n, r) counts the number of ways to choose r items from a set of n distinct items (order doesn't matter).
Pascal's identity. Every interior cell equals the sum of the two cells immediately above it: C(n, r) = C(n−1, r−1) + C(n−1, r).
C(4, 2) = C(3, 1) + C(3, 2)
= 3 + 3 = 6
The two amber parents add up to the blue focus — the rule that builds every row of the triangle from the one above it. Learn more about Pascal's identity · Getting started





Key Terms



Key Terms

Pascal's triangle — a triangular array of integers where row nn contains the binomial coefficients (n0),(n1),…,(nn)\binom{n}{0}, \binom{n}{1}, \dots, \binom{n}{n}. Each interior entry equals the sum of the two entries directly above it; the edges are all 11.

Binomial coefficient — the number of ways to choose rr items from nn distinct items without order. Equivalently the coefficient of an−rbra^{n-r} b^r in the expansion of (a+b)n(a + b)^n. Computed as (nr)=n!/(r!⋅(n−r)!)\binom{n}{r} = n! / (r! \cdot (n-r)!).

Pascal's identity — the recurrence that builds the triangle: (nr)=(n−1r−1)+(n−1r)\binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r}. Every interior cell is the sum of the two cells above it.

Hockey-stick identity — a diagonal sum: ∑i=rn(ir)=(n+1r+1)\sum_{i=r}^{n} \binom{i}{r} = \binom{n+1}{r+1}. The starting diagonal cells form the stick; the cell below-and-across is the puck.

Row sum — the cells in row n sum to 2ⁿ, counting the total number of subsets of an nn-element set across all sizes.

Symmetry — within each row, (nr)=(nn−r)\binom{n}{r} = \binom{n}{n-r}. Choosing rr items to include is the same as choosing n−rn - r items to exclude.

Focus — the cell currently selected by clicking. The four modes highlight different relatives of the focus cell.

Getting Started

The tool opens with N=6N = 6 (rows 00 through 66) and the cell (42)=6\binom{4}{2} = 6 already focused under Pascal's identity mode. The scene splits into four areas:

• The triangle — clickable cells arranged in rows 00 through NN. The focused cell is filled in accent blue; its relatives (depending on mode) appear with amber or green outlines.

• A polynomial banner below the triangle showing the focused row's expansion of (a+b)n(a + b)^n. The triangle's row values are the polynomial's coefficients.

• A mode group in the control bar with four buttons: Pascal's identity, Hockey stick, Row sum, Symmetry.

• A right info panel showing the factorial breakdown (nr)=n!/(r!⋅(n−r)!)\binom{n}{r} = n! / (r! \cdot (n-r)!) for the focused cell, plus an identity-specific arithmetic block.

To explore:

• Click any cell to focus it. The triangle re-highlights and the right panel updates with the factorial breakdown and the active identity's specific arithmetic for that cell.

• Switch modes to see the same focused cell through a different identity.

• Adjust N to add or remove rows.

• Clear selection to return to an unfocused view.
Unlike the ten counting scenes in this section, nothing here animates. The triangle is a static object to be interrogated: the four lenses are questions you ask of a cell, not steps a build passes through — which is why the tool opens already focused rather than waiting for a Play button.

That makes the reading order yours to choose. A useful circuit is to keep one cell selected and cycle all four modes: the identity shows where the number came from, the hockey stick where it accumulates, the row sum what its neighbours total, and symmetry which other cell says the same thing.

Clicking Cells and Focus

DemoFocus, N, clear
Step 0 of 5
Every cell in the triangle is clickable. Clicking a cell sets it as the focus — the anchor for whichever identity mode is currently active.

The focused cell renders in solid accent blue with white text, and its label C(n,r)C(n, r) appears just below it. The right panel immediately shows:

• The selected coefficient — *Selected: C(n,r)=vC(n, r) = v*.

• The factorial breakdown — C(n,r)=n!/(r!⋅(n−r)!)=vC(n, r) = n!/(r! \cdot (n-r)!) = v, fully expanded.

• A short interpretation reminder — *C(n,r)C(n, r) counts the number of ways to choose rr items from a set of nn distinct items*.

• The current mode's identity, applied to this cell.

If you reduce NN below the focused cell's row, the focus clears automatically. Press Clear selection in the control bar to clear focus manually; the cells return to their default outlined state and the right panel shows a hint to click any cell.

The polynomial banner always shows the row of the focused cell (or row 00 when nothing is focused).
n = 0n = 1n = 2n = 3n = 4n = 5n = 6111121133114641151010511615201561ROW 0 = COEFFICIENTS OF (a + b)⁰(a + b)⁰ = 1
No selection, frozen

Every cell in its dashed neutral outline, no connectors, the banner fallen back to row 0 — the triangle as a plain table of values.

The frozen frame above is the triangle with nothing selected: every cell in its dashed neutral outline, no connectors, and the banner fallen back to row 00 — the bare (a+b)0=1(a + b)^0 = 1.

Worth a moment before clicking anything: unfocused, the triangle is just a table of (nr)\binom{n}{r} values, and its numbers are already meaningful — every entry counts subsets of some size. The lenses add nothing to the numbers; they only draw the relationships that were always there between them.

Mode 1 — Pascal's Identity

DemoEdges, apex, interior
Step 0 of 4
Pascal's identity says every interior cell is the sum of the two cells immediately above it:

(nr)=(n−1r−1)+(n−1r)\binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r}


In this mode, the focused cell is connected to its two parents by dashed accent lines, and both parents are outlined in amber as related cells. The right panel shows the concrete arithmetic — for example, with focus on (42)\binom{4}{2}:

(42)=(31)+(32)=3+3=6\binom{4}{2} = \binom{3}{1} + \binom{3}{2} = 3 + 3 = 6.

Edge cases:

• Apex (00)=1\binom{0}{0} = 1 has no parents — by convention.

• Left edge (n0)\binom{n}{0} has only one parent (n−10)\binom{n-1}{0}, which is always 11, so left edges are all 11.

• Right edge (nn)\binom{n}{n} has only one parent (n−1n−1)\binom{n-1}{n-1}, also 11, so right edges are all 11.

This identity is what builds the triangle — knowing the top row, you can construct every subsequent row by addition alone, without ever computing factorials.
n = 0n = 1n = 2n = 3n = 4n = 5n = 61111211331146C(4, 2)41151010511615201561ROW 4 = COEFFICIENTS OF (a + b)⁴(a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴
Pascal’s identity on C(4, 2), frozen

The focus in accent blue with its two parents in amber and dashed lines running down into it: 3 + 3 = 6, drawn rather than computed.

The frozen frame above is exactly the worked example: (42)\binom{4}{2} in accent blue, its two parents (31)\binom{3}{1} and (32)\binom{3}{2} in amber, and dashed lines running down from each into the focus. Three plus three, drawn.

The identity's combinatorial proof is worth carrying alongside the picture: single out one of the nn items. Subsets of size rr either contain it — leaving (n−1r−1)\binom{n-1}{r-1} ways to fill the rest — or they don't, leaving (n−1r)\binom{n-1}{r}. Two dashed lines, two cases, no arithmetic required. That argument recurs across the other identities.

Mode 2 — Hockey Stick

DemoStick and puck
Step 0 of 4
The hockey-stick identity says a diagonal of cells starting from a column-rr entry sums to the cell one row below and one column to the right:

∑i=rn(ir)=(n+1r+1)\sum_{i=r}^{n} \binom{i}{r} = \binom{n+1}{r+1}


In this mode, treat the focused cell as the puck — the cell where all the action ends up. The triangle highlights the diagonal stick (cells one column to the left, running from the puck's row back up to the row matching that column) and draws an amber path connecting them down to the puck.

For example, focusing on (52)=10\binom{5}{2} = 10:

(11)+(21)+(31)+(41)=1+2+3+4=10=(52)\binom{1}{1} + \binom{2}{1} + \binom{3}{1} + \binom{4}{1} = 1 + 2 + 3 + 4 = 10 = \binom{5}{2}.

The right panel shows the full chain of column-11 cells summing to the puck.

The mode reveals why the formula for triangular numbers 1+2+⋯+n=(n+12)1 + 2 + \dots + n = \binom{n+1}{2} holds — it's just the column-11 hockey stick.

If the focused cell is in column 00, no valid stick exists; the right panel shows a hint to pick a cell with column ≥ 11.
n = 0n = 1n = 2n = 3n = 4n = 5n = 61111211331146411510C(5, 2)10511615201561ROW 5 = COEFFICIENTS OF (a + b)⁵(a + b)⁵ = a⁵ + 5a⁴b + 10a³b² + 10a²b³ + 5ab⁴ + b⁵
Hockey stick on C(5, 2), frozen

The amber path runs up column 1 through 1, 2, 3, 4 and hooks right into the puck — the bend that gives the identity its name.

The frozen frame above is the worked example drawn: the amber path runs up column 11 through 1,2,3,41, 2, 3, 4 and then hooks right into the puck (52)=10\binom{5}{2} = 10. The bend at the end is where the identity gets its name.

The proof mirrors the shape. To choose 22 items from {1,…,5}\{1, \dots, 5\}, ask what the larger item is: if it is ii, the smaller one has i−1i - 1 choices below it. Summing 1+2+3+41 + 2 + 3 + 4 over the possible maxima gives every pair exactly once — which is also why the triangular numbers live along this diagonal, as the identities section notes.

Mode 3 — Row Sum

DemoRow sum and symmetry
Step 0 of 5
The row-sum identity says the cells in row nn add up to 2n2^n:

∑r=0n(nr)=2n\sum_{r=0}^{n} \binom{n}{r} = 2^n


In this mode, every cell in the focused row (other than the focus itself) is outlined in amber as related. A label appears on the right edge of the row showing *sum = 2n2^n*. The right panel lists the full sum:

For row 44: (40)+(41)+(42)+(43)+(44)=1+4+6+4+1=16=24\binom{4}{0} + \binom{4}{1} + \binom{4}{2} + \binom{4}{3} + \binom{4}{4} = 1 + 4 + 6 + 4 + 1 = 16 = 2^4.

Combinatorial interpretation: each binomial coefficient (nr)\binom{n}{r} counts subsets of size rr from an nn-element set. Summing across all sizes counts all subsets, of which there are 2n2^n (each of the nn elements is independently in or out).

This identity is the source of many later results — for example, the expected size of a random subset of {1,…,n}\{1, \dots, n\} is n/2n/2 because the row sum decomposition is symmetric around r=n/2r = n/2.
n = 0n = 1n = 2n = 3n = 4sum = 16 = 2⁴n = 5n = 61111211331146C(4, 2)41151010511615201561ROW 4 = COEFFICIENTS OF (a + b)⁴(a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴
Row sum on row 4, frozen

The whole row lit end to end with the right-edge label reading sum = 16 = 2⁴: every cell participates, the focus is just where you clicked.

The frozen frame above shows row 44 lit end to end with the right-edge label reading *sum = 16 = 2⁴*. Every cell of the row participates; the focus is merely where you clicked.

The doubling is visible in the geometry too: each row is built from the one above by Pascal's rule, and since every entry above contributes to exactly two entries below, each row total is twice its predecessor. Powers of two are what repeated pairwise addition inevitably produces.

Mode 4 — Symmetry

The symmetry identity says each row is a palindrome:

(nr)=(nn−r)\binom{n}{r} = \binom{n}{n - r}


In this mode, the focused cell and its mirror across the row's center are both highlighted, and a curved green arc connects them through the row label above.

For example, focusing on (72)=21\binom{7}{2} = 21:

(72)=(75)=21\binom{7}{2} = \binom{7}{5} = 21.

Combinatorial reading: choosing rr items to include in a selection is the same as choosing n−rn - r items to leave out. The two selections describe identical events from opposite sides.

Special case — the center of an even-length row maps to itself. Focusing on (42)\binom{4}{2} when n−r=rn - r = r gives a self-symmetry; the right panel notes this and skips the arc since the focus and the mirror coincide.

This identity is why the triangle is left-right symmetric and why so many identities have dual forms — you can always swap rr with n−rn - r to get an equivalent statement.
n = 0n = 1n = 2n = 3n = 4n = 5n = 6n = 71111211331146411510105116152015611721C(7, 2)35352171ROW 7 = COEFFICIENTS OF (a + b)⁷(a + b)⁷ = a⁷ + 7a⁶b + 21a⁵b² + 35a⁴b³ + 35a³b⁴ + 21a²b⁵ + 7ab⁶ + b⁷
Symmetry on C(7, 2), frozen

The focus in blue, its mirror C(7, 5) in green, and a green arc arching between them — the same 21 read from either end of the row.

The frozen frame above is that example with the triangle extended to row 77: (72)\binom{7}{2} in blue, its mirror (75)\binom{7}{5} in green, and the arc arching between them over the row.

Symmetry is the identity that most often saves work in practice. Faced with (10097)\binom{100}{97}, nobody expands 97!97! — they read it as (1003)\binom{100}{3} and multiply three numbers. Whenever rr exceeds half of nn, the mirror cell is the easier computation, and the arc above says the two are the same number seen from opposite ends of the row.

The Polynomial Banner

Below the triangle sits a banner labeled *ROW n = COEFFICIENTS OF (a + b)^n*, showing the full expansion of the focused row's polynomial.

For row 44:

(a+b)4=a4+4a3b+6a2b2+4ab3+b4(a + b)^4 = a^4 + 4 a^3 b + 6 a^2 b^2 + 4 a b^3 + b^4


This is the binomial theorem: the coefficient of an−rbra^{n-r} b^r is exactly (nr)\binom{n}{r}. The triangle's row values are the polynomial's coefficients, in order.

The banner updates whenever you focus a cell in a different row, making it easy to see why each row of Pascal's triangle answers two questions at once:

• How many subsets of size rr exist in an nn-element set?

• What is the coefficient of an−rbra^{n-r} b^r when you multiply (a+b)(a + b) by itself nn times?

For higher nn the polynomial is rendered at a smaller font to fit; the actual values remain accurate. The banner color matches the formula card styling used elsewhere in the tool.

What Are Binomial Coefficients

The binomial coefficient (nr)\binom{n}{r} — read n choose r — is one of the most important numbers in combinatorics. It admits several equivalent definitions:

Counting subsets. (nr)\binom{n}{r} is the number of rr-element subsets of an nn-element set.

Polynomial coefficient. (nr)\binom{n}{r} is the coefficient of an−rbra^{n-r} b^r in (a+b)n(a + b)^n. This is the binomial theorem:

(a+b)n=∑r=0n(nr)an−rbr(a + b)^n = \sum_{r=0}^{n} \binom{n}{r} a^{n-r} b^r


Factorial formula. (nr)=n!r! (n−r)!\binom{n}{r} = \dfrac{n!}{r! \, (n - r)!}.

Recursive definition. Pascal's rule (nr)=(n−1r−1)+(n−1r)\binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r} with edge values (n0)=(nn)=1\binom{n}{0} = \binom{n}{n} = 1.

Examples:

• (52)=10\binom{5}{2} = 10: there are 1010 ways to choose 22 items from 55, the coefficient of a3b2a^3 b^2 in (a+b)5(a+b)^5 — and the hockey-stick puck at the end of the column-1 diagonal.

• (525)=2,598,960\binom{52}{5} = 2{,}598{,}960: the number of 55-card poker hands from a standard deck.

• (105)=252\binom{10}{5} = 252: middle term of (a+b)10(a+b)^{10}, and the maximum entry of row 1010.

For deeper coverage including identities, generating functions, and applications, see the binomial coefficients section on the combinations theory page.

Why These Identities Matter

The four identities highlighted in this tool aren't isolated curiosities — they're the workhorses of combinatorial proofs and probability calculations. Each has its own lens: Pascal's identity, hockey stick, row sum, and symmetry.

Pascal's identity is the recursive backbone. It lets you compute any (nr)\binom{n}{r} from smaller ones without ever multiplying or dividing factorials. It also gives a combinatorial proof: pick a specific element; either you include it (giving (n−1r−1)\binom{n-1}{r-1}) or you don't (giving (n−1r)\binom{n-1}{r}).

Hockey-stick appears in counting problems where you fix the maximum element of a subset. The number of subsets of {1,…,n+1}\{1, \dots, n+1\} with r+1r+1 elements is (n+1r+1)\binom{n+1}{r+1}, and grouping by the max element gives the diagonal sum.

Row sum 2n2^n is the source of countless probability results — it underlies binomial distribution normalization, the cardinality of power sets, and the fact that nn-bit binary strings number 2n2^n.

Symmetry is invoked whenever a problem becomes easier from the complementary viewpoint — for example, computing (10097)\binom{100}{97} as (1003)=161,700\binom{100}{3} = 161{,}700 rather than evaluating 97!97! directly.

Together, these four are sufficient to derive most other binomial identities by combination and induction.