Minecraft XP Calculator — Levels, Enchant Costs & Repair
Work out exactly how much experience you need, how long your XP farm will take, and what your levels are really worth before you enchant, repair, or risk dying.
Level 0 → 30
1,395 XP
Level 27 → 30
306 XP
Mending conversion
2 durability / XP
Maximum XP dropped on death
100 XP
Levels ↔ XP
Minecraft XP is not linear — level 30→31 costs far more than 0→1. Enter where you are and where you want to be.
Bar needs 7 XP for level 1
- XP still needed
- 1,395
- Total XP at target (from 0)
- 1,395
- Your total XP now
- 0
- Whole levels only (0 → 30)
- 1,395 XP
XP lost on death
Without keepInventory, death resets your bar and drops only 7 × your level, capped at 100 XP.
- Recoverable at death spot
- 0 XP
- Permanently lost
- 0 XP
- Level after collecting every orb
- 0 + 0 XP
XP → level lookup
Paste a total XP amount (orbs collected, /xp query, farm counter).
Anvil / table level cost → XP
Anvils and the enchanting table charge levels, but the XP lost depends on your current level. Spending 5 levels at 40 is much more expensive than at 10.
Dropping from 0 → 0 costs 0 XP.
- Exact XP from your current level and partially filled bar
- XP-to-level conversion with progress to the next level
- Kills, ores, trades, bottles, and smelts needed for a goal
- Estimated grind time using your own farm rate
- Mending durability, enchanting-table, and anvil costs
Levels are not a fixed amount of XP. Going from level 0 to 1 costs 7 points, while level 30 to 31 costs 112. That is why the calculator uses raw XP for every comparison.
A level-30 enchanting-table option requires 30 levels but spends only 3 levels and 3 lapis. It drops you to level 27; returning to 30 then costs 306 XP.
Minecraft level and XP reference
Total points are measured from level 0 with an empty bar.
| Level | Total XP from 0 | XP to next level |
|---|---|---|
| 0 | 0 | 7 |
| 5 | 55 | 17 |
| 10 | 160 | 27 |
| 15 | 315 | 37 |
| 20 | 550 | 62 |
| 25 | 910 | 87 |
| 30 | 1,395 | 112 |
| 40 | 2,920 | 202 |
| 50 | 5,345 | 292 |
| 100 | 30,970 | 742 |
The XP formulas used
Levels 0–16
XP = L² + 6LLevels 17–31
XP = 2.5L² − 40.5L + 360Level 32 and above
XP = 4.5L² − 162.5L + 2220Java and Bedrock use the same experience-level curve. Individual XP sources and farm behavior can differ, so source estimates are planning ranges rather than guaranteed drops.