What an XP farm does and why you need one

An XP farm is a structure you build in Minecraft that automatically kills mobs (creatures) and collects the experience points they drop. You use those points to enchant tools, repair weapons, and level up your character. Without a farm, you spend hours hunting mobs manually — with one, you can gather a month's worth of XP while doing other things.

The most practical farms target either mobs that spawn naturally (like zombies and skeletons) or mobs you breed yourself (like chickens or axolotls). Natural mob farms work on any Minecraft world. Breeding farms take longer to set up but produce XP faster once running.

This guide covers the simplest natural mob farm — one that works in Survival mode on any difficulty and requires only basic materials you can gather in the first few hours of a new world.

Key Takeaways

  • A basic mob farm uses water and gravity to push mobs into a killing chamber, where they die from fall damage or suffocation.
  • You build the farm 24 blocks above the ground so mobs spawn inside it instead of on the surface around you.
  • The farm works best if you stand in a specific spot called the "AFK zone" — far enough away that mobs stop spawning, but close enough that they stay loaded.
  • Mobs only spawn in complete darkness, so your farm needs a roof and no torches inside the spawning chamber.
  • A working farm produces 5,000 to 10,000 XP per hour depending on your world's mob cap and how many spawning platforms you build.

Choosing your farm location and height

Find a spot at least 150 blocks away from your main base — mobs spawn less frequently if you are nearby. An ocean or empty plains biome works best because fewer mobs spawn naturally there, leaving more "spawn slots" for your farm.

Build your farm at Y-level 120 or higher (check your coordinates by pressing F3 on Java Edition or looking at the debug screen on Bedrock). This height ensures mobs spawn inside your farm instead of on the ground around you. The higher you build, the more mobs spawn inside rather than outside.

Mark the location with a pillar or beacon so you can find it again. You will need to return here to stand in the AFK zone and let the farm run.

Building the spawning platform and collection system

Create a 22-by-22 block platform made of any solid block — wood, stone, or dirt. This is where mobs will spawn. Leave the center 20-by-20 empty (do not place blocks there). The 1-block border around the edge prevents mobs from spawning at the very edge.

At one corner of the platform, dig a 2-block-wide trench that slopes downward. This trench should drop at least 24 blocks — the fall will kill most mobs. At the bottom, place water to push mobs toward a central collection point. The water should flow toward a single block where mobs stack up.

Under that collection point, dig a 1-by-1 shaft down another 10 blocks. Place a suffocation chamber at the bottom — a 1-by-1 space with a piston that pushes mobs into a solid block, killing them through suffocation. Alternatively, let mobs fall into lava, though this destroys some drops.

Mobs killed by fall damage drop all their loot. Mobs killed by suffocation or lava drop less, so fall damage is preferred. Place a hopper under the collection point to funnel drops into a chest.

Lighting and mob-spawning conditions

Mobs only spawn in complete darkness — light level 0. Cover the entire spawning platform with a roof made of any solid block, leaving no gaps. Do not place any torches, lanterns, or light sources inside the spawning chamber.

Check the platform at night with no other light sources nearby. If you see any mobs spawning on the surface around your farm, the platform is too low or mobs are spawning outside the farm. Raise the platform higher or add more dark spawning space.

You can place torches outside the farm and along the path to the AFK zone — those do not affect spawning inside the covered platform.

Creating the AFK zone and testing the farm

The AFK zone is where you stand while the farm runs. It must be 24 to 32 blocks horizontally away from the spawning platform and at least 10 blocks above or below it. Mobs stop spawning when you are too close, but they stay loaded and continue moving toward the collection point when you are at the right distance.

Build a small platform or room at the correct distance and mark it clearly. You can add a bed, crafting table, or furnace here so you have something to do while waiting. Some players use a controller or weight to hold down a movement key, letting the farm run overnight.

Stand in the AFK zone for 5 to 10 minutes and watch the collection point. You should see mobs falling and dying. If nothing happens, check that the spawning platform is dark, that you are at the correct distance, and that the platform is high enough. If mobs are spawning outside the farm instead, raise it higher.

Expanding your farm for faster XP

A single 22-by-22 platform produces steady XP, but you can double or triple the output by stacking multiple platforms. Build a second platform 10 blocks above the first, with its own collection system feeding into the same central shaft. Each platform needs its own roof and darkness.

Do not stack platforms directly on top of each other — offset them slightly so water and mobs from the upper platform do not interfere with the lower one. Three stacked platforms can produce 10,000 to 15,000 XP per hour.

Test each platform individually before connecting them. Make sure mobs are spawning and dying on each one before you add the next.

Common problems and fixes

Mobs are not spawning. Check that the platform is dark (no light leaks), that you are at least 24 blocks away, and that the platform is at Y-level 120 or higher. Mobs also spawn less frequently in biomes where many mobs already exist naturally — try moving the farm to an ocean or desert.

Mobs are spawning outside the farm instead of inside. The platform is too low. Raise it to Y-level 150 or higher. You can also reduce the number of mobs spawning naturally by lighting up caves and surface areas around your base.

Mobs are not falling into the collection point. The water flow may be too weak or pushing mobs the wrong direction. Increase the water flow by placing water sources closer together, or redirect the flow with blocks.

The farm produces XP but very slowly. You are probably too close to the spawning platform. Move the AFK zone farther away or higher up. You can also add more spawning platforms to increase total output.

Frequently Asked Questions

Do I need mods or plugins to build an XP farm?

No. XP farms work in vanilla Minecraft on any version — Java, Bedrock, or Pocket Edition. No mods or plugins are required. The farm uses only basic game mechanics: mob spawning, water, gravity, and fall damage.

Can I build an XP farm in Creative mode?

Yes, but you will not gain XP from mobs killed in Creative mode. Build the farm in Survival mode if you want to use it. You can design it in Creative first to test the layout, then rebuild it in Survival.

What is the fastest type of XP farm?

Enderman farms produce the most XP per hour because Endermen drop more experience than other mobs. However, they are harder to build and require you to be in the End dimension. A basic mob farm is faster to build and works in the Overworld.

How much XP does a working farm produce?

A single-platform farm produces 5,000 to 10,000 XP per hour depending on your world's mob cap and how many mobs spawn naturally nearby. A three-platform farm can produce 15,000 to 20,000 XP per hour. The exact number varies by world and difficulty.

Can I use a farm on a multiplayer server?

Yes, but the farm will be slower if other players are also loaded into the world. The mob cap is shared across all players, so if someone else is hunting mobs elsewhere, fewer mobs spawn in your farm. Farms work best when you are the only player active.