Minecraft XP Calculator

Convert levels to experience points and back, see exactly how much XP you need to reach level 30 (or any target), count the mobs, ores, and bottles to grind it, and work out Mending repair cost — with your partial bar included. Java & Bedrock.

Minecraft XP Calculator
Total XP needed to reach this level from 0.

How Minecraft experience actually works

Experience in Minecraft is stored as a running total of points, but the game shows you a level and a partly filled green bar. The two are linked by a curve that gets steeper as you climb, which is why the first few levels fly by and the climb from 30 to 40 feels brutal. The amount of XP to advance from level L to the next level is tiered:

Add those up from zero and you get the total XP to reach any level, which also has a clean closed form: L² + 6L up to level 16, 2.5L² − 40.5L + 360 for levels 17–31, and 4.5L² − 162.5L + 2220 from level 32 onward. This calculator computes everything directly from the per-level costs, so the totals match the game exactly — including the high levels where some other calculators are wrong.

XP needed for every key level

The numbers players look up most, straight from the formula above:

LevelXP for this levelTotal XP from 0
177
51755
1027160
1537315
1642352
2062550
27971,089
30 (enchanting)1121,395
321301,628
39 (anvil cap)1932,727
402022,920
502925,345
10074230,970

How much XP each source gives

The grind planner counts these for you, but here are the headline values (Java Edition, killed or collected by the player). Many sources drop a random amount within a range, so plan around the average:

Fortune does not increase XP drops. Mobs killed by dispensed potions, or that die more than five seconds after a player hit, drop no experience at all — worth knowing when you design a farm.

Enchanting, Mending, and dying — the practical stuff

Enchanting: the table maxes out at level 30, so grinding past it for enchanting is wasted effort. Enchant at 30, drop to roughly 27–29, and grind the small gap back rather than hoarding to level 46 for a big batch — the tiered curve makes the big batch far more expensive overall.

Mending: repairs 2 durability per 1 XP point on any Mending item you are holding or wearing, so a fully broken Netherite tool (2,031 durability) needs about 1,016 points. The Mending tab turns durability into the exact XP and Bottle o' Enchanting count.

Death: you only keep 7 × level points on death, capped at 100 — at level 30 that means losing over 90% of your experience. The Death loss tab shows precisely what survives and what vanishes.

Frequently asked questions

Related tools

Part of the Minecraft cluster on Done In Browser.