Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Batting Average Calculator

Batting average calculator works out Batting average and On-base percentage from Hits, At bats and Walks (optional). The default figures on this page give batting average of 0.300; change any entry and the result, the working and the sources update together.

Batting average
0.300
Batting Average Calculator
Batting average
.300
On-base percentage
0.300
Slugging percentage
0.300
OPS
0.600
Total bases
3
Singles
3
On-base denominator
10
Slash line
.300/.300/.300
Summary
3 hits in 10 at-bats is a batting average of .300.
Worked out from Official Baseball Rules, Rule 9.22 (Minimum standards for individual championships) and Rule 9.02 (official statistics) and 1 other source.

Your figures

Updates as you type

How this is worked out

4 steps
  1. Batting average = hits / at-bats = 3 / 10 = 0.3 (.300).
  2. On-base percentage = (3 + 0 + 0) / (10 + 0 + 0 + 0) = 0.3.
  3. Total bases = 3 singles + 2x0 + 3x0 + 4x0 = 3; slugging = 3 / 10 = 0.3.
  4. OPS = on-base + slugging = 0.6.

Its 4 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

2 sources
Official Baseball Rules, Rule 9.22 (Minimum standards for individual championships) and Rule 9.02 (official statistics)
Batting average is hits divided by times at bat; slugging percentage is total bases divided by times at bat.
MLB official statistics glossary: AVG, OBP, SLG and OPS
On-base percentage is (H + BB + HBP) / (AB + BB + HBP + SF); sacrifice bunts are excluded from the denominator.

What the batting average calculator calculates

Batting average (hits divided by at-bats) and the rest of the slash line: on-base percentage, which adds walks and hit-by-pitches to both halves and sacrifice flies to the denominator, slugging percentage from total bases, and OPS. Quoted to three decimals in the usual .406 form.

How to use this batting average calculator

Enter Hits, At bats, Walks (optional) and Hit by pitch (optional). Batting average updates as you type, and “Use a worked example” loads checked figures you can adjust. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Batting average, On-base percentage and Slugging percentage.

The method follows Official Baseball Rules, Rule 9.22 (Minimum standards for individual championships) and Rule 9.02 (official statistics) and MLB official statistics glossary: AVG, OBP, SLG and OPS.

Three hits in ten at-bats example

With Hits: 3, At bats: 10, the calculator returns Batting average: 0.3, Batting average: .300. This example is checked against an independent source in the test suite.

What you can compare

Change one input at a time to see how it affects Batting average, On-base percentage and Slugging percentage. The inputs you can vary are Hits, At bats, Walks (optional), Hit by pitch (optional), Sacrifice flies (optional) and Doubles (optional).

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

How do you calculate a batting average?

Batting average (hits divided by at-bats) and the rest of the slash line: on-base percentage, which adds walks and hit-by-pitches to both halves and sacrifice flies to the denominator. Open “How this is worked out” beside the result to see each step for your own figures.

Is .500 a good batting average?

On the figures this page opens with — hits 3 and at bats 10 — the batting average is 0.3. No single number fits everyone: change any figure above and the answer updates as you type, with each step of the arithmetic beside it.

What is a 1.000 batting average?

It needs Hits, At bats, Walks (optional), Hit by pitch (optional), Sacrifice flies (optional) and Doubles (optional). Nothing else is required, and the figures stay in your browser.

What is a 4 for 9 batting average?

The result gives Batting average, On-base percentage, Slugging percentage, OPS, Total bases and Singles, each labelled with its unit so the figure can be read on its own.

What information do I need for the batting average calculator?

You need Hits, At bats, Walks (optional), Hit by pitch (optional), Sacrifice flies (optional), Doubles (optional), Triples (optional) and Home runs (optional). The page opens with default figures that give batting average of 0.300, so you can see the scale before entering your own.

What does this batting average calculator show?

It shows Batting average, On-base percentage, Slugging percentage, OPS, Total bases, Singles, On-base denominator and Slash line, with the working and any warnings for your entries.

Related calculators

View all related calculators11 more