Intermediate

Pascal's Triangle Row Calculator

Enter a row index n and instantly get the full nth row of Pascal's triangle along with its sum and largest coefficient.
0-indexed; row 0 is just [1]
Row sum (2^n)
64

Sum of all coefficients in this row

Number of terms
7
Largest coefficient
20
Row
1, 6, 15, 20, 15, 6, 1
1615201561Pascal's row n — binomial coefficients C(n,0) … C(n,n)
Step by step
  1. 1

    C(n,0) = 1

    1
    Every row starts with 1.
  2. 2

    C(n,1) = C(n,0) × n ÷ 1

    1 × 6 ÷ 1 = 6
  3. 3

    Row sum = 2^n

    2^6 = 64
    The sum of all binomial coefficients in row n equals 2^n (binomial theorem with x=y=1).
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Enter a row index n and this tool returns the nth row of Pascal's triangle—the binomial coefficients C(n,0) through C(n,n). It builds them with the recurrence C(n,k) = C(n,k−1)·(n−k+1)/k, shows the symmetric bell shape, the number of terms (n+1), and confirms the row sum equals 2^n.

Formula
Row n = [C(n,0), C(n,1), …, C(n,n)], where C(n,k) = C(n,k−1)·(n−k+1)/k and row sum = 2^n
How this is calculated

Pascal's triangle is the array of binomial coefficients, where each entry equals the sum of the two entries directly above it. The single input n is the 0-indexed row number: row 0 is [1], row 1 is [1, 1], row 2 is [1, 2, 1], and so on. The calculator builds the row iteratively rather than computing each factorial separately. It starts with C(n,0) = 1 and applies the recurrence C(n,k) = C(n,k−1) · (n−k+1) / k for k = 1 up to n. Because every intermediate value is an exact integer, this multiplicative method avoids the overflow you would get from computing n! directly and is far faster.

The row has n + 1 terms, is symmetric (C(n,k) = C(n,n−k)), and forms a bell-shaped distribution peaking in the middle. The sum of all coefficients in row n equals 2^n, which follows from the binomial theorem with x = y = 1: (1 + 1)^n = Σ C(n,k). These coefficients are exactly the multipliers that appear when you expand (x + y)^n.

The input must be a non-negative integer. Non-integer, negative, or empty values produce no result. For very large n the coefficients exceed the precision of double-precision floating point, so results above a few hundred should be treated as approximate.

Frequently asked questions

Row 0 is simply [1]. The triangle is 0-indexed, so the topmost single 1 is row 0, [1, 1] is row 1, and [1, 2, 1] is row 2.

Setting x = y = 1 in the binomial theorem gives (1 + 1)^n = Σ C(n,k), so the coefficients of row n always add up to 2^n.

The calculator uses the recurrence C(n,k) = C(n,k−1)·(n−k+1)/k starting from C(n,0) = 1, which keeps every step an exact integer and avoids factorial overflow.

Also known as

pascals triangle
pascal row calculator
binomial coefficients row
nth row pascal
triangle row
pascal's triangle

APA

TG we-Calculate Editorial Team. (2026). Pascal's Triangle Row Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/pascals-triangle-row-calculator

Chicago

TG we-Calculate Editorial Team. "Pascal's Triangle Row Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/pascals-triangle-row-calculator.

IEEE

TG we-Calculate Editorial Team, "Pascal's Triangle Row Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/pascals-triangle-row-calculator

BibTeX

@misc{wecalculate_pascals_triangle_row_calculator, title = {Pascal's Triangle Row Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/pascals-triangle-row-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?