Batting Average Calculator

Calculate batting average, on-base percentage, and OBP from at-bats, hits, and walks.

By Konstantin Iakovlev · Updated September 2026 · Source: MLB.com Glossary — Batting Average

Batting Average

0.300

On-Base Pct (OBP)

0.300

Rating

Excellent (.300+)

Statistics

Batting Average (BA)0.300
On-Base Percentage (OBP)0.300

Use the Batting Average Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only. Results are estimates based on the information you provide and the assumptions described on this page.

How It Works

Batting average is the single most quoted measure of a hitter's productivity at the plate, and this tool returns it for any baseball or softball player. Coaches and fans lean on the number to weigh one batter against another and to watch how a player's bat trends across a season, because it captures how reliably someone turns an opportunity into a hit.

The math behind it is simple: divide Total Hits by Total At-Bats. Convention reports the result as a three-place decimal, so a hitter reaching base by hit three times in ten at-bats lands at .300. Plate appearances that end in a walk, a sacrifice, or a hit-by-pitch don't go into the at-bat column, so they never enter the calculation.

Watch the line between an at-bat and a plate appearance, since only official at-bats belong in this formula and mixing the two will skew the result. A mark of .300 has long been treated as the threshold of an elite season, and the higher the figure climbs, the more dangerous the hitter. Keep your output rounded to three decimal places to match how the statistic is reported everywhere from box scores to record books.

Example: Calculating a Player's Batting Average for a Season

  1. 1 A player finishes the season with 150 total hits and 500 total at-bats.
  2. 2 Input these numbers into the formula: Batting Average = 150 Hits / 500 At-Bats.
  3. 3 The calculation yields 0.300. So, the player's batting average for the season is .300.
  4. 4 This player had a very good season, hitting safely 30% of the time they officially stepped up to bat.

Source: MLB.com Glossary — Batting Average · Last updated: September 2026

Frequently Asked Questions

How is batting average calculated?
Batting average equals hits divided by at-bats. Walks, hit-by-pitches, sacrifice bunts, sacrifice flies and catcher's interference do not count as at-bats; reaching base on an error or a fielder's choice does count as an at-bat without a hit. A .300 batting average (3 hits per 10 at-bats) is considered excellent in MLB.
What is a good batting average in baseball?
This calculator rates .300 or above as excellent, .275-.299 as good, .250-.274 as average, .225-.249 as below average and anything under .225 as poor. The league-wide batting average has been around .243-.250 in recent seasons.
What is the difference between batting average and OBP?
On-base percentage (OBP) counts hits, walks and hit-by-pitches as times on base; sacrifice flies count against it and sacrifice bunts are left out, which makes it a better measure of a hitter's overall ability to reach base. This calculator has no hit-by-pitch field, so its OBP divides hits plus walks by at-bats plus walks plus sacrifice flies. A good OBP is .340 or higher.