Pascal’s Triangle Calculator

This Pascal's triangle calculator generates any single row of Pascal's triangle instantly, without you having to build the whole triangle by hand from the top down. You enter one number, the row you want, counting the lone 1 at the very top as row 0, and the calculator lists every entry in that row, separated by commas, along with two supporting figures: the sum of the row, which always works out to 2 raised to the power of that row number, and the number of entries in the row, which is always one more than the row number itself. These figures matter beyond curiosity. Each row of Pascal's triangle is exactly the set of binomial coefficients, written as n choose k, so the row you generate tells you the coefficients you would use to expand an expression like (a + b) raised to that power, and the same numbers count combinations in probability and statistics problems. The tool accepts any whole row number from 0 to 30, which comfortably covers school algebra, university combinatorics papers and most probability work, and it updates the result the moment you change the number, so you can step through consecutive rows to see the pattern build. A worked example below shows row 4 confirmed against the calculator, and the FAQ section explains how each row is constructed from the one above it.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
1, 4, 6, 4, 1
Sum of row (2^n)16
Number of entries5

The formula

Row n of Pascal’s triangle is the list of binomial coefficients n choose 0, n choose 1, up to n choose n. Each entry equals the sum of the two entries above it, and the whole row sums to 2 to the power n.

Worked example

Row 4 is 1, 4, 6, 4, 1. These add to 16, which is 2 to the power 4, and they are the coefficients of (a + b) to the fourth. Enter 4 to confirm.

Frequently asked questions

How is Pascal’s triangle built?

Start each row with 1, and every inner number is the sum of the two numbers above it. The ends are always 1.

What is row n?

The binomial coefficients n choose 0 through n choose n, the coefficients of (a + b) to the n.

Why does each row sum to a power of 2?

Because the sum of n choose k over all k equals 2 to the n, the number of subsets of an n element set.

Who this calculator is for

This calculator is for algebra students and anyone needing a quick, reliable result.

What this calculator assumes

  • You enter valid numbers.
  • The standard method is applied.
  • Results are rounded for display.

Formula and sources

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland by SiteHost New Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-08-07 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.