Batting Average Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter hits and at-bats to get the batting average.
Result
Batting average (three decimals)
Hits per at-bat as a percentage
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.
Search Amazon for baseball scorebooks. Visit Amazon
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Hits: enter 0 or more.
- Official at-bats: enter 1 or more.
- Read the result: Batting average (three decimals); the panel also shows Hits per at-bat as a percentage.
How this calculator works
Batting average = hits ÷ at-bats (MLB Official Baseball Rules, rule 9.21). Walks, hit-by-pitches, sacrifices and catcher's interference are not at-bats.
Averages are written to three decimals: 0.300 is read as "three hundred".
The formula
| Symbol | Meaning |
|---|---|
| Hits | |
| Official at-bats | |
| Batting average (three decimals) | |
round(x, d) | x rounded to d decimal places, or to a whole number without d. |
Worked example
| Hits | 30 |
|---|---|
| Official at-bats | 100 |
| Hits per at-bat as a percentage | 30% |
|---|
Batting average (three decimals) 0.3
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is a good batting average?
In Major League Baseball, .300 or higher over a season is traditionally seen as excellent; recent league averages have been around .250.
Do walks count against batting average?
No. A walk is not an official at-bat, so it changes neither hits nor at-bats.