Skip to main content

Baseball stats · AVG / OBP / SLG / OPS

Batting Average Calculator

Compute batting average (AVG) — and the full slash line: on-base percentage (OBP), slugging percentage (SLG), and OPS — from hits, at-bats, walks, and extra-base hits. Results are graded against 2024 MLB league averages so you can see instantly whether a line is elite, average, or struggling.

Scope boundary: this tool covers baseball/softball batting rate stats (AVG, OBP, SLG, OPS). It does not cover pitching stats, fielding stats, cricket batting average (a different formula), or advanced metrics like wOBA and WAR.

For OBP — walks never touch AVG.

Hit breakdown — unlocks SLG & OPS

1B + 2B + 3B + HR must equal total hits. Leave all zero to compute AVG/OBP only.

Enter hits and at-bats, then calculate — every keystroke recalculates live.

The four formulas, side by side

AVG is the classic; OBP, SLG, and OPS were built to fix what AVG leaves out. All four round to three decimals and are written without the leading zero — .300, not 0.300.

Baseball batting rate stats: formula, what it measures, and what the denominator excludes.
StatFormulaWhat it measures2024 MLB avg
AVGH ÷ ABHow often at-bats become hits.243
OBP(H + BB + HBP) ÷ (AB + BB + HBP + SF)How often you reach base safely.312
SLGTB ÷ AB, TB = 1B + 2·2B + 3·3B + 4·HRPower per at-bat (can exceed 1.000).399
OPSOBP + SLGCombined on-base + power skill.711

Two subtleties trip people up. First, a sacrifice fly is not an at-bat, so it leaves AVG alone — but it does count in the OBP denominator, slightly lowering OBP. A sacrifice bunt vanishes from both. Second, errors and fielder's choices are neither hits nor at-bats for rate purposes: reaching on an error helps the team but adds nothing to any of these four stats.

Worked examples — every number recomputed

Example 1 — the full slash line: .300 / .385 / .461 / .846

  1. 162 hits in 540 at-bats → AVG = 162 ÷ 540 = .300.
  2. Breakdown 110 singles, 32 doubles, 5 triples, 15 homers = 162 hits ✓. Total bases = 110 + (2×32) + (3×5) + (4×15) = 249.
  3. SLG = 249 ÷ 540 = .461.
  4. 70 walks, 8 HBP, 6 sac flies → OBP = (162 + 70 + 8) ÷ (540 + 70 + 8 + 6) = 240 ÷ 624 = .385.
  5. OPS = .385 + .461 = .846 — an above-average MLB regular.

Slash line: .300 / .385 / .461 / .846 · 624 PA · 249 TB

Example 2 — half season: .281 / .333 / .425 / .758

  1. 45 hits in 160 at-bats → AVG = 45 ÷ 160 = .281.
  2. Breakdown 30 + 10 + 2 + 3 = 45 hits ✓. Total bases = 30 + 20 + 6 + 12 = 68; SLG = 68 ÷ 160 = .425.
  3. 12 walks, 2 HBP, 3 sac flies → OBP = 59 ÷ 177 = .333.
  4. OPS = .333 + .425 = .758 — solidly above the 2024 league mark of .711.

Slash line: .281 / .333 / .425 / .758 · 177 PA · 68 TB

Example 3 — AVG only, no breakdown: .400

  1. 18 hits in 45 at-bats → AVG = 18 ÷ 45 = .400.
  2. No hit breakdown entered → SLG and OPS show n/a (the calculator refuses to guess).
  3. No walks → OBP = 18 ÷ 45 = .400, identical to AVG.

Slash line: .400 / .400 / n/a / n/a · 45 PA

What the numbers mean — MLB benchmark tables

Raw decimals mean little without context. The calculator grades your line against these tiers, anchored to 2024 MLB league averages (.243 / .312 / .399 / .711, Baseball-Reference).

Batting average tiers — how to read your AVG.
AVGLabelContext
≥ .400HistoricLast done over a full season by Ted Williams (.406, 1941)
.340 – .399Batting-title territoryWins batting titles in most seasons
.300 – .339ExcellentAn above-average MLB regular
.280 – .299Solidly above averageStrong contact season
.250 – .279Around league average2024 MLB average: .243
.220 – .249Below averageContact skills need work
.200 – .219StrugglingHovering near the Mendoza Line
< .200Below the Mendoza LineTime to retool the swing
OPS tiers — the number front offices actually sort by.
OPSLabelContext
≥ 1.000SuperstarMVP conversation
.900 – .999All-Star caliberOne of the league's best bats
.800 – .899Above-average regularEveryday lineup bat
.700 – .799Around league average2024 MLB average: .711
.600 – .699Below averageOffense is a liability
< .600Well below averageReplacement-level bat or worse

A short history of the batting average

Batting average came to baseball from cricket, and the man who made it stick was Henry Chadwick, the 19th-century sportswriter who invented the box score. When professional baseball began tracking official statistics in 1871, Chadwick's formula — hits divided by at-bats — became the game's first headline number, and it stayed the marquee stat for more than a century.

The record book shows how hard the top end is. Hugh Duffy's .440 in 1894 is the single-season record; Ted Williams's .406 in 1941 (185 hits in 456 at-bats) is the last .400 season anyone has produced. Ty Cobb's .366 career mark has stood for nearly a century, and Ichiro Suzuki's 262 hits in 2004 remain the single-season hits record — hit while batting .372.

League-wide offense has been sliding: MLB hit .248 in 2023 after the pitch clock, bigger bases, and shift limits debuted, then .243 in 2024 and .245 in 2025 (Sportradar). Only seven qualified hitters reached .300 in 2025 — matching the previous year's low. Meanwhile front offices have moved on: on-base percentage and slugging, combined as OPS, now drive contracts more than AVG does, because AVG treats a single and a home run as equals and gives no credit for walks.

Why OPS took over (and AVG didn't die)

AVG answers one question — "how often does an at-bat become a hit?" — but run scoring needs two more answers: "how often does he avoid making an out?" (OBP) and "how much damage when he does hit it?" (SLG). OPS bundles both into one number that tracks team run scoring far better than AVG alone.

That doesn't make AVG useless. It still measures pure contact quality, players still know exactly what they hit, and batting titles are still awarded on it. The modern reading is a slash line, not a single number: .280 / .350 / .450 / .800 tells a complete story that .280 alone never could. Use this calculator's four-card output the same way — and check the diff column against the 2024 league line.

Practical tips for raising the slash line

  1. Walks are free OBP. AVG never sees them, but every walk pushes OBP up. Plate discipline — laying off borderline pitches with two strikes — is the cheapest stat boost in baseball.
  2. Track plate appearances, not just at-bats. Four walks in a game is a perfect 1.000 OBP day even if AVG says 0-for-0.
  3. Small samples lie. Going 3-for-3 is a 1.000 AVG and means almost nothing; rate stats stabilize over hundreds of plate appearances. Don't overhaul a swing over one weekend.
  4. Enter the full breakdown. AVG-only lines hide power. A .260 hitter with 35 homers (.520 SLG) is far more valuable than a .290 all-singles hitter (.360 SLG) — SLG reveals the difference.
  5. Compare against league average, not .300. In 2024 the average big leaguer hit .243/.312/.399. A .260/.330/.420 line is a solid regular, even though no single number starts with 3.
  6. For youth coaches: track these stats over a full season per player and sort by OBP, not AVG — it rewards kids who work counts and take walks instead of swinging at everything.

Not cricket: a naming collision

"Batting average" means something entirely different in cricket: total runs divided by times dismissed. A cricket average of 50 is world-class; a baseball average of .300 is excellent. The two sports share Henry Chadwick's vocabulary but not his arithmetic — this calculator uses the baseball (MLB) definitions throughout.

Batting average FAQ

How do you calculate batting average?

Divide total hits by total at-bats, then round to three decimal places: AVG = H / AB. For example, 162 hits in 540 at-bats is 162 / 540 = 0.300, written in baseball notation as .300. Walks, hit-by-pitches, and sacrifices are not at-bats, so they never enter this formula.

Do walks count toward batting average?

No. A walk (base on balls) is not an at-bat, so it is excluded from both the numerator and denominator of batting average — it neither helps nor hurts your AVG. Walks do count toward on-base percentage (OBP), which is exactly why OBP was invented: to credit plate discipline that AVG ignores.

What is the difference between batting average and on-base percentage?

Batting average (H / AB) only measures how often an at-bat ends in a hit. On-base percentage, (H + BB + HBP) / (AB + BB + HBP + SF), measures how often a plate appearance ends with the batter reaching base safely by any means. A patient hitter with 100 walks can have a modest .260 AVG but an excellent .380 OBP.

How is slugging percentage calculated?

Add up total bases — singles count 1, doubles 2, triples 3, home runs 4 — then divide by at-bats: SLG = TB / AB. A line of 110 singles, 32 doubles, 5 triples, and 15 homers is 110 + 64 + 15 + 60 = 249 total bases; over 540 at-bats that is 249 / 540 = .461. Unlike AVG, slugging rewards extra-base power.

What is OPS and why do front offices care about it?

OPS is simply OBP + SLG: on-base plus slugging. Front offices embraced it because it combines the two most important offensive skills — getting on base and hitting for power — into one number that predicts run scoring far better than batting average alone. An .800 OPS marks an above-average regular; 1.000 is superstar territory.

What is a good batting average in baseball?

Context matters, but the 2024 MLB league average was .243, so anything clearly above that is solid. Hitting .300 over a full season is considered excellent — only a handful of qualified hitters reach it each year. At the other end, the Mendoza Line (.200) is the traditional cutoff for a struggling bat.

What are good OBP, SLG, and OPS numbers?

Using 2024 MLB league averages as the baseline (.312 OBP, .399 SLG, .711 OPS): an OBP above .360 is excellent and .400+ is elite; a SLG above .450 shows real power; an OPS above .800 marks an above-average regular and .900+ is All-Star caliber. This calculator grades all four stats against these benchmarks automatically.

Can slugging percentage be over 1.000?

Yes. Slugging can exceed 1.000 because total bases can exceed at-bats — a home run is worth 4 bases in a single at-bat. For example, 35 total bases in 20 at-bats is a 1.750 SLG. Barry Bonds holds the single-season record at .863 (2001); no qualified hitter has ever finished a season above 1.000.

What counts as a hit for batting average?

Singles, doubles, triples, and home runs — every base hit counts as exactly one hit in the AVG numerator, no matter how many bases it covers. Reaching on an error or a fielder's choice is not a hit. Walks, hit-by-pitches, and sacrifices are not hits either, and they are not at-bats.

Do sacrifice flies and bunts count as at-bats?

A sacrifice bunt is neither an at-bat nor counted in OBP — it is treated as if the plate appearance never happened for rate stats. A sacrifice fly is not an at-bat (so AVG is unaffected), but it does count as a plate appearance in the OBP denominator, which is why OBP uses AB + BB + HBP + SF on the bottom of the fraction.

Who has the highest batting average in baseball history?

Ty Cobb holds the career record at .366. The single-season record is .440 by Hugh Duffy (1894), and the last hitter to bat .400 in a season was Ted Williams at .406 in 1941 — 185 hits in 456 at-bats. Ichiro Suzuki set the single-season hits record with 262 in 2004 while batting .372.

Is batting average outdated in the analytics era?

Less central than it was, but not useless. Analytics departments now lean on OPS, wOBA, and expected stats because AVG treats a single and a home run as equals and ignores walks. Still, AVG measures pure contact quality, players track it closely, and batting titles are still awarded on it — which is why this calculator shows AVG alongside OBP, SLG, and OPS.

Is this the same as cricket batting average?

No. Cricket's batting average is total runs divided by times dismissed — a completely different formula from baseball's hits divided by at-bats. A cricket average of 50 is world-class; a baseball average of .300 is excellent. This calculator uses the baseball (MLB) definitions throughout.

What is the Mendoza Line?

The Mendoza Line is .200 — the informal threshold separating a viable major-league bat from a struggling one. It is named after Mario Mendoza, a light-hitting 1970s shortstop whose average hovered around that mark. Hitting below it invites jokes; hitting well above it keeps you employed.

Scope boundary: baseball/softball batting rate stats (AVG, OBP, SLG, OPS) as defined by MLB conventions. This tool does not cover pitching or fielding stats, cricket averages, or advanced metrics (wOBA, wRC+, WAR).

Disclaimer: an educational reference tool — stat definitions follow standard MLB conventions. Not affiliated with Major League Baseball. Historical figures are cited from Baseball-Reference and standard record books.

Free tool by NRTechStudio