How to Calculate Batting Average (Baseball)
- Hits
- 100
- You entered
- At-bats
- 300
- You entered
This calculator works out a baseball or softball player’s batting average. You enter the number of hits and the number of at-bats, and you get the average expressed as a three-digit decimal (for example, .300). The batting average is simply hits divided by at-bats, rounded to three decimal places.
Formula
Batting average (AVG) = Hits (H) ÷ At-bats (AB)
Where:
- Hits (H) – the number of times the batter safely reaches base via a hit (single, double, triple, or home run).
- At-bats (AB) – the number of official plate appearances that are not walks, hit-by-pitch, sacrifices, or interference calls.
The result is conventionally written without a leading zero, so 0.300 is shown as .300. The average is always rounded to three decimal places.
Worked Example
Using the default values from the calculator: 100 hits in 300 at-bats.
- Write down the formula: AVG = H / AB
- Plug in the numbers: AVG = 100 / 300
- Divide: 100 ÷ 300 = 0.333333…
- Round to three decimal places: 0.333
The batting average is .333.
When to Use This Calculator
Use this whenever you need a player’s batting average from season totals, a single game, or any other stretch of games. It’s also handy for checking your own stats in a recreational league. The formula is the same for baseball and softball.
What the Result Means
A batting average of .300 is considered excellent at most levels. .250 is about average, and .200 is below average. The higher the number, the more often the player gets a hit per official at-bat. Remember that the average doesn’t include walks or sacrifices, so it only measures hitting ability, not overall offensive contribution.
Common Mistakes
- Including walks: Walks are not counted as at-bats, so they should not be in the denominator. If you include them, the average will be too low.
- Including sacrifice flies or bunts: These are also not at-bats. They should be excluded from the denominator.
- Including hit-by-pitch: Being hit by a pitch is not an at-bat either.
- Rounding too early: If you round the division to two decimals before the final step, you may get a slightly different result. Keep at least four decimals until the end.
- Using plate appearances instead of at-bats: Plate appearances include walks, hit-by-pitch, and sacrifices. Use only official at-bats.
Tips
- Always double-check the number of at-bats. It’s the most common source of error.
- If you’re calculating a career average, make sure you use career hits and career at-bats, not just one season.
- Remember that the result is a decimal, not a percentage. .300 is not 30% in the traditional sense (though it’s often described as a 30% success rate).
- If you’re comparing players, use the same number of decimal places for all of them.
Troubleshooting
If your result looks too high or too low: Check that you didn’t accidentally swap hits and at-bats. Hits should always be smaller than at-bats (unless the player has more hits than at-bats, which is impossible in real baseball).
If the calculator shows an error: Make sure the at-bats field is not zero. Division by zero is undefined. If a player has zero at-bats, they have no batting average.
If the average seems off compared to official stats: Verify that your at-bats count is correct. A common mistake is to use plate appearances instead of at-bats. Also, check if any sacrifices were included.
Frequently Asked Questions
What is a good batting average?
In Major League Baseball, the league average is usually around .250. A .300 average is considered very good, and .400 is almost legendary (last achieved in 1941).
Does a walk count as an at-bat?
No. Walks (base on balls) are not counted as at-bats. They are plate appearances, but they don’t affect batting average.
Does a sacrifice fly count as an at-bat?
No. Sacrifice flies and sacrifice bunts are not at-bats. They are excluded so that a player isn’t penalized for advancing a runner.
Can batting average be over 1.000?
In a very small sample, yes. If a player has 1 hit in 1 at-bat, the average is 1.000. But over a full season, it’s practically impossible.
How is batting average rounded?
It’s rounded to three decimal places. For example, 0.3333 becomes .333, and 0.3335 becomes .334.
What’s the difference between batting average and on-base percentage?
On-base percentage (OBP) includes walks, hit-by-pitch, and sacrifices in the numerator and denominator, so it measures how often a player reaches base by any means. Batting average only measures hits per at-bat.
Related
Formula used
in h | Hits | - | 100 | 0 in ab | At-bats | - | 300 | 0 out avg | Batting average | - | h / ab | 3
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.