A stack is the basic element in Factorio to store Items. One space in an inventory can hold one stack.
Examples of stacks
- The player's inventory
- Main inventory
- Toolbelt (or quickbar)
- tool-, armor-, weapon- and ammunition stacks
- The players hand (is also a stack)
- Vehicles contain also some stacks for Fuel
- Chests: eventually the best known example of stacks. Basically chests are nothing else then a group of stacks.
- Inserter and Robots (they have some limited stacks, see stacksize bonus), so that they are able to move some items between stacks at once.
How do stacks work?
A stack can store a number of identical items.
The first inserted item determines which item-types can be stored. This also determines how many items can be stored (the number of items per stack depends on it's max stack size).
Only items can be stored within stacks, stacks cannot hold liquids or other inventories.
There are also ways to filter stacks, either by default (for the burner/furnaces, or roboports) or manually set for the wagons or toolbelt (normally set via the middle-mouse-button, see Keyboard bindings). This can be used to ensure only one item type goes into the inventory space.
Damaged entities will not stack together with entities of different health, and will not stack with healthy entities.
Stack size bonuses
Inserters and logistic robots can be boosted with research to hold and transfer more items, see:
Optionally, the usable space in chests and wagons can be decreased below their default values. Typically, this is done to store a small amount of items in an automated process, without consuming the resources that would be required to fill the entire container.
To limit a container, click the red X at the end of the last stack. Then, click on one of the stacks to set the new limit. The unused stacks will be highlighted red (see right).
When full, inserters will no longer add to a limited container. However, the player is still free to manually place items in the unused (red) slots.
There are some keyboard bindings to handle movement of stacks between inventories fast, like moving half of a stack to another stack.
In v0.10, the number of items which can be stored in a stack changed for most items from dual numbers to decimal (base 2 vs. base 10). This change was mainly made because it is easier to calculate numbers based on the base-10-system.
Example: before that change, a stack could store 64 iron ore, after the change only 50. This change created a lot of controversy as some players preferred the old stack sizes.