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.
📘 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
✏️ Worked examples
A .300 hitter with 25 home runs
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 appearances | 569 · 500 at-bats, 60 walks |
.300 — excellent and .900 — very good.
High average, little power
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 appearances | 592 · 550 at-bats, 35 walks |
.320 — excellent, but .389.
Low average, heavy power
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 appearances | 576 · 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.