How to Calculate Batting Average

Batting average is one of the oldest and most recognizable statistics in baseball. It captures, in a single number, how often a player gets a hit when he steps up to the plate. The math behind it is simple — but understanding what the numbers actually mean takes a little more context.

The Formula

$$\text{Batting Average} = \frac{\text{Hits}}{\text{At Bats}}$$

Divide the number of hits by the number of official at-bats, and you have the batting average. The result is a decimal, rounded to three places. A player with 150 hits in 500 at-bats has a batting average of .300.

Notice that batting average is expressed as a decimal, not a percentage. You wouldn't say a player is "batting 30 percent" — you'd say he's "batting .300." That convention is universal in baseball.

What the Numbers Mean

Here's a rough scale to put batting averages in context:

  • .300 and above — excellent. A player hitting .300 is considered a strong hitter at any level.
  • .270–.299 — solid, above average.
  • .240–.269 — around league average.
  • Below .220 — struggling. Hitters in this range are often fighting for their roster spots.

The best hitters in baseball history compiled career averages between .340 and .366. A single-season average above .350 is exceptional — it happens only a handful of times per generation.

On the low end, a batting average below .200 is sometimes called the Mendoza Line, named after infielder Mario Mendoza, whose average famously hovered around that mark. Dropping below it is generally considered the threshold where a hitter's job is in jeopardy.

What Counts as an At-Bat?

Here's where it gets slightly more nuanced. Not every trip to the plate counts as an official at-bat. The following plate appearances are excluded from the at-bat count:

  • Walks — the pitcher issued four balls, so the outcome is mostly on him
  • Hit by pitch — the batter was struck by the ball
  • Sacrifice flies — the batter hit a fly ball that scored a runner
  • Sacrifice bunts — the batter intentionally bunted to advance a runner

The idea is to keep batting average focused on actual hitting. If a pitcher walks a batter, that's not the hitter's fault — or credit. Similarly, a batter who sacrifices himself to move a runner is doing his job, and it wouldn't be fair to penalize him for it.

So if a player comes to the plate 580 times in a season but draws 70 walks and has 10 sacrifice flies, his official at-bat total is 500, not 580. That's what goes in the denominator.

Worked Examples

Example 1

A player finishes the season with 162 hits in 540 at-bats. What is his batting average?

$$\text{BA} = \frac{162}{540} = .300$$

He's batting exactly .300 — a strong, clean season.

Example 2

A player goes 3-for-11 (3 hits in 11 at-bats) during a rough week. What is his batting average for that stretch?

$$\text{BA} = \frac{3}{11} \approx .273$$

Even a bad stretch can look respectable in small samples — which is why scouts look at much larger sample sizes before drawing conclusions.

Example 3

A player is batting .285 through 400 at-bats. How many hits does he have?

Rearrange the formula: Hits = BA × At-Bats

$$0.285 \times 400 = 114 \text{ hits}$$

Practice Problems

A shortstop has 138 hits in 520 at-bats. What is his batting average?

Show answer\(\frac{138}{520} = .265\)

A player has 600 plate appearances: 70 walks, 8 sacrifice flies, and 522 official at-bats. He gets 148 hits. What is his batting average?

Show answerOnly the 522 official at-bats go in the denominator — plate appearances that aren't at-bats are excluded. \(\frac{148}{522} = .284\)

A player is batting .310 with 155 hits. How many at-bats does he have?

Show answerRearrange: At-Bats = Hits ÷ BA, so \(\frac{155}{0.310} = 500\) at-bats.

Two players both have 140 hits. Player A has 500 at-bats; Player B has 560. Who has the higher batting average, and by how much?

Show answerPlayer A: \(\frac{140}{500} = .280\) — Player B: \(\frac{140}{560} = .250\) — Player A has the higher average by 30 points (.280 − .250 = .030).

Real data challenge: Head to baseball-reference.com, find any player's page, and pick a season from their batting table. You'll see columns labeled AB (at-bats) and H (hits). Grab those two numbers and calculate the batting average yourself, then check your answer against the BA column on the same row.

Show answerYour answer depends on the player and season you chose! Apply \(\text{BA} = \frac{\text{H}}{\text{AB}}\) and round to three decimal places. If it matches the BA column on baseball-reference, you've got it.