Items to stacks
How many stacks, slots and containers a pile of items takes
Most blocks and items
Containers needed
Slots, capacity and how many you need at this stack size
| Container | Slots | Holds | Needed |
|---|---|---|---|
| Shulker box | 27 | 1,728 | 1 |
| 27 | 1,728 | 1 | |
| 54 | 3,456 | 1 | |
| Barrel | 27 | 1,728 | 1 |
| 27 | 1,728 | 1 | |
| Hopper | 5 | 320 | 4 |
| Dropper | 9 | 576 | 2 |
Stacks to items
Add up shulker boxes, chests, stacks and loose items
Common stack sizes
Items that stack to 16, and items that don't stack
Ender pearl- Snowball
Egg- Bucket (empty)
- Signs (every wood)
Banners (every colour)- Honey bottle
Armor stand
Swords, tools and armour- Potions
- Boats
- Minecarts
- Beds
Cake- Saddle
Totem of Undying
Water, lava and milk buckets- Shulker boxes
- Bundle
Enchanted book
Elytra
Everything else stacks to 64. Sizes come from Mojang's data-generator reports for Minecraft 26.3.
How stack sizes and containers work
Slots, rounding, and why a partial stack still costs a slot
Every item has a maximum stack size: the most copies one inventory slot can hold. Most items stack to 64. Some, like many projectiles (ender pearls, snowballs and eggs), stack to 16. Items with durability, along with potions, boats, beds and shulker boxes, don't stack at all, so their stack size is 1. The item ID list shows the stack size of every item. This calculator divides your item count by the stack size: the whole number is full stacks and the leftover is one partial stack.
Containers count slots, not items. A shulker box, a single chest, a barrel and an ender chest each have 27 slots. A double chest, which is two chests side by side, has 54. A dropper has 9 and a hopper has 5. A partial stack still occupies a whole slot, so the slots you use are the item count divided by the stack size, rounded up, and the containers you need are those slots divided by the container's slots, rounded up.
That makes capacity a simple product: slots × stack size. A full
shulker box holds 27 × 64 = 1,728 items of a 64-stack, 27 × 16 = 432 of a 16-stack and just 27
unstackable items. A double chest holds 3,456, 864 and 54. The same chest can store very different
amounts depending on what is in it, which is why the table above recalculates when you change the
stack size.
Shulker boxes are special. The shulker box item doesn't stack, and a shulker box can't be placed inside another shulker box or a bundle, though any other container accepts one. Carrying a dozen loaded boxes therefore takes twelve inventory slots. Your own inventory has 36 main slots (27 storage and 9 hotbar) on top of the armour and off-hand slots, which is 2,304 items at a stack size of 64.
Java and Bedrock use the same 64, 16 and 1 tiers, and the wiki lists no per-item differences in default stack size between the two. What differs is the override ceiling: with components or commands, any item can be raised to 99 in Java Edition and 127 in Bedrock Edition. This tool only handles the default sizes, so it won't match a server or datapack that changes them.
Use Items to stacks to plan storage before you build, and Stacks to items to turn a counted chest back into a number for a trade, a recipe or a farm's hourly rate. The page address updates as you type, so a copied link reopens with the same numbers.
Worked example: items to shulker boxes
Real numbers, both directions
10,000 cobblestone at a stack size of 64 is 156 full stacks plus 16 loose blocks, which takes 157 slots. A shulker box holds 27 slots, so that is 5 full boxes (135 stacks), a sixth box with 21 stacks and the 16 loose blocks, and 6 boxes in total. In double chests it is 157 ÷ 54, rounded up to 3.
1,000 ender pearls stack to 16, so that is 62 stacks plus 8 pearls, or 63 slots. Two shulker boxes only give 54 slots, so you need 3. One double chest also has 54 slots and isn't enough, so you need 2.
Going back: 2 shulker boxes, 1 double chest, 5 stacks and 12 loose items at a stack size of 64 is (27 + 27 + 54 + 5) × 64 + 12 = 113 × 64 + 12 = 7,244 items.
More Minecraft tools
The rest of the set, for the parts of the build this one doesn't touch
Frequently asked questions
Shulker boxes, double chests and 16-stack items
How many items fit in a shulker box? +
A shulker box has 27 slots (per minecraft.wiki/w/Shulker_Box), so it holds 1,728 items that stack to 64, 432 items that stack to 16, or 27 unstackable items.
How many stacks are in a double chest? +
54. A single chest has 27 slots and a double chest has twice that (per minecraft.wiki/w/Chest), which is 3,456 items at a stack size of 64.
Which items stack to 16? +
Ender pearls, snowballs, eggs, signs, banners, empty buckets, honey bottles and armor stands, among others. Most other items stack to 64, and anything with durability, plus potions, boats, beds and shulker boxes, does not stack.
How do I convert items to stacks in Minecraft? +
Divide the item count by the stack size: the whole number is full stacks and the remainder is one partial stack. For example, 1,000 ender pearls stack to 16, so that is 62 stacks plus 8 pearls, which takes 63 inventory slots.
Can a shulker box go inside another shulker box? +
No. Shulker boxes can be stored in any container except other shulker boxes and bundles (per minecraft.wiki/w/Shulker_Box). A shulker box item does not stack either, so each one takes a full slot in your inventory.