Batting average calculator

Batting average is hits divided by official at-bats, written to three decimals. 42 hits in 137 at-bats is 42 ÷ 137 = .307. Walks, hit by pitch, sacrifice bunts, and sacrifice flies are not at-bats, so they do not change it.

Batting average calculator

Runs in your browser. Nothing you type is sent to us, saved, or put in analytics.

Showing an example. Change any field to use your own numbers.

All hits, including doubles, triples, and home runs.

Official at-bats. Walks, hit by pitch, and sacrifices are not at-bats.

Your answer

Batting average

.307

42 hits in 137 at-bats

Fill in the fields to see the answer.

  1. Batting average.307 hits ÷ at-bats42 ÷ 137 = 0.30657
  2. After a hit in the next at-bat.312 (hits + 1) ÷ (at-bats + 1)43 ÷ 138
  3. After an out in the next at-bat.304 hits ÷ (at-bats + 1)42 ÷ 138

Batting average for common hit and at-bat totals

Hits10 AB20 AB30 AB50 AB100 AB200 AB400 AB500 AB
1.100.050.033.020.010.005.003.002
3.300.150.100.060.030.015.008.006
5.500.250.167.100.050.025.013.010
101.000.500.333.200.100.050.025.020
15–.750.500.300.150.075.038.030
25––.833.500.250.125.063.050
50–––1.000.500.250.125.100
150–––––.750.375.300

How to calculate batting average

Count hits: singles, doubles, triples, and home runs all count as one hit each. Count official at-bats: plate appearances minus walks, hit by pitch, sacrifices, and catcher interference. Divide hits by at-bats and round to three decimals.

Baseball drops the leading zero, so 0.307 is written .307 and said "three-oh-seven". A perfect 1.000 keeps its one.

Why one at-bat moves a small sample so much

Early in a season, every at-bat is a big share of the total. The calculator shows what the next hit and the next out would do, which is a useful way to explain a slump or a hot streak to a young hitter and their family.

Questions

Do walks count in batting average?

No. A walk is not an at-bat, so it changes neither the top nor the bottom of the fraction. On-base percentage is the stat that credits walks.

Does reaching on an error count as a hit?

No. Reaching on an error is an at-bat without a hit, so it lowers batting average.

Is the formula the same in softball?

Yes. Hits divided by at-bats, the same in baseball and softball.

Is my data stored?

No. The math runs in your browser and nothing you type is sent anywhere or put in analytics.

Sources

Formulas and rules checked against these sources on October 28, 2026. Leagues and associations change their rules, so when your league's rulebook differs, follow your league.

Related calculators

Bring the messy coaching rules.

Elite Coach Booking turns those rules into a booking flow clients can use and a coach app you can run from.