Key takeaways
- Reaching level 30 from level 0 takes 1,395 total XP, and level 15 takes 315 (Minecraft Wiki)
- Standard hostile mobs drop 5 XP, blazes and guardians 10, and XP only drops on a player or tamed wolf kill (Minecraft Wiki)
- An End enderman farm reaches level 30 in just under a minute, and a guardian farm makes up to 180,000 XP per hour (Minecraft Wiki)
- Spawners run while a player is within 16 blocks, try 4 spawns per cycle and wait 10 to 39.95 seconds between cycles (Minecraft Wiki)
- Smelting cactus gives 1 XP per item in Java but 0.2 in Bedrock (Minecraft Wiki)
- Mending repairs 2 durability per XP point and takes collected orbs before they reach your level bar (Minecraft Wiki)
The best Minecraft XP farm for most players is a mob spawner farm early on, then an enderman farm in the End or a zombified piglin (gold) farm once you reach those areas: an End enderman farm can reach level 30 in under a minute, and a gold farm can reach level 100 in about an hour. Ordinary hostile mobs drop 5 XP each, and getting from level 0 to level 30 takes 1,395 total XP. This guide covers how experience works, the XP levels table, the main XP farm types with their Java and Bedrock differences, furnace XP, and how Mending uses the orbs you collect.
Checked against Java Edition 26.3, Bedrock Edition 26.66 and the Minecraft Wiki experience, experience farming, monster spawner, enderman, zombified piglin, guardian, furnace and Mending pages on December 4, 2026.
Java Edition 26.4 (Deep Freeze) and Bedrock Edition 26.70 are still listed as upcoming December 2026 drops with snapshots, pre-releases and previews out, so the live versions today are Java 26.3 (Wilderness Bound, released September 15, 2026) and Bedrock 26.66 (a November 18, 2026 hotfix). The 26.4 changelog adds stray and frostbite spawning in cold biomes; recheck XP, spawner and farm rules once it ships.
How does XP work in Minecraft?
You earn experience as orbs from killing mobs, mining certain ores, smelting, breeding, fishing and trading, and the orbs fill your level bar. Each level costs more than the last, so a farm that makes steady XP matters more the higher you go.
- Orb sizes: XP drops are split into orbs worth 1, 3, 7, 17, 37, 73, 149, 307, 617, 1,237 or 2,477 points, largest first. Same-value orbs can merge into one entity but never into a bigger orb.
- Pickup speed: you collect orbs at 10 per second, and orbs on the ground despawn after 5 minutes.
- Edition difference: in Java, orbs drop the moment a mob dies; in Bedrock they appear after the mob's body disappears. Orb hitboxes are 0.5 blocks in Java and 0.25 blocks in Bedrock.
- Death: dying drops 7 XP per level you had, capped at 100 XP, so most of a high level is lost.
How much XP do mobs and blocks give?
| Source | XP | Notes |
|---|---|---|
| Standard hostile mob (zombie, skeleton, creeper, enderman) | 5 | Plus 1 to 3 per equipment piece it spawned with |
| Baby zombie, baby husk, baby drowned, baby zombified piglin | 12 | Plus 1 to 3 per equipment piece |
| Blaze, guardian | 10 | Both editions |
| Ravager, piglin brute | 20 | Plus 1 to 3 per equipment piece |
| Wither | 50 | |
| Ender dragon | 12,000 / 500 | First kill / respawned dragon |
| Slime and magma cube | 4 / 2 / 1 | Large / medium / small |
| Endermite | 3 | |
| Passive animals | 1 to 3 | Babies, villagers and golems give 0 |
| Diamond or emerald ore | 3 to 7 | Lapis and nether quartz ore: 2 to 5 |
| Monster spawner (broken with a pickaxe) | 15 to 43 | Other tools drop nothing |
| Breeding / fishing / trading | 1 to 7 / 1 to 6 / 3 to 6 | Per action |
| Bottle o' enchanting | 3 to 11 |
Mob XP only drops when a player or a tamed wolf gets the kill, which is why most XP farms bring mobs down to low health and let you land the last hit.
How much XP do you need for level 30?
You need 1,395 total XP to go from level 0 to level 30, the highest level the enchanting table asks for. Level 15 takes only 315, so the second half of the climb costs more than three times as much as the first.
The cost of the next level is 2L + 7 points up to level 15, 5L minus 38 from level 16 to 30, and 9L minus 158 from level 31 up, where L is your current level. The anvil caps at level 39 in Survival, so that is the practical ceiling for repairs and combining books.
| Level | Total XP from level 0 | XP to reach the next level |
|---|---|---|
| 5 | 55 | 17 |
| 10 | 160 | 27 |
| 15 | 315 | 37 |
| 20 | 550 | 62 |
| 25 | 910 | 87 |
| 30 | 1,395 | 112 |
| 31 | 1,507 | 121 |
| 39 | 2,727 | 193 |
| 50 | 5,345 | 292 |
| 100 | 30,970 | 742 |
Because of that curve, spend levels as soon as you reach 30 instead of saving up to 60 or 100. Two trips from 0 to 30 cost 2,790 XP, while one trip from 30 to 60 costs 7,275. The values above come from the wiki's level formulas.
What is the best XP farm in Minecraft?
For speed, a guardian farm at an ocean monument is the strongest normal XP farm, followed by an End enderman farm and a gold farm. For an early game build, a mob spawner farm is the easiest real XP farm because the spawner already exists.
| Farm type | Where | Rate (Minecraft Wiki figures) | Difficulty |
|---|---|---|---|
| Guardian farm | Ocean monument | Up to 180,000 XP per hour, level 30 in about 30 seconds | Hardest to build |
| Enderman farm | The End, built at y=1 | Level 30 in just under a minute | Medium, void risk |
| Gold (zombified piglin) farm | Nether magma design (Java) or portal farm (Bedrock) | Up to level 100 in about an hour, plus gold | Medium to hard |
| Mob spawner farm | Dungeon, mineshaft or fortress | About 24 minutes to level 30 | Easy |
| Fishing (AFK or manual) | Anywhere with water | About 1,680 XP per real hour without Mending | Easy |
| Cactus smelter | Base | About 360 XP per real hour per furnace (Java) | Easy, very slow |
| General dark room mob farm | High in the sky | Usually weak for XP | Medium |
A first ender dragon kill gives 12,000 XP, about level 68 to 69, but a respawned dragon only gives 500, so dragon "farms" are not worth building. Villager trading gives roughly 4.5 XP per trade, which adds up while you restock the trades covered in the villager trading guide.
How do you make a mob spawner XP farm?
Find a zombie, skeleton or spider spawner in a dungeon (monster room), light the area so nothing else spawns, then flush the spawned mobs with water into a drop chute where you can finish them by hand. This is the standard first XP farm because it needs no rare blocks.
- Activation: a spawner runs only while a player is within 16 blocks of its center.
- Spawn cycle: each cycle tries to spawn 4 mobs, then waits 200 to 799 ticks (10 to 39.95 seconds). The timer only restarts after at least one mob actually spawns.
- Spawn area: 9x3x9 centered on the spawner in Java. Bedrock uses a diamond shape reaching 4 blocks from the spawner's sides and favors spots closer to it.
- Cap: if 6 or more of the spawner's mob are inside the check area (9x9x9 in Java, 16x10x16 in Bedrock), the spawner skips the attempt. Move mobs out of that area quickly or the farm stalls.
- Light: in current Java, zombie, skeleton, spider and cave spider spawners have no light requirement, so torches around the room only stop natural spawns, not the spawner.
| Spawner location | Mob | Notes |
|---|---|---|
| Dungeon (monster room) | Zombie 50%, skeleton 25%, spider 25% | Best first farm |
| Mineshaft | Cave spider | Surrounded by cobwebs, often several |
| Nether fortress | Blaze | Usually two; blazes give 10 XP plus blaze rods |
| Woodland mansion | Spider | Sometimes, in a secret room on floor 2 or 3 |
| Stronghold portal room | Silverfish | Only one |
| Bastion remnant treasure room | Magma cube | Hangs under a bridge |
You cannot pick up a spawner in Survival, even with Silk Touch, so build the farm around it where it sits. A zombie spawner has a bonus: enchanted gear the zombies drop can go through a grindstone for extra XP. A skeleton spawner can run AFK with tamed wolves; the wiki puts that at about 100 levels over an 8-hour session.
How does an enderman XP farm work?
An End enderman farm is a large platform near y=1 under the outer End islands that stops endermen from spawning anywhere else, so they drop into a kill chamber. It is the fastest farm most players build, reaching level 30 in under a minute on the wiki's numbers.
- Spawning: endermen spawn at light level 0 on a solid block with at least three empty blocks above, in groups of four across the End. Two-block-tall spaces block them, which is how farms control where they appear.
- Luring: endermen attack endermites they can see within 64 blocks, and since Java 1.17 that applies to every endermite, not only pearl-spawned ones. Farms use a trapped endermite as bait to pull endermen into the kill area.
- XP and drops: 5 XP per enderman, plus a 50% chance of an ender pearl. Looting III raises the average pearl drop to 2.00 in Java and 1.25 in Bedrock.
- Health: 40 HP, so farms drop them far enough to soften them before the final hit.
Edition notes: Bedrock endermen teleport at random at any light level, while Java endermen only do so under certain sky light conditions. Since Bedrock 1.21.60, endermen in boats and minecarts stay put in both editions. Build carefully: the main risk at y=1 is falling into the void with everything you carry.
Is a gold farm good for XP?
Yes. A zombified piglin gold farm is one of the best XP farms in the game, with the wiki estimating up to level 100 in about an hour depending on design, and it also produces rotten flesh, gold nuggets and some gold ingots.
- XP: 5 per adult and 12 per baby, only if a player or tamed wolf gets the kill. In Bedrock, 0.75% of zombified piglins drop no XP.
- Drops: 50% chance of rotten flesh, 50% chance of a gold nugget, and a 2.5% chance of a gold ingot on a player kill, rising to 5.5% with Looting III in Java.
- Anger: hitting one without killing it angers every zombified piglin in range (67x22x67 to 111x22x111 in Java, a 20-block radius in Bedrock). Farms lure them with a turtle egg, which they walk toward to destroy, and kill them in one hit so the group never turns on you.
- Forgiveness: anger fades after 20 to 55 seconds in Java and exactly 25 seconds in Bedrock once they lose line of sight.
Java vs Bedrock: Java gold farms use magma blocks, since zombified piglins are fireproof and spawn on magma but avoid walking near it. Bedrock farms instead use Nether portals that are repeatedly built and destroyed. Overworld portal blocks spawn zombified piglins on random ticks at a 1 in 2,000 chance on Easy, 1 in 1,000 on Normal and 3 in 2,000 on Hard; in Bedrock they appear one block east or south of the portal, and portals below y=0 spawn none.
How do you get XP from a furnace?
Smelting gives XP per item when you take the output, and in Java the furnace stores XP from hopper-extracted items until you next take the output by hand or break the furnace. Each item takes 10 seconds in a regular furnace, so furnace XP is slow but fully passive.
| Item smelted | XP per item |
|---|---|
| Ancient debris | 2 |
| Gold ore, raw gold, diamond ore, emerald ore | 1 |
| Cactus | 1 (Java) / 0.2 (Bedrock) |
| Raw iron, raw copper, iron ore, redstone ore | 0.7 |
| Raw meat and fish, potato, clay | 0.35 |
| Logs, kelp, chorus fruit | 0.15 |
| Cobblestone, sand, tools and armor | 0.1 |
Fractions work as a chance for an extra point. Per stack of 64, cactus is worth 64 XP in Java but only 12.8 in Bedrock, potatoes 22.4 and kelp 6.4. That makes an automatic cactus farm feeding a furnace the best smelter design in Java; in Bedrock, potatoes beat cactus. Raw iron and raw gold from mining trips are free XP too: hold them in a chest and smelt them by hand when you need a few levels. If you are mining for netherite, the ancient debris guide covers where to find the 2 XP blocks.
Does Mending take XP from your level bar?
No. Mending only uses XP orbs you pick up, never levels you already have, but while any Mending item you hold or wear is damaged, collected XP repairs it first and does not reach your level bar. It repairs 2 durability per XP point.
- Items in your main hand, offhand and armor slots count, as long as they are below full durability.
- Leftover XP after repairs goes to your level bar as normal.
- Mending is a treasure enchantment at level I: it never appears on the enchanting table and comes from librarian trades, fishing, non-village structure loot, and raid drops in Bedrock. With the Villager Trade Rebalance experiment on, only a master swamp librarian sells it.
- It cannot go on the same bow as Infinity.
At an XP farm, take off your Mending gear if you want levels fast, or swap a damaged item into your offhand to repair it. The best enchantments guide lists what to spend those 30 levels on.
Related guides
FAQ
What is the easiest XP farm in Minecraft?
A mob spawner farm is the easiest real XP farm because the spawner already exists: light the room, push mobs into a drop chute with water and finish them by hand. The Minecraft Wiki estimates about 24 minutes to reach level 30.
What is the fastest way to get XP in Minecraft?
A guardian farm at an ocean monument is the fastest, at up to 180,000 XP per hour. An End enderman farm is the fastest farm most players build, reaching level 30 in just under a minute.
How much XP does an enderman give?
An enderman drops 5 XP when killed by a player or tamed wolf, plus a 50% chance of an ender pearl that Looting raises.
Can you pick up a mob spawner with Silk Touch?
No. Monster spawners cannot be obtained in Survival, even with Silk Touch. Breaking one with a pickaxe drops 15 to 43 XP, so build the farm where the spawner is.
Is cactus or kelp better for furnace XP?
In Java, cactus gives 1 XP per item (64 per stack) against 0.15 for kelp. In Bedrock, cactus drops to 0.2 XP per item, so potatoes at 0.35 are the better choice there.
How much XP do you lose when you die in Minecraft?
You drop 7 XP per level you had, up to a maximum of 100 XP, and the rest is gone. Spend levels before risky trips.
Does a hopper furnace still give XP?
In Java Edition, yes. XP from items a hopper pulls out of a furnace builds up inside the furnace and is released the next time you take output by hand or break the furnace.
Sources
- Minecraft Wiki: Experience
- Minecraft Wiki: Tutorial: Experience farming
- Minecraft Wiki: Monster Spawner
- Minecraft Wiki: Enderman
- Minecraft Wiki: Zombified Piglin
- Minecraft Wiki: Guardian
- Minecraft Wiki: Furnace
- Minecraft Wiki: Mending
- Minecraft Wiki: Java Edition 26.3
- Minecraft Wiki: Java Edition 26.4
- Minecraft Wiki: Bedrock Edition 26.66
- Minecraft Wiki: Bedrock Edition 26.70
See our editorial policy.



