Baseball
How a magic number counts down, worked day by day
The magic number turns a division race into one figure that falls with every win by the leader and every loss by the nearest rival. Here is the official formula, an invented race counted down day by day, and a brute-force check that the number means what it says.
By Journal Info Editorial Team · Published 2026-11-22
Every September the standings carry a small number beside the leading team: the magic number. It looks like a countdown, and it is one, but it is built from two different things (the leader’s wins and the nearest rival’s losses), which is why it sometimes falls by two in a day and sometimes does not move at all.
Every team, record and result below is hypothetical: an invented race made up to show the arithmetic, not data from any real season or game.
This note gives the published formula, counts an invented race down day by day, and then checks the number by trying every combination of results, so you can see why the formula has a “+ 1” in it.
The definition and the formula
According to the MLB glossary, a team’s magic number counts how many wins by that team, together with losses by its nearest rival, are needed to secure a particular goal such as a division title. Each win by the team lowers it by one, and so does each loss by the nearest rival. The glossary gives the formula as games remaining + 1 − (losses by the second-place team − losses by the first-place team), and notes that the second-place team (in terms of total losses) is always the one used (MLB Glossary — Magic Number).
So the number depends on three things only: how many games the leader has left, and the two teams’ loss totals. The formula assumes the two teams have the same number of games remaining. If they do not, the figure needs working out directly rather than from this shortcut; that is our caution, not a rule from the glossary.
An invented race
Suppose a 162-game season has reached the point where the first-place team is 95–55 and the second-place team is 90–60. Both have 12 games left. These records are made up for the example.
Starting magic number: 12 + 1 − (60 − 55) = 8.
Counting it down
Here are seven invented days from that hypothetical race (not real results). Each row gives the day’s results and the new magic number from the formula.
| Day | Leader result (invented) | Chaser result (invented) | Games left | Leader losses | Chaser losses | Magic number | Change |
|---|---|---|---|---|---|---|---|
| Start | 95–55 | 90–60 | 12 | 55 | 60 | 8 | |
| 1 | win (96–55) | loss (90–61) | 11 | 55 | 61 | 6 | −2 |
| 2 | loss (96–56) | win (91–61) | 10 | 56 | 61 | 6 | 0 |
| 3 | win (97–56) | win (92–61) | 9 | 56 | 61 | 5 | −1 |
| 4 | loss (97–57) | loss (92–62) | 8 | 57 | 62 | 4 | −1 |
| 5 | win (98–57) | loss (92–63) | 7 | 57 | 63 | 2 | −2 |
| 6 | win (99–57) | win (93–63) | 6 | 57 | 63 | 1 | −1 |
| 7 | win (100–57) | loss (93–64) | 5 | 57 | 64 | −1 | −2 |
Look at the Change column. It follows a simple pattern:
- Leader wins and the chaser loses: the number falls by 2 (days 1, 5 and 7).
- Leader wins and the chaser wins, or leader loses and chaser loses: it falls by 1 (days 3, 4 and 6).
- Leader loses and the chaser wins: it does not move (day 2).
On day 7 the number reaches zero or below, which means the title is clinched. It shows −1 rather than 0 because the leader’s win and the chaser’s loss both counted that day, so the result was one more than the minimum needed. The check is direct: the leader finishes with at least 100 wins, and the chaser, with 5 games left and 93 wins, can reach at most 98.
Why the formula has a “+ 1”
To see where the 8 comes from, count the ways it can come out. Let a be the number of games the leader wins from its 12 remaining, and b the number the chaser loses from its 12. The leader’s final win total is 95 + a. The chaser’s is 90 + (12 − b), which is 102 − b. The leader clinches outright when 95 + a is greater than 102 − b, which rearranges to a + b > 7, or a + b ≥ 8. Eight is the magic number.
The “+ 1” is what makes a tie count as not yet clinched. At a + b = 7 the two teams could finish with the same record: for example the leader wins none of its remaining games (95 wins) while the chaser loses 7 of its 12 (90 + 5 = 95 wins). Read this way, the formula counts only results that guarantee a better record (our reading; the glossary does not spell out the tie case).
Reading it as a combination also explains why it is called a combination: any mix of leader wins and chaser losses that adds to 8 settles the race, such as 8 leader wins and no chaser losses, or 3 leader wins and 5 chaser losses.
What the number does and does not say
- It counts results that guarantee the goal. It does not say how likely the goal is, and a large magic number is not a forecast.
- It names one rival. The glossary says that if a new second-place team emerges, the number adjusts to that team.
- It can be written for goals other than a division title. The glossary mentions a division or a Wild Card.
- It is exact arithmetic on a known schedule, which is why it can be checked by hand.
Check it yourself
- Write down the leader’s games remaining and both teams’ loss totals.
- Compute games remaining + 1 − (second-place losses − first-place losses).
- After each day, recompute with the new totals, or just subtract 1 for each leader win and for each chaser loss.
- To confirm, compare the leader’s current wins with the chaser’s best possible total (the chaser’s wins plus its games remaining). When both teams have played the same number of games, the title is settled exactly when the leader’s current wins exceed that total, which is the same thing as the magic number reaching zero or below.
Method
The race is invented. A script computes the magic number from the glossary formula for each day, and separately tries every split of leader wins and chaser losses from 0 to 12 to find the smallest total that guarantees the leader finishes ahead (it is 8, and a total of 7 fails for several splits, for example 0 leader wins and 7 chaser losses). The formula was read on 2026-10-31 on the page listed below.
Sources
- MLB Glossary — Magic Number: the definition, the formula, and the rule that the second-place team is the barometer.
AI assistance recorded as: AI draft, not edited