Ad Space — Top Banner

Baseball Stats Calculator

Calculate batting average, on-base percentage, slugging percentage, and OPS from at-bats, hits, walks, and home runs.
Get a full offensive stat breakdown.

Batting Statistics

Baseball batting statistics quantify a hitter’s performance using several complementary metrics. Batting Average (AVG), On-Base Percentage (OBP), and Slugging Percentage (SLG) are the three core statistics that together form OPS — one of the most comprehensive single-number performance indicators in baseball.

Batting Average (AVG): AVG = Hits ÷ At-Bats

On-Base Percentage (OBP): OBP = (Hits + Walks + Hit by Pitch) ÷ (At-Bats + Walks + Hit by Pitch + Sacrifice Flies)

Slugging Percentage (SLG): SLG = Total Bases ÷ At-Bats Where Total Bases = (1B × 1) + (2B × 2) + (3B × 3) + (HR × 4)

OPS (On-base Plus Slugging): OPS = OBP + SLG

Where:

  • H = total hits; BB = walks (base on balls); HBP = hit by pitch; SF = sacrifice flies
  • AB = at-bats (plate appearances minus walks, HBP, sacrifices)
  • 1B, 2B, 3B, HR = singles, doubles, triples, home runs

OPS performance scale:

  • Below .650: Poor
  • .650–.699: Below average
  • .700–.749: Average
  • .750–.799: Above average
  • .800–.849: Good
  • .850–.899: Great
  • .900–.999: Excellent
  • 1.000+: Elite (all-time great season)

Worked example: Player stats for a season: 520 AB, 158 H, 30 2B, 5 3B, 22 HR, 65 BB, 4 HBP, 3 SF.

  • Singles = 158 − 30 − 5 − 22 = 101
  • Total Bases = (101×1) + (30×2) + (5×3) + (22×4) = 101 + 60 + 15 + 88 = 264
  • AVG = 158 ÷ 520 = .304
  • OBP = (158 + 65 + 4) ÷ (520 + 65 + 4 + 3) = 227 ÷ 592 = .383
  • SLG = 264 ÷ 520 = .508
  • OPS = .383 + .508 = .891 — a great season by any measure.

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.