Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Next step
Binomial Theorem Expansion Calculator
More tools
List of Fibonacci NumbersBinomial Coefficient CalculatorCombination CalculatorNumber Pattern FinderFibonacci Retracement Calculator
Home Page > Math > Sequence Tools

Pascal's Triangle Generator

Explore binomial coefficients and numerical patterns in MiniWebtool’s Pascal's Triangle Generator. Generate up to 30 rows and highlight relationships with powers of two, Fibonacci numbers, and the Sierpinski pattern.

Need help using this tool? Ask AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Free to useNo sign-up requiredInstant Results
Pascal's Triangle GeneratorTry it now — free ▼
Each entry is the sum of the two above it, and each row sums to 2ⁿ.

Enter the number of rows (1 to 30) below to get the triangle with patterns highlighted, or look up a single entry C(n, k).

Try:
Enter 1–30 rows. Larger triangles reveal more patterns.

Embed Pascal's Triangle Generator Widget

About Pascal's Triangle Generator

The Pascal's Triangle Generator creates an interactive Pascal's triangle with up to 30 rows. Explore hidden patterns like the Sierpinski triangle, Fibonacci numbers, and binomial coefficients with color-coded highlighting, animated rendering, and value lookup.

At a Glance

Pascal's Triangle Generator builds Pascal's triangle with 1 to 30 rows and highlights number patterns inside it. You can also look up any single binomial coefficient C(n, k).

Pascal's Triangle Generator: features at a glance
FeatureWhat you getGood for
Row countGenerate 1 to 30 rows, or use the quick buttons for 5, 8, 10, 15 or 20 rows. Rows appear with an animation.Classroom demonstrations at different sizes
Pattern highlightsHighlight odd and even numbers (the Sierpinski pattern), diagonal 2, diagonal 3, Fibonacci sums and multiples of 3.Exploring patterns hidden in the triangle
Value lookupEnter row n and position k, each from 0 to 29, to get C(n, k) with its formula.Finding a single binomial coefficient
Cell inspectionHover over a cell to see its C(n, k) position and exact value. Click it to highlight every cell with the same value.Finding repeated values across the triangle

How to Use the Pascal's Triangle Generator

  1. Enter the number of rows you want to generate (1–30) in the input field, or click a quick example button.
  2. Click "Generate △" to create the triangle. Each row appears with a smooth animation.
  3. Explore patterns using the highlight buttons: "Odd/Even" reveals the Sierpinski fractal, "Diagonal" shows natural or triangular numbers, and "Fibonacci" highlights shallow diagonal sums.
  4. Hover over any cell to see its position as C(n, k) with the exact value.
  5. Click any cell to highlight all cells with the same value throughout the triangle.
  6. Look up a specific value by entering n and k to find C(n, k) with its formula.

What Is Pascal's Triangle?

Pascal's triangle is a triangular array of numbers named after French mathematician Blaise Pascal (1623–1662), though it was studied centuries earlier in China, India, and Persia. Each number is the sum of the two numbers directly above it. The edges of every row are always 1.

The first few rows look like this:

        1
       1 1
      1 2 1
     1 3 3 1
    1 4 6 4 1
   1 5 10 10 5 1

The Construction Rule

Each entry in Pascal's triangle equals the binomial coefficient:

\(\binom{n}{k} = \frac{n!}{k!(n-k)!}\)

where \(n\) is the row number (starting from 0) and \(k\) is the position within the row (also starting from 0). Equivalently, each interior value is the sum of the two values in the row above: \(\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}\).

Patterns in Pascal's Triangle

Powers of 2

The sum of each row equals a power of 2. Row 0 sums to 1, row 1 to 2, row 2 to 4, row 3 to 8, and so on. In general, the sum of row \(n\) is \(2^n\).

Fibonacci Numbers

When you sum the "shallow diagonals" of Pascal's triangle (going from the upper right down to the lower left), you get the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, ...

Sierpinski Triangle

Color all odd numbers one color and all even numbers another. The resulting pattern is a discrete approximation of the Sierpinski triangle, one of the most famous fractals in mathematics. With more rows, the fractal structure becomes more apparent.

Diagonals

Binomial Theorem Connection

Pascal's triangle provides the coefficients for binomial expansion. For example, \((a+b)^4 = 1a^4 + 4a^3b + 6a^2b^2 + 4ab^3 + 1b^4\), where the coefficients 1, 4, 6, 4, 1 come from row 4 of the triangle.

Applications of Pascal's Triangle

FAQ

What is Pascal's triangle?

Pascal's triangle is a triangular array of numbers where each number is the sum of the two numbers directly above it. The edges are all 1s, and it contains many hidden mathematical patterns including binomial coefficients, Fibonacci numbers, and powers of 2.

How is each number in Pascal's triangle calculated?

Each number equals the sum of the two numbers above it. Formally, the value at row n, position k is the binomial coefficient C(n,k) = n! / (k! × (n-k)!). The edges of each row are always 1.

What patterns can be found in Pascal's triangle?

Pascal's triangle contains many patterns: each row sums to a power of 2, the diagonals contain natural numbers, triangular numbers, and tetrahedral numbers, the shallow diagonals sum to Fibonacci numbers, and coloring odd/even values reveals the Sierpinski triangle fractal.

How is Pascal's triangle related to binomial coefficients?

Each entry in Pascal's triangle is a binomial coefficient. The entry at row n, position k gives C(n,k), which is the coefficient of x^k in the expansion of (1+x)^n. For example, row 4 gives 1, 4, 6, 4, 1 which are the coefficients of (1+x)^4.

What is the Sierpinski triangle pattern in Pascal's triangle?

When you color the odd numbers one color and even numbers another in Pascal's triangle, the odd numbers form a pattern that approximates the Sierpinski triangle, a famous fractal. This becomes more visible with more rows.

Reference this content, page, or tool as:

"Pascal's Triangle Generator" at https://MiniWebtool.com/pascal-s-triangle-generator/ from MiniWebtool, https://MiniWebtool.com/

Last updated: 2026-04-01

Chat with your favorite AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Sequence Tools:

Math SolverWhat would you like to solve?

Math Solver

Try
Browse expression examples

Choose an example to fill the input, edit its numbers, then Solve. log uses base 10; use ln for the natural logarithm.

Numbers & factors

Fractions & division

Powers, roots & logs

Algebra & equations

Calculus

Geometry & trigonometry

Top & Updated:

Cramer's Rule CalculatorRight Triangle CalculatorEuler's Totient Function CalculatorView all →
Home Page > Math > Sequence Tools > Pascal's Triangle Generator