# Batting Average Calculator (Baseball)

URL: https://speedycalculator.com/calculators/sports/batting-average/
Last updated: 2026-10-25

> The batting average calculator divides hits by official at-bats and shows the result in the traditional three-decimal format, plus on-base percentage if you add walks and hit-by-pitches.

## Inputs

- Hits
- At-bats
- Walks
- Hit by pitch
- Sacrifice flies

## Results

- Batting average
- On-base percentage

## Formula

```
AVG = hits ÷ at-bats
OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)
```

## Explanation

Batting average is baseball’s classic hitting statistic; on-base percentage better reflects how often a hitter reaches base.

### How to use the Batting Average Calculator

- **Hits**
- **At-bats**
- **Walks**
- **Hit by pitch**
- **Sacrifice flies**

Results update as you type, and every field accepts the units shown in its menu.

### How it works

Divide hits by at-bats; walks and sacrifice bunts are not at-bats.

### Inputs explained

FieldWhat to enterHitsA numberAt-batsA numberWalksA numberHit by pitchA numberSacrifice fliesA number

### What each result means

- **Batting average** = [Hits]÷[At-bats]
- **On-base percentage** = ([Hits] + [Walks] + [Hit by pitch])÷([At-bats] + [Walks] + [Hit by pitch] + [Sacrifice flies])

### Example values

How the main result changes when **Hits** changes and everything else stays at the example values above:

HitsBatting average760.1461140.2191520.2921900.3652280.4383040.585

## Worked example

Inputs — Hits: 152; At-bats: 520; Walks: 60; Hit by pitch: 5; Sacrifice flies: 4.

Results — **Batting average = 0.292**; On-base percentage = 0.368.

## FAQ

**What is a good batting average?**
Around .300 is excellent in MLB; the league average is usually about .245–.255.

**Why is OBP valued?**
Getting on base by any means creates runs.

**What formula does the Batting Average Calculator use?**
AVG = hits ÷ at-bats.

