UTILS.
100% in-browser
🏆

Games Behind & Magic Number Calculator

Compute games behind the division leader and the magic/elimination number to clinch or be eliminated, from each team's win–loss record.

Enter your team's and the leader/rival's records plus the season length to get GB and the magic number.

About this tool

The Games Behind & Magic Number Calculator turns two teams' win–loss records into the standings figures fans track down the stretch. Games Behind (GB) is computed as ((Leader_W − Team_W) + (Team_L − Leader_L)) / 2 — the average of the wins the trailing team must gain and the losses the leader must add to draw even. A half-game (.5) appears whenever the two teams have played a different number of games.

The magic number tells the leader how many combined leader-wins-plus-rival-losses are needed to clinch: Magic Number = (Total Games + 1) − Leader_W − Rival_L. When it reaches zero the leader has clinched over that rival; the identical value, read from the trailing team's side, is that team's elimination (“tragic”) number. Total games is the season length — 162 for MLB, 82 for the NBA, and so on.

Everything is calculated locally in your browser, so nothing you type leaves your device. Alongside GB and the magic number the tool shows each club's winning percentage (in the standard three-decimal form) and how many games each has left to play, so you can size up a pennant or playoff race at a glance. Enter the leader's and the chasing team's records plus the season length to get started.

Frequently asked questions

How is games behind calculated?
GB = ((Leader_W − Team_W) + (Team_L − Leader_L)) / 2. It averages the wins the trailing team needs and the losses the leader needs to be level, which is why unequal games played produce half-game values.
What is a magic number?
It is (Total Games + 1) − Leader_W − Rival_L: the number of leader wins plus rival losses, in any combination, needed to clinch. Each leader win or rival loss cuts it by one; at zero the title or spot is clinched.
What is an elimination number?
It is the same value as the leader's magic number, viewed from the trailing team: the number of rival wins plus own losses that would eliminate it. When it hits zero, that team is mathematically out.
Why do I see a half-game behind?
Because GB averages wins and losses, two teams that have played a different number of games can sit an odd half-game apart. A team can trail by 0.5 games without either side having a game strictly in hand.

More tools