Baseball OPS Calculator

Enter hits, walks, hit-by-pitch, at-bats, sacrifice flies and total bases to get OPS, OBP and SLG.

How it is calculated

OPS is the sum of two rates. On-base percentage is OBP = (H + BB + HBP) / (AB + BB + HBP + SF) and slugging percentage is SLG = TB / AB, where H is hits, BB walks, HBP hit-by-pitch, AB at-bats, SF sacrifice flies and TB total bases (a single counts 1, a double 2, a triple 3, a home run 4). Then OPS = OBP + SLG, added before rounding and shown to 3 decimals. Hit-by-pitch and sacrifice flies are optional and count as 0 if left empty. At-bats must be above zero; hits, walks and total bases are required. The tool does not check that total bases is at least equal to hits, so keep that consistent yourself.

Worked example

A season of 160 hits, 70 walks, 5 hit-by-pitch, 560 at-bats, 4 sacrifice flies and 270 total bases. OBP: (160 + 70 + 5) / (560 + 70 + 5 + 4) = 235 / 639 = 0.368. SLG: 270 / 560 = 0.482. OPS: 0.36776 + 0.48214 = 0.850. The player reaches base about 37 times in every 100 such chances and gets just under half a base per at-bat.

Try this example →

Common mistakes

  • Using hits instead of total bases in the slugging field; total bases weights each hit by its length, so a double is 2 and a home run is 4.
  • Putting plate appearances in the at-bats field; walks, hit-by-pitch and sacrifice flies are not at-bats and are already added in the OBP denominator.
  • Leaving out walks or hit-by-pitch from the numerator while still counting them in the denominator, which lowers OBP.
  • Averaging a player's OBP and SLG instead of adding them; OPS is a sum, so values near .850 are normal and the result can exceed 1.000.
  • Entering totals from two different seasons or teams in separate fields; every input must come from the same set of games.

About this calculator

OPS (on-base plus slugging) is one of the most widely used sabermetric shortcuts for judging a hitter: it's simply OBP + SLG, where on-base percentage measures how often a batter reaches base (hits, walks, and hit-by-pitches divided by at-bats plus walks, hit-by-pitches and sacrifice flies) and slugging percentage measures raw power (total bases divided by at-bats). Combining the two into a single number captures both a hitter's patience/contact skill and their extra-base pop, which is why OPS correlates strongly with runs scored.

Analysts, fantasy baseball players, and broadcasters lean on OPS because it's far quicker to compute and compare than more advanced metrics like wOBA, while still outperforming batting average alone as a predictor of offensive value. A league-average OPS sits around .720-.750, with anything above .900 generally considered elite.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators