Permutation and Combination Calculator
nPr and nCr with the factorials shown, and the rule for choosing between them.
Build the triangle, or read off one coefficient.
Row 0 is the single 1 at the top.
| Row | Entries | Sum |
|---|
Pascal's Triangle Calculator builds the triangle to as many rows as you ask for, and will also read off a single entry without building anything, which is what you want when the row number is large. Row 0 is the lone 1 at the top, so row 5 is the sixth line down: 1, 5, 10, 10, 5, 1.
Every entry is the sum of the two directly above it, and that is the whole construction. The same numbers are the binomial coefficients, so entry k of row n is C(n, k), the number of ways of choosing k things from n. Those two descriptions look unrelated and are the same triangle, which is most of why it is famous.
Each row sums to 2 raised to the row number, which is the table's third column. That follows from the choosing interpretation: adding up the ways of choosing none, one, two and so on from n things counts every possible subset, and a set of n things has 2ⁿ subsets.
The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.
Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.
The Pascal Triangle Calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
Each row starts and ends with 1, and every other entry is the sum of the two numbers above it. That rule alone generates the whole triangle.
Entry k of row n is C(n, k) — the number of ways to choose k items from n. It is also the coefficient of the matching term when (a + b)ⁿ is expanded.
Because summing C(n,0) through C(n,n) counts every subset of an n-element set, and there are 2ⁿ of those.
Because the entries grow quickly and JavaScript loses exact integers past about 9 x 10¹⁵. Twenty-five rows stays comfortably inside that and still fits the page.
If the Pascal Triangle Calculator is not quite what you need, these other free tools solve closely related problems, and there are 35 more in math calculators.
nPr and nCr with the factorials shown, and the rule for choosing between them.
n! with the expansion, digit count and related counts.
Fibonacci numbers to any term, with the golden ratio.
Binomial probabilities, exact and cumulative.
Probability of events happening together, either one, or not at all.
Checked and rebuilt on 2026-10-18. The method this calculator uses is described in the section above, and corrections go through the contact page.