Sports

Baseball Batting Average, OBP, SLG and OPS Calculator

Enter at-bats, hits by type, walks and sacrifice flies to get AVG, OBP, SLG and OPS.

Your numbers

Your results

Batting average (AVG)
Batting average (AVG)
—
On-base percentage (OBP)
—
Slugging percentage (SLG)
—
OPS (OBP + SLG)
—
Hits
—
Total bases
—
Isolated power (ISO)
—

Baseball Batting Average, OBP, SLG and OPS Calculator by TheCalcTools

How the Baseball Batting Average, OBP, SLG and OPS Calculator works

Batting average is hits divided by at-bats. On-base percentage adds walks and hit-by-pitches and divides by plate appearances that count (AB + BB + HBP + SF).

Slugging percentage weights hits by bases: singles 1, doubles 2, triples 3, home runs 4, divided by at-bats. OPS adds OBP and SLG into one quick measure of offence.

The formula

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

Using the default values shown in the calculator:

At-bats (AB)520
Singles98
Doubles32
Triples3
Home runs27
Walks (BB)61
Hit by pitch (HBP)5
Sacrifice flies (SF)4
  1. Hits: 98 + 32 + 3 + 27 = 160; AVG = 160 ÷ 520 = 0.308.
  2. OBP = (160 + 61 + 5) ÷ (520 + 61 + 5 + 4) = 0.383. SLG = 279 ÷ 520 = 0.537.
  3. OPS = 0.920.

Result:

Batting average (AVG)0.308
On-base percentage (OBP)0.383
Slugging percentage (SLG)0.537
OPS (OBP + SLG)0.920
Hits160
Total bases279
Isolated power (ISO)0.229

Frequently asked questions

What is a good OPS?

Roughly, .700 is about league average in Major League Baseball, .800 is good and .900 or more is excellent. League levels change from season to season.

Why are averages written without a leading zero?

It is a baseball convention: .300 means 0.300, or 30%.

Sources and further reading

More in Sports · All calculators

This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.