CyberMax
CyberMax › Answers

XP curve formulas: how much XP each level should need

Updated 2026-10-17 · Roblox and game developers · by CyberMax

Short answer

The common choices: linear (XP for level n = a × n) feels steady; power (a × n^b with b around 1.5 to 2.2) slows down gradually and is the most common; exponential (a × r^n with r around 1.08 to 1.15) gets very steep late. Pick by how long you want the last level to take compared with the first, and check the total XP to max level.

Copy-paste code

XP per level and total to reach a level

-- Luau
local function xpForLevel(n, a, b) return math.floor(a * n ^ b) end   -- power curve
local function totalTo(level, a, b)
	local t = 0
	for n = 1, level - 1 do t += xpForLevel(n, a, b) end
	return t
end

Spreadsheet (level in A2):  =FLOOR(100*A2^1.8, 1)
Running total in C3:        =C2 + B2   (B = XP for that level)
XP needed for one level (a = 100)
LevelLinear 100nPower 100n^1.8Exponential 100 × 1.1^n
1100100110
101,0006,309259
202,00021,971673
303,00045,5841,745
505,000114,32611,739

Source: computed from the formulas

Good to know

Work backwards from time: if players earn about 500 XP an hour at level 20, a 21,971 XP level takes about 44 hours, too long for most games. Either raise XP rewards with level or lower the exponent.

Exponential curves look gentle early (see level 10) but explode later, which suits prestige or rebirth systems.

Grindscale: Balance XP, gold and loot before players do

from $7

Grindscale is a game-economy spreadsheet (Excel and Google Sheets) that models XP curves, gold and loot together so you see time-per-level before players do.

Secure checkout · 14-day fix-or-refund if it doesn't work as described (terms)

Questions

What exponent do RPGs use?

Many sit between 1.5 and 2.5 for a power curve; there is no single standard.

Should rewards also scale?

Usually yes, so the time per level grows slower than the XP per level.

Free: the Roblox Starter Kit

7 free Luau modules (damage, pets, shop formatting, admin audit log, tycoon guards and more) plus 3 free calculators, then 5 short emails with the scripting fixes we see go wrong most often.

You get one email to confirm first. Then the kit, and 5 short emails over two weeks. One-click unsubscribe in every email; we never share your address.

Related answers

Loot drop rate calculator: what are the odds in N tries?Chance of at least one drop in N tries is 1 - (1 - p)^N. Free calculator, the formula for spreadsheets and LuaRoblox daily rewards script with a login streakA server-side daily reward and streak script for Roblox: UTC day numbers, a streak that resets after a missed