Minecraft XP Calculator — Levels to XP Points

Convert Minecraft levels and XP with the real three-segment curve — 2L+7 to level 15, 5L−38 to level 30, then 9L−158 — exact to the point, not rounded.

Minecraft XP Calculator

Paste it on your own page or wiki — no signup, no tracking script.

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.

LevelXP for that levelXP to reach it from 0Mob kills at 5 XP
0 → 1772
4 → 5155511
9 → 102516032
14 → 153531563
15 → 163735271
19 → 2057550110
24 → 2582910182
29 → 301071,395279
30 → 311121,507302
34 → 351482,045409
39 → 401932,920584
49 → 502835,3451,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

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.

FAQ

How much XP does it take to reach level 30 in Minecraft?

1,395 XP from level 0, which is roughly 279 mob kills at 5 XP each. Level 30 is the target for an enchanting room because it unlocks the strongest table offers — 15 bookshelves around the table is what makes level 30 enchantments available.

How is XP per level calculated?

Three segments: 2L + 7 for the step from level 0 up to 15, 5L − 38 from 16 to 30, and 9L − 158 from 31 and above. The cost jumps sharply at level 31, which is why the curve feels flat and then suddenly steep.

How many mob kills is a level?

At 5 XP per kill, an early level is about 2 kills and a level in the thirties is about 20 to 30. Use the table on this page for the exact figure at any level. Mining is far slower by comparison — diamond ore gives only 3 to 7 points.

Why does my XP seem to vanish?

Anvils and the enchanting table deduct levels, not points. A level 30 enchantment charges 3 levels, which at that point on the curve is about 363 XP — a quarter of the climb to 30.

Can I lose XP by dying?

Yes. On death you drop XP and it scatters in the world. Picking it back up restores it, but anything not collected is gone, which is why banking levels into a safe enchanting session is common practice.

Does XP carry over between levels?

Yes — level costs are cumulative. Gaining 20 XP at level 29 moves you towards the 107 XP it takes to reach level 30, and the total is preserved across level boundaries.

How much XP for level 40?

2,920 XP from zero. It is a natural level to grind to and then spend from, because the anvil has a hard limit of 39 levels of cost and refuses anything beyond it.

Is the XP formula the same on Bedrock?

The level cost formula is the same, but the XP value of some mobs and the behaviour of some farms differ, so treat the kill estimates here as a Java baseline.

What is the fastest legitimate XP source?

Once you are past level 30, a mob or furnace array beats manual mining by a wide margin. Below level 30, ordinary mining plus smelting is usually faster than the time it takes to build a farm. Trading for Bottles o' Enchanting is the fastest way to convert emeralds into points.

Do I need to hold the levels or spend them?

It depends on the goal. Enchanting and anvils spend levels, and the anvil refuses anything past 39 levels of cost. A beacon is a different requirement entirely: it needs a mineral pyramid and open sky, not levels. The calculator converts between levels and XP so you always know which figure you are dealing with.

More game tools

Have a suggestion?

Missing a feature or found something off? Tell us — user suggestions decide what we build next.