Guide · Ball sports

Baseball Stats Explained: AVG, OBP, SLG, OPS, ERA, WHIP

One batter's season worked through the slash line, and one pitcher's through ERA, WHIP and FIP, with what each number leaves out.

4 min read

The batter: one season, four numbers

Take a batter with this season line:

Stat Value
Plate appearances 620
At bats 550
Hits 154 (98 singles, 32 doubles, 4 triples, 20 home runs)
Walks 58
Hit by pitch 6
Sacrifice flies 6

Plate appearances are every completed trip to the plate. At bats are plate appearances minus walks, hit-by-pitches, sacrifices and catcher’s interference: 620 − 58 − 6 − 6 = 550.

Batting average (AVG)

AVG = hits ÷ at bats

154 ÷ 550 = .280. Batting average is written to three decimals with no leading zero and read as “two-eighty”. It treats a single and a home run alike, and it ignores walks.

On-base percentage (OBP)

OBP = (hits + walks + hit by pitch) ÷ (at bats + walks + hit by pitch + sacrifice flies)

(154 + 58 + 6) ÷ (550 + 58 + 6 + 6) = 218 ÷ 620 = .352. This is how often the batter does not make an out. Since a team gets only 27 outs in a game, avoiding them is the most valuable thing a hitter does.

Slugging percentage (SLG)

SLG = total bases ÷ at bats total bases = singles + 2 × doubles + 3 × triples + 4 × home runs

Total bases: 98 + 64 + 12 + 80 = 254. SLG = 254 ÷ 550 = .462. Despite the name it is not a percentage but bases per at bat; a batter who homered in every at bat would slug 4.000.

OPS

OPS = OBP + SLG

0.3516 + 0.4618 = .813. (OPS is added before rounding, which is why it can differ by a point from the sum of the rounded parts.) The slash line is .280/.352/.462.

OPS became popular because it needs nothing beyond the box score and tracks run scoring far better than batting average does. Its weakness is that it adds two numbers with different denominators and values them equally, when a point of on-base percentage is worth roughly 1.8 times a point of slugging. Weighted on-base average (wOBA) and wRC+ fix that with proper run values for each event.

Isolated power

SLG − AVG gives extra bases per at bat, a pure measure of power: .462 − .280 = .182.

The pitcher: one season, three numbers

A starting pitcher’s line:

Stat Value
Innings pitched 180.0
Hits allowed 160
Earned runs 70
Walks 50
Hit batters 5
Strikeouts 190
Home runs allowed 22

Earned run average (ERA)

ERA = earned runs × 9 ÷ innings pitched

70 × 9 ÷ 180 = 3.50. An earned run is one that scored without the help of an error or a passed ball, as judged by the official scorer.

A note on innings: box scores write a third of an inning as .1 and two thirds as .2. An entry of 180.2 means 180⅔ innings, which is 180.667 in the formula.

WHIP

WHIP = (walks + hits) ÷ innings pitched

(50 + 160) ÷ 180 = 1.17 baserunners per inning. Hit batters are not included in the standard definition.

FIP

FIP = (13 × HR + 3 × (BB + HBP) − 2 × K) ÷ IP + constant

The constant puts FIP on the same scale as ERA and is recalculated each season; it is usually close to 3.10.

(13 × 22 + 3 × 55 − 2 × 190) ÷ 180 + 3.10 = (286 + 165 − 380) ÷ 180 + 3.10 = 0.39 + 3.10 = 3.49.

Here FIP and ERA agree almost exactly, which suggests the pitcher’s results matched the underlying performance. When ERA is far below FIP, the pitcher has probably had good fielding or good luck on balls in play, and the ERA is likely to rise.

Rates per nine innings

Strikeouts per nine (K/9) = 190 × 9 ÷ 180 = 9.5. Walks per nine (BB/9) = 2.5. Strikeout-to-walk ratio = 190 ÷ 50 = 3.8.

What good looks like

Stat Poor Average Good Excellent
AVG .230 .250 .280 .300
OBP .300 .320 .350 .380
SLG .360 .410 .470 .530
OPS .660 .730 .820 .910
ERA 5.00 4.10 3.40 2.80
WHIP 1.45 1.30 1.15 1.05

These are approximate levels for recent MLB seasons. League averages drift from year to year with the ball, the rules and the strike zone.

Adjusted and advanced numbers

  • OPS+ and ERA+ rescale to a league average of 100 and correct for the ballpark. An OPS+ of 120 is 20% better than average.
  • WAR, wins above replacement, estimates a player’s total contribution in wins compared with a freely available substitute.
  • Statcast measures such as exit velocity, launch angle and expected batting average describe the quality of contact directly.

Small samples

Baseball statistics need time. After 50 at bats a .350 hitter and a .250 hitter are separated by five hits. Batting average takes most of a season to stabilise; strikeout and walk rates settle much sooner, which is one reason analysts trust them more early in the year.

Frequently asked questions

What does a slash line like .280/.350/.470 mean?
Batting average, on-base percentage and slugging percentage, in that order. This batter gets a hit in 28% of at bats, reaches base in 35% of plate appearances and averages 0.47 total bases per at bat. Adding the last two gives the OPS, .820.
What is a good OPS?
In Major League Baseball the league average is usually between .700 and .750. Around .800 is good, .900 is all-star level and 1.000 or more over a full season is exceptional.
What is a good ERA?
League average in MLB has been close to 4.00 in most recent seasons. Below 3.50 is good for a starting pitcher, below 3.00 is excellent and below 2.50 is a contender for the best in the league.
Why is a walk not counted in batting average?
Batting average dates from the 19th century and was meant to measure hitting skill, so it counts only at bats, which exclude walks. On-base percentage was introduced later to credit the batter for reaching base by any means.
What is the difference between ERA and FIP?
ERA counts the earned runs a pitcher actually allowed, which depends partly on the fielders and on luck with balls in play. FIP estimates what the ERA should have been from strikeouts, walks, hit batters and home runs only, the outcomes the pitcher controls most directly.

Sources

  1. Major League Baseball: Official Baseball Rules, rule 9 (the official scorer)
  2. MLB.com Glossary: standard and advanced statistics
  3. FanGraphs Sabermetrics Library: FIP and its constant
  4. Tango TM, Lichtman MG, Dolphin AE. The Book: Playing the Percentages in Baseball. Potomac Books, 2007