Game design calculator
Balance a game: drop and loot chances with pity, level and XP curves, and combat numbers like DPS, armour, crits and hits to defeat a foe.
How to use
- Drop chances: type the chance of a drop per try (as 2 %, 0.02 or 1 in 50) and a number of tries. You get the chance of at least one, the average tries, how many tries 50, 90 and 99 % of players need, and how many are still unlucky after twice the average. Add a pity limit if the drop is guaranteed by a certain try, and a cost per try to see what it costs players.
- Levels & XP: pick a curve, the XP for the first level-up and how fast it grows. The table lists every level with the XP needed and the running total; add XP per hour to see play time.
- Combat numbers: type the attack's damage, speed, hit chance and crits, then the foe's health and armour. You get damage per second, effective health, average time to defeat, and (for whole-number damage) the exact number of swings that half and nine in ten fights take.
Keyboard and touch
| Tab | Move between tabs, boxes and buttons |
| Enter or Space on a tab | Open that tab |
| Enter in a box | Work it out |
Tips
- A "1 in 50" drop is not certain after 50 tries: only about 64 % of players have it by then, and about 13 % still have nothing after 100.
- Pity timers (a guaranteed drop after a set number of tries) cut off the unlucky tail without changing the usual experience much.
- Exponential level curves grow very fast; a growth of 1.1 per level makes level 50 need about 100 times the XP of level 1.
- Flat armour hurts many small hits more than a few big ones; percentage armour treats them the same. Pick the rule that fits the weapons you want players to use.
- If your game sells tries for real money, show players the odds clearly. Many countries and app stores require it.
About this calculator
Drops are independent tries with the same chance p. At least one in n tries: 1 − (1 − p)ⁿ. Average tries: 1 ÷ p, or (1 − (1 − p)ᴺ) ÷ p with a guarantee at try N. Tries for a confidence c: the smallest n with 1 − (1 − p)ⁿ ≥ c. k or more in n tries: the binomial sum, worked out with logarithms of the gamma function so large numbers stay accurate.
Level curves: linear XP = base + step × (L − 1); power XP = base × Lᵏ; exponential XP = base × growthᴸ⁻¹, rounded to whole XP. Combat: expected damage per second = damage × attacks per second × hit chance × (1 + crit chance × (multiplier − 1)). The chance of defeating the foe within n swings counts every mix of misses, hits and crits exactly (a trinomial distribution). These are common game-design conventions; your game's rules may differ. Everything runs in your browser.