How Minecraft levels actually work
XP points and levels are different currencies, and each level costs more points than the last. The cost of the step from level L to level L+1 is 2L + 7 up to level 15, 5L − 38 from 16 to 30, and 9L − 158 from 31 upward. That is why going from level 39 to 40 costs far more than 0 to 1 — the cost per level suddenly starts rising three times faster in the third segment. The calculator above applies this exact piecewise formula.
Where the numbers come from
If you would rather trade for experience than grind it, Bottles o' Enchanting drop 3 to 11 points each, for an average of 7.0. Reaching level 30 therefore takes about 199 bottles on average, and a single level-30 enchantment (3 levels, 363 XP) costs about 52 bottles. Cleric villagers will trade for them at master level, three emeralds apiece, which makes bottles the most practical way to bank points you can carry between sessions.
A common zombie or skeleton drops 5 points, a blaze 10, and a Bottle o' Enchanting rolls between 3 and 11. The biggest single payout in the game is the first Ender Dragon kill, worth a flat 12,000 points — enough to carry a fresh character all the way to level 68. Because enchanting spends points rather than levels, knowing your point total tells you whether that level-30 table roll is actually affordable.
Mining and smelting, by contrast, contribute almost nothing next to mobs: lapis lazuli ore gives 2 to 5 points, redstone ore 1 to 5, diamond and emerald ore 3 to 7, and coal ore 0 to 2, while a single smelted ingot is worth about 1. A farm of furnaces is a mid-game optimisation, not a replacement for killing things.
XP per level, and the running total
The curve has three segments, and they are not smooth. From level 0 to 15 each level costs 2L + 7. From 16 to 30 it costs 5L − 38. From 31 upward it costs 9L − 158. The jump at level 31 is the one that catches people out: the cost per level suddenly starts rising three times faster.
| Level | XP for that level | XP to reach it from 0 | Mob kills at 5 XP |
|---|---|---|---|
| 0 → 1 | 7 | 7 | 2 |
| 4 → 5 | 15 | 55 | 11 |
| 9 → 10 | 25 | 160 | 32 |
| 14 → 15 | 35 | 315 | 63 |
| 15 → 16 | 37 | 352 | 71 |
| 19 → 20 | 57 | 550 | 110 |
| 24 → 25 | 82 | 910 | 182 |
| 29 → 30 | 107 | 1,395 | 279 |
| 30 → 31 | 112 | 1,507 | 302 |
| 34 → 35 | 148 | 2,045 | 409 |
| 39 → 40 | 193 | 2,920 | 584 |
| 49 → 50 | 283 | 5,345 | 1,069 |
Mob kills assume a mob worth 5 XP each, which covers zombies, skeletons and spiders. Blazes are worth 10, so halve that column for a blaze farm.
Worked examples
Reaching level 30 for an enchantment room
From level 0 to 30 takes 1,395 XP, which is about 279 kills at 5 XP. That is the realistic first goal on a new world, because level-30 enchantments are what the table can offer once it is surrounded by 15 bookshelves — and it costs nothing extra to hold the levels, so there is no reason to delay.
Paying for a level 30 enchantment
The bottom slot charges 3 XP levels. Taken at level 30 those three levels are worth 363 XP (levels 30, 31 and 32 at 112 + 121 + 130). That is about a quarter of the entire climb to 30, spent in one click. It is still worth doing — the alternative is not using the levels at all.
Level 40, and where anvil work stops
From 0 to 40 is 2,920 XP, about 584 kills at 5 XP. It is a natural target to grind to and then spend from, because the anvil has a hard limit of 39 levels — beyond that, repairs are refused. A beacon is the other thing pulling you to the top of the curve: it needs a pyramid of iron, gold, emerald, diamond or netherite blocks with an unobstructed view of the sky, and a four-layer pyramid is what unlocks its second status effect.
The first Ender Dragon kill
The first dragon you defeat drops a flat 12,000 XP, the biggest single payout in the game, and from a fresh level 0 that alone carries you to level 68. It is why a first dragon fight feels like a shortcut, and why the 500 XP from a dragon respawned with end crystals is a rounding error by comparison.
Common mistakes
- Assuming the curve is exponential from the start. It only becomes steep at level 31. Levels 0 to 15 are almost free at 7 to 37 XP each.
- Spending levels you needed in your bar. Anvils and the enchanting table consume levels, and the anvil refuses anything past 39 levels of cost. Check which one you are working towards.
- Building an XP farm before you need one. 1,395 XP to reach 30 is achievable from ordinary mining and smelting. A farm is worth the effort once you are pushing past level 40 repeatedly.
- Forgetting that this is Java's curve. Bedrock uses the same formula for the level costs, but some farms and mobs differ in XP value, so treat the kill estimates as a Java baseline.
If you are planning a specific goal rather than a level, the enchanting guide covers what each of those levels buys you at the table, and the torch spacing calculator covers the light level that gates mob spawning — a different curve entirely. For building around the XP you are earning, the circle generator is what you want for large builds.
Gear for an XP grind
Reaching level 30 takes about 199 bottles of enchanting, or a lot of mob kills — either way it is a grind. These are the items that make a long XP session easier.
- Gaming headset — XP farms are watched as much as played; a headset catches the sound cue that says the chamber is full.
- Gaming mouse — Clicking through bottles and mob kills is constant; a reliable mouse holds up.
- SSD — A farm world loads and saves constantly during a grind; an SSD removes the stalls.
- Second monitor — The level-to-points table stays open while you work out how much further you have to go.
As an Amazon Associate I earn from qualifying purchases. The links above are affiliate links — if you buy through one, the price you pay is unchanged and a small commission helps keep these calculators free. Tools are listed because the job calls for them, not because of commission rates.
Sources and standards
Where these figures come from
Every figure on this page is computed from the published reference below rather than copied from another calculator.
- Experience — Minecraft Wiki — the three-segment XP-per-level formula and the level-by-level cumulative totals used in the table, the 5 XP and 10 XP mob values, the 12,000 XP first Ender Dragon kill, and the ore and smelting XP values.
- Bottle o' Enchanting — Minecraft Wiki — the 3 to 11 XP drop range with a 7.0 average, and the cleric villager trade at three emeralds.
- Enchanting table — Minecraft Wiki — the 3 level cost charged by the bottom enchanting slot, and the 15 bookshelves needed for access to level 30 enchantments.
- Anvil — Minecraft Wiki — the 39 level limit on anvil costs, beyond which repairs are refused.
- Beacon — Minecraft Wiki — the activation requirements: an unobstructed view of the sky and a pyramid of mineral blocks, with four pyramid levels for the second power.
- Minecraft — official site — the game of record for the XP system and for balance changes between versions.
Figures, formulas and reference tables last verified: 27 October 2026.
One last note on rounding: XP is not spent in round numbers, so the totals in the table are the exact thresholds rather than convenient figures. If you are three XP short of level 30 the table says 1,395, and it means it.