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.
Your figures
Updates as you typeHow this is worked out
4 steps
- Batting average = hits / at-bats = 3 / 10 = 0.3 (.300).
- On-base percentage = (3 + 0 + 0) / (10 + 0 + 0 + 0) = 0.3.
- Total bases = 3 singles + 2x0 + 3x0 + 4x0 = 3; slugging = 3 / 10 = 0.3.
- 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
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.
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.
