Understanding the pyramid block calculator — concept and principle
Building a stepped pyramid in Minecraft or another block game? This calculator works out how many blocks you need, how many layers the pyramid will have, the size of the bottom and top layers, and how many stacks and chests of blocks to gather, for a solid pyramid or a hollow shell.
How it is calculated
Layer widths: B, B − 2s, B − 4s, … while the width stays above 0
Number of layers = ⌊(B − 1) ÷ 2s⌋ + 1
Solid layer of width w: w² blocks
Hollow layer: w² − (w − 2s)² blocks (the top layer is solid)
Stacks = blocks ÷ 64 (rounded up); chests = blocks ÷ 1,728 (rounded up)
- B is the base width in blocks, s the step in from each side per layer.
The principle
A stepped pyramid is just a stack of squares that shrink by the same amount each layer. Each square layer of width w contains w × w blocks, so the total is a sum of squares. A hollow pyramid only needs the outer ring of each layer, the part you can see from the side and from above, which is the full square minus the smaller square of the next layer up. With an odd base and a step of 1, the top is a single block; with an even base, it ends in a 2 × 2 square.
Worked example
Default inputs: base 9 blocks, step 1, solid pyramid.
- Layer widths: 9, 7, 5, 3, 1, so 5 layers.
- Blocks per layer: 81, 49, 25, 9, 1.
- Total = 81 + 49 + 25 + 9 + 1 = 165 blocks; bottom layer = 81; top layer = 1 block wide.
- Stacks of 64: 165 ÷ 64 = 2.58, rounded up to 3.
- Chests or shulker boxes: 165 ÷ 1,728, rounded up to 1.
How to read the result
Block counts rise quickly with base size, roughly with the cube of the base for solid pyramids. A hollow shell saves a large share of blocks on big builds, which matters if you are gathering by hand. A larger step makes a steeper, shorter pyramid that needs fewer blocks.
Common mistakes
- Forgetting that each layer shrinks on both sides, so width drops by 2s.
- Counting a hollow pyramid's top layer as hollow.
- Ignoring blocks needed for decorations, stairs or interior rooms.
- Planning for 64-stack blocks when using blocks that stack to 16.
Frequently asked questions
How many blocks does a 9-wide pyramid need?
165 blocks for a solid pyramid with a step of 1.
Why does an even base end in 2 × 2?
Subtracting 2 each layer from an even number never reaches 1, so it stops at 2.
How much does a hollow pyramid save?
On large builds, a big share of the blocks; small pyramids save less.
Can I change the step?
Yes, a step of 2 or more makes a steeper pyramid with fewer layers.
Sources: Standard algebra: sum of squares of an arithmetic sequence of layer widths; stack size 64 and 27-slot containers (Minecraft Wiki, "Inventory")