Batting Average Calculator
Enter hits, at-bats, walks, and extra-base hits to instantly compute batting average, OBP, slugging percentage, and OPS.
Use the Batting Average Calculator
Batter Stats
For OBP (optional)
For Slugging % (optional)
Quick Examples
Enter stats on the left to see results
Formulas Used
Singles (1B) are derived as H − 2B − 3B − HR. When optional fields are blank, OBP treats BB, HBP, and SF as zero; SLG and OPS remain “N/A” until extra-base-hit inputs are supplied.
Summary
Batting average (BA) is the most recognized hitting statistic in baseball, measuring how often a batter gets a hit per at-bat. On-base percentage (OBP) expands on that by including walks and hit-by-pitches, while slugging percentage (SLG) weights hits by their extra-base value. OPS — the sum of OBP and SLG — is the most widely used single-number summary of offensive production at the major-league level.
How it works
- Enter the batter's total hits (H) and at-bats (AB) for the period you want to analyze.
- Add walks (BB) and hit-by-pitches (HBP) to enable OBP calculation.
- Enter extra-base hit counts (doubles, triples, home runs) to enable slugging percentage.
- The calculator applies the official MLB formulas: BA = H/AB, OBP = (H+BB+HBP)/(AB+BB+HBP+SF), SLG = Total Bases/AB.
- Sacrifice flies (SF) are optional but improve OBP accuracy when provided.
- Click Calculate to see all four stats alongside quality ratings.
Use cases
- Evaluate a batter's performance across a full season or a hot streak.
- Compare multiple hitters on your fantasy baseball roster.
- Track a youth or amateur player's offensive development over time.
- Analyze historical boxscores and compute stats not listed in older records.
- Coach a team and benchmark batters against league-average thresholds.
- Understand the difference between batting average and more advanced metrics like OPS.
- Quickly verify stat calculations from a baseball card or reference.