Boneyard Tools

Batting Average Calculator

Enter a batter's hits and official at bats to compute their batting average. The tool shows the familiar three-digit .XXX form used on scoreboards alongside the full decimal to four places. It is handy for scoring a game, tracking a season, or checking a Little League stat line.

How to calculate batting average

  1. Type the number of hits into the Hits field.
  2. Type the number of official at bats into the At bats field.
  3. Read the batting average in the .XXX card and the four-decimal value in the Decimal card.
  4. Adjust either number to see the average update, then use Copy AVG to copy the .XXX result.

Examples

A solid regular season

150 hits, 500 at bats
Batting average .300, decimal 0.3000

Ted Williams in 1941

185 hits, 456 at bats
Batting average .406, decimal 0.4057

One hit every three at bats

100 hits, 300 at bats
Batting average .333, decimal 0.3333

Frequently asked questions

How is batting average calculated?

Batting average is hits divided by at bats. For example, 150 hits in 500 at bats is 150 / 500 = 0.300, written as .300. The value always falls between .000 and 1.000 because hits can never exceed at bats.

Why is the result shown without a leading zero?

Baseball convention drops the leading zero, so 0.300 is written .300 and read aloud as three hundred. This tool follows that convention in the .XXX card while the Decimal card keeps the leading zero and shows four places.

How is the average rounded?

The .XXX display rounds to three decimal places, so .3335 and above round up. The Decimal card shows four places, which is why 100 hits in 300 at bats reads .333 and 0.3333, since one third is a repeating decimal.

What counts as an official at bat?

An at bat is a plate appearance that ends in a hit, an out, or a reached-on-error. It excludes walks, hit by pitch, sacrifice bunts and flies, and catcher interference, which count as plate appearances but not at bats. Enter official at bats, not total plate appearances.

What is considered a good batting average?

In modern Major League Baseball a .300 average is excellent, roughly .250 to .270 is around league average, and below .200 is poor, a threshold nicknamed the Mendoza line. Youth and amateur leagues often run higher.

Can hits ever be more than at bats?

No. Every hit is also an at bat, so hits can never exceed at bats. If you enter more hits than at bats the calculator shows an error message instead of a number, and it also rejects zero at bats since dividing by zero is undefined.

Does batting average tell the whole story?

Not entirely. Average treats a single and a home run the same and ignores walks. On-base percentage and slugging percentage capture those, and OPS combines them, which is why many analysts prefer them for judging a hitter's total value.

What is the highest average I can enter?

Both fields accept whole numbers from 0 up to 1000. A batter with as many hits as at bats scores a perfect 1.000, which the tool shows as 1.000 with the leading digit kept rather than dropped.

Does anything I enter get uploaded?

No. The division runs in your browser as you type, so the hits and at bats you enter stay on your device and are never sent to a server or stored.

Learn more

Related tools