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.
Your rounds
One row per 18-hole round: the adjusted gross score, and the Course Rating and Slope Rating of the tees you played. PCC is the playing conditions adjustment shown by your golf association (0 on most days).
| # | Date | Score | Rating | Slope | PCC | Differential | Delete |
|---|
Course Handicap for the tees you play
Wins needed for a target
Games behind
Chart: score differentials
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:
- Batting average = hits / at-bats.
- Slugging percentage = total bases / at-bats, where total bases = singles + 2 x doubles + 3 x triples + 4 x home runs.
- On-base percentage = (hits + walks + hit by pitch) / (at-bats + walks + hit by pitch + sacrifice flies). Reaching on catcher interference or obstruction is left out.
- OPS = on-base percentage + slugging percentage.
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
- U or Ctrl+Z: undo the last change
- R: clear every box (Undo brings it back)
- C: copy the result
- Esc leaves a box so the keys above work
- F: full screen
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.