Magic number calculator
Enter the season length and the teams in the race with their wins and losses. The leader is worked out for you.
Clinching first place
Hawks: magic number 7
Every Hawks win cuts the number by one, and so does every loss by Owls, the closest threat (elimination number 7). At zero, Hawks have clinched first place.
The race
| Team | W | L | GB | Left | Max wins | Status |
|---|---|---|---|---|---|---|
| Hawks | 90 | 60 | – | 12 | 102 | Magic number 7 |
| Owls | 85 | 66 | 5.5 | 11 | 96 | Elimination number 7 |
| Wolves | 80 | 71 | 10.5 | 11 | 91 | Elimination number 2 |
| Foxes | 70 | 80 | 20 | 12 | 82 | Eliminated from first |
How to use it
Set the number of games each team plays in the whole season, then list the teams competing for first place with their current wins and losses. The calculator finds the leader by winning percentage, so the order you type them in does not matter. It then shows the leader's magic number to clinch first place and, for every other team, its elimination number: how close it is to being mathematically out of the race for first.
The table also shows games behind, games left, and each team's maximum possible wins if it won every remaining game. That last column is the easiest way to sanity-check an elimination: a team whose maximum is below the leader's current win total cannot finish first.
The formula
For a leader A and a rival B in a season of G games:
magic number = G + 1 − wins(A) − losses(B)- If A would win a tie for the place:
G − wins(A) − losses(B) games behind = ((wins(A) − wins(B)) + (losses(B) − losses(A))) ÷ 2
The reasoning is short. B can win at most G − losses(B) games. A is guaranteed to
finish ahead once its wins are more than that, that is once
wins(A) + losses(B) ≥ G + 1. The magic number is simply the distance still to go. Each
A win or B loss closes it by one, and a game between A and B closes it by one whoever wins, which is
why head-to-head games late in a season matter so much. The leader's overall clinch number is its
largest magic number against any rival.
Worked example
In the default race above, in a 162-game season, the Hawks are 90-60 and the Owls 85-66. The
magic number is 162 + 1 − 90 − 66 = 7. Any seven-game combination of Hawks wins and
Owls losses (seven Hawks wins, or four Hawks wins and three Owls losses, and so on) guarantees the
Hawks finish ahead of the Owls. The Owls are ((90 − 85) + (66 − 60)) ÷ 2 = 5.5 games
behind. Against the Wolves (80-71) the number is only 2, so any of those combinations that includes
at least two Hawks wins clinches first place outright. The Foxes (70-80) can win at most 82 games,
fewer than the 90 the Hawks already have, so they are eliminated from first place already, even though they are
still playing.
Season lengths
| League | Regular-season games per team |
|---|---|
| MLB | 162 |
| NBA, NHL | 82 |
| WNBA (2025) | 44 |
| NFL | 17 |
What the number does not tell you
The magic number is a statement about arithmetic, not probability. A magic number of 7 with 12 games left is very different from a magic number of 7 with 7 games left, and the number itself does not show that. Treat it as the answer to "what has to happen", not "what will happen".
It also assumes you know who wins a tie. The standard +1 version is conservative: it assumes the rival would win any tie, so the leader has to finish strictly ahead. Leagues settle ties by head-to-head record, division record or other criteria, and once those are known the true number can be one lower. Official "clinched" announcements use the full tiebreak rules.
For races involving several playoff places, such as wild cards, the simple formula can mislead, because clinching a place depends on several teams at once. The calculator's figures are exact for first place in the group you enter; for anything else, treat them as a guide. To see the full table from results rather than records, use the standings calculator.
Common questions
What is a magic number in sports?
The combined number of wins by the leading team and losses by the second team that guarantees the leader finishes ahead. Each leader win and each chaser loss reduces it by one. When it reaches zero the leader has clinched. The same number seen from the chasing team's side is its elimination number, sometimes called the tragic number.
What is the magic number formula?
Magic number = G + 1 − W − L, where G is the number of games in the season, W is the leader's wins, and L is the second-placed team's losses. The +1 covers a tie in the final standings: if the leader would win a tie for the place, drop it and use G − W − L.
Why does the magic number use the chaser's losses rather than its wins?
Because losses are what cap how far a team can climb. A team with L losses in a G-game season can win at most G − L games. The leader has clinched once its own wins exceed that maximum, which rearranges to W + L ≥ G + 1, and the magic number is how far that sum still has to go.
Can the magic number be used for wild-card or playoff spots?
Yes, with care. For a playoff place, compute it against the best team currently outside the places rather than against second place. That shortcut assumes the teams in between cannot all overtake you, which is usually true late in a season but not guaranteed, and official clinching scenarios also depend on tiebreakers this calculator does not know.
How do I handle ties in the NFL?
This calculator assumes every game ends in a win or a loss. NFL ties are rare but they count as half a win and half a loss in the standings. With a tie in the records, work out the magic number by hand or treat the result as provisional; a half game can change the answer by one.
Other tools
- League manager How do I keep our league table and fixtures up to date for free?
- Tournament bracket maker How do I run a bracket for 11 teams and keep it up to date?
- Printable tournament brackets Where can I print a blank 16-team bracket?
- Round-robin schedule generator Who plays whom each week in a 7-team league?
- League standings calculator Turn our season results into a league table.
- Bowling score calculator How is a bowling score with strikes and spares worked out?
- Golf handicap calculator What is my handicap index from my last rounds?
- Batting average, OBP, SLG and ERA calculator What is my batting average and ERA this season?
- Odds converter and implied probability What probability does -150 actually mean?