Skip to content
Calcapedia
Sports

OPS Calculator

Calculate on-base percentage, slugging percentage and OPS from a hitter's full stat line.

Level: Grade 6

  • Common Core standard 6.EE.A.2.cEvaluate expressions at specific values of their variables. Include expressions that arise from formulas used in real-world problems. Perform arithmetic operations, including those involving whole-number exponents, in the conventional order when there are no parentheses to specify a particular order (Order of Operations).
  • Common Core standard 6.RP.A.2Understand the concept of a unit rate a/b associated with a ratio a:b with b ≠ 0, and use rate language in the context of a ratio relationship.
Printable worksheet

OPS Calculator

Inputs

Include intentional walks.

Sacrifice bunts are not counted in on-base percentage.

Result

On-base plus slugging (OPS)

0.945

A .395 OBP and .550 SLG give an OPS of .945.

On-base percentage (OBP)
0.395
Slugging percentage (SLG)
0.55
Batting average
0.32
Slash line (AVG/OBP/SLG)
.320/.395/.550
Total bases
275
Isolated power (SLG − AVG)
0.23

See the step-by-step solution ↓

Step-by-step solution

  1. Add the four kinds of hit to get total hits, which both rates below need

    H=100+30+5+25=160
  2. Find on-base percentage: divide the times on base by the plate appearances that count, to see how often the hitter avoids making an out

    OBP=160+60+5500+60+5+5=225570=0.394737
  3. Count total bases, so bigger hits earn more: one for a single, two for a double, three for a triple, four for a home run

    TB=100+2×30+3×5+4×25=275
  4. Find slugging percentage: divide total bases by at-bats to measure power per at-bat

    SLG=275500=0.55
  5. Add on-base percentage and slugging percentage to get OPS, one number for getting on base and hitting for power

    OPS=0.394737+0.55=0.944737
  6. Write the three rates box-score style, to three decimals, as fans usually see them

    .395 OBP + .550 SLG → .945 OPS

Test yourself

20 quick questions built from this calculator's formula: work out results, predict what happens when an input changes, and work backward from an answer. Every answer comes with the working.

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

  1. Enter official at-bats.
  2. Enter singles, doubles, triples and home runs separately; the calculator adds them for total hits and weights them for total bases.
  3. Enter walks, hit-by-pitches and sacrifice flies, which affect on-base percentage only.
  4. 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.

  1. Total hits: 100 + 30 + 5 + 25 = 160.
  2. OBP: (160 + 60 + 5) ÷ (500 + 60 + 5 + 5) = 225 ÷ 570 = 0.394737.
  3. Total bases: 100 + 2 × 30 + 3 × 5 + 4 × 25 = 275.
  4. SLG: 275 ÷ 500 = 0.55.
  5. 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: