Batting Average Calculator

Work out batting average for baseball, softball or cricket. Solve for hits, at-bats or average, and add OBP, slugging and OPS with a quality rating for your result.

https://hexacalculator.com/calculators/daily/sports/batting-average-calculator

Daily

Sports

Batting Average Calculator

Work out batting average for baseball, softball or cricket. Solve for hits, at-bats or average, and add OBP, slugging and OPS with a quality rating for your result.

Batting Average Calculator

Batting average calculator

Baseball and softball divide hits by at-bats; cricket divides runs by the number of times the batter was dismissed. Pick your sport and the right fields appear.

Also calculate on-base percentage (OBP)

Add walks, hit-by-pitches and sacrifice flies to also get OBP - how often the batter reaches base by any route, not just hits.

Also calculate slugging (SLG) and OPS

Add doubles, triples and home runs to also get slugging percentage (bases per at-bat) and, with OBP on, OPS.

Enter any two of hits, at-bats and batting average - leave the third blank and it is solved for you. Flip on OBP or slugging to add the other stats.

Batting average measures how often a batter gets a hit, but it treats a single like a home run and ignores walks. That is why OBP, SLG and OPS round out the picture.

Loading calculator…

The batting average is one of the oldest and most well-known statistics in sports. It originated from cricket and was later adopted by baseball and softball. In each discipline it serves the same function: to convert the number of hits a player has made over a season into a value that can be used to compare players against each other.

This calculator supports both baseball/softball and cricket. In baseball and softball it divides the number of hits by the number of at-bats. In cricket, it divides the runs scored by the number of batsmen dismissed. Additionally, it includes other modern hitting statistics such as on-base percentage, slugging percentage, and OPS to help you analyze players like a scout would.

Baseball batting average calculation:

The formula for baseball and softball is simple enough: The number of hits is divided by the official at-bats.

BA=HitsAt-Bats\text{BA} = \frac{\text{Hits}}{\text{At-Bats}}

The result is expressed to three decimal places with the decimal point omitted; a batting average of .300 would be read as "three hundred," meaning that 30% of official at-bats resulted in hits. For example, if there are 32 hits out of 127 official at-bats, then the quotient of 32 divided by 127 is .252.

Enter two of the following values: number of hits, number of at bats or batting average and leave the third field blank. The calculator will calculate the missing value. In addition to calculating results from game logs, you can also work backwards to set goals. How many hits are needed to get a .300 batting average with 500 at bats? (150)

What counts as an attempt to strike?

A swing attempt is different from a plate appearance. Hits and outs (strikeouts, groundouts, flyouts, errors) are counted as swings but there are also results that do not count toward the number of swings. By excluding those results, an accurate batting average can be calculated.

Outcome

Counts as an at-bat?

Single, double, triple, home run

Yes - a hit

Strikeout, groundout, flyout

Yes - an out

Walk (base on balls)

No

Hit by pitch

No

Sacrifice bunt or sacrifice fly

No

Catcher's interference

No

Because walks (base on balls) and sacrifice hits are not included in the number of at-bats, two players with the same batting average can have different on-base percentages. The on-base percentage shows this difference exactly.

Is a batting average of .300 good?

In modern Major League Baseball, only about fifteen to twenty players will finish a full season with a batting average of .300 or higher. Thus, this mark has long been considered the benchmark for elite hitters. The league average varies from year to year but is between about .270 (roughly 2000) and about .248 (as of 2023), so these numbers are relative to today's era.

Rating

Average

What it means

Elite

.300 and up

Batting-title contender, top few percent

Great

.280 to .299

All-Star calibre run producer

Above average

.260 to .279

Solid everyday starter

Average

.240 to .259

League-average hitter

Below average

.220 to .239

The bat is a liability

Poor

below .220

At or under the Mendoza Line (.200)

The Mendoza line is named after shortstop Mario Mendoza and serves as a demarcation point for when a player's batting average at a particular position falls below his potential. It is set at .200, while the .400 mark for an entire season has not been surpassed since Ted Williams' .406 (1941).

The same formula is used in softball.

The calculation for softball batting average is exactly the same as baseball: hits divided by at-bats. Because the average is higher, the benchmarks are also higher. In competitive softball, a .284 average in a league would be considered average and anything over .380 would be elite level. The slower game of softball has even higher averages. Calculate your batting average for softball mode and interpret it according to your league's range.

On-base percentage (OBP), slugging percentage (SLG), OPS

The batting average has two weaknesses: it ignores walks and treats singles the same as home runs. These deficiencies can be compensated for by three additional statistics, each of which is explained above.

The on-base percentage summarizes all types of walks.

OBP=H+BB+HBPAB+BB+HBP+SF\text{OBP} = \frac{\text{H} + \text{BB} + \text{HBP}}{\text{AB} + \text{BB} + \text{HBP} + \text{SF}}

The slugging percentage weights hits according to the number of bases gained, making it a measure of hitting power.

SLG=Total BasesAB,TB=1B+22B+33B+4HR\text{SLG} = \frac{\text{Total Bases}}{\text{AB}}, \qquad \text{TB} = 1\text{B} + 2\cdot 2\text{B} + 3\cdot 3\text{B} + 4\cdot \text{HR}

OPS is simply the sum of these two values and a single number that can quickly assess batting performance.

OPS=OBP+SLG\text{OPS} = \text{OBP} + \text{SLG}

The combination of these four numbers is a batter's "slugging line". A hitter with an average batting average but many walks will often have a significantly higher OBP (on-base percentage) than his pure batting average indicates. Conversely, the value of a power hitter is more evident in his slugging average and OPS than it is in his pure batting average.

Cricket batting average calculation:

Cricket uses a completely different formula. Here average is not the frequency of hits but the average score per out.

Average=Runs ScoredInningsNot-Outs\text{Average} = \frac{\text{Runs Scored}}{\text{Innings} - \text{Not-Outs}}

If a player scores 15 runs in 10 innings and is out only once, his average will be 15.00 even if his highest score was a single without dismissal.

Because cricket and baseball use completely different scales for average values, they cannot be directly compared.

Rating

Test average

Note

World-class

50 and up

Among the greats

Very good

40 to 50

Strong top-order bat

Good

30 to 40

Established batter

Above average

20 to 30

Useful contributor

Average

10 to 20

Developing or lower order

Poor

below 10

Room to grow

Sir Donald Bradman's Test match average of 99.94 is the most famous statistic in this sport; it is significantly higher than anyone else's and no one has come close to matching it.

Used symbols:

Symbol

Meaning

H

Hits (singles, doubles, triples, home runs)

AB

Official at-bats

BB

Walks (bases on balls)

HBP

Hit by pitch

SF

Sacrifice flies

TB

Total bases

This tool is for learning and quick estimates. For official results you should refer to the detailed rules of each league regarding borderline cases like errors, fielder's choices and interference. Use these rules when recording official data.

Frequently asked questions

What is a good batting average?

In baseball a .300 or higher batting average is considered the traditional benchmark for a good hitter, between .250 and .275 is considered solid while below about .220 is considered low. About .200 is called the Mendoza line. In softball the benchmarks are higher. In cricket the standards are different: A Test match average of 50 or more is considered world class, between 25 and 40 indicates a good and experienced batsman.

How is batting average calculated?

In baseball and softball, the number of hits is divided by the number of official at-bats, with the result rounded to three decimal places. 32 hits in 127 at-bats gives .252. In cricket, total runs are divided by the number of wickets lost (the difference between the number of innings and the number of "no outs").

What counts as an at-bat?

Both hits and outs are counted as at-bats. Walks, hit by pitches, sacrifice bunts, sacrifice flies, and catcher's interference are not counted. If a player has 25 plate appearances, including three walks, one hit by pitch, and one sacrifice fly, then the official number of at-bats is 20. Therefore, 6 hits would give a .300 batting average, not .240.

What is the difference between batting average, OBP, SLG and OPS?

The batting average is the number of hits divided by the number of at-bats. The on-base percentage (OBP) takes into account walks and hit-by-pitches, and indicates how often a batter gets on base overall. The slugging percentage (SLG) weights more runs per hit higher, thus measuring power hitting. The OPS is the sum of OBP and SLG, and is used to quickly gauge a batter's overall offensive value in a comprehensive way.

Why can a cricket average sometimes be higher than a batsman's highest score?

The average is not divided by the number of innings pitched but rather by the number of points scored, with each out being devalued. An inning ending without an out increases the score but not the number of outs. Thus players who often finish an inning without an out spread their points over fewer outs. If enough innings are played without an out, then the average can exceed the actual points scored in any individual inning.

Related calculators

Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.

References

  1. Wikipedia: Batting average (baseball)

    Definition, the hits-over-at-bats formula, historical leaders and the Mendoza Line.

  2. Wikipedia: Batting average (cricket)

    The runs-per-dismissal formula, the role of not-outs and career records.

  3. MLB.com Glossary: Batting Average

    The official Major League Baseball definition of batting average and at-bats.

  4. FanGraphs: OBP, SLG and OPS

    How on-base percentage, slugging and OPS are built and why they complement batting average.