Draw Pascal's Triangle
Quickly calculate the coefficients of the binomial expansion. Runs entirely in your browser, so your data never leaves your device.
Output
The result appears here as you type.
How to use Draw Pascal's Triangle
- 1. Set the number of Rows. There's nothing to paste here. Start by choosing how many Rows to generate, which determines how far the triangle expands.
- 2. Choose the Align option. Pick Center to render the classic triangular shape, or Left to align every row's numbers to the left edge, which is easier to read for wide triangles.
- 3. Copy the triangle. Copy the generated rows, such as the first five rows of binomial coefficients, from the output pane into a worksheet or explanation of the binomial expansion.
When to use Draw Pascal's Triangle
Draw Pascal's Triangle calculates the binomial coefficients for as many rows as you need, without you working through the addition rule by hand. Each row's values are exactly the coefficients you'd get from expanding a binomial to that power.
- Checking a binomial expansion by hand. You're expanding an expression like (x plus y) to the fourth power and want to confirm the coefficients you calculated match row four of the triangle.
- Preparing a math lesson on combinatorics. A lesson on combinations benefits from a printed reference of Pascal's Triangle so students can see how each entry equals a specific number of combinations.
- Exploring patterns hidden in the triangle. You want to generate several rows and look for patterns, like the Fibonacci sequence in the diagonals or powers of two in the row sums.
- Generating reference values for a probability problem. A probability calculation needs specific binomial coefficients, and reading them off a generated triangle is faster than computing factorials by hand.
Examples
Five rows, left aligned
Output
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
About the Draw Pascal's Triangle tool
Draw Pascal's Triangle does its work locally, right in the browser. Quickly calculate the coefficients of the binomial expansion. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Number Tools collection on EditSafely, a set of 194 small, focused Number utilities that share the same instant, private workspace.
You can shape the output with 2 settings, including Rows and Align, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Does Draw Pascal's Triangle cost anything?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Does the generator send anything to a server?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How do I get a different result?
Run the generator again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.