Simulator

Elo ladder simulator

The short answer

Players of different hidden strength all begin at 1500 and meet random opponents. See the ratings fan out round by round, and move the K-factor to feel the trade-off between quick and steady.

What happened

After 60 rounds the ratings sit 41 points from the true strengths on average, and 93% of all player pairs are ranked the right way round.
Mean rating error after 60 rounds41 ptsat the start it was 100
Pairs ranked correctly
93%
Whole ladder in the true order
never
not once in 60 rounds
Rating spread, best to worst
298 pts
true spread 350
Mean error over the last third of the run
50 pts
the level the ladder settles at
Biggest miss
P5
108 points off
Average rating error per round, for three K values on one schedule

The ladder after 60 rounds

PlayerTrue strengthRatingErrorWins–lossesRank by rating
P11,6751,671−449–111
P21,6251,585−4036–242
P31,5751,511−6430–304
P41,5251,480−4532–285
P51,4751,583+10835–253
P61,4251,414−1123–376
P71,3751,384+919–417
P81,3251,373+4816–448

P1 is built to be the strongest, P2 next, and so on. If a player's rank differs from their number, the list got it wrong, through too few games or just luck.

  • Update: add K × (result − expected) to the old rating. Expected = 1 ÷ (1 + 10^((opponent − own) ÷ 400)). A win counts 1, a loss 0, and draws are ignored.
  • We assume strengths stay fixed, games are independent and each round's opponents are random. Real ladders pair similar ratings, so the middle of a real table sorts out quicker.
  • This is one run from seed 1. Change the seed and the luck changes, but the long-run pattern holds.

Look around

Keep going with

Elo rating

Setting the scene

Behind the scenes the simulator holds each player’s true strength. The rating system is kept in the dark about it and starts everybody on 1500. In every round players meet at random, dice weighted by true strength decide each game, and Elo then moves both ratings.

Each player gets a line on the stage; P1, the strongest, is yellow-green. Tiny ticks on the right edge mark the true strengths, so you can see where each line ought to finish. What you’ll see: the lines fan out from 1500, overshoot, cross over one another, and finally jitter inside a band around their targets.

Use the form to pick the number of players, the gap between neighbours, K and the number of rounds.

A worked run

The setup: K = 20, 60 rounds, seed 1, and eight players whose real strengths run 1675, 1625, 1575, 1525, 1475, 1425, 1375 and 1325, so 50 points between neighbours.

Player True strength Rating after 60 rounds Error Wins–losses
P1 1675 1671 −4 49–11
P2 1625 1585 −40 36–24
P3 1575 1511 −64 30–30
P4 1525 1480 −45 32–28
P5 1475 1583 +108 35–25
P6 1425 1414 −11 23–37
P7 1375 1384 +9 19–41
P8 1325 1373 +48 16–44

Ratings are off by 41 points on average, better than the 100 they started with. Of all the pairs of players, 93% are ranked correctly. P5 got lucky: 35 wins where about 28 were due, a rating 108 points too high, and third place instead of fifth. Don’t blame the system. Sixty games can’t pull apart players who are just 50 points from each other, and the ladder never once showed the true order in full.

How it works

After each game:

expected = 1 ÷ (1 + 10^((opponent's rating − own rating) ÷ 400)) new rating = old rating + K × (result − expected)

The winner scores 1 and the loser 0. To pick the winner, the same expected-score formula is run on the true strengths. It’s the easiest exam possible: the world obeys the Elo model to the letter, and luck is all that gets in the way.

A rating works like a weight on a spring. Too low, and the player outperforms expectations and is tugged upward, harder the bigger the error. K is how stiff that spring is:

K-factor Reaching the right level Average error once settled (this ladder, 2,000 rounds)
10 slow: a couple of hundred games for a large error 23 points
20 moderate: about a hundred games 33 points
40 fast: a few dozen games 48 points

Under the stage sits a second chart: average error per round for K = 10, 20 and 40, each fed the same games. The K = 40 curve drops fastest and then levels off highest. K = 10 keeps sinking long after the others have stopped. Pick the “Long season” preset, 200 rounds, and watch the curves cross.

Does the simulator behave?

  • Zero sum. The mean rating of the group sits at exactly 1500 after any number of rounds.
  • No bias. Two players with a true gap of 200 points and K = 10: across 35,000 games their average rating gap ends within 8 points of 200.
  • Noise rises with K. Run 2,000 rounds and K = 40 settles at a larger error than K = 10.
  • Replay. Re-use a seed and you get identical games.

Simplifications

  • Strength stays put. Real players improve, age and have bad months, which is why K can’t simply be set tiny.
  • No draws. A draw moves ratings less than a decisive game, so sports full of draws converge more slowly.
  • Random pairings. Real ladders and Swiss events pit similar ratings against each other. Those games say more about the middle of the table and sort it faster than random opponents would.
  • Everyone plays every round, so game counts are equal.

Making sense of the numbers

Three readouts answer most questions. “Average rating error” is the current distance between list and truth. “Average error, last third of the run” tells you where things end up: with K = 20 and this field it sits a little above 30 points however long you carry on. “Pairs in the right order” counts how often two players are ranked correctly.

After that, look at the spread of ratings. It starts much narrower than the real spread because everybody began level, so a young league’s ratings understate the distance between its best and worst.

What does it mean in practice? With K around 20, a 30 or 40 point gap between two players on an Elo list is inside the noise. The “All equal” preset proves it without arithmetic: same strength, different ratings.

Want one rating change worked through by hand? Use the Elo rating calculator. To turn ratings into odds for a knockout draw, try the tournament bracket simulator.

Questions people ask

How long before an Elo rating can be trusted?
It depends on the starting point, but a rough guide with K = 20 and a mixed field: a player who begins 175 points away from the truth takes about 30 to 40 games to lose two thirds of the error, and the rating never stops wobbling. In the default run, average error drops from 100 points to about 41 after 60 rounds and then stays near 33 in a long run.
What is the K-factor in Elo?
It's the ceiling on the points a single game can move you. A big K finds the right level fast, then bounces about it. A small K takes ages to get there but stays put. FIDE sets K at 40 for newcomers, 20 for most players and 10 for anyone who has hit 2400.
Why do two equally good players get different Elo ratings?
Luck, mostly. One of them happens to win a few more toss-up games, and the rating tracks that. Load the 'All equal' preset and see for yourself: eight identical players end up 181 rating points apart after 60 rounds at K = 20 (seed 1), and 70 to 160 points apart with the next four seeds. A gap that size on a real list says little about strength.
Does the total of all Elo ratings stay fixed?
Yes, as long as both sides of every game use the same K. Points the winner picks up are points the loser drops, so a closed group keeps its average forever. In this simulator it stays at 1500. Real rating pools drift as people join and leave and as K varies.
Why does the rating spread start out too narrow?
Because everyone begins at 1500, which makes the best player underrated and the weakest overrated. Every game fixes only part of the error. The spread therefore climbs toward the true one from below, and gets there after many rounds.
Should a new league use a high K?
For the first stretch, yes: you want players sorted in as few games as possible. When the order looks about right, drop K for a calmer, more accurate table. Many federations do exactly that, lowering K as games played or rating goes up.
What's the maths behind an Elo update?
Take your old rating and add K × (result − expected result). Score a win as 1, a draw as 0.5 and a loss as 0. The expected result is 1 ÷ (1 + 10^((opponent's rating − your rating) ÷ 400)).

Where the numbers come from

  1. Elo AE. The Rating of Chessplayers, Past and Present. Arco, 1978
  2. FIDE Handbook, B.02 Rating Regulations (expected scores and the development coefficient K: 40, 20 and 10)
  3. Glickman ME. Parameter estimation in large dynamic paired comparison experiments. Applied Statistics 48(3), 1999, pp. 377–394 (on the uncertainty the Elo system leaves out)

More to try