The Minecraft XP Curve, Explained
Verified: Java 26.3 · 2026-09-16 · formulas documented for Java Edition · Updated 2026-09-16
The experience bar looks linear and lies about it. Underneath sit three quadratic segments with seams at levels 16 and 31, and once you see the seams, most XP folklore — spend at 30, never bank high, repairs get worse — turns out to be arithmetic. This guide states the formulas, checks them against each other, and shows the inverse the XP calculator runs.
The three segments
Total points to climb from zero to level L: L² + 6L through level 16, then 2.5L² − 40.5L + 360 through level 31, then 4.5L² − 162.5L + 2220 beyond. The per-level price tells the same story more bluntly — the next level costs 2L + 7 up to 15, 5L − 38 through 30, and 9L − 158 from 31 on. The slope of the slope is what changes: each early level costs 2 more than the last, each mid level 5 more, each late level 9 more. The anchor totals are worth knowing cold: level 16 is 352 points, level 30 is 1,395, level 31 is 1,507.
The formulas police each other
The two sets of formulas are redundant on purpose, and that redundancy is a free correctness check: the total at L+1 minus the total at L must equal the per-level price at L, for every L. It does — our test suite asserts the identity across two hundred consecutive levels, along with the wiki's anchor totals and the fact that every total lands on a whole number despite the .5 coefficients. When a converter site disagrees with these numbers, this identity is the fastest way to find out which of you is wrong.
Why level 30 is the spending sweet spot
A full-power enchant asks for level 30: 1,395 points banked. Climbing on to 50 costs another 3,950 points — 283% of the entire climb to 30 — and the single step from 49 to 50 costs 283 points, more than levels 0 through 9 combined cost you at the start. Held levels are the most expensive storage in the game because every point above 30 buys less bar than the point before it. The practical reading: arrive at 30, spend, repeat. Dying at 30 and clawing back from 27 costs just 306 points, which is why the ritual survives even the occasional accident.
Points back into levels: the inverse
The calculator's points-to-level mode inverts each quadratic and floors the result. Below 352 points the level is √(points + 9) − 3, floored; the middle segment inverts to (40.5 + √(1640.25 − 10(360 − p))) ÷ 5; the top segment follows the same shape with its own coefficients. The pleasant surprise is that the seams are exact: at 352 points the middle formula's square root evaluates to precisely 39.5 and the division lands on 16.0 dead — no floating-point fuzz — and 1,507 lands on 31.0 the same way. The test suite walks every level to 150, converts to points and back, and requires the round trip to return home each time.
Limits
These are the Java Edition formulas as the wiki documents them; the wiki records a different legitimate level cap for Bedrock, so this site declares Java rather than assert a match it has not verified. Nothing here covers how fast you earn points — furnaces, mobs, and mending are their own economy — or the anvil's level pricing, which spends levels by different rules entirely and belongs to a different tool.
Sources
Formulas, anchors, and the Bedrock cap note: the Minecraft Wiki's experience documentation (minecraft.wiki/w/Experience), verified 2026-09-01 against Java 26.2, with the anchor totals checked a second time against two other XP calculators (crafty.gg, mctoolbox.net). Every number printed here and on the tool page is asserted in the calculator's test suite.