Work out a batting average in cricket or baseball
This batting average calculator handles the two meanings of the phrase. In cricket the average is runs scored per dismissal, so innings in which the batter finished not out add runs but not a dismissal. In baseball and softball it is hits divided by at-bats, written to three decimals such as .300. Pick your sport, enter the numbers and the result updates as you type.
It also answers the questions players really ask: what you need to score to lift your average to a target, how one more innings changes it, and how many hits you need to finish a season at .300. Cricketers can add balls faced for the strike rate; the cricket strike rate calculator covers bowling figures, and the run rate calculator covers team scoring rates.
How to use the Batting Average Calculator
- Choose Cricket or Baseball / softball.
- Cricket: enter total runs, innings batted and not outs. Add balls faced for the strike rate, a target average, or a next-innings score.
- Baseball: enter hits and at-bats. Add walks, hit by pitch, sacrifice flies, doubles, triples and home runs for OBP, SLG and OPS.
- Read the average, then the runs or hits needed for your target.
Batting Average Calculator features
Not outs handled
Cricket dismissals are innings minus not outs, and a batter who has never been dismissed gets "no average" instead of a divide-by-zero.
Target planning
Shows the runs needed next innings, out or not out, to lift a cricket average to a target; the hits needed for a baseball target.
Next-innings what-if
Type a score and say whether you were out to see the new average before the match is over.
OBP, SLG and OPS
The full baseball slash line from a stat line, using the official formulas.
Softball too
The definitions are the same for softball, so the same stat line works.
The formulas
Cricket: batting average = total runs ÷ (innings − not outs). A batter with 1,850 runs in 52 innings, nine of them not out, was dismissed 43 times, so the average is 1,850 ÷ 43 = 43.02. A not-out score (for example 85*) raises the total without adding a dismissal. Strike rate is runs ÷ balls faced × 100.
Baseball and softball: AVG = H ÷ AB. On-base percentage OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF). Slugging SLG = total bases ÷ AB, where total bases = singles + 2 × doubles + 3 × triples + 4 × home runs. OPS is OBP plus SLG. The definitions follow the MLB glossary and the Official Baseball Rules (section 9.02), checked on 24 October 2026. Walks, hit by pitch and sacrifice flies are not at-bats.
| Sport | Formula | Example |
|---|---|---|
| Cricket | Runs ÷ (innings − not outs) | 1,850 ÷ 43 = 43.02 |
| Baseball AVG | H ÷ AB | 142 ÷ 480 = .296 |
| Baseball OBP | (H + BB + HBP) ÷ (AB + BB + HBP + SF) | 198 ÷ 539 = .367 |
| Baseball SLG | Total bases ÷ AB | 248 ÷ 480 = .517 |
Planning a target average
In cricket, to reach an average T after being dismissed in the next innings you need runs ≥ T × (dismissals + 1) − current runs; if you stay not out you need runs ≥ T × dismissals − current runs. For 1,850 runs and 43 dismissals the way to a 45 average is 130 runs if you are out, or 85 not out. In baseball, solve (H + x) ÷ (AB + n) ≥ target for x, rounding up: from 142 for 480, finishing .300 over 20 more at-bats takes 8 hits.
These are arithmetic results, not predictions. Leagues differ on minimum at-bats or innings to qualify for a title, which this tool does not apply.
Batting Average Calculator FAQ
How do you calculate a batting average in cricket?
Divide total runs by the number of times the batter was dismissed, which is innings minus not-out innings. 600 runs in 20 innings with 4 not outs is 600 ÷ 16 = 37.50.
Why are not outs not counted?
A not-out innings is incomplete, so counting it as a dismissal would understate how many runs the batter scores before getting out.
How do you calculate a baseball batting average?
Divide hits by at-bats and write it to three decimals. 142 hits in 480 at-bats is .296. Walks and sacrifice flies are not at-bats.
What is a good batting average?
In international Test cricket an average above 40 is strong; in Major League Baseball .300 is the traditional mark of a very good hitter. Levels vary by league and age group.
Does this work for softball?
Yes. Softball uses the same hits-per-at-bat definition, so enter the stat line the same way.
How many hits do I need to reach .300?
Enter your hits and at-bats, set the target to .300 and the number of extra at-bats you expect. The tool shows the minimum hits needed.