Home ↓
CalculatorsVerified

Everyday & Time

Batting Average, OBP, SLG and OPS Calculator

Baseball and softball have a rich tradition of statistics, and four numbers describe hitting better than any others. Batting average, the oldest, is simply hits divided by at bats, written as a three-digit decimal such as .300 and read as “three hundred”. It ignores walks and treats a single the same as a home run, so analysts added two more measures. On-base percentage, OBP, counts how often a batter reaches base by a hit, a walk or being hit by a pitch, divided by plate appearances that count for the statistic: at bats plus walks, hit-by-pitches and sacrifice flies. Slugging percentage, SLG, measures power: total bases divided by at bats, where a single counts one base, a double two, a triple three and a home run four. OPS, on-base plus slugging, adds the two together and has become a popular single measure of a hitter’s overall offence because it tracks run scoring better than batting average. Isolated power, SLG minus AVG, shows extra-base power alone. In recent Major League Baseball seasons, a league-average hitter has had an OPS somewhere in the low .700s, while elite hitters exceed .900. This calculator uses the official definitions of these statistics as applied by Major League Baseball. Enter at bats, hits, doubles, triples and home runs, plus walks, hit-by-pitches and sacrifice flies for OBP. The results show all four statistics in traditional three-decimal format, isolated power, total bases and the plate appearances used. Advanced metrics such as weighted on-base average and wRC+ refine these ideas further by weighting each event by its run value.

How to use this calculator

  1. Enter at bats and hits.
  2. Enter doubles, triples and home runs.
  3. Enter walks, hit by pitch and sacrifice flies.
  4. Read AVG, OBP, SLG and OPS.
  5. Compare with league averages for context.

What counts as an at bat

Walks, hit-by-pitches, sacrifice bunts, sacrifice flies and catcher's interference are plate appearances but not at bats, so they do not lower batting average.

Reaching base on an error counts as an at bat without a hit, which lowers batting average and does not count for OBP.

Beyond OPS

OPS adds OBP and SLG equally, although getting on base is worth somewhat more runs than slugging. Weighted on-base average (wOBA) gives each event its own value.

Park and league adjustments, as in OPS+ and wRC+, compare hitters across ballparks and eras, with 100 representing league average.

Formula & method

AVG = H ÷ ABOBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)SLG = total bases ÷ AB, with total bases = singles + 2×2B + 3×3B + 4×HROPS = OBP + SLG

AVG = H ÷ AB. OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF). SLG = TB ÷ AB, TB = 1B + 2×2B + 3×3B + 4×HR. OPS = OBP + SLG. ISO = SLG − AVG.

Worked example

A season with 150 hits in 500 at bats

  1. AVG = 150 ÷ 500 = .300.
  2. Total bases = 95 + 60 + 15 + 80 = 250, so SLG = 250 ÷ 500 = .500.
  3. OBP = (150 + 60 + 5) ÷ 570 ≈ .377; OPS ≈ .877.

Answer: A .300 average with a .377 OBP and .877 OPS: an excellent season.

Frequently asked questions

What is a good batting average?

In Major League Baseball, around .250 is typical, .300 or higher is excellent, and averages below .200 are considered poor; league averages change over time.

Why is OPS popular?

OPS combines the ability to get on base with hitting for power, and it tracks run scoring better than batting average alone, though it weights the two parts roughly rather than precisely.

Why is a sacrifice fly in OBP but not AVG?

By rule, sacrifice flies are not at bats, but they are included in the OBP denominator.

Do walks count in batting average?

No, walks are not at bats, so they affect OBP but not AVG.

What does .300 mean?

Three hits for every ten at bats.

Can I use this for softball?

Yes, the definitions are the same.