Skip to content

Any sport · Calculator

Magic number calculator, with elimination number, games behind and winning percentage

A magic number counts how close a leading team is to clinching: the combination of its own wins and its closest rival’s losses that leaves the rival unable to catch up. Each leader win takes one off, and so does each rival loss.

Enter the length of the season and both teams’ records. The calculator gives the magic number by the formula in MLB’s glossary, the trailing team’s elimination number, games behind, each team’s winning percentage and the most wins each can still reach — and shows how holding the tiebreaker changes the count.

By Reign Creative LLCPublished More in the sports hubs

Calculate a magic number

Both teams’ records so far, in a season where they play the same number of games.

162 in Major League Baseball.

First-place team
Trailing team

Magic number7leader wins + trailing team losses

Elimination number, trailing team
7
Games behind
4
Winning percentage
.605 · .579first · trailing
Games left
10 · 10first · trailing
Most wins possible
102 · 98first · trailing

Any combination of 7 first-place wins and trailing-team losses clinches.

The formulas

Magic number (MLB.com glossary)

games remaining + 1 − (second-place losses − first-place losses)

The same, for a season of G games

G + 1 − leader’s wins − trailing team’s losses

Games behind (Eisner)

((leader’s wins − team’s wins) + (team’s losses − leader’s losses)) ÷ 2

Winning percentage

wins ÷ (wins + losses) · with ties: (wins + ½ ties) ÷ games

The magic number counts the leader’s wins and the rival’s losses together because either one closes the gap the rival would need to make up. MLB’s glossary measures against the closest competitor — the second-place team in the loss column for a division, or the nearest rival for a wild-card place. Seen from the trailing team’s side the same count is its elimination, or tragic, number.

The winning-percentage line is Rule 9.21(a) of the Official Baseball Rules, with the NFL’s rule for ties: a tie counts as half a win and half a loss for both teams.

Worked example

An illustrative race, not real teams: in a 162-game season, the leader is 92–60 and its closest rival 88–64. The leader has 10 games left.

The race in numbers
MeasureWorkingResult
Magic number10 + 1 − (64 − 60)7
Same, from the season length162 + 1 − 92 − 647
If the leader holds the tiebreaker7 − 16
Games behind((92 − 88) + (64 − 60)) ÷ 24
Leader’s winning percentage92 ÷ 152.605
Rival’s most wins possible88 + 1098

Any 7 leader wins and rival losses between them clinch: seven leader wins would take it to 99, past the rival’s best possible 98; so would three wins and four rival losses.

The tiebreaker caveat

The “+ 1” in the formula is there so the leader finishes strictly ahead; with it, a tie in the final standings is not enough. Where a league breaks ties by a rule rather than an extra game — the NFL publishes such procedures, starting with head-to-head record — a leader that already holds the tiebreaker only needs to finish level, so its magic number is one smaller. That adjustment follows from the formula; MLB’s glossary does not state it, so check how your league breaks ties before relying on it.

Games behind, and when it misleads

Milton Eisner’s 1986 article for SABR defines games behind as the average of how far a team trails the leader in the win column and in the loss column, and works through the 1985 All-Star-break standings:

Eisner’s examples: trailing in the win and loss columns
Trailing byGames behind
6 in each column6
4 wins, 1 loss2½
2 wins, 3 losses2½
−1 wins, 2 losses½
−4 wins, 3 losses (his hypothetical)−½

The last row is his warning: when teams have played different numbers of games, a team can trail on winning percentage and still be “ahead” by half a game. Players talk about the loss column for the same reason — a leader’s loss is a game the trailing team no longer has to win back.

How to read it, and its limits

  • It compares two teams. In a race with several, work out the leader’s number against each rival; the largest is the one that matters.
  • It assumes both teams play the same number of games. Postponed games that are never made up break that assumption.
  • Records with ties get winning percentages, but no magic number: a tie is half a win, which this formula does not handle.
  • It counts what is still possible, not what is likely, so it is not a forecast — and not betting guidance.

For what a record says about a team’s underlying strength, try the Pythagorean expectation calculator.

162-0 Baseball Draft & GM Team looks at a season from the other end: you draft nine players and a coach, and its season simulator returns a projected record over 162 games.

Reign Creative LLC makes 162-0 Baseball Draft & GM Team, so we have a commercial interest in it. It is not affiliated with, or endorsed by, any league, team, players’ association or athlete.

Good to know

Frequently asked questions

How is the magic number calculated?
MLB’s glossary gives it as games remaining + 1 − (losses by the second-place team − losses by the first-place team). When both teams play the same number of games, that is the same as the season’s length + 1 − the leader’s wins − the rival’s losses. A leader win or a rival loss each take one off.
What is the elimination number?
The same count seen from the trailing team’s side — MLB’s glossary also calls it the tragic number. When it reaches zero, the trailing team can no longer finish ahead of the leader.
Does the tiebreaker change the magic number?
It can. The “+ 1” in the formula makes the leader finish strictly ahead. If the leader would win a tie in the standings — where a league breaks ties by a rule such as head-to-head record, as the NFL’s published procedures do — finishing level is enough, so the number is one smaller. That adjustment is derived from the formula, not stated in MLB’s glossary, so check your league’s own tiebreaker rules.
How are games behind worked out?
As the average of how far a team trails the leader in the win column and in the loss column, as Milton Eisner set out for SABR. Trailing by 4 wins and 1 loss is 2½ games behind. When teams have played different numbers of games it can mislead: Eisner’s own example has a team trailing on percentage while “ahead” by half a game.
How do tied games count?
Baseball’s rulebook works winning percentage out from wins and losses alone. The NFL counts a tie as half a win and half a loss for both teams, so 10–6–1 is (10 + ½) ÷ 17 = .618. The calculator shows winning percentages with ties, but gives a magic number only for records without them.

Sources

  1. Magic Number (MN) — glossary (opens in a new tab)MLB.com — accessed
  2. A Truer Measure of ‘Games Behind’ (Baseball Research Journal, 1986), by Milton P. Eisner (opens in a new tab)Society for American Baseball Research — accessed
  3. Official Baseball Rules, 2026 Edition — Rule 9.21(a), percentage of games won and lost (opens in a new tab)Major League Baseball — accessed
  4. NFL Tiebreaking Procedures (opens in a new tab)NFL.com — accessed

League, governing-body and team names appear here only to identify the formulas and rules being used. Reign Creative LLC's sports games and calculators are not affiliated with, endorsed by or licensed by any league, team, players' association or athlete, and all names and marks belong to their owners.

All sports calculators