Smart Calculators

Smart

Calculators

Minecraft XP Calculator

Find the exact experience points to go from any Minecraft level to any other — plus how many mob kills, smelts, or bottles it takes, and roughly how long, based on the official Java Edition 1.21 XP formula.

Java Edition XP & levels
Java Edition 1.21

Exact experience points from any level to any level.

Your levels
Your level right now. Use 0 to start from scratch.
The level you want to reach.
Common targets
Lvl 15
Lvl 30
Lvl 39
Lvl 50
Results
XP needed
1,395 XP

from level 0 to level 30

Levels needed
30 levels
Total XP at target
1,395 XP
XP already banked
0 XP
XP for the next level
112 XP

That's roughly…

≈ 279
hostile mob kills
≈ 1,993
iron ore smelted
≈ 1,395
gold ore smelted
≈ 279
diamond ore mined
≈ 349
animals bred
≈ 349
villager trades
≈ 465
fish caught
≈ 200
bottles o' enchanting
Approximate counts using each activity's typical XP value. Real drops vary slightly.

XP/h

Estimated time
≈ 28 minutes
assuming ≈ 3,000 XP/h — your real rate depends on your farm
These are rough estimates. Real XP rates depend heavily on your farm design, AFK setup, mob caps, difficulty, and game version. Use them to compare options, not as exact timings.

LevelXP to next levelTotal XP from 0
197
51755
1027160
1537315
1642352
1747394
2062550
2587910
301121,395
311211,507
321301,628
351572,045
391932,727
402022,920
452474,020
502925,345

Level 1

7
+9

Level 5

55
+17

Level 10

160
+27

Level 15

315
+37

Level 16

352
+42

Level 17

394
+47

Level 20

550
+62

Level 25

910
+87

Level 30

1,395
+112

Level 31

1,507
+121

Level 32

1,628
+130

Level 35

2,045
+157

Level 39

2,727
+193

Level 40

2,920
+202

Level 45

4,020
+247

Level 50

5,345
+292
Total XP to reach each level from scratch, and the XP cost of the level after it. The cost jumps at levels 16 and 32.

Have a total XP amount and want to know your level? Enter it here.

XP

Total experience points. The Java Edition cap is 2,147,483,647 XP (level 21,863).
You are at
Level 0
Progress into this level0%
0 / 7 XP into this level

  1. Early levels are cheap: levels 0–15 each cost 2×level + 7 XP, so level 1 is 7 XP and level 15 is 37 XP.
  2. From level 16 the cost climbs faster (5×level − 38), and from level 31 it climbs faster still (9×level − 158).
  3. Because the per-level cost keeps rising, the total XP grows quadratically — level 30 is 1,395 XP, but level 50 is 5,345 XP.
  4. That's why the second half of any grind takes far longer than the first: each level you gain costs more than the last.
Java Edition 1.21 · updated June 10, 2026
XP formula and activity values from the Minecraft Wiki (minecraft.wiki). XP/hour figures are rough farm estimates. Minecraft © Mojang Studios.

Minecraft XP calculator. Exact experience points from any level to any level.

Enter your current level and your target level to get the exact XP needed, how many mob kills or smelts that is, and an honest time estimate for your farm. Level 0 to 30 is 1,395 XP — it runs the official Java Edition 1.21 level formula, so the numbers match the game.

What is a Minecraft XP calculator?

Going from level 0 to level 30 takes exactly 1,395 experience points — that is roughly 279 hostile-mob kills, about 200 bottles o' enchanting, or under 6 minutes at a basic mob farm. Those are the kind of numbers a Minecraft XP calculator hands you instantly, instead of the "just grind a while" you get from a video. Type in where you are and where you want to be, and it works out the XP needed, the grind in plain in-game actions, and roughly how long it takes.
Minecraft's level bar is deliberately non-linear, so you cannot eyeball the answer. Reaching level 30 costs 1,395 XP, but reaching level 50 costs 5,345 — the back twenty levels alone cost 3,950 XP, nearly triple what the first thirty did. That is why a quick top-up from level 27 to 30 still costs 306 XP, while the entire 0-to-15 climb is only 315. This tool does the tier-switching math invisibly so you never have to add up individual level costs by hand.
The headline number it answers is the one every survival player hits mid-game: "I need level 30 to enchant (or level 39 before the anvil says Too Expensive) — how much XP is that, and is it faster to kill mobs, smelt, trade, or build a farm?" It also reverses the question: paste in a raw XP total and it tells you which level you would land on and how full your bar would be. Every formula, activity value, and milestone is pulled from the Minecraft Wiki and pinned to Java Edition 1.21, and everything runs in your browser, so nothing you type leaves your device.
Once you have hit your target, the natural next step is enchanting — and the table is its own gamble. When you reach level 30, head over to the Minecraft Enchanting Calculator to see your real per-slot odds of rolling Fortune III, Silk Touch, or whatever you are chasing, plus the levels and lapis it will cost.

How to use this Minecraft XP calculator

The calculator opens on the most-searched question — level 0 to level 30 — so you see a real answer before touching anything: 1,395 XP, 30 levels, about 279 mob kills, and roughly 28 minutes by hand. To check your own grind:
1. Set your current level. Use 0 if you are starting from scratch (you spent everything enchanting), or type the level you are sitting at right now.
2. Set your target level, or tap a milestone chip — Lvl 15, Lvl 30, Lvl 39, or Lvl 50. These are the levels that actually matter: 30 unlocks the strongest enchanting-table options, and 39 is the highest job an anvil will accept before it reads "Too Expensive!".
3. Read the hero number. The big green figure is the exact XP you need. Below it you get the levels to gain, the total XP at your target, and the XP your next level after that would cost.
4. Scan the activity grid. The same XP is shown as concrete in-game effort: hostile-mob kills, iron and gold smelts, diamond ore, animal breeds, villager trades, fish, and bottles o' enchanting. It is your at-a-glance grind plan.
5. Open "How long will it take?". Pick the farm you actually have — manual killing, a basic dark-room farm, villager bottle trading, or an enderman, gold, or guardian farm — or type your own XP/hour. The time is always an estimate, and the rate it used is shown right next to it so the assumption is never hidden.
Need the other direction? Open the "Reverse: XP → level" panel, paste in a total XP amount, and it tells you the level you would reach and how far into it your bar would sit.

The Minecraft level-to-XP formula (Java Edition 1.21)

xpToNext(L)={2L+70L155L3816L309L158L31\text{xpToNext}(L) = \begin{cases} 2L + 7 & 0 \le L \le 15 \\ 5L - 38 & 16 \le L \le 30 \\ 9L - 158 & L \ge 31 \end{cases}
  • LL = Your current level (the cost shown is the XP to reach the next level)
  • xpToNext(L)xpToNext(L) = XP needed to go from level L to level L+1
  • cumulativeXp(L)cumulativeXp(L) = Total XP to reach level L starting from level 0
  • levelFromXp(x)levelFromXp(x) = The level you land on when you have x total XP (the reverse lookup)
The per-level cost above gives you the price of a single level. To find the XP between any two levels, the calculator uses the cumulative (total-from-zero) form and subtracts:
cumulativeXp(L)={L2+6L0L162.5L240.5L+36017L314.5L2162.5L+2220L32\text{cumulativeXp}(L) = \begin{cases} L^2 + 6L & 0 \le L \le 16 \\ 2.5L^2 - 40.5L + 360 & 17 \le L \le 31 \\ 4.5L^2 - 162.5L + 2220 & L \ge 32 \end{cases}
The XP to go from your current level to your target is simply cumulativeXp(target) − cumulativeXp(current). For 0 to 30 that is 1,395 − 0 = 1,395; for 27 to 30 it is 1,395 − 1,089 = 306.
For the reverse panel — "I have this much XP, what level am I?" — the calculator inverts those quadratics:
levelFromXp(x)={x+93x35281+40x783910353x1507325+72x5421518x1508\text{levelFromXp}(x) = \begin{cases} \sqrt{x + 9} - 3 & x \le 352 \\ \dfrac{81 + \sqrt{40x - 7839}}{10} & 353 \le x \le 1507 \\ \dfrac{325 + \sqrt{72x - 54215}}{18} & x \ge 1508 \end{cases}
The whole-number part is your level; the leftover fills the bar. For 1,000 XP that gives about 26.03, so you would be level 26 with the bar barely started into level 27.

How Minecraft's XP and level system actually works

The green bar above your hotbar fills as you collect experience orbs, and each level you gain costs more orbs than the last. The cost is set by three tiers, and knowing them is what turns "why is leveling so slow now?" into a plan.
Tier 1 — the cheap levels (0 to 15). Every level from 0 up to 15 costs 2 × level + 7 XP. So level 1 costs 7 XP, and level 15 costs 37. The whole climb from 0 to 15 is only 315 XP total — you can do it in a couple of minutes of casual mob killing or one short mining trip.
Tier 2 — the climb begins (16 to 30). From level 16 onward each level costs 5 × level − 38. Level 16 jumps to 42 XP, and by level 30 a single level costs 112 XP — three times what level 15 cost. This is exactly the stretch players feel slow down, and it is why level 30 (the enchanting milestone) sits at 1,395 total XP even though it is only twice as high as level 15.
Tier 3 — the expensive end (31 and up). At level 31 and beyond each level costs 9 × level − 158. Level 50 costs 292 XP on its own, and the totals snowball: level 50 is 5,345 XP, level 100 is 30,970 XP. Because the per-level cost keeps rising, the total XP grows like a curve, not a straight line — every level you gain is pricier than the one before it.
The practical ceiling in Java Edition is level 21,863. Around 238,609,312 total XP the level bar disappears, because the next level would push your total past the game's 32-bit integer limit of 2,147,483,647 — anything beyond that is command-only and meaningless to grind. None of this changes the math you actually care about: it is the same three tiers from the first level to the last.

Worked examples with real XP numbers

Level 0 to 30 — the enchanting milestone (1,395 XP)

This is the answer everyone searches for. From level 0 to level 30 you need exactly 1,395 XP. In activities that is about 279 hostile-mob kills, 1,993 iron ore smelted, 1,395 gold ore smelted, 279 diamond ore mined, 465 fish caught, or 200 bottles o' enchanting (a little over two stacks). On time: at a basic dark-room mob farm of about 15,000 XP/h that is roughly 6 minutes; punching mobs by hand at about 3,000 XP/h it is closer to 28 minutes. Reaching level 30 lets you roll the strongest enchanting-table options — but the table is still random, so check your real odds on the enchanting calculator before you spend it.

Level 27 to 30 — a small top-up that still costs 306 XP

Say you enchanted something, dropped to level 27, and want back to 30. That is only 3 levels, but it costs 306 XP — because near level 30 each level is expensive. Level 27 to 28 costs 97 XP, 28 to 29 costs 102, and 29 to 30 costs 107. Compare that with the entire 0-to-15 climb, which is just 315 XP total. The lesson the calculator makes obvious: the last few levels before 30 cost almost as much as the first fifteen combined.

Level 0 to 50 — why the back half is brutal (5,345 XP)

Level 50 needs 5,345 total XP, but here is the catch: going from level 30 to level 50 alone costs 3,950 XP — nearly three times what it took to reach 30 in the first place. That is the tier-3 curve at work, where each level costs 9 × level − 158. On a strong guardian farm at about 120,000 XP/h the whole 0-to-50 grind is roughly 2.7 minutes; by hand at about 3,000 XP/h it is closer to 1.8 hours. Same XP, wildly different time — which is exactly why the farm you build matters more than how long you are willing to sit there.

Level → XP reference chart (Java Edition 1.21)

Total XP to reach each level from scratch, plus the cost of the very next level. Watch the cost jump at level 16 and again at level 32 — those are the tier boundaries.
LevelXP for next levelTotal XP from 0
197
51755
1027160
1537315
1642352
1747394
2062550
2587910
301121,395
311211,507
321301,628
351572,045
391932,727
402022,920
452474,020
502925,345
Notice the totals roughly double from level 16 (352) to level 25 (910), then double again by level 35 (2,045) — the curve steepens the whole way up.

Reverse lookup: "I have 1,000 XP — what level am I?"

Paste 1,000 into the reverse panel and the calculator runs the inverse formula: levelFromXp(1,000) works out to about 26.03. So you are level 26, with only 3 of the 92 XP needed for level 27 collected — your bar would be about 3% full. This is the panel to use when you check your stats with the /xp command or just want to know how close a loot haul put you to the next level.

XP grinding tips for survival players

  • Match the farm to the goal before you build. For a one-time level 30 enchant, a basic dark-room farm (about 15,000 XP/h, roughly 6 minutes) or even manual killing is plenty. If you want to repair gear, combine books, and re-enchant for hours, a gold or guardian farm (50,000–120,000 XP/h) pays for itself fast — the calculator's time panel lets you compare them side by side before you commit redstone and resources.
  • A level-30 enchant does not cost 30 levels. This is the single most common misconception. Level 30 is just the requirement to unlock the bottom enchanting slot — the enchant itself costs only 3 levels and 3 lapis. So you grind 1,395 XP to hit 30, then each roll only drops you a few levels, not all the way back to zero.
  • Stop your grind at 39, not higher, if you are repairing on an anvil. The anvil refuses any job that would cost more than 39 levels — it shows "Too Expensive!" in survival. Tap the Lvl 39 chip to see exactly how much XP that buffer is (2,727 total from zero, or 1,332 on top of level 30) so you arrive with enough headroom for the repair.
  • Bottles o' enchanting are the "buy your XP" route. Each bottle is worth about 7 XP, so level 30 from scratch is roughly 200 bottles. They are best when you already have a cleric villager set up to sell them — throw a few before enchanting to top your bar up instead of leaving spawn to find mobs.
  • Don't trust competitor calculators that show level 50 as 4,625 or 4,825 XP. Those figures are wrong (one uses an outdated basis, another rounds badly). The wiki-correct value for level 50 in Java Edition 1.21 is 5,345 XP, and this calculator matches it exactly — verify it against the chart above.
  • Use the reverse panel to sanity-check XP totals. If you run /xp query or read a stat, paste the number into the reverse panel to translate it back into a level and bar percentage. It is the fastest way to confirm how close a mob-farm session or loot run actually put you to your next milestone.
  • Banked XP carries over — plan around what you already have. The calculator subtracts the XP you already hold at your current level, so if you are sitting at level 22 and want 30, it only shows the 700-odd XP you still need, not the full 1,395. Always set your current level honestly instead of leaving it at 0.

Minecraft XP calculator — frequently asked questions

How much XP do you need for level 30 in Minecraft?

Level 30 requires 1,395 total experience points from level 0 in Java Edition. That is the enchanting-table milestone, and it works out to about 279 hostile-mob kills or roughly 200 bottles o' enchanting.

How much XP is level 50 in Minecraft?

Level 50 needs 5,345 total XP. Going from level 30 to 50 alone costs 3,950 XP — nearly triple the cost of reaching level 30 in the first place, because each high level is far more expensive than a low one.

Does a level-30 enchant really cost 30 levels?

No. Level 30 is only the requirement to unlock the strongest enchanting-table slot. The enchant itself costs just 3 experience levels and 3 lapis lazuli. You need to reach 30, but you spend only 3 each time you enchant.

Does this work for Bedrock Edition?

Mostly yes — use it as a guide. The level↔XP curve behaves the same or very similarly across Java and Bedrock, so the XP-needed and level numbers here are an excellent reference for Bedrock players too. What differs is how much XP individual mobs, ores, and activities drop, so the activity-equivalent counts (mob kills, smelts) may be slightly off, and Bedrock's maximum legitimate level is 24,791 versus about 21,863 in Java. Mojang and the Minecraft Wiki publish no official closed-form Bedrock per-level XP formula, which is why this tool uses the documented Java Edition formula.

Why does leveling up get so much slower at higher levels?

Because the per-level cost rises in three tiers. Levels 0–15 cost 2 × level + 7, levels 16–30 cost 5 × level − 38, and levels 31+ cost 9 × level − 158. So level 15 costs 37 XP while level 50 costs 292 — the same number of levels is much pricier near the top.

How long does it take to reach level 30?

It depends entirely on your XP source. At a basic dark-room mob farm of about 15,000 XP/h it is roughly 6 minutes; killing mobs by hand at about 3,000 XP/h it is closer to 28 minutes; a top guardian farm can do it in well under a minute. The calculator's time panel lets you pick your farm and see the estimate.

How accurate are the time estimates?

They are honest estimates, not exact timings. The XP needed is precise, but real XP-per-hour rates depend heavily on your farm design, AFK setup, mob caps, difficulty, and game version. Every time figure is prefixed with "≈" and shows the rate it assumed, so you can compare farms fairly rather than trust a single fake number.

How much XP do I need to use an anvil?

There is no fixed XP cost to open an anvil, but it refuses any single job that would cost more than 39 levels — beyond that it shows "Too Expensive!" in survival. Reaching level 39 from scratch takes 2,727 total XP, so players often grind to 39 to have headroom for expensive repairs and combines.

How many bottles o' enchanting do I need for level 30?

About 200 bottles, since each is worth roughly 7 XP and level 30 is 1,395 XP. The real count is slightly fuzzy because bottle XP varies (3–11 each), and bottles thrown at low levels overshoot cheap early levels, so you may need fewer if you start the throw at level 0.

What level is a given amount of XP?

Use the reverse panel: type a total XP amount and it returns the level you would reach plus how full your bar would be. For example, 1,000 XP puts you at level 26 with the bar about 3% into level 27, and 5,345 XP is exactly level 50.

Is this Minecraft XP calculator free?

Yes. There is no account or login, and every calculation runs locally in your browser, so the levels and XP you enter never leave your device.

Which Minecraft version does it use?

Java Edition 1.21. The level formula, activity XP values, and milestones come from the Minecraft Wiki (minecraft.wiki). The level↔XP math has been stable across many recent versions, so the numbers also match earlier Java releases.


Minecraft XP glossary

XP per hour (XP/h)

How fast a method earns experience. Manual killing is around 3,000 XP/h; a basic dark-room farm about 15,000; a strong guardian farm up to 180,000. The calculator's time panel divides the XP you need by the rate you pick to estimate how long the grind takes.

Bottle o' Enchanting

A throwable bottle that shatters into experience orbs worth about 7 XP each (3–11 range). Sold by cleric villagers, it is the "buy your XP" route — roughly 200 bottles cover the 1,395 XP needed for level 30.

Mob spawner / dark-room farm

An XP farm that gathers naturally spawned hostile mobs (zombies, skeletons, creepers) into a kill chamber, or uses a dungeon spawner. Each hostile mob drops about 5 XP. A basic build runs around 15,000 XP/h; optimized dark-room farms reach far higher because they are limited mainly by the mob cap.

Guardian farm

A farm built over an ocean monument that funnels guardians into a kill spot. Guardians drop about 10 XP each — double most mobs — so guardian farms are among the fastest XP sources in the game, with the wiki citing up to 180,000 XP per hour.

Gold farm

A Nether farm that kills zombified piglins, usually built around a portal-based spawning platform. Besides gold, it is a very strong XP source — community designs reach well over 100 levels per hour, and the wiki notes up to level 100 in an hour.

Enderman farm

An End-dimension farm that funnels endermen into a one-hit kill drop. Endermen spawn densely in the End, so even though each drops about 5 XP, the throughput is enormous — the wiki describes reaching 30 levels in just under a minute on a well-built one.

Cumulative XP

The total experience needed to reach a level starting from zero — what the chart's "Total XP from 0" column shows. Level 30 is 1,395 cumulative XP; level 50 is 5,345. The XP between two levels is the difference of their cumulative totals.

Level cap

The practical ceiling in Java Edition is level 21,863. Around 238,609,312 total XP the level bar disappears, because the next level would exceed the game's 32-bit integer limit of 2,147,483,647. Bedrock's legitimate maximum is 24,791.


Sources & References

  1. Minecraft Wiki — Experience (Java Edition level↔XP formula, total XP per level, level/XP caps)
  2. Minecraft Wiki — Tutorial: Experience farming (XP-per-hour farm rates for mob, gold, enderman and guardian farms)
  3. Minecraft Wiki — Enchanting Table (level 30 as the maximum enchanting-table level, bookshelf requirement)
  4. Minecraft Wiki — Anvil mechanics (the level-39 job cap: jobs over 39 levels read "Too Expensive!" in survival)

Content verified by the Smart Calculators Team