How Baseball Batting Statistics Are Calculated
Baseball's most important batting statistics all derive from a handful of raw counting stats: at-bats, hits, extra-base hits, walks, and hit-by-pitches. Understanding the formulas behind BA, OBP, SLG, and OPS helps you evaluate a hitter's true offensive contribution.
Batting Average (BA)
Batting average is the oldest and most recognized hitting stat. It is simply the number of hits divided by official at-bats. Walks, sacrifice flies, and hit-by-pitches do not count as at-bats and do not affect BA.
- BA = Hits ÷ At-Bats
- A .300 BA is considered excellent at the MLB level
- .250 is roughly league average for most modern seasons
On-Base Percentage (OBP)
OBP captures how often a batter reaches base by any means — hits, walks, or hit-by-pitches. It is widely regarded as a better predictor of run-scoring than BA because it credits batters for drawing walks, which BA ignores entirely.
- OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)
- An OBP of .350 or higher is above average; .400+ is elite
- Sacrifice bunts are excluded from both numerator and denominator
Slugging Percentage (SLG) and OPS
Slugging percentage weights extra-base hits by assigning total bases per at-bat. A single counts as 1, a double as 2, a triple as 3, and a home run as 4. OPS (On-base Plus Slugging) adds OBP and SLG together to produce a single number that captures both getting on base and hitting for power.
- SLG = Total Bases ÷ At-Bats
- OPS = OBP + SLG
- OPS above .800 is very good; above .900 is elite
How Pitching Statistics Are Calculated
Pitching statistics measure how effectively a pitcher prevents runs, controls the strike zone, and limits baserunners. ERA and WHIP are the two most universally cited metrics, while rate stats like K/9 and BB/9 measure command and dominance.
ERA (Earned Run Average)
ERA measures the average number of earned runs a pitcher allows per 9 innings pitched. Runs scored due to errors are unearned and do not count toward ERA. An ERA below 3.00 is considered elite for starting pitchers; 3.00–4.50 is average; above 4.50 is below average.
- ERA = (Earned Runs ÷ Innings Pitched) × 9
- Relief pitchers often post lower ERAs due to smaller sample sizes
- Park factors and league context can significantly affect ERA interpretation
WHIP and Rate Stats
WHIP (Walks plus Hits per Inning Pitched) is the pitching equivalent of OBP — it measures how many baserunners a pitcher allows per inning, regardless of whether runs score. A WHIP under 1.00 is exceptional; 1.20–1.30 is league average.
- WHIP = (Walks + Hits) ÷ Innings Pitched
- K/9 = (Strikeouts ÷ IP) × 9 — measures strikeout rate
- BB/9 = (Walks ÷ IP) × 9 — measures walk rate and control
- K/BB ratio combines dominance and command into a single figure
Frequently Asked Questions
What is a good ERA for a starting pitcher?
In the modern MLB era, an ERA below 3.00 places a starter among the best in the league. An ERA between 3.00 and 3.75 is excellent, 3.75–4.50 is solid, and above 4.50 suggests a pitcher is below average for a rotation spot. These thresholds shift based on the overall run environment of any given season.
Why does OPS matter more than batting average?
Batting average treats all hits equally and ignores walks entirely. OPS accounts for both the frequency of reaching base (OBP) and the quality of hits (SLG). Two hitters with the same BA can have dramatically different OPS if one hits for more power or draws more walks.
How do I read the innings pitched decimal notation?
In baseball, innings pitched are recorded using a special convention: the digit after the decimal represents outs, not tenths of an inning. So 6.1 means 6 complete innings plus 1 out (6.333 actual innings), and 6.2 means 6 innings plus 2 outs (6.667 actual innings). This calculator handles the conversion automatically.
