🏆
🏆 Sports & games

Batting Average, OBP, SLG & OPS Calculator

Results update as you type.

Your numbers

Understanding the batting average, OBP, SLG and OPS calculator — concept and principle

These four rate statistics are the standard way to describe a hitter. Batting average (AVG) measures how often a hitter gets a hit, on-base percentage (OBP) how often he reaches base, slugging percentage (SLG) how much power each at-bat produces, and OPS adds OBP and SLG into one quick summary. Isolated power (ISO) is also shown.

Total bases and OPS100 singles, 30 doubles, 3 triples and 25 home runs make 269 total bases: SLG .538. With OBP .391, OPS is .929.Each hit is worth its bases1234 = HR1B100 × 11002B30 × 2603B3 × 39HR25 × 4100total bases 269hits 158 · AVG .316OBP .391223 ÷ 570+SLG .538269 ÷ 500=OPS .929.391 + .538ISO = SLG − AVG = .222 (power)
Singles to home runs count 1–4 bases; OBP + SLG gives OPS .929.

How it is calculated

At-bats exclude walks, hit-by-pitches, sacrifice flies and sacrifice bunts, which is why OBP adds BB, HBP and SF back into its denominator.

The principle

AVG treats every hit the same and ignores walks, so it misses two things that create runs: reaching base without a hit and hitting for extra bases. OBP fixes the first, because avoiding outs is the most valuable thing a hitter does. SLG fixes the second by weighting each hit by the bases it gains. OPS is popular because it correlates well with team run scoring and is easy to compute, even though it is a sum of two ratios with different denominators and gives OBP slightly less weight than it deserves.

Worked example

  1. Inputs: 500 AB, 100 singles, 30 doubles, 3 triples, 25 HR, 60 BB, 5 HBP, 5 SF.
  2. H = 100 + 30 + 3 + 25 = 158; AVG = 158 / 500 = .316.
  3. OBP = (158 + 60 + 5) / (500 + 60 + 5 + 5) = 223 / 570 = .3912.
  4. TB = 100 + 60 + 9 + 100 = 269; SLG = 269 / 500 = .538.
  5. OPS = 0.39123 + 0.538 = .9292; ISO = .538 − .316 = .222.
How OPS changes with At batsHow OPS changes with At bats012341252503755006257501,000Example: 0.9292280702At bats
Each point is the calculator re-run with only “At bats” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
At batsOPS
1253.295589744
2501.772875
3751.218456929
5000.9292280702
6250.7512633094
7500.6306178862
1,0000.477411215

How to read the result

In recent MLB seasons, league averages have been roughly .245 AVG, .315 OBP, .400–.415 SLG and an OPS of about .710–.735. As a rough guide, an OPS of .800 is clearly above average, .900 is excellent and 1.000 is elite. An ISO above .200 marks a power hitter. This example, a .929 OPS with 25 home runs, would rank among the better hitters in a typical season.

Common mistakes

Keep in mind: These are descriptive statistics. Small samples (a few weeks) swing widely, and park and league environment matter, so compare like with like.

Frequently asked questions

Does reaching on an error count for OBP?

No. Errors and fielder's choices count as at-bats without reaching base for OBP.

Why is sacrifice bunt not in OBP?

By rule, sacrifice bunts are excluded from OBP's denominator, while sacrifice flies are included.

Is OPS better than batting average?

Yes for predicting runs, but wOBA weights each event more accurately than OPS.

Sources: Official Baseball Rules, Office of the Commissioner of Baseball (percentage records) · MLB.com Glossary, OBP, SLG and OPS

Checked 8 Nov 2026. Official league / federation formulas where they exist; widely used community formulas otherwise. For fun and analysis — not betting advice.

🏆 All sports & games tools →🌍 Calculators by country →