Calculate batting average from hits and official at-bats, or find the whole number of hits needed across a future at-bat span to reach a target AVG.
Batting Average Formula
Batting average, abbreviated AVG, is the share of official at-bats that result in hits. Major League Baseball defines the statistic as hits divided by at-bats:
The result is conventionally shown to three decimal places without a leading zero. A calculated value of 0.300 is therefore displayed as .300.
Official At-Bats Versus Plate Appearances
Use the at-bat total from the official stat line. Plate appearances that end in a walk, hit-by-pitch, sacrifice fly, sacrifice bunt, or certain interference rulings generally are not charged as at-bats. Substituting plate appearances for at-bats produces the wrong batting average.
Hits Needed for a Target Average
Target mode fixes the number of future at-bats and solves for the minimum whole number of hits needed across that span. If the target average is written as a decimal, the exact threshold is:
Because a fraction of a hit is impossible, the calculator rounds the threshold upward and verifies the resulting final average. It also compares the target with the best possible result in which every future at-bat becomes a hit.
Example
A batter with 45 hits in 150 at-bats has an average of 45 divided by 150, or .300. If that batter then has 50 more at-bats and wants to finish at .320, the required final total is 64 hits. That means 19 hits are needed in the future span.
What Batting Average Does and Does Not Show
- AVG measures hits per at-bat, not every way a batter reaches base.
- Singles, doubles, triples, and home runs each count as one hit in the numerator.
- The statistic does not credit walks and does not distinguish hit value.
- Small samples can move sharply after one at-bat, so the calculator shows next-at-bat scenarios.
Browse the complete Baseball & Softball calculator collection or return to the Sports & Fitness Calculators hub.
Sources
Major League Baseball. MLB Glossary: Batting Average (AVG), current edition.
Major League Baseball. Official Baseball Rules, Rule 9.21, current edition.