What this calculator does
Find a player's batting average from their hits and at-bats. It's the oldest and simplest measure of a hitter: the share of official at-bats that end in a hit. A hitter with 150 hits in 500 at-bats has gotten a hit 30% of the time. Scorebooks write that as .300, and people say it out loud as "three hundred".
Enter hits and at-bats. The calculator gives you the exact decimal, the rounded box-score version, and the number of at-bats that didn't end in a hit. It works the same way for baseball and softball at any level, from a single game to a whole career.
Where it's used
Why this math matters outside the classroom:
- Box scores. A hitter with 45 hits in 150 at-bats has a batting average of 45 ÷ 150, which is written .300.
- Rounding to thousandths. Scorekeepers write 31 hits in 97 at-bats as .320, rounding 0.31958 to three decimal places.
- Youth league stats. Volunteer coaches update each player's average after every game from the hits and at-bats in the scorebook.
- Comparing hitters. Fans compare a .285 hitter with a .310 hitter even when the two have had very different numbers of at-bats.
- Fantasy baseball. Fantasy players track team batting average by adding up hits and at-bats across their whole roster for the week.
Grade level and standards: Grade 6; Common Core State Standards for Mathematics 6.RP.A.2. © Copyright 2010. National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.
How to use it
- Enter the player's total hits. Singles, doubles, triples and home runs all count as one hit each.
- Enter official at-bats. These leave out walks, hit-by-pitches, sacrifice bunts, sacrifice flies and catcher's interference.
- Read the batting average and its .300-style form. The working shows the division and the rounding.
What the inputs mean
- Hits (H)
- Every safe hit counts once, however many bases it was worth. Reaching base on an error or a fielder's choice isn't a hit.
- At-bats (AB)
- Official at-bats, not plate appearances (every trip to the plate). A plate appearance that ends in a walk, hit-by-pitch, sacrifice or interference is left out. So at-bats are usually a bit fewer than plate appearances.
Formula and method
AVG = H ÷ AB
In the formula, AVG is the batting average, H is hits and AB is official at-bats. It's a simple share: hits on top, at-bats underneath. Every hit is also an at-bat, so the value always falls between 0 and 1.
By tradition, the result is rounded to three decimal places and the leading zero is dropped. So 0.3 becomes .300 and 0.2667 becomes .267. A perfect average is written 1.000.
Worked example
An outfielder finishes the season with 150 hits in 500 at-bats.
- Divide hits by at-bats: 150 ÷ 500 = 0.3.
- Round to three decimals and drop the leading zero: .300.
- 350 of the 500 at-bats ended without a hit.
Result: The batting average is .300, or three hits in every ten at-bats.
Understanding the result
A .300 average has long been seen as the mark of an excellent hitter at the professional level. There, most everyday players sit somewhere in the .240s to .270s. Youth, amateur and softball averages often run higher.
Small samples swing wildly. Two hits in the first five at-bats is .400, but that says little about the rest of the season. An average only settles down after a few hundred at-bats.
Assumptions and limitations
- Hits and at-bats are whole numbers, and hits can't be more than at-bats.
- The display rounds halves up at the third decimal. The value underneath isn't rounded.
- Batting average treats a single and a home run the same, and it ignores walks entirely. The OPS calculator gives on-base and slugging percentages, which capture both.
- It doesn't adjust for ballpark, league or era. So averages from very different settings can't be compared directly.
Frequently asked questions
Why don't walks count as at-bats?
A walk comes from the pitcher missing the strike zone, not from the batter trying to hit. So the rules leave it out of at-bats altogether. That keeps a walk from lowering the batting average, but it also means walks don't raise it. On-base percentage is the stat that rewards them.
How many hits does a player need to reach .300?
Multiply the at-bats by 0.3 and round up. With 480 at-bats, a player needs 144 hits. 144 ÷ 480 is exactly .300, while 143 ÷ 480 rounds to .298.
Is a batting average a percentage?
It's a share written to three decimals, so .300 is the same as 30%. People call it an average out of habit, but it's really a success rate.
Does reaching base on an error count as a hit?
No. It counts as an at-bat without a hit, so it lowers the average. The official scorer decides whether a misplayed ball should have been ruled a hit instead.
How this calculator is checked
Method: Standard scorekeeping definition of batting average (hits divided by official at-bats). The calculation is covered by automated tests with known reference values and edge cases. Last updated 2026-10-18. Found a problem? Tell us.
Embed this calculator
Put this Batting Average Calculator on your own website or blog for free. Paste this code where you want it to appear: