Batting Average Calculator (Baseball)

Quick answer

The batting average calculator divides hits by official at-bats and shows the result in the traditional three-decimal format, plus on-base percentage if you add walks and hit-by-pitches.

Batting average
—
On-base percentage
—

Batting average is baseball’s classic hitting statistic; on-base percentage better reflects how often a hitter reaches base.

How to use the Batting Average Calculator

  1. Hits
  2. At-bats
  3. Walks
  4. Hit by pitch
  5. Sacrifice flies

Results update as you type, and every field accepts the units shown in its menu.

How it works

Divide hits by at-bats; walks and sacrifice bunts are not at-bats.

Inputs explained

Field What to enter
Hits A number
At-bats A number
Walks A number
Hit by pitch A number
Sacrifice flies A number

What each result means

  • Batting average = [Hits]÷[At-bats]
  • On-base percentage = ([Hits] + [Walks] + [Hit by pitch])÷([At-bats] + [Walks] + [Hit by pitch] + [Sacrifice flies])

Example values

How the main result changes when Hits changes and everything else stays at the example values above:

Hits Batting average
76 0.146
114 0.219
152 0.292
190 0.365
228 0.438
304 0.585

Formula

AVG = hits ÷ at-batsOBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)

Worked example

Inputs — Hits: 152; At-bats: 520; Walks: 60; Hit by pitch: 5; Sacrifice flies: 4.
Results — Batting average = 0.292; On-base percentage = 0.368.

Frequently asked questions

What is a good batting average?

Around .300 is excellent in MLB; the league average is usually about .245–.255.

Why is OBP valued?

Getting on base by any means creates runs.

What formula does the Batting Average Calculator use?

AVG = hits ÷ at-bats.

Cite this calculator

Speedy Calculator. (2026). Batting Average Calculator (Baseball). Speedy Calculator. https://speedycalculator.com/calculators/sports/batting-average/