Baseball Batting Stats Calculator (AVG, OBP, SLG, OPS)
Batting average, on-base percentage, slugging, OPS, isolated power and total bases from a hitter's counting stats.
Results
What this tool does
Batting average only counts hits, so a hitter who walks a lot looks worse than he is; on-base percentage adds walks and hit-by-pitches and counts sacrifice flies against the hitter, while sacrifice bunts are left out of both. Slugging weighs each hit by the bases it earns, and OPS simply adds the two: it mixes fractions with different denominators, which purists dislike, but it tracks run scoring well, and around .800 is good while above .900 is star level. Isolated power, slugging minus average, measures extra-base pop alone. As a check, Barry Bonds's 2004 season gives the record .609 on-base and an OPS of 1.422.
Formula
AVG = H ÷ AB · OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF) · SLG = TB ÷ AB · OPS = OBP + SLG
Variables
| Symbol | Meaning | Unit |
|---|---|---|
ab | At-bats (AB) | — |
h | Hits (H) | — |
db | Doubles (2B) | — |
tp | Triples (3B) | — |
hr | Home runs (HR) | — |
bb | Walks (BB) | — |
hp | Hit by pitch (HBP) | — |
sf | Sacrifice flies (SF) | — |
OP | OPS (on-base plus slugging) | — |
AV | Batting average (AVG) | — |
OB | On-base percentage (OBP) | — |
SL | Slugging percentage (SLG) | — |
IS | Isolated power (ISO) | — |
TB | Total bases (TB) | — |
Worked example
- At-bats (AB)500
- Hits (H)150
- Doubles (2B)30
- Triples (3B)3
- Home runs (HR)25
- Walks (BB)60
- Hit by pitch (HBP)5
- Sacrifice flies (SF)5
- OPS (on-base plus slugging)0.899
- Batting average (AVG)0.300
- On-base percentage (OBP)0.377
- Slugging percentage (SLG)0.522
- Isolated power (ISO)0.222
- Total bases (TB)261
Limitations
- The calculation runs at full precision and only the display is rounded. If you copy an intermediate value and retype it, small differences can appear.