Saved

Press the star next to a tool's name to save it.

All my tools

Batting Average Calculator

Use this batting average calculator to work out batting average from hits and at bats, plus on-base percentage, slugging percentage and total bases.

Restored your last values ·

Only at bats and hits are needed for batting average. Add walks, hit by pitch and sacrifice flies for on-base percentage, and doubles, triples and home runs for slugging.

Everything is worked out in your browser. Nothing you type is sent anywhere.

Batting average (AVG)

–

Enter at bats and hits, then press Calculate.

See full result

This batting average calculator works out a baseball or softball player's batting average from hits and at bats. Add walks, hit by pitch, sacrifice flies and extra-base hits, and the batting average calculator also gives on-base percentage (OBP), slugging percentage (SLG) and total bases, written the way you see them on a stats page, such as .300.

How to use the batting average calculator

  1. Enter at bats and hits. That's all you need for batting average.
  2. Add walks, hit by pitch and sacrifice flies for on-base percentage.
  3. Add doubles, triples and home runs for slugging percentage. Leave any box blank for zero.
  4. Press Calculate.

The batting average formula

According to Wikipedia's batting average article, batting average is a player's hits divided by their at bats:

AVG = H ÷ AB

It's usually rounded to three decimal places and read without the decimal point, so a player hitting .300 is said to be batting three hundred. Plate appearances that end in a walk, a hit by pitch, catcher's interference or a sacrifice bunt or fly aren't counted as at bats, so they don't affect batting average.

On-base percentage

On-base percentage measures how often a batter reaches base. The Wikipedia article gives the formula:

OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)

Here H is hits, BB is walks (bases on balls), HBP is hit by pitch, AB is at bats and SF is sacrifice flies. Reaching base on an error or a fielder's choice doesn't count. On-base percentage has been an official Major League Baseball statistic since 1984.

Slugging percentage

Slugging percentage measures power: the average number of bases a player gets per at bat. Wikipedia gives:

SLG = (1B + 2 × 2B + 3 × 3B + 4 × HR) ÷ AB

The top of the fraction is total bases: one for each single, two for each double, three for each triple and four for each home run. The calculator works out singles as hits minus doubles, triples and home runs. The highest possible slugging percentage is 4.000, a home run in every at bat.

Worked example

Say a player has 150 hits in 500 at bats. Their batting average is 150 ÷ 500 = .300. Add 60 walks, 5 hit by pitch and 5 sacrifice flies, and their on-base percentage is (150 + 60 + 5) ÷ (500 + 60 + 5 + 5) = 215 ÷ 570 = .377. If 30 of the hits were doubles, 3 triples and 25 home runs, the other 92 were singles, for 92 + 60 + 9 + 100 = 261 total bases and a slugging percentage of 261 ÷ 500 = .522.

Wikipedia's slugging article gives a famous real example: Babe Ruth in 1920 had 388 total bases in 458 at bats, a slugging percentage of .847.

What is a good batting average?

Wikipedia notes that a season batting average of .300 or higher is considered excellent, and an average above .400 is a nearly unachievable goal. For players other than pitchers, an average below .230 is often considered poor, and one below .200 is usually unacceptable. Ted Williams, at .406 in 1941, was the last major league player to bat .400 for a season. The single-season record is Hugh Duffy's .440 in 1894.

Reading the results

The big number is the batting average, written to three decimal places without the leading zero. The table shows on-base percentage, slugging percentage and total bases. If you leave the extra boxes blank, OBP uses just hits and at bats, and slugging treats every hit as a single.

Batting average, OBP and slugging together

Each of the three numbers tells you something different. Batting average counts only hits, so a player who walks a lot can have a modest average and a high on-base percentage. Slugging rewards extra-base hits, so two players with the same .300 average can have very different slugging percentages if one hits mostly singles and the other hits doubles and home runs. In the worked example, the player's .377 OBP is 77 points above their batting average because of their 60 walks, and their .522 slugging shows real power.

Records and low marks

Wikipedia lists Josh Gibson's .371 as the highest career batting average in the major leagues, with Ty Cobb second at .367. Nap Lajoie's .426 in 1901 is the highest single-season average since 1900. At the other end, the Mendoza Line refers to a batting average of about .200, named after a shortstop who hit .215 over his career. For on-base percentage, Ted Williams holds the career record at .482. These marks give you a sense of scale when you look at your own numbers.

For softball and youth leagues

The same formulas work for softball and for youth and amateur baseball. Keep your own totals through the season from the scorebook, and enter them whenever you want an update.

Common mistakes

  • Using plate appearances. Batting average uses at bats, which leave out walks and sacrifices.
  • Counting errors as hits. Reaching on an error isn't a hit.
  • Leaving out sacrifice flies for OBP. They count in the bottom of the formula.
  • Adding home runs twice. They're already part of hits.

Tips

  • Copy the numbers straight from a box score or stats page.
  • Use season totals to compare players fairly.
  • Look at OBP and slugging together for a fuller picture.

What next

Use this often? Add Batting Aver to your Home screen.

Frequently asked questions

How does a batting average calculator work?

It divides hits by at bats and rounds to three decimals, and can also work out on-base and slugging percentage.

How do you calculate batting average?

Divide hits by at bats. 150 hits in 500 at bats is a .300 average.

Do walks count in batting average?

No. Walks, hit by pitch and sacrifices aren't at bats, so they don't affect batting average.

How do you calculate on-base percentage?

OBP = (hits + walks + hit by pitch) ÷ (at bats + walks + hit by pitch + sacrifice flies).

What is a good batting average?

Wikipedia notes .300 or higher is considered excellent for a season.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Fun & Lifestyle Tools