Lelifi·tools

Batting Average Calculator

A .340 hitter collects 34 hits in 100 at bats. This calculator divides hits by at-bats, shows the same number as a percentage, reports how many hits a .300 target still needs, and can build an average from singles, doubles, triples and home runs with slugging alongside.

Enter hits and at-bats. Walks, hit-by-pitches and sacrifice flies do not belong in at-bats. Use the breakdown mode if you know the hit types and want slugging too.

Turn hits and at-bats into a batting average, see it as a percentage, and find how many hits a .300 target still needs.

By the Lelifi editors ·

Key takeaways

Hits per 500 at-bats at four average levels.250.300.350.400125 hits150 hits175 hits200 hits
One point of average over 500 at-bats is 5 hits. The .300 bar is 25 hits ahead of the .250 bar.
Where 242 total bases come from: 160 hits in 520 at-bats110 singles = 110 bases30 doubles = 608 triples = 2412 HR = 48Batting average: 160 / 520 = .308Slugging: 242 / 520 = .465Same hit count, a different run value once extra bases count
The same 160 hits produce a .308 average but a .465 slugging mark, because doubles and home runs carry extra bases.
On this page
  1. What batting average measures
  2. The formula and what counts as an at-bat
  3. Worked examples step by step
  4. Reading the scale: benchmarks from .200 to .400
  5. Batting average against OBP and slugging
  6. Famous averages and the record book
  7. Common mistakes and limits of the stat

What batting average measures

Batting average is the share of at-bats that end in a hit. A player who collects 34 hits in 100 at-bats is batting .340, which reads as a 34 percent success rate at the plate. It is the oldest and most quoted hitting statistic in baseball, printed on trading cards and scoreboard graphics for more than a century, and it is still the number most fans reach for when comparing hitters at a glance.

The scale runs in thousandths. A .250 hitter gets a hit once in every four at-bats, a .300 hitter once in roughly every three and a third, and a .200 hitter once in every five. Those gaps look small in percentage points, but across a full season of about 500 at-bats the difference between .250 and .300 is close to 25 extra hits, which is the distance between a bench bat and a lineup regular.

This calculator divides hits by at-bats, shows the same number as a percentage, and reports how many additional hits a player needs to reach a target such as .300. The MLB glossary entry for batting average uses the same definition this calculator applies.

The formula and what counts as an at-bat

The formula is batting average = hits / at-bats. Scorekeepers write the result to three decimals and drop the leading zero, so 0.321 becomes .321. The third digit matters because a full season produces hundreds of at-bats, and one point of average over 500 at-bats is 5 hits.

Several plate appearances do not belong in at-bats, and leaving them in is the most common error people make by hand:

If you only know plate appearances, subtract the excluded events first. A player with 600 plate appearances, 70 walks, 8 hit-by-pitches and 6 sacrifice flies has 600 - 70 - 8 - 6 = 516 at-bats. Dividing his 158 hits by 600 would report .263, when the correct average is 158 / 516 = .306.

Worked examples step by step

Example 1: a veteran finishes the season with 178 hits in 554 at-bats. The average is 178 / 554 = .321, or 32.1 percent. Example 2: a rookie records 96 hits in 420 at-bats, so the average is 96 / 420 = .229. Example 3: a pinch hitter collects 12 hits in 40 at-bats, which computes to 12 / 40 = .300.

Player scenarioHitsAt-batsBatting averageAs a percentage
Veteran, full season178554.32132.1 percent
Rookie, full season96420.22922.9 percent
Pinch hitter, part time1240.30030.0 percent
Platoon outfielder74260.28528.5 percent

The pinch hitter line shows why sample size matters. Over 40 at-bats, one hit moves the average by 1 / 40 = .025, a swing of 25 points. Over 554 at-bats the same hit moves it by roughly .002. That is why April standings fill up with .400 hitters who finish the year near .270: early counts are too small to trust.

Reading the scale: benchmarks from .200 to .400

Because averages cluster in a narrow band, the third decimal carries most of the meaning. Major League Baseball's league-wide average has generally landed between .240 and .260 in recent seasons, so the bands below are graded against that middle.

Average bandUsual readHits per 500 at-bats
.400 and aboveHistoric territory, last done in 1941200 or more
.300 to .399Star hitter150 to 199
.260 to .299Solid everyday player130 to 149
.230 to .259Below average but playable115 to 129
.200 to .229Fighting to keep the job100 to 114
Under .200Rarely sustained in the majorsFewer than 100

The .200 mark is known as the Mendoza line, a name borrowed from shortstop Mario Mendoza, whose career average settled around .215. A regular who finishes below it usually loses the starting job. At the other end, .300 remains the accepted line for a star season even as league offense rises and falls: in high-offense years a .300 average is good but not rare, while in pitcher-friendly years it can lead the league.

Batting average against OBP and slugging

Batting average treats a walk as if it never happened and a home run as if it were a bunt single. Modern analysis therefore keeps two companion statistics beside it.

StatFormulaWhat it adds
Batting averagehits / at-batsThe raw hit rate
On-base percentage(H + BB + HBP) / (AB + BB + HBP + SF)Credit for any way of reaching base
Slugging percentagetotal bases / at-batsWeight for extra bases
OPSOBP + SLGOne combined index

A hitter with 160 hits, 60 walks and 6 hit-by-pitches in 520 at-bats and 4 sacrifice flies has an on-base percentage of (160 + 60 + 6) / (520 + 60 + 6 + 4) = 226 / 590 = .383 while batting .308. The 75-point spread between the two numbers is the value of his patience, which the average alone never shows.

Extra-base power needs the third row. If those same 160 hits produced 250 total bases, his slugging percentage is 250 / 520 = .481 and his OPS is .383 + .481 = .864. Two players can bat an identical .280 and sit 100 points apart in OPS, which is why team builders rarely judge hitters on the average by itself.

Famous averages and the record book

Ted Williams hit .406 for the Boston Red Sox in 1941, and no player has finished a season at .400 or better since. Rogers Hornsby's .424 for St. Louis in 1924 stands as the modern National League record, and Hugh Duffy's .440 in 1894 remains the recognized all-time single-season mark. On the career side, Ty Cobb's .366 across 24 seasons is still the standard.

Close calls underline how hard .400 is. George Brett hit .390 in 1980 and Tony Gwynn hit .394 in the strike-shortened 1994 season, and both fell short in the final weeks. A hitter needs two hits in every five at-bats for six months, against pitching that adjusts after every series.

The National Baseball Hall of Fame keeps the verified seasonal and career leaderboards, and they are worth a check before repeating a number you half remember, because record claims shift with cutoffs and era rules.

Common mistakes and limits of the stat

The stat also has a structural blind spot: it weights every hit the same. A .280 hitter who lines doubles into the gap can be worth more runs than a .300 singles hitter, which is why slugging and on-base percentage belong in the same conversation. For other ratio work, the site's winning percentage calculator, average calculator, and percentage calculator apply the same hits-divided-by-attempts logic in other settings.

All calculations run in your browser, and nothing you type is uploaded or stored.

Frequently asked questions

How do you calculate batting average?

Divide hits by at-bats and round to three decimals. A player with 178 hits in 554 at-bats has an average of 178 / 554 = .321.

Do walks count in batting average?

No. Walks are not at-bats, so they raise on-base percentage but leave the batting average unchanged.

What is a good batting average?

Around .300 is a star-level season, .260 to .299 is a solid everyday player, and .200 is the Mendoza line where jobs are lost.

What is the Mendoza line?

It is the .200 batting average mark, named for shortstop Mario Mendoza, whose career average finished near .215.

Who was the last player to hit .400?

Ted Williams hit .406 for the Red Sox in 1941. No qualified player has finished a season at .400 or better since.

Why is batting average written without the leading zero?

It is a scorekeeping convention. 0.321 is written .321, and a perfect mark is written 1.000.

What is the difference between batting average and on-base percentage?

On-base percentage adds walks and hit-by-pitches to both sides of the fraction. A hitter batting .308 with 60 walks can post an OBP of .383.

Does reaching on an error count as a hit?

No. It counts as an at-bat without a hit, so it lowers the average even though the batter reaches base.

How many hits do I need to bat .300 over 500 at-bats?

Exactly 150, because 0.300 x 500 = 150. One fewer hit leaves you at 149 / 500 = .298.

Does a home run raise the average more than a single?

No. Both count as one hit, so each adds the same amount to the average. The extra bases only show up in slugging percentage.

Do sacrifice flies count as at-bats?

No. Sacrifice flies and sacrifice bunts are removed from at-bats. A sacrifice fly still counts in the on-base percentage denominator.

What is the highest single-season batting average on record?

Hugh Duffy hit .440 in 1894, the recognized all-time mark. Rogers Hornsby's .424 in 1924 is the modern National League record.

What is the difference between average and slugging percentage?

Slugging divides total bases by at-bats. If 160 hits in 520 at-bats produce 250 total bases, the average is .308 and the slugging mark is 250 / 520 = .481.

Spotted a wrong number or a broken result?

More Math tools

See all Math tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.