🏆
🏆 Sports & games

Pyramid Block Calculator (blocks per layer for stepped pyramids)

Results update as you type.

Your numbers

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.

Blocks in a pyramidA 9-wide stepped pyramid9² = 817² = 495² = 253² = 91² = 1165 blocks3 stacks5 layers81 + 49 + 25 + 9 + 1 = 165
Each layer is two blocks narrower; the squares add to 165 blocks.

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)

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.

  1. Layer widths: 9, 7, 5, 3, 1, so 5 layers.
  2. Blocks per layer: 81, 49, 25, 9, 1.
  3. Total = 81 + 49 + 25 + 9 + 1 = 165 blocks; bottom layer = 81; top layer = 1 block wide.
  4. Stacks of 64: 165 ÷ 64 = 2.58, rounded up to 3.
  5. 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

Keep in mind: Counts are for plain square layers. Minecraft is a game by Mojang Studios; this page is not affiliated with Mojang or Microsoft.

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")

Checked 9 Nov 2026. Sum of squares of an arithmetic sequence of layer widths (standard algebra). Stack size 64 and 27-slot chests as on the Minecraft stack calculator. Minecraft is a game by Mojang Studios; not affiliated.

🏆 All sports & games tools →🌍 Calculators by country →