A Minecraft iron farm is a trap for iron golems. Villagers summon a golem when they panic, so the farm holds a few villagers, scares them with a contained zombie, gives the golem a valid place to spawn, and kills it the moment it appears. Each golem drops 3 to 5 iron ingots and 0 to 2 poppies, and in Java the farm needs no player nearby. It runs as long as its chunks are loaded.
The part most video tutorials skip is the mechanism, and the mechanism is what lets you fix a farm that doesn't work. This guide covers Java Edition only, as of Java 26.3 (released September 15, 2026), and is based on the Minecraft Wiki's Iron Golem, Iron golem farming and Java Edition 26.3 pages. Every rule below comes from there.
How do iron farms work in Java?
Iron golems are spawned by villagers. A villager summons one either while gossiping, or every 5 seconds while panicking, but only if all of these are true:
- The villager has slept in the last 20 minutes.
- It has not detected an iron golem in the last 30 seconds. A golem counts as detected within 16 blocks of the villager, and villagers scan for golems once every 10 seconds.
- It has not been near a summoning in the last 30 seconds, meaning within 10 blocks of a villager who just summoned a golem.
- Enough participants are within 10 blocks of it, counting the villager itself. Each participant must also meet rules 1 to 3. Gossiping needs 5 or more; panicking needs 3 or more.
- The game finds a valid spawn point.
Panic beats gossip
Villagers gossip because of player actions: trading, curing, attacking or killing villagers. Villagers panic when they see a mob hostile to them, such as a zombie or pillager. The wiki calls panicking the more reliable and efficient route: a zombie triggers it without you, and it needs three villagers instead of five. The design below uses panic.
Where the golem can spawn
The game makes up to 10 attempts inside a 17x13x17 box centred on the villager: 8 blocks either way on X and Z, 6 either way on Y. It picks a random column, then takes the topmost block in that column that is air or liquid and has a solid-topped block beneath it. The target block and the two blocks above it can't be full blocks, redstone-powered or rails, and the two above can't be water. The golem also can't collide with another entity. Slabs, fences and carpets are fine, and so is 1-deep water.
Our reading of those rules, not a wiki quote: build a spawn platform of solid blocks within about 8 blocks sideways and 6 vertically of the villagers, with at least 3 blocks of clear air above it, and keep other high surfaces out of the box. Since the game picks the topmost valid block, a stray ledge above your platform steals the spawns.
Build a basic iron golem farm, step by step
This is one generic, version-safe layout. Exact dimensions vary by design, so adapt it to your space.
Step 1: Villager pods
Put at least three villagers, and ideally more, within 10 blocks of each other. Our villager breeding guide covers getting them, and the trading hall guide shows how to keep them sealed in. Villagers don't need a profession to summon golems, so no workstations are required.
Step 2: A bed for each villager
Rule 1 means villagers must have slept recently, so a farm effectively works at night. Give each villager a normal bed. One 26.3 trap: the new straw bed is not used by villagers, unlike other beds. We infer that a farm with only straw beds fails the sleep rule.
Step 3: A contained zombie
The zombie is the scare. Keep it where villagers can see it but it can't reach them, and stop it despawning: the wiki suggests keeping it in a boat or minecart, name-tagging it, or giving it an item to hold or armour to wear. Zombies burn in sunlight, so roof its cell. Pillagers scare from further away (15 blocks against 6 for zombies) and don't burn, but one must be disarmed first, which is only possible in Java. A zombie is the simpler choice.
Step 4: The spawn platform
Build it inside the box described above. Golems avoid water, lava, fire and cactus, are immune to drowning and fall damage, can step up a full block and can cross a 1-wide hole, so a 1-wide gap won't hold one.
Step 5: Move and kill
Most farms use flowing water to carry golems and a lava blade to kill them: lava resting on blocks with no collision, such as signs or open fence gates. A golem has 100 health and 100% knockback resistance, and a fall won't hurt it, so lava or another damage source has to finish the job. Magma blocks and skeleton arrows are slower than lava. Trident killers (Impaling V, golem kept in contact with water) can be faster.
Step 6: Collect
Let the drops land in hoppers that feed a chest. The wiki's example ends in a lava block, a hopper and a collection chest.
Keep golems from blocking the next one
Rule 2 means a villager that can detect a living golem within 16 blocks won't summon another. Move golems out of range or kill them fast. The wiki also says the game limits how many golems villagers can summon, and offers two workarounds: Nether portals, where the limit resets on teleport, or a chute the golems fall down after spawning, which it calls more reliable. It notes its own spawn-rate information is incomplete, so treat this as current guidance rather than gospel.
Iron farm not working? Check these
- Daytime or no usable bed. Villagers need sleep within the last 20 minutes. Check that every villager has a normal bed, not a straw bed.
- Too few villagers close together. You need 3 panicking or 5 gossiping within 10 blocks, and each must meet the sleep and golem rules. One villager further away breaks the group.
- A golem already nearby. A living golem within 16 blocks suppresses summoning. Clear leftovers.
- A summoning just happened. Villagers within 10 blocks of a recent summoner wait 30 seconds.
- No valid spawn block. Full blocks, rails, redstone power or water above the target block rule it out, as does a platform without a solid top surface. Slabs and carpets work.
- The scare has vanished. The zombie may have despawned or burned. Villagers panic when they see a hostile mob, and that is all the wiki states about it.
The wiki says the golem summoning interval is 30 seconds again since 1.20.2 (it was 35 seconds from 1.19). We give no iron-per-hour figure because we found no written Java source for one. What limits your rate is those 30-second windows, how many villagers you have, and how fast golems are cleared.
Minecraft iron farm without villagers
In vanilla Java, no. Iron golems are spawned by villagers, and every summoning condition above depends on them. You can build a golem from four iron blocks and a carved pumpkin, but by our reckoning that costs more iron than it returns, so it isn't a farm. Our mob farm guide covers dark-room farms for hostile mobs, which run on different spawning rules, and the raid farm guide is the other villager-based build.
Bedrock differences
This page is Java-only. Bedrock uses a different village system (at least 20 beds and 10 villagers, among other rules) and needs a player nearby, so Java designs generally don't port over.
Iron farm FAQ
How many villagers do I need?
Three panicking villagers within 10 blocks of each other is the minimum for the panic route. Gossip needs five.
Does Looting increase iron?
No. The wiki's drop tables are identical at Looting I to III.
Do I need to be nearby?
Not in Java. The farm runs as long as its chunks are loaded.
Check the Iron Golem wiki page after each Java release. Its history lists no golem-spawning change in 26.x as of this writing, but our check of the 26.3 notes was partial.