Pyramid Block Calculator
Enter your pyramid height (in tiers) to instantly find the total blocks required, with a layer-by-layer table and chart. Switch to inventory mode to find the tallest pyramid your available blocks can build. Works for Minecraft, sandbox games, or any block-building project where each tier is a square grid one layer larger than the one above.
Formula
Worked example
A 10-tier pyramid has layers: 10x10 = 100, 9x9 = 81, 8x8 = 64, ..., 1x1 = 1. Total = 10 x 11 x 21 / 6 = 2310 / 6 = 385 blocks. The base alone uses 100 blocks (26% of the total).
How the pyramid block formula works
A solid square pyramid built layer by layer follows a simple mathematical pattern. The peak is a single 1 x 1 block. Each layer below is one block wider on every side: 2 x 2, then 3 x 3, all the way down to the base at h x h. The total block count is the sum of all squares from 1 squared to h squared. Mathematically, this is the triangular number of squares, with a neat closed form: N = h(h + 1)(2h + 1) / 6. For a 10-tier pyramid: 10 x 11 x 21 / 6 = 385 blocks. For a 5-tier pyramid: 5 x 6 x 11 / 6 = 55 blocks. The formula scales efficiently even for very large pyramids. Why squares? Each layer at depth d from the top has side length d, contributing d x d = d squared blocks. Summing from d = 1 (peak) to d = h (base) gives the total.
How to use this calculator
There are two modes:
- Height mode: Enter the number of tiers (the pyramid height in layers). The calculator returns the total block count, base dimensions, and a full layer-by-layer breakdown table.
- Inventory mode: Enter how many blocks you have. The calculator finds the tallest complete pyramid you can build and tells you how many blocks will be left over.
The layer table shows every tier from peak to base with its grid size, the blocks it contains, and the cumulative running total. The chart plots the cumulative block count as you add each layer, making it easy to see how quickly material demands grow near the base.
Why does block demand grow so fast near the base?
Because each layer grows quadratically. The peak needs 1 block; the next layer needs 4; the third needs 9. By the time you are at layer 10 of a 10-tier pyramid, that single layer needs 100 blocks. The bottom 30% of a pyramid by height typically accounts for more than half of all blocks used. This is why running out of materials near the end of a build is so common: the base is far more expensive than it looks. The insight panel shows you exactly what fraction of your total comes from the base layer, so you can stock up before you start.
Hollow pyramids and material savings
The formula above calculates a solid pyramid where every grid position on every layer is filled. A hollow pyramid uses only the perimeter of each layer, leaving the interior empty. For a layer of side length n, the perimeter block count is:
- n x n (solid) vs 4(n - 1) (hollow perimeter)
- A solid 10 x 10 layer: 100 blocks; hollow: 36 blocks (64% saving on that layer alone)
For the smallest layers (1 x 1 and 2 x 2) the hollow and solid counts are the same (1 and 4 respectively). The saving grows with each larger layer. For a 10-tier pyramid, a hollow shell uses about 175 blocks vs 385 solid: a 55% material saving. Use the layer table to calculate hollow layers manually by replacing each n x n count with 4(n - 1) for n bigger than 2.
Pyramid block counts in Minecraft and other block games
In Minecraft and similar block-building games, a pyramid challenge often specifies the height in layers. A standard Minecraft beacon pyramid uses 4 tiers for the maximum effect, requiring 164 mineral blocks. This calculator uses the general square-pyramid formula, which applies to any tier count. For stepped or staircase pyramids where each layer is offset by more than 1 block on each side, substitute the layer size sequence that matches your design.
Block counts for common pyramid heights
| Height (tiers) | Base size | Base layer blocks | Total blocks |
|---|---|---|---|
| 3 | 3 x 3 | 9 | 14 |
| 5 | 5 x 5 | 25 | 55 |
| 7 | 7 x 7 | 49 | 140 |
| 10 | 10 x 10 | 100 | 385 |
| 15 | 15 x 15 | 225 | 1240 |
| 20 | 20 x 20 | 400 | 2870 |
| 25 | 25 x 25 | 625 | 5525 |
| 50 | 50 x 50 | 2500 | 42925 |
| 100 | 100 x 100 | 10000 | 338350 |
Total blocks needed for a solid square pyramid using the sum-of-squares formula N = h(h+1)(2h+1)/6.
Frequently asked questions
How many blocks do I need for a 10-tier pyramid?
385 blocks. The formula is h(h+1)(2h+1)/6: for h = 10, that is 10 x 11 x 21 / 6 = 385. The base layer alone is 10 x 10 = 100 blocks, and each layer above is smaller by one block on each side.
What is the formula for a pyramid block count?
Total blocks = h(h+1)(2h+1)/6, where h is the pyramid height in tiers. This is the sum of all perfect squares from 1 squared to h squared. For example, a 5-tier pyramid: 5 x 6 x 11 / 6 = 55 blocks (1 + 4 + 9 + 16 + 25 = 55).
How do I find the largest pyramid I can build with a fixed number of blocks?
Switch to inventory mode and enter your block count. The calculator finds the largest h so that h(h+1)(2h+1)/6 does not exceed your supply, and tells you how many blocks are left over. Alternatively, check the reference table for the closest total that fits your stock.
Does this work for Minecraft beacon pyramids?
Yes for counting blocks per layer. A Minecraft beacon pyramid is typically 4 tiers tall. Using this calculator for h = 4 gives 1 + 4 + 9 + 16 = 30 blocks total for a fully solid pyramid. The game counts only the mineral blocks (iron, gold, diamond, emerald, netherite) directly under the beacon, not air, so the numbers match if you fill every cell.
How do I calculate a hollow pyramid instead of a solid one?
For each layer of side length n, replace n x n (solid) with 4(n - 1) (hollow perimeter). For n = 1 and n = 2 the hollow count equals the solid count (1 and 4). For larger layers the saving is substantial: a 10 x 10 solid layer needs 100 blocks, the hollow perimeter needs only 36. Sum the modified layer counts to get the hollow pyramid total.
Why does it take so many more blocks near the base?
Because block count grows with the square of the layer size. Adding one extra tier at the top costs just 1 more block (the new 1 x 1 peak). Adding one extra tier at the bottom of a 10-tier pyramid costs 11 x 11 = 121 blocks for the new base. The bottom layers dominate the total, which is why large pyramids demand so much material near the end of a build.
Can I use this for a pyramid with a rectangular (non-square) base?
The formula here applies to square pyramids where both base dimensions are equal. For a rectangular pyramid where width and depth differ, you would need to sum w x d, (w-1) x (d-1), ..., 1 x 1 for each layer pair, stopping at the smaller dimension. The reference table and chart in this calculator assume a square base only.