counter101
EN

Batting Average Calculator

From a season line or a single game, get the batting average plus on-base percentage, slugging and OPS, shown the .300 way with the sum behind each one.

How to use the batting average calculator

Fill in At-bats and Hits for the batting average. Add doubles, triples and home runs for slugging, and walks, hit by pitch and sacrifice flies for on-base percentage; empty boxes count as zero. Hits include the extra-base hits, so a home run goes in both Hits and Home runs, and the calculator works out the singles itself.

The four results sit side by side: AVG, OBP, SLG and OPS, each to three decimals and written without the leading zero, the way a scoreboard shows .300. Under them every formula is repeated with your numbers. So the same page serves as an OBP calculator, a slugging percentage calculator and an OPS calculator. Copy result grabs the whole line for a team chat or spreadsheet, and Share link passes the stat line on. Everything stays on your device.

To collect the numbers during games, keep the line score on the baseball scoreboard or the softball scoreboard. For pitchers there is the ERA calculator, and for team standings the win percentage calculator.

The formulas, with an example

The Official Baseball Rules (Rule 9.21) define them:

Example: 45 hits in 150 at-bats, with 10 doubles, 1 triple, 6 home runs, 15 walks, 2 hit by pitch and 3 sacrifice flies. AVG = 45 / 150 = .300. Singles = 45 - 10 - 1 - 6 = 28, so total bases = 28 + 20 + 3 + 24 = 75 and SLG = 75 / 150 = .500. OBP = (45 + 15 + 2) / (150 + 15 + 2 + 3) = 62 / 170 = .365. OPS = .365 + .500 = .865.

Walks, hit by pitch, sacrifice bunts and sacrifice flies are not at-bats, so they never lower a batting average. A sacrifice fly does count against on-base percentage, because it sits in that denominator.

Keyboard shortcuts

Questions

Is a walk an at-bat?

No. Walks, hit by pitch, sacrifice bunts and sacrifice flies are plate appearances but not at-bats, so they do not change the batting average. Walks and hit by pitch do raise on-base percentage.

Can slugging percentage be higher than 1.000?

Yes. It is bases per at-bat, so a hitter with a home run in every at-bat would slug 4.000. Batting average and on-base percentage can never go above 1.000.

Why is my OPS .001 off from adding OBP and SLG?

The calculator adds the unrounded values and rounds once at the end. Adding two figures that were each rounded to three decimals can land one thousandth away.

Does reaching on an error count as a hit?

No. Reaching on an error or a fielder's choice is an at-bat without a hit, so it lowers the average, and it does not count as reaching base for OBP either.

More in Stats calculators

Put this batting average calculator on your website

Free for classrooms, clubs, blogs and shops: paste this code into any page. It works the same inside your site, and counts stay in each visitor's own browser. For a dark version, add ?theme=dark after /batting-average-calculator/ in the code.