Batting average is the classic measure of a hitter. Here is the formula with an example, or use our free batting average calculator for an instant result.
How to Calculate Batting Average: Quick Facts
- Formula: hits / at-bats.
- Output: a .XXX figure.
- Walks: not at-bats, so they do not count.
- Example: 50 / 170 = .294.
- Shortcut: use the calculator.

The Formula
Batting average = hits divided by at-bats. At-bats exclude walks, hit-by-pitches, sacrifice bunts, and sacrifice flies.
Worked Example
A hitter with 50 hits in 170 at-bats has an average of 50 divided by 170, which is .294. Add a walk and the average does not change, because a walk is not an at-bat.
Frequently Asked Questions
What counts as an at-bat?
An at-bat is a plate appearance that ends in a hit or an out, not counting walks, hit-by-pitches, or sacrifices.
Why is batting average shown to three decimals?
Three decimals let you rank hitters precisely, for example .301 versus .299.
Can batting average be over 1.000?
No. Since hits can never exceed at-bats, batting average maxes out at 1.000, which would mean a hit in every at-bat.