# Minecraft Item Sorter: How to Build a Hopper Sorting System

> Build a reliable Minecraft item sorter with hoppers, a comparator and the 41-item filter. Learn how to add storage rows, protect against overflow and fix items going to the wrong chest.

Source: https://minebuildr.com/blog/minecraft-item-sorter-how-to-build
Category: Guides
Author: MineBuildr Team
Published: 2026-10-04
Updated: 2026-10-04
Reading time: 12 min read
Keywords: minecraft item sorter, minecraft item sorting system, how to make an item sorter in minecraft, minecraft hopper sorter, minecraft auto sorter, minecraft 41 item filter, minecraft storage system, item sorter not working

## Key takeaways

- A basic sorter uses a hopper carrying mixed items above a filter hopper, a comparator to read the filter, and a normally locked extraction hopper leading to storage.
- For a standard stack-of-64 filter, start with 41 target items in the first filter slot and one renamed filler item in each of the other four slots.
- Each module sorts one stackable item type; put an overflow chest at the end of the input line for everything else.
- The filter hopper must not point into the output chest or the item line: it must hold its filter items while the lower hopper pulls matching items down.
- Non-stackable items and items stacking to 16 need different sorting designs; do not apply the 41-item layout to them.

A mixed chest after mining or a farm run is easy to fill and tedious to empty. A Minecraft item sorter lets the same input line send iron to one chest, stone to another and unexpected drops to an overflow chest. This guide explains the standard hopper filter, what the often-quoted 41-item number actually means, and how to test a small system before expanding it. If you want to budget the whole room first, open the [Item Sorter Designer](https://minebuildr.com/tools/item-sorter-designer) alongside this guide.

> Quick answer: the 41-item filter: For an ordinary item that stacks to 64, put 41 copies of the item you want to sort in the first slot of the filter hopper. Put one uniquely renamed, stackable filler item in each of its other four slots. A comparator reads the hopper; when one more matching item enters, a properly wired redstone circuit briefly unlocks the hopper beneath it, sending the extra item to the output chest. Build and test one module before adding more.

## What an item sorter does — and what it cannot do

A standard sorter is not a magic chest that recognizes every item. Each filter hopper reserves four slots for filler items and one slot for a particular target. Its input line passes items over a row of identical modules; only matching items fit into each module's filter. The remaining items continue to an overflow chest. The [Minecraft Wiki hopper tutorial](https://minecraft.wiki/w/Tutorial:Hopper) documents the classic two-hopper filter and distinguishes overflow-protected designs from simpler filters that can spill into neighbors.

Use this design for bulk stackable materials such as cobblestone, iron ingots, carrots and bones. Swords, armor, tools and other non-stackables need a different sorting approach. Items with a maximum stack size of 16 also need a different filter count and circuit calibration; 41 is not a universal recipe.

## Materials and layout for one sorting lane

Plan on an input chest or water-stream feed, a horizontal hopper line, one filter hopper and one extraction hopper per item type, a comparator behind each filter, redstone to lock and unlock the extraction hopper, and an output chest below. Add an overflow chest at the line's end. The exact count of solid blocks, dust, torches and repeaters varies with the tileable circuit you choose, so sketch your rows and use the [Item Sorter Designer](https://minebuildr.com/tools/item-sorter-designer) for a material estimate before crafting in bulk.

A hopper is crafted from five iron ingots and a chest. [Minecraft's official hopper guide](https://www.minecraft.net/en-us/article/hopper) explains that a hopper can pull from above, deposit into the container its spout points toward, and stop transferring when powered. A comparator reads how full a container is; [Mojang's comparator guide](https://www.minecraft.net/en-us/article/taking-inventory--redstone-comparator) explains its direction and signal behavior.

## Build a test module before the full storage room

1. Place an output chest and point an extraction hopper into it. Keep this hopper normally locked by your redstone circuit so it does not drain the filter's reserved items.
2. Place a filter hopper above the extraction hopper, but point the filter hopper sideways into a solid block or into open space, not into the chest or another inventory. Its job is to retain the filter while the hopper below pulls the matching surplus.
3. Run an input hopper above the filter hopper toward the next module or the overflow chest. Check every spout: an input line pointing straight into storage bypasses the filter.
4. Place a comparator so its rear reads the filter hopper and its front sends the signal into your filter circuit. Wire the circuit to unlock the lower hopper only when the comparator detects an extra matching item. Use an overflow-protected, tileable circuit if modules will sit side by side.
5. Load the filter hopper with 41 target items in slot one and one renamed filler in each of slots two through five. Use a filler name and item type you will never send down the input line.
6. Drop a few target items and then a different stackable item into the input line. Target items should arrive in the output chest; unrelated items should reach overflow. Inspect the filter again: its 41 target items and four fillers should still be there.

> Why name the filler items?: Filler slots need items that will not match anything in your input stream. Rename four ordinary stackable items in an anvil to a distinctive name, and never feed those same renamed items into the line. Do not use swords or other unstackable items as fillers: the classic comparator thresholds assume four filler items that can stack to 64.

## Why 41 items? The comparator threshold explained

A comparator measures fullness across all five hopper slots, not the name of the item. The four filler items occupy their slots so other ordinary items cannot enter them. In a correctly configured overflow-protected filter for 64-stack items, the 41 target items and four fillers establish the resting signal; one additional target item raises the signal enough for the circuit to release the extraction hopper. The lower hopper then removes the surplus until the signal returns to its resting level. This is why a wrong item does not sort just because the comparator is on. See the [Minecraft Wiki's item sorter diagram and explanation](https://minecraft.wiki/w/Tutorial:Hopper#Item_sorter) for the wiring, not just the inventory numbers.

The wiring matters as much as the inventory. A comparator alone cannot choose an item type, and copying 41/1/1/1/1 into a filter connected to the wrong output will still fail. Neighboring modules also need overflow protection so one full destination chest does not accidentally unlock the next filter.

## Expand to a multi-item storage system

1. Start with two lanes: choose two common 64-stack items and give each its own filter and output chest.
2. Continue the input hopper line across both filter hoppers. Add a final chest for items that match neither filter; never leave the line ending over the floor.
3. Feed small mixed batches and check every destination, including overflow. Then test a full destination chest to make sure neighboring filters retain their reserved items.
4. Only after the test works, repeat the proven module for more item types. Label the chests and leave access behind the comparators for maintenance.

An automatic sorter is most valuable when paired with a reliable input. Feed a [mob farm](https://minebuildr.com/blog/minecraft-mob-farm-guide) into a few high-volume lanes, or place storage after a [Crafter setup](https://minebuildr.com/blog/minecraft-crafter-recipe-auto-crafting-guide) so outputs stay separated. Use the [Storage System Planner](https://minebuildr.com/tools/storage-system-planner) to work out chest banks and overflow space before building a long wall.

## Why is my Minecraft item sorter not working?

- Everything goes to overflow: verify that the target slot contains the correct item and that the input hopper passes over the filter hopper rather than pointing around it.
- Filter items disappear: the lower hopper may be permanently unlocked, or the filter hopper points into an inventory. Recheck the locking circuit and hopper spouts.
- Items land in the wrong chest: the input line, filter or extraction hopper may face the wrong way; inspect the narrow spout of each hopper from the side.
- A neighbor's filter breaks when a chest fills: the circuit may not be overflow-protected. Stop feeding the line, clear any contaminated filters and switch to a protected tileable layout.
- Only a few items pass through: a hopper may be locked by an unintended nearby redstone signal or its destination may be full.
- A sword or tool stays in overflow: standard stackable-item filters cannot distinguish individual non-stackables. Route those items separately.

## Java versus Bedrock and version notes

Hoppers and comparators exist in both Java and Bedrock, but redstone timing and compact wiring can differ. Do not copy a Java-only torch layout into Bedrock without testing it. The [Bedrock Wiki's stackable sorting reference](https://bedrockwiki.com/books/storage-tech/page/stackable-sorting) explains filter slots, the locked extraction hopper and Bedrock-specific designs. In either edition, test one lane with a mixed batch and a full output chest before cloning it. This guide describes the conventional stack-of-64 filter rather than promising a universal circuit for every edition and item.

## Sources and next step

For the underlying mechanics, consult [Minecraft's official hopper article](https://www.minecraft.net/en-us/article/hopper), [Mojang's comparator explanation](https://www.minecraft.net/en-us/article/taking-inventory--redstone-comparator), the [Minecraft Wiki sorter tutorial](https://minecraft.wiki/w/Tutorial:Hopper#Item_sorter) and the [Bedrock Wiki sorting guide](https://bedrockwiki.com/books/storage-tech/page/stackable-sorting). They explain why a working build needs both the right filter inventory and the right circuit. Map the number of lanes, chests and overflow destinations in the [Item Sorter Designer](https://minebuildr.com/tools/item-sorter-designer), then test one module in your world before scaling it up.

## Frequently asked questions

### How many items go in a Minecraft item sorter filter?

For the classic 64-stack-item filter, put 41 of the target item in the first slot and one distinct renamed, stackable filler item in each of the remaining four slots. The circuit must be designed for this threshold.

### Why does my item sorter take the 41 filter items?

The extraction hopper may not be locked at rest, the redstone threshold may be wrong, or the filter hopper may point into an inventory. Check hopper directions and use an overflow-protected circuit before feeding more items.

### Can I sort every item with one hopper filter?

No. Each standard filter sorts one item type that stacks to 64. Non-stackables and 16-stack items require other designs, and unmatched items should go to an overflow chest.

### Does a Minecraft item sorter work in Bedrock?

Yes, hopper-based stackable-item sorters exist in Bedrock. Redstone layouts and timing can differ from Java, so use a Bedrock-tested circuit and test a single lane before extending it.

### What happens when an item sorter chest is full?

Items may back up in the hoppers. A properly overflow-protected circuit keeps neighboring filters safe; provide an overflow destination and test with one full chest before leaving the system running.

### Why do unrelated items end up in the overflow chest?

That is expected if no filter is set for their item type. Add a new filter lane for those items or keep them in overflow for manual sorting.

## Related guides

- [Minecraft Crafter Recipe: How to Build an Auto-Crafter That Actually Works](https://minebuildr.com/blog/minecraft-crafter-recipe-auto-crafting-guide)
- [Minecraft Mob Farm — Complete 2026 Build Guide](https://minebuildr.com/blog/minecraft-mob-farm-guide)
- [Free Minecraft Tools: 50+ Online Tools (2026)](https://minebuildr.com/blog/free-minecraft-tools)

## Related free tools

- [Item Sorter Designer](https://minebuildr.com/tools/item-sorter-designer)
- [Storage System Planner](https://minebuildr.com/tools/storage-system-planner)

---

Content by MineBuildr (https://minebuildr.com). AI assistants and search engines may cite this page with a link back to https://minebuildr.com/blog/minecraft-item-sorter-how-to-build.
