Batting Average Calculator — AVG, OBP, SLG & OPS

Calculate batting average from at-bats and hits, plus OBP, slugging percentage, and OPS from a full stat line. Correct no-leading-zero display.

Optional — add these to unlock OBP, SLG, and OPS

Batting Average
.300
On-Base % (OBP)
Add BB / HBP / SF above to unlock
Slugging % (SLG)
Add 2B / 3B / HR above to unlock
OPS (OBP + SLG)
Needs both OBP and SLG inputs

AVG = Hits ÷ At-Bats. OBP = (Hits + Walks + HBP) ÷ (At-Bats + Walks + HBP + Sac Flies). SLG = Total Bases ÷ At-Bats, where Total Bases weights singles ×1, doubles ×2, triples ×3, and home runs ×4. OPS is simply OBP + SLG. All percentage-style stats are shown without a leading zero (e.g. ".300" not "0.300"), matching standard baseball scorekeeping convention.

93% found this helpful

Reference Values

Last verified:
Category Range What It Means Status
AVG .300 and above .300+ Excellent batting average — roughly the top tier of qualified MLB hitters each season, often good for a batting title contention. ★ Best
AVG .270–.299 .270–.299 Good, above-average hitting — a solid everyday-lineup contributor. Good
AVG .250–.269 .250–.269 Roughly league-average contact production at the MLB level. Okay
AVG below .230 < .230 Below-average contact rate — usually needs strong power or defense to offset it. Poor
OBP .360 and above .360+ Excellent on-base skill — reaches base far more often than average, a top-of-lineup or leadoff profile. ★ Best
OBP .320–.339 .320–.339 Roughly league-average on-base percentage at the MLB level. Okay
OBP below .300 < .300 Below-average on-base rate — makes outs more frequently than a typical MLB hitter. Poor
SLG .500 and above .500+ Excellent power production — typical of middle-of-the-order sluggers. ★ Best
SLG .400–.449 .400–.449 Roughly league-average power production at the MLB level. Okay
SLG below .350 < .350 Below-average power — mostly singles with little extra-base impact. Poor
OPS .900 and above .900+ Elite all-around offensive production — All-Star / MVP-caliber tier combining on-base skill and power. ★ Best
OPS .800–.899 .800–.899 Great overall offensive production, well above league average. Good
OPS .700–.799 .700–.799 Roughly league-average overall offensive production. Okay
OPS below .600 < .600 Well below-average offensive production league-wide. Poor

Source: Batting average, OBP, SLG, and OPS formulas per MLB.com Glossary (https://www.mlb.com/glossary/standard-stats) and tier benchmarks aggregated from Baseball-Reference.com league-average leaderboards. MLB league-wide averages shift slightly year to year — treat these tiers as general guidance, not exact cutoffs, and youth/high school/college benchmarks run differently than MLB due to different competition levels.

Worked Examples

Basic Batting Average

At-Bats
500
Hits
150
.300 AVG

150 ÷ 500 = 0.300, displayed as .300 per baseball convention (no leading zero).

Full Stat Line (AVG + OBP + SLG + OPS)

At-Bats
550
Hits
165
Walks
60
HBP
5
Sac Flies
5
2B
30
3B
3
HR
20
.300 AVG / .371 OBP / .475 SLG / .846 OPS

AVG = 165÷550 = .300. OBP = (165+60+5)÷(550+60+5+5) = 230÷620 = .371. Singles = 165-30-3-20 = 112. Total Bases = 112×1 + 30×2 + 3×3 + 20×4 = 112+60+9+80 = 261. SLG = 261÷550 = .475. OPS = .371+.475 = .846.

Average MLB Regular

At-Bats
520
Hits
135
Walks
45
HBP
3
Sac Flies
4
.260 AVG / .329 OBP

AVG = 135÷520 = .260 (league-average tier). OBP = (135+45+3)÷(520+45+3+4) = 183÷572 = .320.

High-Power, Lower-Average Slugger

At-Bats
480
Hits
115
2B
22
3B
1
HR
35
.240 AVG / .508 SLG

AVG = 115÷480 = .240. Singles = 115-22-1-35 = 57. Total Bases = 57 + 44 + 3 + 140 = 244. SLG = 244÷480 = .508 — power production well above average despite a modest batting average, showing why AVG alone doesn't capture offensive value.

Below-Average Contact Hitter

At-Bats
400
Hits
84
.210 AVG

84 ÷ 400 = 0.210, below the typical MLB league-average range.

How to Use This Calculator

  1. 1

    Enter At-Bats and Hits

    These two numbers alone calculate batting average (AVG) instantly.

  2. 2

    Add walks, HBP, and sacrifice flies (optional)

    Unlocks On-Base Percentage (OBP) using the full (H + BB + HBP) ÷ (AB + BB + HBP + SF) formula.

  3. 3

    Add doubles, triples, and home runs (optional)

    Unlocks Slugging Percentage (SLG) by calculating weighted Total Bases from your extra-base hits.

  4. 4

    Read AVG, OBP, SLG, and OPS

    OPS (OBP + SLG) only appears once both OBP and SLG inputs are filled in, giving a single combined offensive number.

What Each Value Means

Batting Average (AVG) (AVG)
Hits divided by official at-bats, rounded to three decimals and displayed without a leading zero. The most traditional (though incomplete on its own) measure of a hitter's contact rate.
On-Base Percentage (OBP) (OBP)
The rate at which a batter reaches base safely via hit, walk, or hit-by-pitch, calculated as (H + BB + HBP) ÷ (AB + BB + HBP + SF). Captures plate discipline that AVG ignores.
Slugging Percentage (SLG) (SLG)
Total bases earned per at-bat — singles count once, doubles twice, triples three times, and home runs four times — calculated as Total Bases ÷ At-Bats. Measures raw power production.
OPS (On-Base Plus Slugging) (OPS)
The simple sum of OBP and SLG, combining a hitter's ability to reach base with their power production into one widely used overall offensive number.

Frequently Asked Questions

How do you calculate batting average?
Batting Average (AVG) = Hits ÷ At-Bats, rounded to three decimal places. For example, 150 hits in 500 at-bats is 150 ÷ 500 = 0.300, written as ".300" per baseball convention. Walks, hit-by-pitches, and sacrifice flies are not counted as at-bats, so they don't factor into AVG at all — that's what OBP is for.
Why is batting average written as ".300" instead of "0.300"?
It's a longstanding scorekeeping convention in baseball, not a math rule — batting average, on-base percentage, and slugging percentage are always written without the leading zero (".300", ".417", ".550"), while a stat that can exceed 1.000, like OPS, is sometimes written with it once it crosses that threshold. This calculator follows the same convention: AVG, OBP, and SLG always drop the zero, since none of those three can mathematically exceed 1.000.
What's the difference between batting average and OBP?
Batting average only counts hits divided by official at-bats, so it ignores walks and hit-by-pitches entirely even though both let a batter reach base safely. On-Base Percentage (OBP) fixes this by counting hits, walks, and hit-by-pitches in the numerator, and dividing by at-bats plus walks, hit-by-pitches, and sacrifice flies. A hitter who draws a lot of walks can have a much higher OBP than AVG, which is exactly the gap this calculator is built to show.
What is a good OPS in baseball?
At the MLB level, an OPS above .900 is considered elite (typical of All-Star-caliber hitters), .800–.899 is great, roughly .700–.799 is close to league average, and below .600 is well below average. OPS combines on-base skill and power into one number, which is why analysts generally treat it as a better single-number gauge of overall offensive value than batting average alone.
Do sacrifice flies count as at-bats?
No. A sacrifice fly is not counted as an at-bat, but it is counted in the OBP denominator, which is why OBP's formula adds sacrifice flies separately from at-bats rather than folding them in. This is a common source of confusion — leaving sacrifice flies out of the OBP denominator (or wrongly counting them as at-bats) is one of the most frequent manual OBP calculation errors.