OPS Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter a hitter's line to get on-base percentage, slugging percentage and OPS.
Result
On-base plus slugging (OPS)
On-base percentage (OBP)
- Slugging percentage (SLG)
- Total bases
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.
Search Amazon for baseball scorebooks. Visit Amazon
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Singles: enter 0 or more.
- Doubles: enter 0 or more.
- Triples: enter 0 or more.
- Home runs: enter 0 or more.
- Walks (BB): enter 0 or more.
- Hit by pitch (HBP): enter 0 or more.
- At-bats (AB): enter 1 or more.
- Sacrifice flies (SF): enter 0 or more.
- Read the result: On-base plus slugging (OPS); the panel also shows On-base percentage (OBP), Slugging percentage (SLG) and Total bases.
How this calculator works
OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF); SLG = total bases ÷ AB, with total bases = 1B + 2 × 2B + 3 × 3B + 4 × HR (MLB Official Baseball Rules, rule 9.21). OPS = OBP + SLG, each computed before rounding.
The formula
| Symbol | Meaning |
|---|---|
| Singles | |
| Doubles | |
| Triples | |
| Home runs | |
| Walks (BB) | |
| Hit by pitch (HBP) | |
| At-bats (AB) | |
| Sacrifice flies (SF) | |
| On-base plus slugging (OPS) | |
round(x, d) | x rounded to d decimal places, or to a whole number without d. |
Worked example
| Singles | 100 |
|---|---|
| Doubles | 30 |
| Triples | 2 |
| Home runs | 25 |
| Walks (BB) | 60 |
| Hit by pitch (HBP) | 5 |
| At-bats (AB) | 550 |
| Sacrifice flies (SF) | 5 |
| On-base percentage (OBP) | 0.358 |
|---|---|
| Slugging percentage (SLG) | 0.484 |
| Total bases | 266 |
On-base plus slugging (OPS) 0.842
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is a good OPS?
In MLB, .800 or more is generally seen as very good and .900 or more as excellent.
What OPS does the example line give?
100 singles, 30 doubles, 2 triples, 25 home runs, 60 walks and 5 HBP in 550 AB with 5 sacrifice flies give .842 (.358 OBP + .484 SLG).