Batting Average, OBP, SLG & OPS Calculator
Build a hitter’s full slash line — batting average, on-base percentage, slugging and OPS — from hits, extra-base hits and plate discipline stats.
How it works
AVG = H ÷ AB · SLG = total bases ÷ AB · OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF) · OPS = OBP + SLG
A single average hides how a hitter reaches base and how far. Slugging weights each hit by bases so power shows up, on-base percentage credits walks and hit-by-pitches, and OPS sums the two into one quick value of overall offence. It is standard to write these to three decimals without the leading zero, as “.312.”
Worked example
150 hits in 500 at-bats is a .300 average. With 30 doubles, 3 triples and 25 home runs, total bases = 92 singles + 60 + 9 + 100 = 261, so SLG = 261 ÷ 500 = .522; add a .372 OBP for a .894 OPS.
Sources: On-base plus slugging
Frequently asked questions
Why is OPS so popular?
It combines getting on base and hitting for power in one number that correlates strongly with runs scored, while staying simple to compute from a box score.
What is a total base?
One for a single, two for a double, three for a triple and four for a home run. Walks and hit-by-pitches earn none, which is why they help OBP but not SLG.
Can OPS exceed 1.000?
Yes. Elite power-and-patience seasons push OPS above 1.000; the all-time single-season records sit above 1.200.
Related calculators
This calculator is for educational purposes. Double-check important results before acting on them.