← All text tools

Pascal's triangle generator

Generate Pascal's triangle with up to sixty rows, highlight odd or even numbers or the Fibonacci diagonals, see the row sums and print it.

  • Free
  • No sign-up
  • Works on any device

About Pascal's triangle generator

Pascal's triangle starts with a single 1, and every number below is the sum of the two above it. Row r lists the binomial coefficients, so row 5 is 1 5 10 10 5 1 and the rows add up to powers of two. Choose how many rows to draw, up to sixty; the numbers are computed exactly. Highlight the odd numbers to reveal the Sierpinski triangle pattern, the even numbers, or color the shallow diagonals whose sums are the Fibonacci numbers. A print button gives you a clean copy for the classroom.

How to use Pascal's triangle generator

  1. Enter the number of rows; row 0 is the single 1 at the top.
  2. Pick a highlight: odd numbers, even numbers, or the Fibonacci diagonals.
  3. Read the row sums on the right, or press the print button for a paper copy.

Why use this tool?

Also known as

Frequently asked questions

Why do the rows add up to powers of two?

Row r contains the ways to choose any number of items from r, and there are 2 to the power r subsets in total. Each row sum counts them all.

Where is the Fibonacci sequence in the triangle?

Add the numbers along the shallow diagonals running up and to the right. The sums are 1, 1, 2, 3, 5, 8 and so on. The Fibonacci highlight colors each diagonal.

What does the highlighted odd pattern show?

The odd entries form a Sierpinski triangle, a fractal. The pattern becomes clearer with more rows, such as 32 or 64.

Is Pascal's triangle generator free?

Yes. Pascal's triangle generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Pascal's triangle generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools