Batting Average Calculator
Calculate a baseball or softball batting average from hits and at-bats — and on-base percentage if you add walks, HBP and sacrifice flies.
How it works
AVG = hits ÷ at-bats · OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)
Batting average counts only official at-bats — walks, hit-by-pitches and sacrifices are excluded, which is why a patient hitter’s value shows up better in on-base percentage. OBP adds the free passes to both sides of the fraction, measuring how often a batter avoids making an out. Averages are traditionally written without the leading zero, to three decimals.
Worked example
57 hits in 200 at-bats: 57 ÷ 200 = .285. Add 20 walks, 3 HBP and 2 sacrifice flies and OBP = (57+20+3) ÷ (200+20+3+2) = 80 ÷ 225 = .356.
Frequently asked questions
What counts as an at-bat?
A completed plate appearance that isn’t a walk, hit-by-pitch, sacrifice, or catcher’s interference. That is why a 4-for-4 day with a walk shows five plate appearances but only four at-bats.
What is a good batting average?
In modern MLB the league average sits around .240–.250; .300 marks an elite season, and .400 hasn’t been done over a full season since 1941. Youth and rec leagues run much higher.
Why do analysts prefer OBP to AVG?
Because outs are the scarcest resource in baseball, and OBP measures out-avoidance directly. Two .270 hitters can differ by 60 points of OBP once walks are counted.
Related calculators
This calculator is for educational purposes. Double-check important results before acting on them.