Baseball

OPS Calculator

On-base percentage plus slugging percentage from one batting line, with batting average and total bases on the way.

Updated · Sources

All hits, extra-base hits included.

BaseballBatting

OPS

.876

OBP
.371
SLG
.505
AVG
.300
Working.371 + .505 = .876

AVG, OBP, SLG and OPS

FigureValue
Batting average (AVG)165 ÷ 550 = .300.300
On-base percentage (OBP)230 ÷ 620 = .371.371
Slugging percentage (SLG)278 total bases ÷ 550 = .505.505
OPSOBP + SLG, added before rounding.876

Total bases

HitCountBases eachBases
Singles105× 1105
Doubles32× 264
Triples3× 39
Home runs25× 4100
Total bases165278

How it works

OPS adds on-base percentage to slugging percentage. One number then covers how often a hitter gets on base and how much power they hit for.

On-base percentage counts hits, walks and hit-by-pitches over at-bats, walks, hit-by-pitches and sacrifice flies. Slugging counts total bases over at-bats. The two have different denominators, so OPS is a quick summary rather than a rate of anything.

The two parts are added before rounding, so OPS can differ by .001 from adding the rounded figures yourself.

The formula

Formula
OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)
SLG = (1B + 2 × 2B + 3 × 3B + 4 × HR) ÷ AB
OPS = OBP + SLG

Worked example

A season of 165 hits in 550 at-bats (32 doubles, 3 triples, 25 home runs), 60 walks, 5 hit-by-pitches and 5 sacrifice flies.

  1. On-base: (165 + 60 + 5) ÷ (550 + 60 + 5 + 5) = 230 ÷ 620 = .371.
  2. Total bases: 105 singles + 2 × 32 + 3 × 3 + 4 × 25 = 278, so slugging is 278 ÷ 550 = .505.
  3. OPS: .371 + .505 = .876.

Questions

What is the highest career OPS?

Babe Ruth’s 1.164, the highest in AL-NL history according to MLB. Ted Williams is second at 1.116 and Lou Gehrig third at 1.079.

Why add two numbers with different denominators?

OPS is a shortcut: one number from a normal stat line that, as MLB puts it, unites getting on base with hitting for average and power. The two parts are not on the same scale, so it is a summary rather than a rate of anything.

Can OPS be used for pitchers?

Yes. Worked out from the hitters a pitcher faced, it is called OPS against.

How many at-bats do you need to qualify for the batting title?

It is counted in plate appearances, not at-bats. Rule 9.22 sets the minimum at 3.1 plate appearances for every game on the team’s schedule: 502 in a 162-game season. A player short of that can still win if their average stays highest after the missing plate appearances are added as hitless at-bats. The same rule covers slugging and on-base percentage.

Add this calculator to your site

Team, league or blog? You can put this calculator on your own site for free. Copy the code below into your page’s HTML. The calculator updates itself whenever we improve it.

The short script lets the frame grow to fit the calculator on your page. Please keep the credit line underneath it.

Sources

  1. Major League Baseball. Official Baseball Rules, 2026 edition. Rule 9.02(c)(1) comment (each out is one third of an inning pitched), rule 9.21 (how to compute batting average, slugging percentage, earned run average and on-base percentage, with a worked ERA example) and rule 9.22 (minimum plate appearances and innings to qualify for a title).
  2. MLB.com glossary: On-base Plus Slugging (OPS). OPS adds on-base percentage and slugging percentage; Babe Ruth’s career 1.164 is the highest in AL-NL history.
  3. MLB.com glossary: On-base Percentage (OBP). Hits, walks and hit-by-pitches count; errors, fielder’s choices and dropped third strikes do not; sacrifice bunts are left out. Official statistic since 1984.
  4. MLB.com glossary: Slugging Percentage (SLG). Formula (1B + 2B × 2 + 3B × 3 + HR × 4) ÷ AB; walks and hit-by-pitches are not included.