SportCalc.

Baseball Stats Calculator β€” AVG, SLG and ERA

Work out the three headline baseball numbers β€” batting average, slugging percentage and earned run average β€” and see how they compare with league norms.

Batting average (AVG)

How often a hitter reaches base via a hit β€” hits divided by at-bats.

Slugging percentage (SLG)

Power output β€” total bases per at-bat, so a home run counts four times a single.

Earned run average (ERA)

Pitching β€” earned runs allowed per nine innings. Set innings/game to 7 for softball.

How to use the baseball stats calculator

  1. Pick the stat you want: average, slugging or ERA.
  2. Enter that section's numbers β€” hits and at-bats, the breakdown of hits, or earned runs and innings.
  3. Each section calculates independently, so you can do all three for the same player.

Why these three numbers, and what each one hides

Batting average answers one narrow question: how often does a hitter get a hit per at-bat? It ignores walks entirely and treats a bunt single and a grand slam as equal events.

Slugging fixes the second problem by weighting hits by total bases, but not the first. ERA does the equivalent job for pitchers, isolating runs the pitcher is responsible for from those handed over by fielding errors. Read together they describe contact, power and run prevention; read alone, each one flatters or punishes the wrong players.

Softball uses the same formulas with one change

Batting average and slugging percentage are calculated identically in softball. The only adjustment is ERA, where a regulation game is seven innings rather than nine, so the multiplier changes. Set innings per game to 7 in the ERA section and the result is directly comparable with other softball pitchers.

What counts as good has moved over time

Benchmarks in baseball are not fixed. League-average batting average sat above .270 in the late 1990s and has drifted toward .245 in recent seasons as strikeout rates climbed, while league ERA has moved with it.

So judge a number against its era and league rather than an absolute. The table below gives modern reference points; a .260 hitter today is closer to average than the same figure would have been thirty years ago.

Modern benchmarks for hitters and pitchers

LevelAVGSLGOPSERA
Elite.300+.550+.900+under 3.00
Very good.280-.299.480-.549.800-.8993.00-3.50
Average.245-.279.400-.479.700-.7993.90-4.40
Below average.220-.244.350-.399.650-.6994.40-5.00
Poorunder .220under .350under .650over 5.00

Approximate reference points for recent Major League seasons. OPS is on-base percentage plus slugging. Softball and amateur leagues run on different scales, so compare within your own competition.

Frequently asked questions

How do you calculate batting average?

Divide hits by at-bats. 150 hits in 500 at-bats is a .300 average β€” read aloud as 'three hundred'.

How is slugging percentage different from batting average?

Average treats every hit the same. Slugging divides total bases by at-bats, so a home run counts four times a single, which is why it measures power rather than contact.

How is ERA calculated?

Earned runs multiplied by innings per game, divided by innings pitched. Use 9 innings for baseball and 7 for softball β€” the tool lets you set this.

What is OPS and why do analysts prefer it?

OPS is on-base percentage plus slugging. It combines getting on base with hitting for power in one number, which tracks run-scoring far better than average alone.

What is a good batting average?

By modern standards .300 marks an excellent hitter, .250 is around average, and below .200 β€” the Mendoza line β€” is poor for a regular starter.

What is a good ERA?

Below 3.00 is excellent for a starter, about 4.00 is roughly league average, and above 5.00 is poor for someone in a regular rotation.

Why do walks not count in batting average?

A walk is neither a hit nor an official at-bat, so it falls outside the formula entirely. On-base percentage exists precisely to capture walks and give the fuller picture of reaching base.

Related tools