Stack Calculator

Work out how many stacks, chests and shulker boxes you need for any number of items, or a whole list of them.

One item

Commas are fine, and you can type sums like 3*1728 + 50.

Reverse: stacks → items

0full stacks
0items left over
0inventory slots
0chests or barrels
0double chests
0shulker boxes

Several items

Plan storage for a mix of items. Each slot can only hold one item type, so this adds up slots, not items. Saved on this device.

ItemAmountStack sizeSlots
0total slots
0chests or shulker boxes
0double chests
0player inventories (36 slots)
Java & Bedrock · all current versionsLast updated Runs in your browser

Stack sizes in Minecraft

Most blocks and items stack to 64. A smaller group stacks to 16, and anything with durability, contents or special data doesn’t stack at all.

Stack sizeExamples
64Most blocks, ingots, food, arrows, redstone dust, seeds
16Ender pearls, snowballs, eggs, signs, empty buckets, banners, honey bottles, armor stands
1Tools, weapons, armor, potions, beds, boats, minecarts, totems, filled buckets, enchanted books, shulker boxes

How much each container holds

ContainerSlotsItems at 64Items at 16
Player inventory (not counting armor/offhand)362,304576
Chest, barrel or shulker box271,728432
Double chest543,456864
Double chest full of full shulker boxes54 × 2793,31223,328

How the calculator works

full stacks = floor(items ÷ stack size)
left over = items mod stack size
slots = ceil(items ÷ stack size)
chests or shulker boxes = ceil(slots ÷ 27)
double chests = ceil(slots ÷ 54)

A partly-filled stack still takes up a whole slot, which is why slots are rounded up. Example: 10,000 cobblestone is 156 stacks + 16, which needs 157 slots: 6 shulker boxes or 3 double chests.

FAQ

How many items are in a shulker box?

27 stacks. That’s 1,728 items for 64-stackables or 432 for 16-stackables.

Can I put a shulker box inside a shulker box?

No. Shulker boxes can’t hold other shulker boxes, but chests, barrels and your ender chest can.

Is this the same on Bedrock?

Yes. Stack sizes and container sizes match between Java and Bedrock for the items listed here.