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.
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:
2L + 7 points per level5L − 38 points per level9L − 158 points per level
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.
The numbers players look up most, straight from the formula above:
| Level | XP for this level | Total XP from 0 |
|---|---|---|
| 1 | 7 | 7 |
| 5 | 17 | 55 |
| 10 | 27 | 160 |
| 15 | 37 | 315 |
| 16 | 42 | 352 |
| 20 | 62 | 550 |
| 27 | 97 | 1,089 |
| 30 (enchanting) | 112 | 1,395 |
| 32 | 130 | 1,628 |
| 39 (anvil cap) | 193 | 2,727 |
| 40 | 202 | 2,920 |
| 50 | 292 | 5,345 |
| 100 | 742 | 30,970 |
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: 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.
Part of the Minecraft cluster on Done In Browser.