Calculate batting average for baseball or cricket. The baseball mode computes BA from at-bats and hits, with optional expansion to the full sabermetric slash line — on-base percentage, slugging, and OPS. The cricket mode computes runs per dismissal the way ICC does, correctly handling not-outs.
Share:
Advertisementslot: calc-top
Enter at-bats and hits for the basic batting average, or expand for OBP, SLG, and OPS.
Batting average
.273
Advertisementslot: calc-result
What is batting average?
Batting average is the most-cited individual statistic in bat-and-ball sports. In baseball it measures the rate at which a hitter gets hits per at-bat — a .300 average means 3 hits per 10 at-bats. In cricket it measures average runs per dismissal across a player's innings. The two stats share a name but compute differently. Baseball batting averages run between .200 and .400 in elite play and are written without a leading zero. Cricket averages run from the teens to the 50s for great Test batsmen and are written to two decimals. The Batting Average Calculator handles both conventions and, for baseball, extends into the full sabermetric slash line of on-base percentage, slugging, and OPS.
Under the hood
How the calculator works
The calculator runs entirely in your browser. No data leaves your device, and the math is the same exact formula used by MLB and ICC official scorers.
⚾
Baseball mode (basic)
Enter at-bats and hits. The calculator divides hits by at-bats, rounds to three decimals, and drops the leading zero — so 50 hits in 200 at-bats displays as .250. Validation prevents impossible inputs like more hits than at-bats.
📈
Sabermetric expansion
Toggle on the OBP/SLG/OPS panel to add walks, hit-by-pitch, sacrifice flies, doubles, triples, and home runs. The calculator computes OBP as (H+BB+HBP)/(AB+BB+HBP+SF), SLG as total bases / AB, and OPS as their sum. Each metric only appears if you've entered the needed inputs.
🏏
Cricket mode
Enter total runs, innings batted, and not-outs. The calculator computes dismissals = innings − notOuts and then average = runs / dismissals. If every innings was a not-out, the average is mathematically undefined and the calculator says so rather than printing infinity.
The formulas
Every formula the calculator uses
Five formulas total — one for cricket, four for baseball's slash line. All shown exactly as MLB and ICC scorers use them.
Batting average (baseball)
BA = Hits / At-Bats
The numerator is hits — singles, doubles, triples, and home runs. The denominator is at-bats, which excludes walks, hit-by-pitch, sacrifice bunts, sacrifice flies, and catcher interference. Result is displayed as a three-decimal value without leading zero, like .275.
Hits, walks, and hit-by-pitches go in the numerator. The denominator is plate appearances minus sacrifice bunts (SH). Sacrifice flies (SF) count in the denominator because they're considered a productive out the batter could have avoided. This has been the official MLB OBP formula since 1984.
Slugging weights extra-base hits by the bases they earn. The numerator (total bases) treats a single as 1, a double as 2, a triple as 3, and a home run as 4. The denominator is the same at-bats used for batting average. Maximum possible value is 4.000 (every at-bat a home run); .500 is excellent.
A composite metric that adds OBP and SLG. Despite mixing two different denominators (a known flaw), OPS correlates extremely well with team runs scored — better than either stat alone. .800 is good, .900 is excellent, 1.000+ is MVP territory. Babe Ruth's career OPS was 1.164, the highest ever for a player with 5000+ plate appearances.
OBP .366 + SLG .609 = OPS .975
Cricket batting average
Average = Runs / Dismissals, where Dismissals = Innings − Not-Outs
Cricket divides total runs by dismissals, not innings. A 'not-out' is an innings that ended without the batter being dismissed — the team total was reached, declared, or the match ended first. The convention exists because the batter could have scored more had the innings continued. The result is displayed to two decimals.
6996 runs / (80 innings − 10 not-outs) = 6996 / 70 = 99.94 (Bradman's actual career average)
Advertisementslot: calc-mid
Reference
Common batting averages and what they mean
How a given batting average maps to performance level, with rough equivalents in hit-rate terms.
Batting average
Hits per 100 AB
Level
.400
40
Historic — last achieved 1941 by Ted Williams
.350
35
MVP-level season, Hall of Fame trajectory
.320
32
Batting title contender most years
.300
30
Excellent — traditional 'good hitter' threshold
.275
27.5
Above-average MLB regular
.250
25
Roughly league average in modern MLB
.220
22
Below average; bench/utility level
.180
18
'Mendoza Line' — below this is usually a demotion
Hit rates are simplified for intuition; actual at-bat totals over a full season are 400–650 for everyday players. The 'Mendoza Line' is named for Mario Mendoza, a 1970s shortstop whose .200-ish averages became the informal cutoff for replacement-level hitting.
Performance scale
Batting performance tiers across both sports
What each tier looks like in baseball and cricket. The thresholds are widely accepted by historians and analysts, though not officially codified.
Tier
Baseball BA
Cricket avg.
Examples
All-time great
.350+
55+ Test
Cobb .366 | Bradman 99.94
Hall of Fame
.300–.349
45–54
Wagner .329 | Tendulkar 53.78
All-Star regular
.280–.299
40–44
Brett .305 | Kohli 49.0
Solid starter
.260–.279
35–39
League average for batting title contenders
MLB / Test regular
.240–.259
30–34
Roughly the qualifying-player middle 50%
Below average
.220–.239
25–29
Defense-first players, lower-order batters
Replacement level
.200–.219
20–24
Borderline major-league hitters
Below Mendoza
< .200
< 20
Usually demoted or specialist roles
Cricket averages here refer to Test cricket. T20 averages run lower (25–35 is excellent) because innings are deliberately shorter and run-rate matters more than longevity. ODI averages sit between Test and T20 ranges.
Same name, different math
Baseball vs cricket batting average
Both sports call their flagship stat 'batting average,' but the formulas, denominators, and typical values diverge sharply. Here's the side-by-side.
⚾
Baseball
Rate stat — fraction of at-bats that produce a hit. Bounded between .000 and 1.000 in theory, but elite performance tops out around .400 because of pitcher quality and defensive positioning. Walks don't help your BA; only hits do.
Counting stat as a ratio — runs accumulated per dismissal. Innings can produce 50, 100, or 200+ runs each, so averages reach the 40s and 50s for elite Test batsmen. Not-outs (innings ending without dismissal) shrink the denominator and raise the average.
Numerator: total runs scored
Denominator: dismissals (innings − not-outs)
Displayed as 2 decimals: 53.78
Test average above 50 is Hall-of-Fame level
T20 averages run lower (25–35 is excellent)
All-time best: Don Bradman, 99.94 in Tests
Aspect
Baseball
Cricket
Maximum possible
1.000
Unbounded
Decimal places
3 (no leading zero)
2
Elite level
.320+
50+ Test
Average regular
.250
30–35 Test
What boosts it
Hits only
Runs + not-outs
Walk-equivalent counted?
No (BA), Yes (OBP)
N/A — no walks
Cricket has no direct equivalent of the walk or hit-by-pitch — the bowler must dismiss the batter, who simply continues batting otherwise.
BA vs OBP
Why on-base percentage tells you more
Two players with identical .250 batting averages can have wildly different OBPs depending on plate discipline. OBP is generally a stronger predictor of runs scored.
📉
Batting average alone
Ignores walks entirely. A free-swinger with .280 BA but only 20 walks all year has the same BA as a patient hitter with 80 walks, but they create runs at very different rates.
Walks don't count in numerator or denominator
Doesn't reward plate discipline at all
Hit-by-pitch ignored
League average correlates weakly with team runs
Easy to mislead — high-BA, low-OBP players exist
📈
On-base percentage
Credits every way of reaching base safely. A .250 hitter who walks 80 times in 600 plate appearances has a roughly .340 OBP — significantly above league average and a real run-producing asset.
Credits walks and hit-by-pitch as on-base events
Rewards plate discipline directly
Correlates ~30% better with team runs than BA
Used by every modern front office in player valuation
Foundation of the sabermetrics-driven 'Moneyball' philosophy
Player
BA
Walks
OBP
Better stat
Free swinger
.280
20
.302
BA looks better
Patient hitter
.250
80
.343
OBP wins by far
Difference
+.030 BA
−60 BB
−.041 OBP
OBP catches what BA misses
The patient hitter's higher OBP translates to roughly 10 additional runs per season for their team — a real, measurable difference that batting average completely fails to capture.
BA vs SLG
Why slugging matters separately from average
Two players can have the same batting average but vastly different power output. Slugging captures what BA leaves out: the bases-per-hit dimension.
🎯
Contact hitter
Lots of singles, few extra-base hits. A .300 batting average is impressive, but if 90% of those hits are singles, the slugging value is around .400 — solid but not elite.
Singles drive most of the hit total
Low extra-base hit rate (5–15% of hits)
Typical SLG: BA × 1.30 to 1.40
Examples: Tony Gwynn, Ichiro Suzuki
Value comes from high BA + on-base ability
💥
Power hitter
Same .300 BA, but doubles and home runs make up 40% of the hit total. Slugging climbs to .550–.650, OPS into the .900s — MVP territory.
Extra-base hits dominate the hit total
30–50% of hits go for extra bases
Typical SLG: BA × 1.80 to 2.20
Examples: Aaron Judge, Mike Trout, Babe Ruth
Value compounds — high BA + extra-base impact
Stat
Contact hitter
Power hitter
BA
.300
.300
Singles per 150 hits
130
85
Doubles
15
35
Home runs
5
30
SLG
≈.400
≈.580
OPS (with .350 OBP)
.750
.930
Both lines have the same batting average, but the power hitter creates ~25% more runs per plate appearance. Slugging is the dimension that captures the difference.
Worked examples
Three example calculations
Real lines from historical players, computed step by step.
🏆
Ty Cobb 1911 — .420 BA
Cobb had 248 hits in 591 at-bats during his 1911 American League MVP season. BA = 248 / 591 = 0.4196, which rounds to .420 in conventional display. He led the league in hits, runs, RBIs, stolen bases, and batting average that year, winning the MVP unanimously.
⚡
Aaron Judge 2024 — full slash line
Judge's 2024 line: 180 hits in 559 at-bats (.322 BA), with 133 walks, 9 HBP, and 7 sacrifice flies. OBP = (180+133+9) / (559+133+9+7) = 322 / 708 = .455. With 36 doubles, 1 triple, and 58 home runs, total bases = 85 singles + 72 + 3 + 232 = 392. SLG = 392 / 559 = .701. OPS = .455 + .701 = 1.156 — his MVP season.
🇮🇳
Tendulkar Tests — 53.78
Sachin Tendulkar finished his Test career with 15,921 runs in 329 innings, with 33 not-outs. Dismissals = 329 − 33 = 296. Average = 15921 / 296 = 53.78. Across all formats he holds 100 international centuries — a record that remains untouched and likely will for decades.
Use it well
Tips for using batting average correctly
1
Watch your sample size
Batting average is volatile in small samples. A player going 5-for-15 has a .333 BA, but that means nothing — the actual confidence interval at 15 at-bats is roughly .100 to .560. Wait for at least 100 at-bats before drawing conclusions, and 500+ for a meaningful season-level read.
2
Pair BA with OBP for a fuller picture
Always check OBP alongside batting average. A .250 hitter with a .350 OBP is producing; a .290 hitter with a .310 OBP isn't. The gap between BA and OBP — often called 'isolated patience' or 'walk rate proxy' — is one of the most stable predictive numbers in baseball.
3
Use the slash line (BA/OBP/SLG)
Front offices and analysts use the slash line as a single quick summary. Saying a player is '.275/.350/.450' communicates contact, patience, and power in nine characters. Memorize a few reference lines: .240/.310/.380 is league average; .300/.400/.500 is elite.
4
For cricket, weight by format
Cricket averages aren't comparable across formats. Test averages above 50 are elite; T20 averages above 35 are elite. A T20 specialist with a 28 average might be more valuable in that format than a Test player with a 45. Always check what format an average is from.
5
Not-outs need context in cricket
A batter with many low-score not-outs (#10 and #11 batters often have 20*, 15* type innings) can have an inflated average. Some analysts compute a 'dismissals-only average' by treating not-outs as completed innings, especially when evaluating tail-end batters.
Don't do this
Common batting average mistakes
1
Treating BA as the only hitter metric
Batting average misses walks entirely and treats all hits equally. A player with a .280 BA and 80 walks creates more runs than a .300 hitter with 25 walks. Modern analysis treats BA as one input among several, not the headline number.
2
Including walks in baseball BA
Walks, hit-by-pitch, sacrifice bunts, and sacrifice flies are not at-bats. They don't go in the denominator or numerator of batting average. If you're computing BA manually, make sure your AB number excludes these — many casual stat sites get this wrong.
3
Dividing cricket runs by innings instead of dismissals
A batter with 800 runs in 20 innings, 5 not-out, has 800/15 = 53.33 average, not 800/20 = 40.00. The not-out rule is fundamental — getting it wrong inflates your denominator and depresses every cricketer's average compared to their actual career numbers.
4
Forgetting the leading zero convention
Baseball batting averages drop the leading zero — .275, not 0.275. Spreadsheets often store them as 0.275, which is mathematically correct but unconventional for the sport. When publishing, format with the leading zero stripped to match every box score and broadcast graphic.
5
Comparing across eras without adjustment
League-wide batting average has fluctuated dramatically — .280 in the 1920s, .250 in the 1960s, back to .270 in the 1990s, around .245 today. A .300 in 1968 (the 'Year of the Pitcher') is more impressive than a .300 in 1930. Use OPS+ or wRC+ for cross-era comparisons; raw BA misleads.
Advertisementslot: calc-mid2
Common questions
People also ask
Has anyone ever hit .400 in modern MLB?
Not since Ted Williams hit .406 in 1941. Several players have flirted with it — George Brett hit .390 in 1980, Tony Gwynn was at .394 in the strike-shortened 1994 season, and Larry Walker hit .379 in 1999. But the combination of better pitching, advanced defensive shifts, larger gloves, and improved scouting has made sustained .400 hitting essentially impossible at modern competition levels. Most analysts estimate the modern 'true talent' ceiling for batting average sits around .380.
Why is Don Bradman's 99.94 considered untouchable?
Bradman's Test average across 80 innings (10 not-outs) means he scored roughly 100 runs every time he was dismissed across a 20-year career — through two world wars, multiple opposing teams' best efforts to defeat him, and the pre-WWII bumpy pitches. The next-highest career average among batsmen with 20+ Tests is around 60. The gap of nearly 40 runs is so vast that no rational extrapolation places a modern batter close to it. Sustained excellence at his level simply hasn't recurred.
How is on-base plus slugging (OPS) computed exactly?
OPS = OBP + SLG. The two are added directly even though they have different denominators (OBP uses plate appearances minus sacrifice bunts; SLG uses at-bats), which is a known mathematical inconsistency. Despite that, OPS correlates better with team runs scored than either component alone — it's a useful shortcut that sacrifices theoretical purity for practical predictive power. For more rigor, sabermetrics uses wOBA (weighted on-base average), which applies linear weights to each event type.
What's a 'qualified' batting average?
MLB requires 3.1 plate appearances per team game to qualify for the batting title. Over a 162-game season that's about 502 PAs. Players below that threshold aren't ranked even if their BA is higher — Tony Gwynn's .394 in 1994 didn't count for the batting title in some sources because the strike-shortened season changed qualification rules that year. Cricket uses different conventions per board; ICC typically requires a minimum innings count specific to the competition.
Can OPS exceed 1.000?
Yes — and elite seasons routinely do. The single-season OPS record is Barry Bonds' 1.4217 in 2004. Babe Ruth recorded multiple seasons over 1.300. In 2024, Aaron Judge posted a 1.156 OPS. An OPS above 1.000 is roughly a once-per-team-per-decade event for non-MVP players, and routine for MVP candidates. The theoretical maximum is 5.000 (every PA a walk or home run with sufficient power), but no player has come close in practice.
Frequently asked questions
How is batting average calculated in baseball?
Batting average is hits divided by at-bats — BA = H / AB. Walks, hit-by-pitch, sacrifice bunts, and sacrifice flies do not count as at-bats, so they don't affect batting average. The result is displayed to three decimals with no leading zero: a player with 50 hits in 200 at-bats has a .250 average, not 0.250. The convention dates back to the late 1800s when batting averages were already widely tracked.
What is a good batting average?
.300 is the traditional threshold for an excellent hitter — only about 20–30 qualified MLB players hit .300 in any given season. League average has hovered around .240–.260 for the past decade. Anything above .250 is solid, .275+ is good, .300+ is excellent, and .350+ is historic territory. The all-time single-season record is Hugh Duffy's .440 in 1894; in the modern era (post-1900), Ted Williams' .406 in 1941 was the last .400 season.
What's the difference between BA, OBP, SLG, and OPS?
Batting average only credits hits. On-base percentage (OBP) credits any way of reaching base without an error — hits, walks, and hit-by-pitch — divided by plate appearances. Slugging (SLG) weights extra-base hits: a single = 1 base, double = 2, triple = 3, home run = 4, all divided by at-bats. OPS is just OBP + SLG, a quick composite stat. A .250/.350/.450 slash line means .250 BA, .350 OBP, .450 SLG, and an OPS of .800.
How is cricket batting average different?
Cricket divides total runs by dismissals (not innings). If a batter scores 1000 runs across 25 innings with 5 not-outs, their average is 1000 / (25 - 5) = 50.00. The not-out convention exists because a batter who hasn't been dismissed could theoretically score more — the innings was cut off by the team total or end of match. Cricket averages run much higher than baseball — Don Bradman's 99.94 is the gold standard.
Does the calculator handle sacrifice bunts in OBP?
No — and that's correct. The official OBP formula excludes sacrifice bunts (SH) from the denominator because the batter was deliberately giving themselves up to advance a runner. Only sacrifice flies (SF), which exist exclusively in fly-ball form, count in the denominator. The formula is (H + BB + HBP) / (AB + BB + HBP + SF). MLB has used this version since 1984.
What does OPS+ mean — is it the same as OPS?
OPS+ is a park-and-league-adjusted version of OPS, scaled so that 100 = league average. An OPS+ of 150 means 50% better than league average. The raw OPS this calculator produces is the un-adjusted version. To get OPS+, you need league averages and ballpark factors, which is why specialized sites like Baseball-Reference publish OPS+ — it can't be computed from a single player's line alone.
Why is batting average sometimes called a 'flawed' stat?
Modern analytics (sabermetrics) argues batting average gives equal weight to all hits and ignores walks. A leadoff hitter with 80 walks and a .260 BA might be more valuable than a free-swinger with a .300 BA and only 20 walks, because the walks-to-strikeouts ratio strongly predicts runs scored. That's why OBP and OPS have largely replaced BA in front offices — Moneyball was essentially the story of the Oakland A's exploiting this gap before it was widely understood.
Can I use this for softball or other bat-and-ball sports?
Yes — softball uses the same BA / OBP / SLG / OPS formulas as baseball, so the baseball mode works directly. For cricket-style scoring (T20, ODI, first-class), use the cricket mode. The calculator doesn't have specific modes for stickball or vintage base ball, but the formulas are identical. Any sport where 'hits / at-bats' is the basic rate stat will work in baseball mode.
References
Sources and references
Formulas reflect current MLB and ICC official scoring rules. Historical statistics are sourced from Baseball-Reference and ESPNcricinfo at time of publication.