Skip to content

Batting Average Calculator (AVG, OBP, SLG, OPS)

Batting average, on-base percentage, slugging, OPS and isolated power from a hitter’s counting stats.

Your details

Plate appearances minus walks, hit-by-pitches, sacrifices and interference.

Include intentional walks.

Results update as you type

Batting average (AVG)

.300

On-base percentage (OBP)
.371
Slugging percentage (SLG)
.511
On-base plus slugging (OPS)
.882
Isolated power (ISO)
.211
Total bases (TB)
281
Singles (1B)
102
Plate appearances counted
620

To qualify for an MLB batting title a hitter needs 3.1 plate appearances per team game (502 over 162 games).

Step-by-step solution
  1. AVG = 165 / 550 = .300
  2. OBP = (165 + 60 + 5) / (550 + 60 + 5 + 5) = .371
  3. TB = 102 + 2 × 35 + 3 × 3 + 4 × 25 = 281
  4. SLG = 281 / 550 = .511
  5. OPS = .371 + .511 ≈ .882

The batting average is baseball’s oldest hitting statistic: hits divided by official at-bats, printed with three decimals, so a .300 hitter gets a hit in 30 % of his at-bats. On its own it misses two things that win games: getting on base without a hit, and hitting for power.

That is why this calculator also returns the on-base percentage (OBP), which credits walks and hit-by-pitches, the slugging percentage (SLG), which weighs each hit by the bases it earns, their sum OPS, and isolated power (ISO), the extra-base pop left once singles are removed. It works as an on-base percentage calculator, a slugging percentage calculator and an OPS calculator in one, using the definitions of Major League Baseball’s Official Rules.

Enter a season line from a baseball card, a box score, your Little League scorebook or a softball league: the formulas are the same at every level.

How to use this calculator

  1. Enter at-bats and hits.
  2. Break the hits down into doubles, triples and home runs; the calculator derives the singles.
  3. Enter walks (intentional ones included), hit-by-pitches and sacrifice flies for the on-base percentage.
  4. Read AVG, OBP, SLG, OPS and ISO in the familiar .000 format, plus total bases and the step-by-step calculation.

Leave a field at 0 if your scorebook does not track it; only OBP depends on walks, HBP and sacrifice flies.

The formula

With HH hits, ABAB at-bats, BBBB walks, HBPHBP hit-by-pitches and SFSF sacrifice flies:

AVG=HABOBP=H+BB+HBPAB+BB+HBP+SF\text{AVG} = \frac{H}{AB} \qquad \text{OBP} = \frac{H + BB + HBP}{AB + BB + HBP + SF}

Total bases count a single as 1, a double as 2, a triple as 3 and a home run as 4:

TB=1B+2×2B+3×3B+4×HRSLG=TBABTB = 1B + 2 \times 2B + 3 \times 3B + 4 \times HR \qquad \text{SLG} = \frac{TB}{AB}
OPS=OBP+SLGISO=SLG−AVG\text{OPS} = \text{OBP} + \text{SLG} \qquad \text{ISO} = \text{SLG} - \text{AVG}

Sacrifice bunts and times awarded first base on interference or obstruction are left out of both the numerator and the denominator of OBP.

Worked example

Ted Williams’ 1941 season, the last .400 year in the majors: 456 at-bats, 185 hits (33 doubles, 3 triples, 37 home runs, so 112 singles), 147 walks and 3 hit-by-pitches. Sacrifice flies were not recorded then, so SF = 0.

  • AVG =185/456== 185 / 456 = .406
  • OBP =(185+147+3)/(456+147+3)=335/606== (185 + 147 + 3) / (456 + 147 + 3) = 335 / 606 = .553
  • TB =112+2×33+3×3+4×37=335= 112 + 2 \times 33 + 3 \times 3 + 4 \times 37 = 335, so SLG =335/456== 335 / 456 = .735
  • OPS == 1.287, ISO == .329

His .553 on-base percentage stood as the single-season record for 61 years.

On-base percentage, slugging and OPS: what each one adds

On-base percentage answers “how often does this hitter avoid making an out?”. A walk is not a hit, but it puts a runner on base just the same, so OBP counts it. Sacrifice flies are added to the denominator because the batter made an out, even though it was a productive one.

Slugging percentage answers “how much damage per at-bat?”. A home run counts four times as much as a single. Despite its name, it is not a percentage: it can exceed 1.000 (the record is Barry Bonds’ .863 in 2001, and a hitter who homers in his only at-bat slugs 4.000).

OPS simply adds the two. It is crude, because a point of OBP is worth more runs than a point of SLG, but it tracks run scoring well and is easy to compute.

Level AVG OBP SLG OPS
Excellent .300+ .390+ .550+ .900+
Above average .270 .340 .450 .800
Recent MLB average about .245 about .315 about .400 about .715
Poor below .220 below .290 below .340 below .630

Frequently asked questions

How do you calculate a batting average?

Divide hits by official at-bats and round to three decimals. 165 hits in 550 at-bats is 165 / 550 = .300. Walks, hit-by-pitches and sacrifices are not at-bats.

How is on-base percentage calculated?

Add hits, walks and hit-by-pitches, then divide by at-bats plus walks, hit-by-pitches and sacrifice flies. Reaching on an error or a fielder’s choice does not raise OBP.

How do you calculate slugging percentage and OPS?

Slugging is total bases divided by at-bats, with singles worth 1, doubles 2, triples 3 and home runs 4. OPS is on-base percentage plus slugging percentage.

What is a good OPS in baseball?

Around .800 is a solid regular, .900 is star level and 1.000 is elite. The league average in recent MLB seasons has been about .710 to .735.

Why is a .300 batting average considered so good?

Because pitching and defence win most battles: the MLB average has hovered around .240 to .250 in recent seasons, so a .300 hitter collects roughly one extra hit every 20 at-bats compared with an average batter.

How many plate appearances are needed to win a batting title?

Official Baseball Rule 9.22 requires 3.1 plate appearances per scheduled team game in the majors, which is 502 over a 162-game season.

Sources

Last updated:

More Sports calculators

People also use