Calculate baseball statistics

Recommended Lessons

Not sure where to start? These are the lessons and games we recommend most to students, parents and teachers on Basic-mathematics.com. Each lesson explains the topic in plain language, walks you through worked examples step by step, and ends with practice so you can check your understanding. Pick one below, or use the menu to find lessons on fractions, algebra, geometry, statistics and more.

๐Ÿ† Baseball Statistics Quiz

10 new questions every time, from every stat on this page. Each answer comes with a step-by-step explanation.

Question 1 of 10Score: 0

Loadingโ€ฆ

โ†“ Jump to a section

โšพ 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.

Baseball statistics

๐Ÿงฎ 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.

150 hits in 500 at-bats: 150500 = 0.3

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.

47150 = 0.31333โ€ฆ โ‰ˆ .313

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.

20 earned runs in 60 innings: 2060 = x9, so x = 20 ร— 960 = 3.00

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.

Before dividing, change 6.2 to 6โ…” โ‰ˆ 6.667, or count outs: 6 ร— 3 + 2 = 20 outs, and 20 รท 3 โ‰ˆ 6.667.

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.

โ†‘ Back to contents

๐Ÿ 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)

AVG = hitsat-bats
150 hits in 520 at-bats: 150520 = 0.28846โ€ฆ โ‰ˆ .288

Lesson: Batting average

On-base percentage (OBP)

How often a batter reaches base on a hit, walk, or hit by pitch.

OBP = H + BB + HBPAB + BB + HBP + SF
H = 3, BB = 1, HBP = 0, AB = 5, SF = 1
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.

Total bases = 1B + 2 ร— 2B + 3 ร— 3B + 4 ร— HR
SLG = total basesat-bats
100 singles, 30 doubles, 2 triples, 25 home runs in 550 at-bats:
TB = 100 + 60 + 6 + 100 = 266
SLG = 266550 = 0.48363โ€ฆ โ‰ˆ .484

Lesson: Slugging percentage

On-base plus slugging (OPS)

OPS = OBP + SLG
OBP .360 and SLG .484:
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)

AB/HR = at-batshome runs
50 home runs in 1,500 at-bats: 1,50050 = 30

The player hits a home run every 30 at-bats. A good power hitter wants this number as low as possible.

โ†‘ Back to contents

๐ŸŽฏ 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.

ERA = 9 ร— earned runsinnings pitched
60 earned runs in 180 innings: 9 ร— 60180 = 540180 = 3.00
50 earned runs in 150.1 innings (150โ…“ โ‰ˆ 150.333):
450150.333 = 2.9933โ€ฆ โ‰ˆ 2.99

Lesson: Earned run average

Walks plus hits per inning (WHIP)

How many runners a pitcher allows per inning.

WHIP = walks + hitsinnings pitched
45 walks and 160 hits in 190.2 innings (190โ…” โ‰ˆ 190.667):
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.

K/BB = strikeoutswalks
A K/BB of 3.40 as a fraction:
3.40 = 340100 = 3410 = 175
The pitcher gets 17 strikeouts for every 5 walks.

Strikeouts per nine innings (K/9)

K/9 = 9 ร— strikeoutsinnings pitched
200 strikeouts in 180 innings: 9 ร— 200180 = 1,800180 = 10.00

This pitcher strikes out 10 batters in a typical 9-inning game.

โ†‘ Back to contents

๐Ÿงค 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.

FPCT = putouts + assistsputouts + assists + errors
300 putouts, 420 assists, 12 errors:
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.

SB% = stolen basesstolen bases + caught stealing
30 steals, caught 6 times: 3036 = 0.8333โ€ฆ โ‰ˆ .833, or 83.3%

Lesson: Baserunning average

Winning percentage

Win% = winswins + losses
95 wins and 67 losses: 95162 = 0.58641โ€ฆ โ‰ˆ .586

Games back (GB)

How far a team is behind the first-place team. The leader is shown with a dash (โ€“).

GB = (leader wins โˆ’ team wins) + (team losses โˆ’ leader losses)2
Leader 90โ€“60, your team 85โ€“64:
GB = (90 โˆ’ 85) + (64 โˆ’ 60)2 = 92 = 4.5

Lesson: Games back

โ†‘ Back to contents

๐Ÿงพ Key Formulas

A quick reference. Round averages to three decimal places, and ERA and WHIP to two.

StatFormulaBetter
Batting averageHABHigher
On-base percentageH + BB + HBPAB + BB + HBP + SFHigher
Slugging percentage1B + 2ยท2B + 3ยท3B + 4ยทHRABHigher
OPSOBP + SLGHigher
At-bats per home runABHRLower
ERA9 ร— ERIPLower
WHIPBB + HIPLower
K/BBKBBHigher
K/99 ร— KIPHigher
Fielding percentagePO + APO + A + EHigher
Stolen-base percentageSBSB + CSHigher
Winning percentageWW + LHigher
Games back(ฮ”W) + (ฮ”L)2Lower

ฮ”W = leader wins โˆ’ team wins, ฮ”L = team losses โˆ’ leader losses. IP = innings pitched, with .1 = โ…“ and .2 = โ…”.

โ†‘ Back to contents

๐Ÿ“ Practice Problems

Work each one out, then click โ€œShow answersโ€ to check.

Batting

  1. A batter has 45 hits in 160 at-bats. What is his batting average?
  2. Find the OBP: 150 hits, 60 walks, 5 hit by pitches, 540 at-bats, 5 sacrifice flies.
  3. A player has 95 singles, 35 doubles, 3 triples, and 30 home runs in 560 at-bats. Find his total bases and slugging percentage.
  4. Use your answers to problems 2 and 3 to find the playerโ€™s OPS.
Show answers
  1. 45160 = 0.28125 โ‰ˆ .281
  2. 150 + 60 + 5540 + 60 + 5 + 5 = 215610 = 0.35245โ€ฆ โ‰ˆ .352
  3. TB = 95 + 70 + 9 + 120 = 294, SLG = 294560 = .525
  4. .352 + .525 = .877

Pitching

  1. A pitcher allows 72 earned runs in 200.1 innings. What is his ERA?
  2. A pitcher allows 50 walks and 170 hits in 200 innings. What is his WHIP?
  3. A pitcher has 210 strikeouts and 50 walks. What is his K/BB?
  4. A box score shows 6.2 innings pitched. How many outs is that?
Show answers
  1. 200.1 = 200โ…“ โ‰ˆ 200.333, and 9 ร— 72200.333 = 648200.333 โ‰ˆ 3.23
  2. 50 + 170200 = 220200 = 1.10
  3. 21050 = 4.20
  4. 6 ร— 3 + 2 = 20 outs

Fielding, baserunning, and standings

  1. A first baseman has 250 putouts, 15 assists, and 3 errors. What is his fielding percentage?
  2. A runner steals 40 bases and is caught 10 times. What is his stolen-base percentage?
  3. A team finishes 88โ€“74. What is its winning percentage?
  4. The leader is 92โ€“70 and your team is 87โ€“74. How many games back is your team?
Show answers
  1. 250 + 15250 + 15 + 3 = 265268 = 0.98880โ€ฆ โ‰ˆ .989
  2. 4050 = .800 = 80%
  3. 88162 = 0.54320โ€ฆ โ‰ˆ .543
  4. (92 โˆ’ 87) + (74 โˆ’ 70)2 = 92 = 4.5 games

โ†‘ Back to contents

๐Ÿ“š More Baseball Statistics Lessons

Each lesson takes one stat further, with more examples.

๐Ÿ Batting Average

How well a player hits.

Start this lesson โ†’

๐Ÿ’ช Slugging Percentage

How well a player bats, focusing on the power of the hits.

Start this lesson โ†’

๐ŸŽฏ Earned Run Average (ERA)

How well a pitcher keeps the other team from scoring.

Start this lesson โ†’

๐Ÿงค Fielding Percentage

How well a fielder makes plays without errors.

Start this lesson โ†’

๐Ÿƒ Baserunning Average

How well a player steals bases.

Start this lesson โ†’

๐Ÿ† Games Back

How far a team is behind the division leader in the standings.

Start this lesson โ†’

โ†‘ Back to contents