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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of layers (top layer = 1 block): enter 1 or more.
- 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.
- 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
| Symbol | Meaning |
|---|---|
| Number of layers (top layer = 1 block) | |
| Step 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) | |
| Total blocks |
Worked example
| Number of layers (top layer = 1 block) | 10 |
|---|---|
| Step between layers | Base side grows by 1 per layer (1, 2, 3…) |
| Base side (blocks) | 10 |
|---|---|
| Blocks in the bottom layer | 100 |
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.