The batting average is baseball’s oldest hitting statistic: hits divided by official at-bats, printed with three decimals, so a .300 hitter gets a hit in 30 % of his at-bats. On its own it misses two things that win games: getting on base without a hit, and hitting for power.
That is why this calculator also returns the on-base percentage (OBP), which credits walks and hit-by-pitches, the slugging percentage (SLG), which weighs each hit by the bases it earns, their sum OPS, and isolated power (ISO), the extra-base pop left once singles are removed. It works as an on-base percentage calculator, a slugging percentage calculator and an OPS calculator in one, using the definitions of Major League Baseball’s Official Rules.
Enter a season line from a baseball card, a box score, your Little League scorebook or a softball league: the formulas are the same at every level.
How to use this calculator
- Enter at-bats and hits.
- Break the hits down into doubles, triples and home runs; the calculator derives the singles.
- Enter walks (intentional ones included), hit-by-pitches and sacrifice flies for the on-base percentage.
- Read AVG, OBP, SLG, OPS and ISO in the familiar .000 format, plus total bases and the step-by-step calculation.
Leave a field at 0 if your scorebook does not track it; only OBP depends on walks, HBP and sacrifice flies.
The formula
With hits, at-bats, walks, hit-by-pitches and sacrifice flies:
Total bases count a single as 1, a double as 2, a triple as 3 and a home run as 4:
Sacrifice bunts and times awarded first base on interference or obstruction are left out of both the numerator and the denominator of OBP.
Worked example
Ted Williams’ 1941 season, the last .400 year in the majors: 456 at-bats, 185 hits (33 doubles, 3 triples, 37 home runs, so 112 singles), 147 walks and 3 hit-by-pitches. Sacrifice flies were not recorded then, so SF = 0.
- AVG .406
- OBP .553
- TB , so SLG .735
- OPS 1.287, ISO .329
His .553 on-base percentage stood as the single-season record for 61 years.
On-base percentage, slugging and OPS: what each one adds
On-base percentage answers “how often does this hitter avoid making an out?”. A walk is not a hit, but it puts a runner on base just the same, so OBP counts it. Sacrifice flies are added to the denominator because the batter made an out, even though it was a productive one.
Slugging percentage answers “how much damage per at-bat?”. A home run counts four times as much as a single. Despite its name, it is not a percentage: it can exceed 1.000 (the record is Barry Bonds’ .863 in 2001, and a hitter who homers in his only at-bat slugs 4.000).
OPS simply adds the two. It is crude, because a point of OBP is worth more runs than a point of SLG, but it tracks run scoring well and is easy to compute.
| Level | AVG | OBP | SLG | OPS |
|---|---|---|---|---|
| Excellent | .300+ | .390+ | .550+ | .900+ |
| Above average | .270 | .340 | .450 | .800 |
| Recent MLB average | about .245 | about .315 | about .400 | about .715 |
| Poor | below .220 | below .290 | below .340 | below .630 |
Frequently asked questions
How do you calculate a batting average?
Divide hits by official at-bats and round to three decimals. 165 hits in 550 at-bats is 165 / 550 = .300. Walks, hit-by-pitches and sacrifices are not at-bats.
How is on-base percentage calculated?
Add hits, walks and hit-by-pitches, then divide by at-bats plus walks, hit-by-pitches and sacrifice flies. Reaching on an error or a fielder’s choice does not raise OBP.
How do you calculate slugging percentage and OPS?
Slugging is total bases divided by at-bats, with singles worth 1, doubles 2, triples 3 and home runs 4. OPS is on-base percentage plus slugging percentage.
What is a good OPS in baseball?
Around .800 is a solid regular, .900 is star level and 1.000 is elite. The league average in recent MLB seasons has been about .710 to .735.
Why is a .300 batting average considered so good?
Because pitching and defence win most battles: the MLB average has hovered around .240 to .250 in recent seasons, so a .300 hitter collects roughly one extra hit every 20 at-bats compared with an average batter.
How many plate appearances are needed to win a batting title?
Official Baseball Rule 9.22 requires 3.1 plate appearances per scheduled team game in the majors, which is 502 over a 162-game season.
Sources
- MLB, Official Baseball Rules 2025, rules 9.21 (percentage records) and 9.22 (minimum standards)
- MLB glossary, On-base percentage (OBP)
- MLB glossary, Slugging percentage (SLG)
- MLB glossary, On-base plus slugging (OPS)
- MLB glossary, Isolated power (ISO)
Last updated: