XP Curve Calculator
Choose how experience grows from one level to the next, type two numbers, and the calculator lists every level up to your cap with the XP it asks and the running total. A chart of the total shows the shape at a glance, and the table downloads as CSV for a spreadsheet or JSON for your game code.
It all runs on this page: no account, nothing sent to a server, no AI model behind it. Change a number and the table redraws at once, so you can try ten curves in a minute.
Runs in your browser: nothing is uploaded.
How to use it
- Pick a curve. Power multiplies the base by the level raised to the growth number, exponential multiplies the base by the growth rate once per level, and linear adds the growth amount each level.
- Set the level cap. Type how many levels the game has, from 2 to 1000; the last level is the cap and asks for nothing more.
- Set the base and growth. The base is the XP that takes a player from level 1 to level 2; growth is the exponent, the rate or the step, depending on the curve.
- Read the chart and table. Each row shows the XP to the next level and the total XP needed to reach that level from the start.
- Download it. Save the table as CSV or JSON, with the columns level, xp_to_next and total_xp, and load it into your game.
Which curve fits which game
A linear curve asks a fixed extra amount each level. Early levels and late levels feel close in effort, which suits short games, battle passes and anything where a level is a small reward handed out often.
A power curve (base times level to the growth) bends upward but stays tame. With growth near 1.5 the twentieth level asks roughly ninety times the first, and most role playing games sit somewhere in this family because it keeps late levels reachable.
An exponential curve multiplies by the same rate every level, so it runs away fast. A rate of 1.1 doubles the cost about every seven levels. It works for idle games, where income also grows by a rate, and it works as a soft wall near a cap, but on its own across fifty levels it tends to stall players.
Pacing a level cap
Work backwards from time. Decide how long a player should take to hit the cap, say twenty hours, estimate how much XP an hour of play gives at each stage, and compare that with the total column. If the total at the cap is far beyond what twenty hours can give, lower the growth or the cap.
Two habits help:
- Make the first three or four levels quick, so a new player sees the level up screen in the first sessions.
- Let XP rewards grow with the level too. If monsters at level 30 give five times the XP of level 5 monsters, the felt pace is the ratio of the curve to the rewards, not the curve alone.
If you are still shaping the loop the levels sit in, the game planner helps lay out the progression around it.
Using the export in an engine
The CSV opens in any spreadsheet, which is the easiest place to tweak a single row by hand. The JSON is an array of rows, so a script can read it as a lookup: given a player's total XP, walk the rows until the next total is higher than theirs and that row is their level.
Keep the table as data rather than a formula in code. Designers can then change pacing without touching logic, and the same file can drive the level bar, the save system and a balance test. Drop rates work the same way: the loot table calculator exports its odds in the same two formats.
Questions people ask
What does the growth number mean?
For a power curve it is the exponent on the level, for exponential it is the rate each level multiplies by, and for linear it is the XP added per level. A growth of 0 on a power curve gives a flat cost.
Why does the last level show 0 XP to next?
The last level is the cap. It is the level a player ends on, so it asks for nothing further; its total column is the XP needed to reach the cap.
How many levels can it calculate?
Up to 1000. Above that the table stops at 1000 so a typo never freezes the page. Values are rounded to whole XP.
Can I use the table in a commercial game?
Yes. The numbers are yours; the calculator only does the arithmetic, and it is free with no sign up. Tyrbo can also build the whole game around your curve from a description.