Skip to content
Omnikalc

Batting average calculator: AVG, OBP, SLG and OPS

Calculate a hitter's batting average, on-base percentage, slugging percentage and OPS from the box score numbers.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Results

Batting average (AVG)

0.300

Excellent (.300 or better)

On-base percentage (OBP)

0.377

Slugging percentage (SLG)

0.492

OPS (OBP + SLG)

0.869

Very good
Total bases (TB)
246
Isolated power (ISO = SLG − AVG)
0.192

The main hitting statistics

  • Batting average (AVG) = hits ÷ at-bats
  • On-base percentage (OBP) = (hits + walks + hit by pitch) ÷ (at-bats + walks + hit by pitch + sacrifice flies)
  • Slugging percentage (SLG) = total bases ÷ at-bats
  • OPS = OBP + SLG
  • Isolated power (ISO) = SLG − AVG

Total bases count 1 for a single, 2 for a double, 3 for a triple and 4 for a home run.

Worked example

A hitter has 500 at-bats, 150 hits including 30 doubles, 3 triples and 20 home runs, plus 60 walks, 5 hit-by-pitches and 5 sacrifice flies.

  1. Batting average: 150 ÷ 500 = .300.
  2. Singles: 150 − 30 − 3 − 20 = 97.
  3. Total bases: 97 + 2 × 30 + 3 × 3 + 4 × 20 = 246.
  4. OBP: (150 + 60 + 5) ÷ (500 + 60 + 5 + 5) = .377.
  5. SLG: 246 ÷ 500 = .492.
  6. OPS: .377 + .492 = .869, a very good season.
  7. ISO: .492 − .300 = .192.

What counts as an at-bat

An at-bat is a plate appearance that does not end in a walk, hit by pitch, sacrifice bunt, sacrifice fly or catcher’s interference. That is why a patient hitter with many walks can have a modest average but a high OBP.

Benchmarks

Stat Excellent Good Around MLB average
AVG .300 .270 .240 to .250
OBP .390 .340 .310 to .320
SLG .550 .450 .390 to .410
OPS .900 .800 .700 to .730

League averages move from year to year with rules, ball and pitching changes, so compare players within the same season.

Which stat matters most?

Batting average ignores walks and treats all hits the same. OBP captures how often a hitter avoids making an out, and SLG captures power, so OPS is a better quick summary of offensive value. Advanced metrics such as wOBA and OPS+ go further by weighting each event and adjusting for ballpark and league.

Qualifying for a batting title

In Major League Baseball, a hitter needs at least 3.1 plate appearances per team game, 502 over a 162-game season, to qualify for the batting title.

Frequently asked questions

How do you calculate batting average?

Divide hits by at-bats. 150 hits in 500 at-bats is a .300 average. Walks, hit-by-pitches and sacrifices do not count as at-bats.

What is a good OPS?

OPS adds on-base percentage and slugging percentage. Above .900 is excellent, .800 to .900 very good and about .700 to .750 is close to the MLB average in recent seasons.

How is on-base percentage calculated?

OBP = (hits + walks + hit by pitch) ÷ (at-bats + walks + hit by pitch + sacrifice flies). It measures how often a batter reaches base.

What is slugging percentage?

Total bases divided by at-bats, where a single counts 1, a double 2, a triple 3 and a home run 4. It measures power.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.