Calculate baseball statistics
Baseball Statistics Quiz
10 new questions every time, from every stat on this page. Each answer comes with a step-by-step explanation.
Quiz completed … times
Loading…
Your score
Why Learn Baseball Statistics?
The goal of this unit is to show you how to calculate baseball statistics and how they relate to math.
Baseball is probably America’s favorite game. You will hear baseball fans talking about a pitcher’s ERA, a hitter’s batting average, and other important statistics.
These numbers have a mathematical meaning that tells you how well the players are doing. Once you understand baseball stats, it is easier to keep track of what is going on in the game, and it is much more fun to watch the game as you follow them. Analysts, coaches, fans, and owners also use these stats to decide how great or valuable a team or a player is.
I explain these terms here and, most importantly, I show you how they relate to math. Look for baseball statistics on baseball cards, in newspapers, and on sports websites.

Jump to a Section
Already know some of this? Skip straight to what you need.
The Math Behind the Stats
Almost every baseball stat uses the same few math skills.
Most stats are fractions
A stat compares two counts, a part over a whole, then turns the fraction into a decimal.
Three decimal places, no zero
Averages are rounded to the thousandths and written without the zero in front. So 0.3 is written .300 and read “three hundred.” Rounding decimals review.
A “percentage” is not a percent
On-base, slugging, fielding, and winning percentage are written as decimals. Multiply by 100 to read them as a percent: a .350 on-base percentage means the batter reached base 35% of the time.
Rates per 9 innings are proportions
ERA and K/9 answer “how many in a full 9-inning game?” Set up a proportion and solve it.
Innings pitched use thirds
An inning has 3 outs, so each out is ⅓ of an inning. In box scores, 6.1 means 6⅓ innings and 6.2 means 6⅔ innings, not 6.1 and 6.2.
Is higher or lower better?
Higher is better: AVG, OBP, SLG, OPS, K/BB, K/9, fielding percentage, stolen-base percentage, winning percentage.
Lower is better: ERA, WHIP, AB/HR, games back.
Batting Stats
How well a player hits and gets on base.
Words you need to know
- Plate appearance (PA): every completed turn at the plate, whatever the result.
- At-bat (AB): a plate appearance that ends in a hit, an out, an error, or a fielder’s choice. Walks, hit by pitches, sacrifices, and catcher’s interference are not at-bats.
- Hit (H): the batter hits the ball into fair territory and reaches base safely without an error. A hit is a single (1 base), double (2), triple (3), or home run (4).
- Walk or base on balls (BB): the pitcher throws four balls outside the strike zone, and the batter goes to first base.
- Hit by pitch (HBP): the batter is hit by a pitch and goes to first base.
- Sacrifice fly (SF): a fly-ball out that lets a teammate score from third base. Sacrifice bunts are not used in these formulas.
Batting average (AVG)
Lesson: Batting average
On-base percentage (OBP)
How often a batter reaches base on a hit, walk, or hit by pitch.
OBP = 3 + 1 + 05 + 1 + 0 + 1 = 47 = 0.5714… ≈ .571
OBP can be lower than AVG, because sacrifice flies count in OBP but not in AVG.
Slugging percentage (SLG)
Measures power: a double counts twice as much as a single.
TB = 100 + 60 + 6 + 100 = 266
SLG = 266550 = 0.48363… ≈ .484
Lesson: Slugging percentage
On-base plus slugging (OPS)
OPS = 0.360 + 0.484 = 0.844, written .844
The higher the OPS, the better the hitter. An OPS of 1.000 or more is outstanding.
At-bats per home run (AB/HR)
The player hits a home run every 30 at-bats. A good power hitter wants this number as low as possible.
Pitching Stats
How well a pitcher keeps runners off base and runs off the scoreboard.
Earned run average (ERA)
Earned runs a pitcher allows per 9 innings. Earned runs are runs that scored without the help of a fielding error or a passed ball.
450150.333 = 2.9933… ≈ 2.99
Lesson: Earned run average
Walks plus hits per inning (WHIP)
How many runners a pitcher allows per inning.
205190.667 = 1.0751… ≈ 1.08
Strikeout-to-walk ratio (K/BB)
When a batter gets three strikes, it is a strikeout (K) and the batter is out. A good pitcher wants many strikeouts and few walks.
3.40 = 340100 = 3410 = 175
The pitcher gets 17 strikeouts for every 5 walks.
Strikeouts per nine innings (K/9)
This pitcher strikes out 10 batters in a typical 9-inning game.
Fielding, Baserunning, and Standings
Stats for fielders, base stealers, and whole teams.
Fielding percentage (FPCT)
A putout is the out itself (catching a fly ball, tagging a runner). An assist is a throw or touch that helps make an out.
720732 = 0.98360… ≈ .984
Lesson: Fielding percentage
Stolen-base percentage
How often a runner succeeds when he tries to steal. Our lesson on this stat calls it the baserunning average.
Lesson: Baserunning average
Winning percentage
Games back (GB)
How far a team is behind the first-place team. The leader is shown with a dash (–).
GB = (90 − 85) + (64 − 60)2 = 92 = 4.5
Lesson: Games back
Key Formulas
A quick reference. Round averages to three decimal places, and ERA and WHIP to two.
| Stat | Formula | Better |
|---|---|---|
| Batting average | HAB | Higher |
| On-base percentage | H + BB + HBPAB + BB + HBP + SF | Higher |
| Slugging percentage | 1B + 2·2B + 3·3B + 4·HRAB | Higher |
| OPS | OBP + SLG | Higher |
| At-bats per home run | ABHR | Lower |
| ERA | 9 × ERIP | Lower |
| WHIP | BB + HIP | Lower |
| K/BB | KBB | Higher |
| K/9 | 9 × KIP | Higher |
| Fielding percentage | PO + APO + A + E | Higher |
| Stolen-base percentage | SBSB + CS | Higher |
| Winning percentage | WW + L | Higher |
| Games back | (ΔW) + (ΔL)2 | Lower |
ΔW = leader wins − team wins, ΔL = team losses − leader losses. IP = innings pitched, with .1 = ⅓ and .2 = ⅔.
Practice Problems
Work each one out, then click “Show answers” to check.
Batting
- A batter has 45 hits in 160 at-bats. What is his batting average?
- Find the OBP: 150 hits, 60 walks, 5 hit by pitches, 540 at-bats, 5 sacrifice flies.
- A player has 95 singles, 35 doubles, 3 triples, and 30 home runs in 560 at-bats. Find his total bases and slugging percentage.
- Use your answers to problems 2 and 3 to find the player’s OPS.
Show answers
- 45160 = 0.28125 ≈ .281
- 150 + 60 + 5540 + 60 + 5 + 5 = 215610 = 0.35245… ≈ .352
- TB = 95 + 70 + 9 + 120 = 294, SLG = 294560 = .525
- .352 + .525 = .877
Pitching
- A pitcher allows 72 earned runs in 200.1 innings. What is his ERA?
- A pitcher allows 50 walks and 170 hits in 200 innings. What is his WHIP?
- A pitcher has 210 strikeouts and 50 walks. What is his K/BB?
- A box score shows 6.2 innings pitched. How many outs is that?
Show answers
- 200.1 = 200⅓ ≈ 200.333, and 9 × 72200.333 = 648200.333 ≈ 3.23
- 50 + 170200 = 220200 = 1.10
- 21050 = 4.20
- 6 × 3 + 2 = 20 outs
Fielding, baserunning, and standings
- A first baseman has 250 putouts, 15 assists, and 3 errors. What is his fielding percentage?
- A runner steals 40 bases and is caught 10 times. What is his stolen-base percentage?
- A team finishes 88–74. What is its winning percentage?
- The leader is 92–70 and your team is 87–74. How many games back is your team?
Show answers
- 250 + 15250 + 15 + 3 = 265268 = 0.98880… ≈ .989
- 4050 = .800 = 80%
- 88162 = 0.54320… ≈ .543
- (92 − 87) + (74 − 70)2 = 92 = 4.5 games
More Baseball Statistics Lessons
Each lesson takes one stat further, with more examples.