Ad Space — Top Banner

Batting Average Calculator

Calculate baseball batting average (H/AB), OBP, slugging, and OPS from hits, at-bats, walks, and extra-base hits.
Compare to MLB benchmarks by position.

Batting Statistics

Baseball batting statistics quantify a hitter’s effectiveness at the plate. The three most fundamental offensive metrics are Batting Average (BA), On-Base Percentage (OBP), and Slugging Percentage (SLG). Together they tell the complete story of a batter’s value.

Batting Average (BA):

BA = Hits (H) ÷ At Bats (AB)

At Bats exclude walks, hit-by-pitch, sacrifice flies, and sacrifice bunts — only official plate appearances where the batter tries to get a hit count.

On-Base Percentage (OBP):

OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)

  • BB = walks (base on balls)
  • HBP = hit by pitch
  • SF = sacrifice flies

Slugging Percentage (SLG):

SLG = Total Bases ÷ At Bats

Total Bases = (1B × 1) + (2B × 2) + (3B × 3) + (HR × 4)

OPS (On-base Plus Slugging):

OPS = OBP + SLG

OPS is considered one of the best simple predictors of overall offensive production.

Worked example: A batter has: 162 AB, 52 H (38 singles, 9 doubles, 2 triples, 3 HR), 20 BB, 3 HBP, 2 SF

  • BA = 52 ÷ 162 = .321
  • OBP = (52 + 20 + 3) ÷ (162 + 20 + 3 + 2) = 75 ÷ 187 = .401
  • Total Bases = (38×1) + (9×2) + (2×3) + (3×4) = 38+18+6+12 = 74
  • SLG = 74 ÷ 162 = .457
  • OPS = .401 + .457 = .858

MLB benchmarks:

Metric Poor Average Good Elite
BA < .230 .255 .290 .320+
OBP < .300 .330 .360 .400+
SLG < .360 .420 .480 .550+
OPS < .680 .750 .850 .950+

Ad Space — Bottom Banner

Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.