# Batting Average (BA) Calculator (Baseball)

## What is Batting Average?

Batting Average is a baseball statistic used put a batter’s number of hits in comparison with their number of “at bats.”
It is intended to be a more accurate representation of a batter’s abilities than the total number of hits, as it compares their number of hits with their relative time at the plate.

## How to Calculate Batting Average

In Baseball, batting average calculates by dividing “hits” into “at-bats”
$latex \text{Batting Average} = \frac{\text{Hits}}{\text{At Bats}}$

## Example

If a batter has been at bat 127 times and made 32 hits in that time, then:
32 divided by 127 is 0.252.
Therefore, the batter’s batting average is 0.252.

## What qualifies as a “hit”?

A hit is when the batter safely reaches first base after hitting the ball into fair territory without the benefit of an error or a fielder’s choice.
If the batter (or runner) attempts another base and is caught out, they are still credited with the hit as long as they have reached 1st base.

## What counts as an “at bat”?

An “at bat” is counted each time the player is at bat. At bats are not counted in specific circumstances, including:

• The batter being hit by a pitch
• A sacrifice fly or sacrifice hit
• Base on balls
• The inning ends while still at bat
• The batter is replaced by another hitter before their turn completes