Batting Average Calculator
Pick Season, Game log or Team in the tabs above and type at-bats and hits into the input panel; the average and the qualified-PA check appear in the result panel as you type, with the next-game table below.
Season totals
Qualified PA check (optional)
At-bats and hits are enough for the average. PA and games are only used for the qualified-PA check.
Result
Batting average
—
Enter at-bats and hits
Hits ÷ at-bats
- Hit rate
- —
- Hitless AB
- —
- Per hit
- —
Enter games to get the required plate appearances.
—
The league rule and games set the required plate appearances.
Average after the next game
Enter at-bats and hits to see the next-game table.
Distance to a mark
Enter at-bats and hits to see how far each mark is.
- .250—
- .300—
- .350—
- .400—
Checked on the unrounded average: a .2998 hitter shows .300 on the board but is below .300.
Type at-bats and hits and the average appears right away.
Game log
Type AB-H for each game, separated by spaces or commas. "2-for-4" (hits for at-bats) works too.
Running totals
Running average
—
Add your games
One row per game: at-bats and hits
- Last 5 games
- —
- Last 10 games
- —
- Hitting streak
- —
- Multi-hit games
- —
- Hitless games
- —
- Best game
- —
Running average by game
The line is the running average after each game, filled dots are games with a hit, the dashed line is the current average.
Type games like 4-2 3-0 in Quick entry, or fill in at-bats and hits row by row.
Player totals
Team result
Team batting average
—
Enter at-bats and hits for each player
Team AVG = total hits ÷ total at-bats
- Mean of players
- —
- Team − mean
- —
- Players
- —
A simple mean gives a part-timer's hot streak the same weight as a full season, so it drifts away from the team average.
Players by average
Add players to rank them.
Enter player names with at-bats and hits. Names are optional.
ready to use.
- Visible firstKeep the input and result positions clear.
- Results firstPut the main number up front and keep the process secondary.
- Less to askNo sign-up or extra information before using the tool.
How to calculate batting average, qualified PA, game logs and team AVG
Batting average is hits divided by at-bats. A hitter who goes 161-for-502 bats 161 ÷ 502 = .3207, written as .321 and said "three twenty-one." Walks, hit-by-pitches, sacrifice bunts, sacrifice flies and times reached on interference are not at-bats, so they never enter the denominator.
To win a batting title a hitter also needs enough plate appearances. In MLB that is 3.1 per scheduled team game, rounded to the nearest whole number (502 for 162 games). NPB uses the games its team has played and rounds the same way (443 for 143), while KBO drops the fraction (446 for 144). This calculator checks that line, applies the rule 9.22(a) exception, and handles game logs and team totals on one screen.
The formula: hits ÷ at-bats, rounded at the fourth decimal
Official Baseball Rule 9.21(b) defines batting average as safe hits divided by times at bat as defined in rule 9.02(a). A double or a home run still counts as one hit — that is what separates average from slugging percentage, which counts total bases.
Averages are shown to three decimals. NPB and KBO state the method explicitly: work out four decimals, then round. So 161 ÷ 502 = .32071… becomes .3207 and then .321, and 1-for-2,000 (.0005) rounds up to .001. The calculator uses integer math so no floating-point error creeps in.
- 161-for-502 → .3207 → .321
- 165-for-440 → .3750 → .375
- 5-for-12 → .4167 → .417
- 1-for-2,001 → below .0005 → .000
At-bats versus plate appearances
A plate appearance is every completed trip to the plate; an at-bat is the subset that counts toward average. Rule 9.02(a)(1) removes these from at-bats:
- Walks (base on balls)
- Hit by pitch
- Sacrifice bunts and sacrifice flies
- Reaching first on catcher's interference or obstruction
Counting at-bats from a scorebook
Five trips to the plate with a walk, a sacrifice fly, a single and two outs is a 1-for-3 day. Dividing by the five plate appearances would give .200, but the average uses 1 ÷ 3.
Reaching on an error, on the other hand, is an at-bat without a hit, so it lowers the average. Those two cases are easy to get wrong when rec-league or youth scorebooks are copied into a spreadsheet.
Reading an average out loud
Averages drop the leading zero and are spoken like a number: .321 is "three twenty-one," .300 is "three hundred," .250 is "two fifty." A change of .001 is one point, so going from .318 to .326 is "up eight points."
Two averages that match at three decimals can still differ. The Team tab ranks players by the unrounded ratio and, when the displayed averages are equal, shows a fourth decimal cut short, such as .3001….
- .321three twenty-one
- .305three oh five
- .250two fifty
- 1.000a thousand
Qualified plate appearances: each league rounds differently
The batting, on-base and slugging titles go to the best hitter among those with enough plate appearances. The base is 3.1 per game everywhere, but leagues count games and handle the fraction differently.
The gap shows up when the fraction is .5 or more. A 145-game schedule gives 449.5: NPB rounds up to 450 and KBO drops to 449. The MLB rule does not say what to do with an exact .5, so the calculator rounds it up like NPB and prints the value it used on the rule line.
Mid-season, type the games your team has played to see today's line. For minor leagues that use 2.7 per game or for a rec league with its own rule, choose Custom and set the multiplier and the rounding.
- MLBScheduled games × 3.1, nearest whole number — 162 G: 502.2 → 502 PA
- NPBGames played × 3.1, rounded half up — 143 G: 443.3 → 443 PA
- KBOGames played × 3.1, fraction dropped — 144 G: 446.4 → 446 PA
Winning the title without enough plate appearances
Rule 9.22(a) has an exception: charge the missing plate appearances as hitless at-bats, and if the hitter still leads, the title is his. The average that goes into the record book is the real one, before the added at-bats.
The rule's own example: the best qualified hitter is 181-for-500 (.362). A player with 490 plate appearances and 165-for-440 (.375) is 12 short; 165 ÷ 452 = .365 still leads, so he wins the title at .375.
Enter plate appearances on the Season tab and the calculator shows how many are missing and the adjusted average.
How far one game can move an average
An 0-for-4 barely moves a full-season average but can wreck an early one. The next-game table adds 3, 4 or 5 at-bats to your line and lists the average and the change in points for every hit total.
Changes are measured between the rounded averages shown on screen — the same way a broadcast says a hitter "dropped three points."
- 161-for-502 (.321), then 0-for-4.318, down 3 points
- 161-for-502, then 4-for-4.326, up 5 points
- 5-for-12 (.417), then 0-for-4.313, down 104 points
Hits to .300 — and how long .300 lasts
For each mark (.250, .300, .350, .400) the calculator shows either how many hitless at-bats you can absorb while staying at or above it, or how many straight hits it takes to get there.
The check uses the unrounded average. A 161-for-502 hitter stays at .300 through 34 hitless at-bats; the 35th makes it 161 ÷ 537 = .2998, which still reads .300 on the scoreboard but is below it. Reaching .350 takes 23 straight hits (184 ÷ 525 = .3505).
Walks, hit-by-pitches and sacrifices do not change the average, so the count only includes official at-bats: every one of them is either a hit or an out.
Tracking a season game by game
The Game log tab keeps one row per game. Each row shows the running average after that game and the change, and the chart below draws the whole path. Quick entry takes lines like "4-2 3-0 4-1" (at-bats first) or the familiar "2-for-4."
The log is stored only in this browser and is never sent anywhere. To move it to another device, copy the results; the table pastes into a spreadsheet as columns.
- Last 5 and last 10 games: hits and at-bats of the most recent games, re-added into one average
- Multi-hit games: two or more hits
- Hitless games: at least one at-bat and no hit
- Best game: most hits, then fewest at-bats
When a hitting streak ends
Under rule 9.23(b), a consecutive-game hitting streak survives a game in which every plate appearance is a walk, hit by pitch, interference or sacrifice bunt. A sacrifice fly with no hit ends it.
Because the calculator only knows at-bats and hits, it treats a 0-AB game as one that keeps the streak alive. If that game was really a sacrifice fly and nothing else, count the streak as broken there.
For example, in the log 4-2, 3-0, 4-1, 0-0, 5-3, 4-0, the longest streak is two games (games 3 and 5, with game 4 skipped), and the final 0-for-4 resets it to zero. The running average starts at .500 and ends at .300.
Team average is not the mean of player averages
Team batting average is total team hits divided by total team at-bats. Averaging the players' averages gives a bench player with 40 at-bats the same weight as an everyday starter.
The Team tab shows both numbers side by side. Set a minimum at-bat count and small samples drop below the ranking while still counting toward the team total.
- A: 120-for-400.300
- B: 20-for-40.500
- C: 98-for-350.280
- Team: 238 ÷ 790.301
- Mean of the three averages.360
What batting average leaves out
Average ignores walks and treats a single like a home run. Two .300 hitters can be very different: one walks a lot and has a high on-base percentage, the other hits for power and slugs higher. Around 100 at-bats, a handful of hits can reshuffle a leaderboard.
Results here are arithmetic on the numbers you enter, not official statistics. Where a league's official record or tournament rules differ, those govern.
- Getting on base: on-base percentage (OBP)
- Power: slugging (SLG) and ISO
- Both together: OPS
- Results on balls in play: BABIP
Checklist before you copy numbers over
These six checks clear up nearly every mismatch between a scorebook and a calculator.
- The denominator is at-bats, not plate appearances
- Hits include doubles, triples and home runs
- At-bats and hits are not swapped (the calculator flags more hits than at-bats)
- The qualified-PA league rule and games (played or scheduled) match your league
- For a rec league, the multiplier and rounding follow its rulebook
- Games are entered in order (recent form and streaks follow the entry order)
FAQ
How do you calculate batting average?
Divide hits by at-bats and round at the fourth decimal. 161-for-502 is 161 ÷ 502 = .3207, so the average is .321.
Do walks or sacrifice flies count as at-bats?
No. Walks, hit-by-pitches, sacrifice bunts, sacrifice flies and reaching on interference or obstruction are removed from at-bats, so they are not in the denominator. They all count as plate appearances.
How many plate appearances qualify for the MLB batting title?
3.1 per scheduled team game, rounded to the nearest whole number. A 162-game schedule gives 502.2, so 502 plate appearances.
Why do MLB, NPB and KBO give different numbers?
All three use 3.1 per game, but MLB counts scheduled games while NPB and KBO count games played, and KBO drops the fraction instead of rounding. In a 145-game season NPB needs 450 and KBO 449.
Can a player win the batting title without enough plate appearances?
Yes. If the missing plate appearances are charged as hitless at-bats and the player still has the highest average, he wins, and his actual average stays on the record. In the rule's example a .375 hitter with 490 PA is 12 short, drops to .365, still beats .362 and takes the title.
How is .305 said out loud?
"Three oh five." Averages drop the leading zero; .250 is "two fifty" and .300 is "three hundred."
How much does an 0-for-4 lower my average?
It depends on how many at-bats you already have. At 161-for-502 (.321) an 0-for-4 takes you to .318, down 3 points; at 5-for-12 (.417) it drops you to .313, down 104 points. The Season tab lists every outcome for 3, 4 or 5 at-bats.
How many hitless at-bats can a .300 hitter afford?
Until the unrounded average falls under .300. At 161-for-502 that is 34 straight outs; the 35th makes it .2998, which still displays as .300 but is below the mark.
Is team batting average the average of the players' averages?
No. Divide total team hits by total team at-bats. Three players at 120-for-400, 20-for-40 and 98-for-350 make a .301 team average, while the simple mean of their averages is .360.
Does a walk-only game end a hitting streak?
No. A game in which every plate appearance is a walk, HBP, interference or sacrifice bunt keeps the streak alive. A sacrifice fly with no hit ends it. The Game log tab treats a 0-AB game as keeping the streak.
Rules we used
Rule texts were checked on September 25, 2026. If a league changes its rules, that year's rulebook applies.