Batting Average Calculator

Calculate batting average, on-base percentage (OBP), slugging percentage (SLG), and OPS for any baseball player.

Batting Average

On-Base Percentage (OBP)

Slugging Percentage (SLG)

Batting Average

Hits / At-Bats

.272

Average

On-Base Percentage

(H + BB + HBP) / (AB + BB + HBP + SF)

.348

Slugging Percentage

Total Bases (117) / At-Bats

.425

OPS

OBP + SLG

0.774

Average

MLB Benchmark Reference
RatingBatting AvgOBPSLGOPS
Elite (MVP level).330+.420+.550+.970+
Excellent.300+.380+.500+.880+
Above Average.280+.350+.450+.800+
Average (MLB).250.320.410.730
Below Average.220.290.360.650
Replacement Level.200.270.320.590

How to Use the Batting Average Calculator

  1. Batting Average: enter the player's hits and at-bats. At-bats do not include walks, hit-by-pitches, or sacrifice flies. The calculator shows BA instantly.
  2. On-Base Percentage (OBP): fill in walks (BB), hit-by-pitches (HBP), and sacrifice flies (SF) to calculate OBP. OBP is considered a better measure than BA because it includes all ways a batter can reach base.
  3. Slugging Percentage (SLG): break down your hits into singles, doubles, triples, and home runs. The calculator weights each by its base value. Singles = 1, doubles = 2, triples = 3, home runs = 4.
  4. OPS is calculated automatically as OBP + SLG. It is the most widely used single-number summary of a batter's offensive value in modern baseball analytics.

Example: a player with 75 hits in 275 at-bats has a .272 batting average, 30 walks, 3 HBP, 2 sac flies, and a mix of extra-base hits might have an OBP of .365 and SLG of .418, for an OPS of .783, which is above the MLB average.

Baseball Batting Statistics Formulas

Batting Average (BA):
  BA = Hits / At-Bats
  Example: 80 H / 290 AB = .276

On-Base Percentage (OBP):
  OBP = (H + BB + HBP) / (AB + BB + HBP + SF)
  Example: (80 + 35 + 4) / (290 + 35 + 4 + 3) = .352

Slugging Percentage (SLG):
  Total Bases = (1B × 1) + (2B × 2) + (3B × 3) + (HR × 4)
  SLG = Total Bases / At-Bats
  Example: (50 + 30 + 9 + 28) / 290 = .403

OPS (On-base Plus Slugging):
  OPS = OBP + SLG
  Example: .352 + .403 = .755

Why BA alone is not enough: batting average treats all hits as equal. A single counts the same as a home run. Two players can both hit .280 but one might be a power hitter with many extra-base hits and walks, while the other rarely walks or hits for power. OPS captures this difference, which is why front offices and analysts rely on it more than batting average alone.

Frequently Asked Questions

In Major League Baseball, a .300 batting average is considered excellent and earns a player recognition as a strong hitter. A .250 average is roughly the MLB average for position players. Below .220 is generally considered poor, and players hitting below .200 for a full season often lose their roster spots. For context, the MLB-wide batting average in 2023 was approximately .248.

Related Calculators