Skip to content
FiftyCalc Free calculators for all 50 states

Pyramid Block Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter the number of layers and how the sides step in to count the blocks you need, for building games or models.

Result

Sample figures

Total blocks—

Base side (blocks) —

  • Blocks in the bottom layer—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Pyramid Block Calculator

Number of layers (top layer = 1 block): enter 1 or more. Prefilled example: 10.

Step between layers: choose Base side grows by 1 per layer (1, 2, 3…) or Base side grows by 2 per layer (1, 3, 5…), centered. Prefilled example: Base side grows by 1 per layer (1, 2, 3…).

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number of layers (top layer = 1 block): enter 1 or more.
  2. Step between layers: choose Base side grows by 1 per layer (1, 2, 3…) or Base side grows by 2 per layer (1, 3, 5…), centered.
  3. Read the result: Total blocks; the panel also shows Base side (blocks) and Blocks in the bottom layer.

How this calculator works

With layer sides 1, 2, 3, …, n the total is the sum of squares: n(n + 1)(2n + 1) ÷ 6 (square pyramidal numbers).

With layer sides 1, 3, 5, …, 2n − 1, which keeps a single block centered on top, the total is the sum of odd squares: n(2n − 1)(2n + 1) ÷ 3.

Both count a solid pyramid; a hollow one needs far fewer blocks.

The formula

  1. Tot={n×(n+1)×(2×n+1)6if st=1n×(2×n−1)×(2×n+1)3otherwise
Symbols used in the formula
SymbolMeaning
nNumber of layers (top layer = 1 block)
stStep between layers (1: Base side grows by 1 per layer (1, 2, 3…); 2: Base side grows by 2 per layer (1, 3, 5…), centered)
TotTotal blocks

Worked example

Number of layers (top layer = 1 block)10
Step between layersBase side grows by 1 per layer (1, 2, 3…)
Base side (blocks)10
Blocks in the bottom layer100
  1. Tot=10×(10+1)×(2×10+1)6=385

Total blocks 385

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How many blocks in a 10-layer pyramid?

385 with sides 1 to 10, or 1,330 with odd sides 1 to 19.

How big is the base of a 10-layer centered pyramid?

19 × 19, 361 blocks.

Related calculators