Baseball & softball

Batting average calculator

The short answer

Enter hits and at-bats for your batting average, see what the next game does to it, find the hits needed for a target and set it against the MLB average.

  • Link keeps your numbers
  • One-page printout
  • Free, no account

Your result

152 for 540 gives .281, 38 points over .244, the MLB average in 2026.
Batting average.281152 ÷ 540
As a percentage
28.1%
of at-bats that end in a hit
One hit every
3.55 at-bats
At-bats without a hit
388
Hits required over the next 60 at-bats
28
to end at .300 or better, a .467 pace
One more hit is worth
+.001
in the next at-bat
One more out costs
−.001
in the next at-bat

Compared with some famous seasons

  1. 1Ted Williams, 1941185 for 456.406
  2. 2Barry Bonds, 2004135 for 373.362
  3. 3Luis Arraez, 2023203 for 574.354
  4. 4Barry Bonds, 2001156 for 476.328
  5. 5Aaron Judge, 2022177 for 570.311
  6. 6Shohei Ohtani, 2024197 for 636.310
  7. 7You152 for 540.281
  8. 8MLB average, 2026all 30 teams.244

Season lines taken from MLB's Stats API, read 2026-11-24.

Effect of the next game on your average

Next gameNew averageChange
0 for 4.279−.002
1 for 4.281no change
2 for 4.283+.002
3 for 4.285+.003
4 for 4.287+.005
1 for 3.282no change
2 for 5.283+.001

Later in the year, a single game nudges the average only slightly, by a few points.

  • An at-bat doesn't include walks, hit-by-pitches, sacrifice bunts, sacrifice flies or catcher's interference. If you reach on an error or fielder's choice, that's an at-bat with no hit.
  • Three decimals on paper, whole numbers out loud: .281 is read "two eighty-one" and each "point" is .001.

Keep going with

The formula

AVG = hits ÷ at-bats

How often does a hitter get a hit when he officially bats? That’s batting average. The scale goes from .000 up to 1.000, quoted to three decimals, and MLB’s glossary calls it among the oldest and most widely used measures of a hitter’s success.

Most mistakes happen in the denominator. A plate appearance only counts as an at-bat if it ends in a hit, an out, an error or a fielder’s choice. Four kinds of plate appearance are not at-bats: walks, intentional ones included, plus hit-by-pitches, sacrifice bunts, sacrifice flies and catcher’s interference.

Take a player who goes 1 for 3 and draws a walk. That’s four plate appearances and three at-bats, so he hit .333 for the day.

The default season

Our example is a full season: 152 hits, 540 at-bats. The quotient is 0.28148, written .281, a hit every 3.55 at-bats. With MLB at .244 for 2026, this hitter sits 38 points above the league.

Chasing .300. Sixty at-bats remain, so he’ll end on 600. Reaching .300 takes 0.300 × 600 = 180 hits and he has 152, which means 28 hits in the final 60 at-bats, a .467 clip. A white-hot two weeks could manage it, but it’s a long shot. It also shows why averages barely budge late in a season: the weight of the at-bats already played is hard to shift.

Tomorrow’s game. The page’s table shows one game’s effect. From 152 for 540, an 0-for-4 night costs two points (.279) and a 4-for-4 night adds six (.287). At 10 for 40 in early April, the same pair of games gives .227 or .318.

Where your number sits

For the comparison bar, the benchmark is MLB’s latest full season, 2026: the 30 teams together had 39,849 hits in 163,329 at-bats, which is .244. Below that, a ranking brings in a handful of famous seasons, each recalculated from MLB’s hit and at-bat totals:

Season Hits At-bats AVG
Ted Williams, 1941 185 456 .406
Barry Bonds, 2004 135 373 .362
Luis Arraez, 2023 203 574 .354
Aaron Judge, 2022 177 570 .311
Shohei Ohtani, 2024 197 636 .310

Strikeouts have risen and league averages have fallen with them, so set a hitter against his own league and season before you compare him with the past.

Don’t trust small samples

This stat swings a lot. A true .270 hitter will run through 50-at-bat patches at .180 and others at .360 on luck alone, so the verdict adds a warning below 50 at-bats.

At-bats so far What one extra hit adds for a .270 hitter
10 about 65 points
50 about 14 points
200 about 4 points
540 about 1 point

Go 5 for 12 over a weekend and you’re at .417, which tells you next to nothing. After 540 at-bats you know a good deal.

What it misses

Every hit weighs the same and every walk is ignored, so two .280 hitters can be nothing alike.

  • Reaching base other ways. One hitter draws 100 walks, another 20, yet their averages match. On-base percentage counts those walks and hit-by-pitches.
  • Hitting for power. Single or homer, it’s one hit. Slugging percentage scores each hit by total bases.
  • The combination. OPS sums on-base and slugging, which makes it the fastest single number for overall hitting.

Look at 2004 in the table. The .362 average undersells that year, because 232 walks lifted the on-base percentage to .609.

From the pitcher’s side

The formula works for pitchers too, from the other side: batting average against is hits allowed divided by at-bats faced. It’s handy for splits, such as how a pitcher fares against lefties and righties, which ERA can’t break out.

Softball, youth ball and keeping score

Nothing changes in the formula at any level. What varies is the scoring, and that’s where local-league averages drift apart.

  • Be honest with errors. If an average fielder at your level would have handled it, it’s an error, not a hit, however hard the ball was struck.
  • If a batter is safe because the defence went after a different runner, he’s charged with an at-bat but no hit.
  • For a sacrifice fly, a runner must score after the catch. A fly that merely sends a runner from second to third is a plain out, and it counts as an at-bat.

Keep plate appearances and at-bats in different scorebook columns. Nine times out of ten, a wrong average means somebody counted walks as at-bats.

Questions people ask

How is batting average worked out?
Hits over at-bats, quoted to three decimals. Take 152 hits from 540 at-bats: 152 ÷ 540 comes to .281.
Do walks hurt my batting average?
No. Since a walk isn't an at-bat, neither number changes. Hit-by-pitches, sacrifice bunts, sacrifice flies and catcher's interference get the same treatment. Where walks do show up is on-base percentage.
What's a decent batting average?
In 2026 MLB hitters batted .244 as a group, and MLB's glossary calls roughly .250 typical for a league. Hit .280 as a regular and you're comfortably ahead, while .300 has long been the benchmark for an excellent hitter. Youth and amateur leagues average far higher, so use your own league as the yardstick.
If I reach on an error, does it count as a hit?
No. You're charged an at-bat without a hit, which lowers your average exactly as an out would. Scorers treat a fielder's choice identically.
How many hits to reach .300 by season's end?
Three hits per ten at-bats, on average. With 152 hits in 540 at-bats and 60 still to play, .300 over 600 at-bats takes 180 hits, so 28 more from those 60. Type in a target and the at-bats left, and the calculator handles the sum.
When did anyone last bat .400?
That was Ted Williams in 1941: .406, from 185 hits in 456 at-bats. In the decades since, nobody in either league has closed a full season at .400.
Why is batting average written without a leading zero?
Pure tradition. We write averages to three places (.281) and say them as a whole number: two eighty-one. One point of average is .001.

Where the numbers come from

  1. MLB.com glossary: Batting Average (AVG)
  2. MLB.com glossary: At-bat (AB)
  3. MLB Stats API: team and player season statistics (league totals 2026 and the benchmark seasons)
Put this calculator on your site

Free for clubs, coaches, schools and blogs. Paste the code and it updates itself.