Home · Math · Algebra · Batting Average Calculator

Batting Average Calculator

A baseball batting average: hits divided by at-bats, conventionally written to three decimal places.

Your figures

Example result — edit the figures to make it yours

0.283

Batting average

What this calculator does

A baseball batting average: hits divided by at-bats, conventionally written to three decimal places. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

AVG = hits ÷ at-bats

At-bats exclude walks, hit-by-pitches and sacrifices, per the standard definition. The result is a rate between 0 and 1, traditionally displayed like .283.

Worked example

With the example inputs this page opens with (hits 85, at-bats 300), the result is 0.283 — batting average. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying hits
HitsBatting average
42.50.142
680.227
850.283
106.250.354
127.50.425
1700.567

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Batting Average Calculator work?

A baseball batting average: hits divided by at-bats, conventionally written to three decimal places. Hits, at-bats → Batting average. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Batting Average Calculator need?

Hits, at-bats → Batting average. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Batting Average Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.