Batting Average Calculator
3 hits in 10 at-bats gives a .300 batting average. This batting average calculator divides hits by at-bats to get AVG, shown in the traditional three-decimal format used on baseball and softball scoreboards. It works for any level of play, from Little League and travel ball through college and the pros. Enter hits and official at-bats and the calculator returns the AVG in the familiar .XXX notation, the raw decimal value, and the number of outs made along the way. Coaches use it to check a lineup card between games, players track it to see how a hot or cold stretch moved the number, and fans use it to settle an argument about who is hitting better this month. Batting average only needs two inputs, but getting those two numbers right matters more than any part of the math. At-bats exclude walks, hit-by-pitches, sacrifice bunts, sacrifice flies, and catcher's interference, so mixing up at-bats with total plate appearances is the single most common way this stat gets miscalculated by hand.
Quick answer
Batting average is hits divided by at-bats, rounded to three decimal places.
What this tells you
- •Batting average is hits divided by at-bats, rounded to three decimal places.
- •The result drops the leading zero, so .300 means a hit in 30% of official at-bats.
- •Walks, hit-by-pitches, and sacrifice flies do not count as at-bats and do not change batting average.
- •A batter who reaches base on an error is charged with an at-bat and no hit, which lowers the average.
- •Batting average treats every hit the same, so a bunt single counts exactly as much as a home run.
- •Small samples swing fast. Going 2-for-4 in one game can move a season average more than it would after 400 at-bats.
How to Use
- 1Enter the total hits for the player or season you are checking.
- 2Enter the total official at-bats, not total plate appearances.
- 3Double check that walks, hit-by-pitches, and sacrifices were left out of the at-bats total, since including them will skew the result low.
- 4Calculate to see AVG in the traditional .XXX format along with the decimal value and outs.
- 5Repeat with updated totals after each game to track how the average moves over a season.
How It Works
Formula
AVG = Hits / At-Bats
Example: 3 hits / 10 at-bats = .300Divide total hits by total at-bats to get a decimal between 0 and 1, then round to three places. Baseball and softball scoreboards write that decimal without the leading zero, so .300 is read as "three hundred" and means a hit in 3 out of every 10 official at-bats. The calculator also reports outs, which is simply at-bats minus hits, since every at-bat that does not end in a hit counts as an out for this stat, even if the ball was hit hard or the batter reached on an error. A perfect record of a hit in every at-bat is written as 1.000, the one case where the leading digit is kept instead of dropped.
Calculation note: values are processed in the order shown above, using the current input units.
Worked Examples
A solid everyday hitter
3 / 10 = 0.300, which reads as a .300 batting average, a strong mark at most levels.
A rounded repeating decimal
1 / 3 = 0.3333..., which rounds to three decimal places as .333.
A hitless game
0 / 4 = 0.000. A batting average always shows three digits, even at zero.
A batting-title caliber season
190 / 550 = 0.34545..., which rounds to .345. That kind of full-season line, with 360 outs recorded along the way, is typically near the top of a league leaderboard.
A slow start in April
8 / 45 = 0.17777..., which rounds to .178. A cold two-week stretch like this can look alarming, but 45 at-bats is a small sample compared to a full season of 500 or more.
A perfect single at-bat
1 / 1 = 1.000, the only case where the leading digit is kept instead of dropped. A pinch hitter who singles in their only at-bat of the game finishes that game with a 1.000 average.
Common mistakes
- Using total plate appearances instead of official at-bats, which excludes walks, hit-by-pitches, sacrifices, and catcher's interference
- Forgetting that batting average always rounds to three decimal places, so 1/3 displays as .333, not .3333
- Confusing batting average with on-base percentage, which adds walks and hit-by-pitches to both the numerator and denominator
- Treating a small sample, like 3-for-8 over two games, as a reliable read on a hitter instead of an early snapshot that will move a lot over the next few weeks
- Adding up hits from several games without adding the matching at-bats from those same games, which produces a ratio that does not represent any real stretch of play
- Assuming the higher batting average always belongs to the better hitter, when power numbers like slugging percentage and on-base percentage can tell a different story
Embed this calculator on your site
Drop this single line where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use with attribution.
<script src="https://calctide.com/embed.js" data-tool="batting-average-calculator" async></script>Preview the embed at /embed/batting-average-calculator/.