What this calculator does
Get a hitter's OPS, the one number that sums up how often they reach base and how much power they hit with. Batting average only asks whether a hitter got a hit. Two more rates fill in what it misses. On-base percentage (OBP) counts every way of reaching base safely, including walks and being hit by a pitch. Slugging percentage (SLG) weights each hit by the bases it was worth, so a home run counts four times as much as a single.
OPS, on-base plus slugging, adds the two together. It is a quick single number that rewards both getting on base and hitting for power. Enter a stat line and this calculator returns all three, plus batting average, total bases, isolated power and the familiar AVG/OBP/SLG slash line.
Where it's used
Why this math matters outside the classroom:
- On-base percentage. A batter with 150 hits, 60 walks, 5 hit-by-pitches, 500 at-bats and 5 sacrifice flies has an OBP of 215 ÷ 570, about .377.
- Slugging percentage. A hitter with 250 total bases in 500 at-bats has a slugging percentage of 250 ÷ 500, which is .500.
- Adding the two. OPS adds on-base and slugging percentages, so .377 plus .500 gives an OPS of .877.
- Comparing hitters. Fans and analysts rank hitters by OPS because it rewards both getting on base and hitting for power.
- Setting a lineup. High school coaches work out OPS from the scorebook when deciding on a batting order.
Grade level and standards: Grade 6; Common Core State Standards for Mathematics 6.EE.A.2.c, 6.RP.A.2. © Copyright 2010. National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.
How to use it
- Enter official at-bats.
- Enter singles, doubles, triples and home runs separately; the calculator adds them for total hits and weights them for total bases.
- Enter walks, hit-by-pitches and sacrifice flies, which affect on-base percentage only.
- Read OPS as the headline result, with OBP, SLG and the slash line below and the full working underneath.
What the inputs mean
- Singles (1B)
- Hits that reached first base only. If you only know total hits, subtract doubles, triples and home runs to get singles.
- Walks (BB)
- All walks, including intentional ones.
- Sacrifice flies (SF)
- Fly-ball outs that score a runner. They are not at-bats, but they do count in the on-base denominator. Sacrifice bunts are left out of OBP entirely.
Formula and method
H = 1B + 2B + 3B + HR OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF) TB = 1B + 2 × 2B + 3 × 3B + 4 × HR SLG = TB ÷ AB OPS = OBP + SLG
In the formulas, H is hits, 1B is singles, 2B is doubles, 3B is triples and HR is home runs. AB is at-bats, BB is walks ("bases on balls"), HBP is hit-by-pitch, SF is sacrifice flies and TB is total bases.
On-base percentage counts the times a batter reached base by a hit, a walk or a hit-by-pitch. It divides that by the plate appearances that count for it. Reaching on an error or fielder's choice does not count as getting on base.
Slugging divides total bases by at-bats, so it can be higher than 1. OPS adds two rates with different denominators (the bottom numbers of the fractions). That is a known quirk. Still, the sum tracks run scoring well, which is why it is so widely used.
Worked example
A hitter has 500 at-bats with 100 singles, 30 doubles, 5 triples, 25 home runs, 60 walks, 5 hit-by-pitches and 5 sacrifice flies.
- Total hits: 100 + 30 + 5 + 25 = 160.
- OBP: (160 + 60 + 5) ÷ (500 + 60 + 5 + 5) = 225 ÷ 570 = 0.394737.
- Total bases: 100 + 2 × 30 + 3 × 5 + 4 × 25 = 275.
- SLG: 275 ÷ 500 = 0.55.
- OPS: 0.394737 + 0.55 = 0.944737.
Result: OPS is .945, with a slash line of .320/.395/.550 and 275 total bases.
Understanding the result
As a rough guide at the professional level, an OPS around .700 to .750 is ordinary, .800 is good, .900 is excellent and anything over 1.000 is exceptional.
Isolated power (SLG minus AVG) shows how much of the slugging comes from extra-base hits rather than singles. A big gap between AVG and OBP signals a patient hitter who draws walks.
Assumptions and limitations
- All counts are whole numbers and total hits cannot exceed at-bats.
- Displayed rates are rounded to three decimals; OPS is added from the unrounded OBP and SLG.
- OPS weights on-base and slugging equally, although getting on base is generally considered somewhat more valuable per point. Park- and league-adjusted versions are not computed here.
- Reaching on errors, catcher's interference and fielder's choices are not part of these formulas.
Frequently asked questions
Why can slugging percentage be higher than 1?
Slugging is total bases per at-bat, and one at-bat can be worth up to four bases. A hitter who homers in every at-bat would slug 4.000. Despite the name, it is not a true percentage.
Why do sacrifice flies lower on-base percentage?
A sacrifice fly is an out that still counts as a chance to reach base, so it is added to the denominator but not the numerator. Sacrifice bunts are treated as deliberate team plays and are left out entirely.
Is OPS better than batting average?
For judging overall hitting, generally yes. It credits walks and extra-base power, which batting average ignores, and it lines up more closely with how many runs a team scores.
What is a slash line?
A shorthand that lists batting average, on-base percentage and slugging percentage in that order, separated by slashes, such as .320/.395/.550.
How this calculator is checked
Method: Standard scorekeeping definitions of on-base percentage, total bases, slugging percentage and OPS. The calculation is covered by automated tests with known reference values and edge cases. Last updated 2026-10-18. Found a problem? Tell us.
Embed this calculator
Put this OPS Calculator on your own website or blog for free. Paste this code where you want it to appear: