⚾ Batting Average, OBP, SLG and OPS Calculator

Four numbers, and why the famous one is the weakest.

No ratings yet — be the first

Enter details

Log in or create a free account to save your inputs and results, so you don't have to enter them again next time.🔒 No spam, ever. We never sell or share your details, and you can delete your history or account at any time. Privacy policy

Fill in the details and click Calculate to see your results.

Formula at a glance

Baseball Batting Calculator: AVG — hits ÷ at-bats. Example: A .300 hitter with 25 home runs → Batting average: .300 — excellent
How the Baseball Batting Calculator works: AVG — hits ÷ at-bats

Rate this calculator

Was it useful? A quick star rating helps others — and you can leave a comment too.
Rate it: ★ ★ ★ ★ ★

📘 About the Batting Average, OBP, SLG and OPS Calculator

Batting average is hits divided by at-bats, and it has one large blind spot: a walk is not an at-bat, so a hitter who draws eighty walks a season gets no credit at all. On-base percentage closes that gap — (H + BB + HBP) ÷ (AB + BB + HBP + SF) — and measures the thing that actually matters, how often the hitter avoids making an out.

Slugging percentage measures the other half, power, by weighting hits by bases: total bases divided by at-bats. A single is one base and a home run four, so a .500 slugger is averaging half a base every time they bat.

OPS simply adds the two. It is crude — a point of on-base percentage is worth roughly twice a point of slugging in runs — but it tracks run creation closely enough to have become the standard quick measure. Around .700 is league average, .800 is very good, and .900 and above is star level.

🧮 Formula

AVG
hits ÷ at-bats
OBP
(H + BB + HBP) ÷ (AB + BB + HBP + SF)
SLG
total bases ÷ at-bats
OPS
OBP + SLG

✏️ Worked examples

A .300 hitter with 25 home runs

You enter
At-bats500
Hits150
Doubles30
Triples3
Home runs25
Walks60
Hit by pitch5
Sacrifice flies4
You get
Batting average.300 — excellent
On-base percentage.378
Slugging percentage.522
OPS.900 — very good
Isolated power.222 — slugging minus average, the extra-base part
Plate appearances569 · 500 at-bats, 60 walks

.300 — excellent and .900 — very good.

High average, little power

You enter
At-bats550
Hits176
Doubles22
Triples2
Home runs4
Walks35
Hit by pitch2
Sacrifice flies5
You get
Batting average.320 — excellent
On-base percentage.360
Slugging percentage.389
OPS.749 — about average
Isolated power.069 — slugging minus average, the extra-base part
Plate appearances592 · 550 at-bats, 35 walks

.320 — excellent, but .389.

Low average, heavy power

You enter
At-bats480
Hits110
Doubles24
Triples1
Home runs38
Walks85
Hit by pitch8
Sacrifice flies3
You get
Batting average.229 — below average
On-base percentage.352
Slugging percentage.521
OPS.873 — very good
Isolated power.292 — slugging minus average, the extra-base part
Plate appearances576 · 480 at-bats, 85 walks

.229 — below average, yet .873 — very good.

🧭 How to use this calculator

What you enter

  • At-bats
  • Hits
  • Doubles
  • Triples
  • Home runs
  • Walks
  • Hit by pitch
  • Sacrifice flies

What you get

  • Batting average
  • On-base percentage
  • Slugging percentage
  • OPS
  • Isolated power
  • Plate appearances

❓ Frequently asked questions

How is batting average calculated?

Hits divided by at-bats. Walks, hit by pitch and sacrifices are not at-bats, so they do not appear in it at all.

What is OPS in baseball?

On-base percentage plus slugging percentage. It is the standard quick measure of a hitter: .700 is about average, .800 very good and .900 star level.

How do you calculate on-base percentage?

(Hits + walks + hit by pitch) ÷ (at-bats + walks + hit by pitch + sacrifice flies). Sacrifice bunts are excluded; sacrifice flies are not.

What is slugging percentage?

Total bases divided by at-bats, where a single counts one, a double two, a triple three and a home run four.

What is isolated power?

Slugging minus batting average — the extra bases per at-bat beyond simply reaching first. It isolates power from contact.

Is a .300 average still good?

Yes. League averages have hovered in the .240s to .250s in recent years, so .300 remains a clear marker of an excellent contact hitter.