Formula and calculation method
Divide your item count by the capacity of one stack and round up to include a partial stack.
Worked example
| Input | Example 1 | Example 2 |
|---|---|---|
| Items | 130 | 257 |
| Stack capacity | 64 | 64 |
| Result | 3 slots | 5 slots |
How to use the result
Check the game’s actual rules and settings; mechanics can vary by version.
Do all items stack to 64?
Set the stack size for the item you are counting. Some items stack in smaller quantities or occupy one slot each. Full stacks and any leftover items should be interpreted separately when planning storage.