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
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.
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
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
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
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
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
84 ÷ 400 = 0.210, below the typical MLB league-average range.
How to Use This Calculator
- 1
Enter At-Bats and Hits
These two numbers alone calculate batting average (AVG) instantly.
- 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
Add doubles, triples, and home runs (optional)
Unlocks Slugging Percentage (SLG) by calculating weighted Total Bases from your extra-base hits.
- 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.