Sports

Batting Average Calculator

Enter hits and at-bats for a batting average, and add walks, hit-by-pitch, and total bases for on-base percentage and slugging.

Calculation inputs

Leave the optional fields blank if you only want batting average.

Results

No result yet

Complete the fields and select Calculate to show results here.

About this calculator

A batting average calculator turns hits and at-bats into the standard batting average used in baseball and softball, and can extend that into on-base percentage and slugging percentage when additional stats are entered. Players, coaches, and fans use it to track and compare hitting performance.

How the calculation works

  • Batting average = hits ÷ at-bats
  • On-base percentage = (hits + walks + hit by pitch) ÷ (at-bats + walks + hit by pitch + sacrifice flies)
  • Slugging = total bases ÷ at-bats
  • OPS = on-base percentage + slugging

Notes and assumptions

Total bases count 1 for a single, 2 for a double, 3 for a triple, and 4 for a home run.

Averages are written in the standard baseball format with a leading decimal point, such as .275.

How it works in plain English

Batting average measures how often a batter reaches base safely with a hit, out of the times they officially batted. At-bats deliberately exclude certain plate appearances, such as walks, hit-by-pitches, and sacrifice bunts, because those outcomes aren't considered a fair test of hitting ability in the traditional average.

On-base percentage widens the lens by counting walks and hit-by-pitches alongside hits, and by using total plate appearances that matter for reaching base (excluding only sacrifice bunts) rather than at-bats alone, giving a fuller picture of how often a player avoids making an out.

Slugging percentage goes a different direction, measuring power rather than frequency: it divides total bases, where a single counts as one, a double as two, a triple as three, and a home run as four, by at-bats. A player who hits fewer singles but more home runs can have a lower average yet a higher slugging percentage, which is why the two stats are often read together rather than in isolation.

The formula

  • Batting average = hits / at-bats
  • On-base percentage = (hits + walks + HBP) / (at-bats + walks + HBP + sac flies)
  • Slugging percentage = total bases / at-bats

Worked example

Suppose a player has 48 hits in 170 at-bats. Batting average is 48 / 170 = 0.282, typically written as .282. If that player also drew 20 walks, was hit by a pitch twice, and had 3 sacrifice flies, on-base percentage is (48 + 20 + 2) / (170 + 20 + 2 + 3) = 70 / 195 = 0.359, or .359.

If total bases from those 48 hits add up to 74 (a mix of singles, doubles, and a few home runs), slugging percentage is 74 / 170 = 0.435, or .435, showing more power than the batting average alone suggests.

How batting averages are commonly read

Batting averageCommon read
Above .320Excellent
.280-.320Very good
.260-.279Solid
.230-.259Below average
Below .230Struggling

Reflects widely used, informal benchmarks in baseball and softball commentary rather than an official grading scale.

Frequently asked questions

Why don't walks count toward batting average?

Batting average is designed to measure how often a batter gets a hit specifically, and a walk means the batter never actually put the ball in play, so it's excluded from both the hits and at-bats used in the calculation.

What's a good batting average?

In most adult and professional leagues, anything above .300 is generally considered strong, .250 to .299 is respectable, and averages below .230 are typically viewed as weak, though what counts as good varies by league level, age group, and era.

Why do batting average and slugging percentage use the same denominator?

Both divide by at-bats, but the numerators differ: batting average counts hits, while slugging percentage counts total bases from those hits. That's why a batter with mostly extra-base hits can have a noticeably higher slugging percentage than batting average.

How is on-base percentage different from batting average?

On-base percentage adds walks and hit-by-pitches to the numerator and uses a wider denominator that includes those events plus sacrifice flies, so it credits any way of reaching base safely, not just hits, giving a broader measure of avoiding outs.

Can batting average be over 1.000?

No. Since it's hits divided by at-bats, and a batter can't record more hits than at-bats in a given stretch, batting average is mathematically capped at 1.000, which would mean a hit in every single at-bat.

Related tools