A batting average calculator divides hits by at-bats and prints the answer to three decimal places. That is genuinely the whole formula, and it has been the same since the nineteenth century. What is worth a page is everything around it: which trips to the plate count, why the denominator is not plate appearances, and how little a hot week actually moves the number once a season is under way.
Arb Digital publishes a free tools library, and this page sits alongside several other baseball and general sports statistics tools. Where a related statistic answers a different question — on-base percentage, slugging, earned run average — the tool for it is linked in place rather than duplicated here.
What This Batting Average Calculator Does
It returns the average in the conventional three-decimal form, and then it does the part that a plain division does not: it tells you what happens next.
Enter how many at-bats are coming up and a target average, and the calculator reports how many hits over those at-bats would reach the target, what the average becomes if you go hitless through all of them, and what it becomes if every one is a hit. Those three figures bracket the entire realistic range, and seeing them together is the quickest cure for over-reading a small sample.
There is also a single-game line, so you can add tonight's box score to a season total without recomputing by hand, and an optional plate-appearance field that shows how many trips to the plate are excluded from the denominator.
How to Use It
- Count hits correctly. A hit is a ball put in play on which the batter reaches base safely without an error or a fielder's choice. Singles, doubles, triples and home runs all count as one hit each — batting average does not care how far the ball went.
- Count at-bats correctly. Start from plate appearances and remove walks, hit-by-pitches, sacrifice bunts, sacrifice flies and catcher's interference. Those are the trips that do not count against you.
- Enter the target as a decimal. A .320 average is 0.32 in the box. The output is rounded up to a whole hit, because you cannot get four fifths of one.
- Set the coming at-bats to something realistic. An everyday player gets roughly four to five per game, so 20 is about a working week and 100 is a month.
- Look at the spread, not just the point. The gap between the hitless and perfect bars is the honest measure of how much the next stretch can actually change.
The Formula: How Batting Average Is Calculated
The average. AVG = hits ÷ at-bats, conventionally reported to three decimal places with the leading zero dropped, so 0.309 is written .309 and spoken as "three-oh-nine".
At-bats from plate appearances. AB = PA − BB − HBP − SF − SH − CI. Walks, hit-by-pitches, sacrifice flies, sacrifice hits and catcher's interference are all plate appearances that are not at-bats.
Hits needed for a target. needed = ⌈target × (AB + n) − H⌉, where n is the number of at-bats coming up. The ceiling is there because hits are whole numbers.
The bracket. The floor is H ÷ (AB + n), from going hitless; the ceiling is (H + n) ÷ (AB + n), from a hit every time.
The scoring definitions behind all of this live in the Official Baseball Rules, whose rule 9 covers the official scorer, what counts as a hit, and the minimum plate-appearance standards a player must meet to qualify for a batting title.
Worked example, matching the values this page loads with. 47 hits in 152 at-bats gives 47 ÷ 152 = 0.30921, printed as .309. With 20 at-bats coming and a target of .320, the requirement is 0.32 × 172 = 55.04 hits in total, minus the 47 already banked, so 9 hits in the next 20 — a .450 stretch. Go hitless through all 20 and the average falls to 47 ÷ 172 = .273; get a hit in every one and it rises to 67 ÷ 172 = .390. Adding a single 2-for-4 game instead gives 49 ÷ 156 = .314.
Why Walks Are Not in the Denominator
The most common confusion about batting average is why a walk does not count. The answer is historical rather than logical, and it has consequences.
Batting average was designed to measure how often a batter got a hit when they tried to. A walk is not an attempt to hit, so it was excluded from the denominator — and, crucially, it is not counted as a success either. The result is that a walk is invisible to batting average: a player who walks a hundred times and a player who never walks at all have identical averages if their hits and at-bats match.
That is a real blind spot, because reaching base is valuable however it happens. It is exactly why on-base percentage was developed, and the FanGraphs sabermetrics library entry on OBP makes the point directly: batting average ignored walks and hit-by-pitches, and OBP gave credit to the hitters who earned them. Our on-base percentage calculator handles that statistic.
The second blind spot is that batting average treats every hit as equal. A single and a home run both count as exactly one, which is why slugging percentage exists to weight hits by total bases.
How Much a Streak Actually Moves the Number
Batting average is a running mean, and running means become progressively harder to shift. This is the arithmetic behind almost every misleading statement about a hot hitter.
In April, a player with 20 at-bats has an average that moves wildly. A 3-for-4 game takes them from .250 to .333 in an afternoon. By August the same player has 400 at-bats, and the same 3-for-4 game moves them by about two points. Nothing about the player changed; the denominator did.
This has a practical consequence for reading early-season numbers. A .400 average in mid-April is 16 hits in 40 at-bats, and the difference between that and a .250 average is six hits — a fortnight of ordinary variance. Averages taken before roughly 150 at-bats tell you very little about a hitter that you did not already know, which is broadly why the qualification standards in the official rules require a substantial number of plate appearances before a player is eligible for a batting title.
The same logic explains why chasing a target late in a season becomes arithmetically brutal. Adding 11 points to an average with 20 at-bats left requires a .450 stretch, as the worked example shows. With 200 at-bats left it requires a much more ordinary run.
Reading the Number in Context
An average in isolation says less than people assume, and three pieces of context change its meaning entirely.
The era. League-wide batting averages have moved substantially across baseball history as rules, equipment, ballparks and strategy have changed. A given average means something different in different decades, and comparing across eras without adjusting is a straightforward error.
The level. High school, college, minor league and major league averages are not comparable quantities, because the pitching faced differs enormously.
The luck. A large share of short-run variation in batting average comes from whether batted balls found fielders, which is why analysts look at batting average on balls in play separately. A hitter with an unusually high or low figure there is often having a temporarily fortunate or unfortunate run rather than a genuinely different season.
Cricket uses the word "average" for something quite different — runs per dismissal rather than a rate — and if that is what you are after, our bowling average calculator covers the cricket bowling equivalent.
Arb Digital builds fast, dependency-free calculators and interactive tools that load instantly, rank in search and keep visitors reading.
Browse the Free Tools Talk to Arb DigitalCommon Mistakes to Avoid
- Dividing by plate appearances — walks, hit-by-pitches and sacrifices are plate appearances but not at-bats, and including them lowers the average incorrectly.
- Counting reaching on an error as a hit — the official scorer's judgement decides, and an error is not a hit no matter how hard the ball was struck.
- Counting a fielder's choice as a hit — the batter reached, but a runner was put out, and the at-bat still counts against the average.
- Treating a sacrifice fly as an at-bat — it is removed from the denominator, which is precisely why it is called a sacrifice.
- Over-reading a small sample — a .400 average across 40 at-bats is six hits away from .250, which is a fortnight of ordinary variation.
- Comparing averages across eras or levels — league conditions and the quality of pitching faced change what a given number means.
Related Free Tools From Arb Digital
The on-base percentage calculator counts the walks and hit-by-pitches that batting average ignores, the slugging percentage calculator weights hits by total bases, and the earned run average calculator and winning percentage calculator cover the pitching and team sides. For cricket, see the bowling average calculator. General arithmetic lives in the percentage calculator, and everything else is in the free online tools hub.
Frequently Asked Questions
Divide hits by at-bats and report the result to three decimal places with the leading zero dropped. Forty-seven hits in 152 at-bats is 0.30921, written .309. Every hit counts as one regardless of whether it was a single or a home run.
Because batting average was designed to measure how often a batter got a hit when they swung the bat, and a walk is neither an attempt nor a failure. It is removed from the denominator and given no credit in the numerator, which means walks are entirely invisible to the statistic. That blind spot is why on-base percentage exists.
Plate appearances count every trip to the plate. At-bats are plate appearances with walks, hit-by-pitches, sacrifice bunts, sacrifice flies and catcher's interference removed. A player with 171 plate appearances might have only 152 at-bats, and the difference is those excluded outcomes.
No. If the official scorer rules that a fielder's error allowed the batter to reach, the batter is charged with an at-bat and credited with no hit. The same applies to a fielder's choice, where the batter reaches but a runner is retired instead.
Multiply the target by the total at-bats you will have, then subtract the hits already banked, and round up. With 47 hits in 152 at-bats, reaching .320 over the next 20 at-bats needs 0.32 times 172, which is 55.04, minus 47 — so nine hits in twenty.
Because it is a running mean and the denominator has grown. A 3-for-4 game moves a 20 at-bat average by more than 80 points and a 400 at-bat average by about two. Nothing about the hitting changed; the sample did.
Higher is better within the statistic, but the statistic itself is narrow. It ignores walks entirely and treats a single and a home run identically, so a lower average with far more walks and extra-base hits can represent a more productive hitter. On-base percentage and slugging exist to fill those gaps.