Batting Average & On-Base Percentage Calculator

Track a hitter's performance with three core baseball stats: batting average (AVG), on-base percentage (OBP), and slugging percentage (SLG). Enter the raw counting stats below to see all three calculated at once.

Batting Average
Batting Average (AVG)
On-Base Percentage (OBP)
Slugging Percentage (SLG)
OPS (OBP+SLG)
Total Bases

About this calculator

Calculate a baseball or softball player's batting average, on-base percentage, and slugging percentage from raw stat inputs.

Frequently Asked Questions

How is batting average calculated?

Batting average equals total hits divided by total at-bats, expressed as a three-decimal number like .300.

How does OBP differ from batting average?

OBP includes walks and hit-by-pitches in addition to hits, divided by at-bats plus walks, hit-by-pitches, and sacrifice flies, giving a fuller picture of how often a player reaches base.

What is a good OPS?

An OPS (on-base plus slugging) above .800 is generally considered very good, while above .900 is excellent at most levels of competitive baseball.