What an XP farm does and why you need one
An XP farm is a structure that automatically kills mobs (creatures) and collects the experience points they drop, letting you level up your character without fighting. The experience goes into your XP bar at the bottom of the screen, and once you have enough, you can use it to enchant tools, repair items at an anvil, or mend damaged gear. Building one saves you hours of grinding through caves or fighting mobs by hand.
The most practical farms for new players use either fall damage (mobs fall from a height and die) or suffocation (mobs get pushed into blocks and take damage). Both work in Survival mode without requiring rare materials, and both can be built in a few hours. The farm runs on its own once built — you just stand nearby and collect the drops.
Key Takeaways
- A fall damage farm pushes mobs off a platform so they die from the impact, and works best if built 24 to 32 blocks above the ground.
- You need water to funnel mobs toward the drop, hoppers to collect items, and a collection chamber below where mobs land.
- The farm only works if you are within 128 blocks of it, so you need to stand in the collection area or nearby for mobs to spawn and die.
- Mob spawning happens faster in dark places, so the farm should be in a dark room or built high enough that no other dark spaces exist nearby.
- A basic farm takes about two to four hours to build and produces enough XP to go from level 0 to level 30 in roughly ten minutes of standing there.
Choosing a location and preparing the space
The best location is either high in the sky (at least 128 blocks above the nearest ground) or deep underground in a large empty chamber. If you build in the sky, mobs spawn naturally and fall into your farm. If you build underground, you need to create a large dark room first so mobs spawn there instead of in caves around you.
For a first farm, building at Y-level 120 to 150 (use F3 on Java Edition to see your height) is easiest. Clear a 50-by-50 block area and build your farm there. You need space for the mob spawning platform, the water channels, the drop shaft, and the collection chamber below. If you are building underground, dig out a chamber at least 50 blocks wide and 30 blocks tall so mobs have room to spawn and fall.
Gather materials before you start: you will need about 200 blocks of your choice (dirt, stone, wood — anything works), 20 to 30 water buckets, 10 to 15 hoppers, 2 to 3 chests, slabs, stairs, and a few signs. Hoppers are the expensive part; you need iron ingots to craft them. If you do not have iron yet, mine some or find a village and trade with an armorer.
Building the mob spawning platform
Create a flat platform 24 to 32 blocks above your collection chamber. This height is important: mobs need to fall far enough to take damage but not so far that they die before reaching your collection area. Use any solid block and make the platform at least 40 by 40 blocks so mobs have room to spawn.
Leave the platform mostly empty — do not put walls or roofs on it yet. Mobs spawn on flat, dark surfaces, so the more open space you have, the more mobs spawn. Once the platform is built, light it with torches or lanterns so you can see while building. You will remove the light later.
At one edge of the platform, dig a trench 2 blocks deep and 2 blocks wide that runs the full length of that edge. This trench will hold water that pushes mobs toward the drop shaft. Make sure the trench slopes slightly downward toward the drop shaft so water flows in that direction.
Installing water channels and the drop shaft
Place water in the trench you dug so it flows toward the drop shaft. Water pushes mobs in the direction it flows, so they will move toward the edge. You need the water to flow in a line toward a single point — the drop shaft — where mobs will fall.
At the end of the water channel, dig a shaft straight down. Make it 2 blocks wide and as tall as the distance between your platform and your collection chamber (usually 24 to 32 blocks). This is where mobs fall and take damage. The shaft should be completely empty inside so nothing blocks the fall.
Below the drop shaft, build a collection chamber. Make it 3 blocks tall, 5 blocks wide, and 5 blocks long. Place hoppers on the floor of this chamber pointing into a chest at one corner. The hoppers will catch items that mobs drop (experience, bones, string, and other loot) and funnel them into the chest so you do not lose anything.
Finishing the farm and testing it
Once the water, drop shaft, and hoppers are in place, remove all the torches from the spawning platform. Mobs only spawn in complete darkness, so the platform must be dark. You can leave the collection chamber lit so you can see.
Stand in or near the collection chamber and wait. Mobs should begin spawning on the platform within a few seconds. They will wander into the water, get pushed toward the drop shaft, fall, and die. You will see experience orbs (small green and yellow balls) float down into the collection chamber. Walk through them to collect the XP.
If no mobs spawn after a minute, check that the platform is completely dark and that you are within 128 blocks of it. If mobs spawn but do not move toward the water, the water may not be flowing in the right direction — use a bucket to adjust it. If mobs spawn but survive the fall, your platform is too low; move it higher.
Speeding up your farm with improvements
Once your basic farm works, you can make it produce XP faster. The simplest improvement is to add suffocation damage instead of relying only on fall damage. Place a 1-block-tall wall at the bottom of the drop shaft. Mobs will pile up and push each other into the wall, taking damage from suffocation. This kills them faster and produces more XP per minute.
Another improvement is to add a second water channel on a different edge of the platform. More water channels mean mobs funnel toward the drop shaft from multiple directions, so more mobs reach it at once. You can also expand the spawning platform to 60 by 60 blocks if you have the materials.
If you want to automate the XP collection, you can add a hopper minecart under the collection chamber that moves items to a distant storage area. This is more complex and requires rails and redstone, but it lets you collect XP from far away without standing in the chamber.
Common mistakes and how to fix them
The most common mistake is building the platform too low. If mobs die before reaching the collection chamber, they drop XP in mid-air and you lose it. Move your platform higher — aim for 32 blocks above the collection chamber as a safe height.
Another mistake is leaving light on the spawning platform. Even a single torch will reduce spawn rates. Remove all light sources from the platform itself, but you can light the collection chamber and the area around it.
If your farm produces very little XP, you may have other dark spaces nearby where mobs are spawning instead. Build a roof over your farm or fill in nearby caves so mobs spawn only on your platform. You can also build your farm higher in the sky where no other dark spaces exist.
If water is not flowing correctly, remember that water flows downward and spreads horizontally up to 8 blocks from the source. Place the water source at the highest point of your channel and let it flow downhill toward the drop shaft. Use signs or stairs to control the flow direction if needed.
Frequently Asked Questions
Do I need to be standing at the farm for it to work?
Yes. Mobs only spawn and move if you are within 128 blocks of them. You must stand in or near the collection chamber for the farm to produce XP. You can stand still and do something else while it runs, but you cannot be in a different part of the world.
What is the fastest type of XP farm?
Enderman farms and blaze farms produce the most XP per minute, but they require you to travel to the End or the Nether and are much harder to build. For Survival mode in the Overworld, a fall damage farm with suffocation is the fastest option a new player can build.
Can I build an XP farm in Creative mode?
Yes, but you do not need one. In Creative mode you have unlimited resources and do not need to level up. XP farms are only useful in Survival mode where you need XP to enchant tools and repair items.
How much XP does a farm produce?
A basic farm produces enough XP to reach level 30 in about ten to fifteen minutes of standing there. Level 30 is the maximum level for most enchantments, so that is usually the target. A larger or improved farm can reach level 30 in five to ten minutes.
Will my farm work on a multiplayer server?
Yes, but only if you are online and within 128 blocks of it. On servers, the farm stops working when you log off. Some servers also have rules against certain types of farms, so check with the server owner before building.