Baseball Batting Average Calculator
This calculator computes the four core batting statistics used throughout professional and amateur baseball: batting average (AVG), on-base percentage (OBP), slugging percentage (SLG), and OPS (OBP plus SLG). Enter your at-bats, hits broken down by type, walks, hit-by-pitches, and sacrifice flies to get all four statistics instantly. Singles are calculated automatically as total hits minus doubles, triples, and home runs. Baseball convention uses three decimal places for these statistics rather than two, and this calculator follows that standard. AVG is the simplest measure: hits divided by at-bats. OBP is broader, adding walks and HBP. SLG weights hits by their base value, rewarding extra-base hits. OPS combines OBP and SLG into a single number that correlates strongly with run production. All formulas are from the official MLB rulebook, which defines how each statistic is computed for professional play. These same definitions are used in college baseball (NCAA) and most amateur leagues.
Batting average: -- | OBP: -- | SLG: -- | OPS: --
Baseball batting statistic formulas
1B (Singles) = H - 2B - 3B - HR
AVG = H / AB
OBP = (H + BB + HBP) / (AB + BB + HBP + SF)
SLG = (1B + 2*2B + 3*3B + 4*HR) / AB
OPS = OBP + SLG
Worked example
400 AB, 120 H, 25 2B, 3 3B, 20 HR, 45 BB, 5 HBP, 4 SF:
- 1B = 120 - 25 - 3 - 20 = 72
- AVG = 120 / 400 = .300
- OBP = (120 + 45 + 5) / (400 + 45 + 5 + 4) = 170 / 454 = .374
- SLG = (72 + 50 + 9 + 80) / 400 = 211 / 400 = .528
- OPS = .374 + .528 = .902
What do good batting statistics look like?
| Rating | AVG | OBP | SLG | OPS |
|---|---|---|---|---|
| Elite (MVP level) | .330+ | .420+ | .580+ | 1.000+ |
| Great | .300-.329 | .370-.419 | .500-.579 | .900-.999 |
| Above average | .270-.299 | .340-.369 | .450-.499 | .800-.899 |
| Average | .250-.269 | .320-.339 | .400-.449 | .700-.799 |
| Below average | .230-.249 | .300-.319 | .350-.399 | .650-.699 |
| Poor | Below .230 | Below .300 | Below .350 | Below .650 |
Benchmarks based on typical MLB season data. League averages shift over time and between eras.
Baseball batting stats: frequently asked questions
What is a good batting average in baseball?
In Major League Baseball, a batting average of .300 or above is considered excellent and marks an elite hitter. The MLB league-wide average typically falls around .250 to .255 in modern seasons. A .270 to .299 range is considered above average, while .230 to .249 is below average but acceptable depending on a player's other contributions. Batting average has become less emphasized in modern analytics compared to on-base percentage and OPS.
What is OPS and why does it matter?
OPS (On-base Plus Slugging) is the sum of a player's on-base percentage (OBP) and slugging percentage (SLG). It combines the ability to get on base with the ability to hit for power into a single stat. An OPS above 1.000 is considered elite (MVP-level), .900 to .999 is great, .800 to .899 is above average, .700 to .799 is average, and below .700 is below average. OPS is one of the most commonly cited advanced stats in mainstream baseball coverage.
What is the difference between OBP and batting average?
Batting average (AVG) counts only hits divided by at-bats. On-base percentage (OBP) adds walks and hit-by-pitches to the numerator and denominator, and also includes sacrifice flies in the denominator. OBP is a broader measure of a batter's ability to avoid making outs. A player who draws many walks may have a significantly higher OBP than AVG, which is why OBP is generally considered the better measure of offensive value. A difference of more than .050 between OBP and AVG usually indicates a patient hitter who draws many walks.
What is slugging percentage and how is it calculated?
Slugging percentage (SLG) measures the total number of bases a batter earns per at-bat. It weights hits by their base value: singles count as 1, doubles as 2, triples as 3, and home runs as 4. The formula is (singles + 2 x doubles + 3 x triples + 4 x home runs) divided by at-bats. A slugging percentage of .450 is roughly league average, .500 is good, .550 is excellent, and .600 or above is elite power-hitter territory.
Why do baseball statistics use three decimal places?
Baseball statistics are conventionally expressed to three decimal places (for example, .312) rather than as percentages, because the sport has a long history of this format dating to the 19th century. The three decimal place convention allows for fine distinctions between players and aligns with how statistics appear in box scores, baseball cards, and official records from the MLB. This calculator follows the standard baseball convention of three decimal places for AVG, OBP, SLG, and OPS.
Official sources
- MLB Official Rules: Major League Baseball Official Rules.
Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology. General information only.