Batting Average Calculator
Calculate batting average, OBP, SLG, and OPS from a box score — or find out how many hits you need to reach a target average.
Enter hits and at-bats for instant batting average, or add doubles, triples, home runs, walks, and sacrifice flies for a full stat line — AVG, OBP, SLG, and OPS. Or switch modes to find out exactly how many hits you need to reach a target average.
How batting average is calculated
Batting average is baseball's oldest and most familiar statistic — a simple ratio of hits to at-bats, traditionally reported as a three-decimal number without the leading zero.
Worked example — 45 hits in 150 at-bats:
- AVG = 45 ÷ 150 = 0.300
- Reported as .300 (spoken as “three-hundred”)
The three-decimal convention (.300 rather than 0.300 or 30.0%) is purely a baseball tradition, not a mathematical requirement — it’s simply how the sport has reported this statistic since the 1800s, and every player, coach, and broadcaster reads it the same way.
Beyond batting average: OBP, SLG, and OPS
Batting average alone has a well-known limitation: it treats every hit the same (a single counts exactly like a home run) and it doesn’t credit a player for walks, which are also a way of successfully reaching base. Modern baseball analysis leans on additional statistics that address these gaps.
OBP answers a more complete question than batting average: how often does this player successfully reach base, by any means? Walks and hit-by-pitches count toward OBP even though they don’t count as hits or count against batting average, which is why OBP is generally considered a better single measure of a hitter’s ability to avoid making an out.
SLG addresses batting average’s other limitation — it weights extra-base hits more heavily, since a double genuinely advances a batter (and any runners) further than a single. A player who hits mostly singles and one who hits mostly doubles and home runs can have identical batting averages while having very different slugging percentages, reflecting their real difference in power production.
OPS is simply the sum of the two — a quick, widely used combined measure of a hitter’s ability to both get on base and hit for power. It’s not a perfectly rigorous statistic (adding a percentage and a per-at-bat average together mixes two different denominators in a way that purists note isn’t mathematically elegant), but its simplicity and broad usefulness have made it one of the most commonly cited advanced batting statistics in modern baseball coverage.
More advanced statistics have been developed specifically to address OPS’s mathematical inelegance, most notably weighted on-base average (wOBA), which assigns a specific, empirically-derived run value to each type of offensive outcome (walk, single, double, triple, home run) rather than simply adding two ratios together. wOBA and similar advanced metrics are generally considered more accurate reflections of a hitter’s actual run-scoring contribution than OPS, but they require league-specific weighting constants that change from season to season and aren’t as intuitive to calculate or explain as the simpler batting average, OBP, SLG, and OPS covered here. For most practical purposes — tracking personal or team performance, comparing players at a recreational or amateur level, or following along with broadcast statistics — the simpler statistics remain the most commonly used and widely understood.
What counts as an at-bat
| Counts as an at-bat | Does NOT count as an at-bat |
|---|---|
| Hit | Walk (base on balls) |
| Out from batted ball | Hit by pitch |
| Strikeout | Sacrifice bunt or sacrifice fly |
| Reached on error (counts as at-bat, not a hit) | Catcher's interference |
This distinction trips up a lot of newcomers to baseball statistics: a “plate appearance” (every time a player completes a turn batting) is a broader category than “at-bat,” and several outcomes count as a plate appearance without counting as an at-bat. This matters directly for batting average, since walks and sacrifice situations are specifically excluded from the at-bat denominator — a player who walks frequently doesn’t have those walks held against their batting average, even though a walk (unlike a hit) doesn’t help their average either. This is exactly the gap OBP is designed to fill, by explicitly counting walks as a successful outcome rather than simply excluding them from the calculation.
Worked example — same 45-for-150 hitter, now with 20 walks, 2 hit-by-pitches, 3 sacrifice flies, and an extra-base hit breakdown of 8 doubles, 2 triples, 5 home runs:
- OBP denominator: 150 (AB) + 20 (BB) + 2 (HBP) + 3 (SF) = 175
- OBP numerator: 45 (H) + 20 (BB) + 2 (HBP) = 67
- OBP = 67 ÷ 175 ≈ .383
- Singles: 45 − 8 − 2 − 5 = 30
- Total bases: 30 + (2×8) + (3×2) + (4×5) = 30 + 16 + 6 + 20 = 72
- SLG = 72 ÷ 150 = .480
- OPS = .383 + .480 = .863
Notice how much fuller a picture emerges once walks and extra-base hits enter the calculation — the same .300 batting average sits alongside a robust .383 OBP and strong .480 SLG, reflecting a hitter who both reaches base at a high rate and hits with real power, details the bare batting average figure alone doesn’t reveal.
Historical context for batting averages
| Average range | General perception |
|---|---|
| .400+ | Historically exceptional — not achieved in MLB across a full season since 1941 |
| .320–.399 | Elite, typically among league leaders |
| .280–.319 | Very good, above-average regular |
| .250–.279 | Solid, everyday-player territory |
| Below .250 | Common for many contributing players, especially those valued for other skills |
These general perception bands apply most directly to professional baseball at its highest level; averages at youth, high school, college, and recreational levels vary considerably based on competition level, and a “good” average at one level of play may look quite different at another. What counts as a good batting average has also shifted over baseball history — league-wide averages fluctuate across different offensive eras, so a .280 average carries a different relative meaning depending on the specific period and league context it was produced in.
Sample size matters enormously when interpreting a batting average, especially early in a season. A player who goes 3-for-5 in their first few games is technically batting .600, an obviously unsustainable figure driven entirely by a tiny sample. Batting average stabilizes into a meaningful reflection of true talent only after a reasonably large number of at-bats — which is exactly why full-season totals (typically several hundred at-bats for an everyday player) are considered far more meaningful than a single week or even a single month’s figures, and why career batting average, aggregated across thousands of at-bats, is considered the most stable and meaningful version of the statistic for evaluating a player’s overall hitting ability.
Calculating hits needed for a target average
Worked example — currently .300 (45-for-150), want to stay at .300 through 20 more at-bats:
- Target hits total: 0.300 × (150 + 20) = 0.300 × 170 = 51
- Hits needed in the next 20 at-bats: 51 − 45 = 6 hits (a .300 pace over that stretch)
This calculation is symmetric and works for any target, current record, and remaining at-bat count — it’s simply solving the batting average formula backward for the unknown hit count needed to reach a specific combined average. It’s worth noting the result is sometimes not achievable (if the target requires more hits than the number of remaining at-bats allows) or already guaranteed (if a player is already comfortably above the target and can’t mathematically fall below it in the given number of at-bats) — both edge cases are worth checking before reacting to a calculated number.
Real-world applications
Tracking a season’s progress toward a personal or team goal is one of the most common uses of this kind of calculation — a player chasing a .300 season, or a specific milestone hit total, can see exactly what pace they need to maintain or make up over their remaining scheduled at-bats.
Comparing players with different playing time is where OBP and SLG add real value beyond batting average alone — a part-time player and a full-time everyday player can have similar batting averages while contributing very differently to their team’s overall offense, a difference batting average alone doesn’t fully capture.
Youth and amateur baseball coaching commonly uses these same basic statistics for player development conversations — tracking batting average, OBP, and extra-base hit rate over a season gives a coach and player concrete, objective feedback on specific areas (plate discipline reflected in OBP relative to AVG, power development reflected in SLG) to focus on.
Fantasy baseball leagues frequently use batting average, OBP, SLG, and OPS as core scoring categories, making these calculations directly relevant to fantasy team management — a manager deciding between two similarly-productive players for a lineup slot often looks past raw batting average to OPS or a full slash line (AVG/OBP/SLG together) for a more complete comparison, especially late in a fantasy season when a small number of remaining games can meaningfully shift final standings in category-based scoring formats.
Common mistakes to avoid
- Confusing at-bats with plate appearances. Walks, hit-by-pitches, and sacrifice situations count as plate appearances but not as at-bats — using the wrong denominator produces an incorrect batting average.
- Treating batting average as the complete picture of hitting ability. It doesn’t account for walks or extra-base power — OBP and SLG (and their combination, OPS) capture dimensions of offensive contribution that batting average alone misses.
- Forgetting that reaching base on an error still counts as an at-bat. It’s not counted as a hit (correctly, since it wasn’t earned via a successful batted ball against the defense), but it does count against the at-bat denominator, unlike a walk.
- Assuming a target average calculation is always achievable. If the math requires more hits than remaining at-bats allow, the target simply isn’t reachable in that timeframe — check this before treating a calculated hit total as a realistic goal.
- Applying modern-era batting average benchmarks to a different level of competition without adjustment. A “.300 is great” framing common in professional baseball discussion doesn’t automatically translate the same way to youth, high school, or recreational leagues, where average offensive output differs.
- Mixing up singles, doubles, triples, and home runs when calculating total bases. Total bases must weight each hit type by its actual base value (1 for a single, up to 4 for a home run) — treating all hits as equal when calculating slugging percentage defeats the entire purpose of the statistic.
- Overreacting to a small sample size. A hot or cold stretch over just a handful of at-bats can produce a dramatically unrepresentative average — batting average becomes meaningfully stable only after a substantial number of at-bats, and early-season or short-stretch numbers should be interpreted with that in mind.
- Comparing raw batting averages across very different eras or contexts without adjustment. League-wide offensive levels shift over time and across levels of competition — a .280 average doesn’t mean the same thing in every season, league, or level of play, and direct comparisons across very different contexts can be misleading without that context.