Batting Average Calculator
Enter hits, at-bats, walks, and extra-base hits to instantly compute batting average, OBP, slugging percentage, and OPS.
Batter Stats
For OBP (optional)
For Slugging % (optional)
Quick Examples
Enter stats on the left to see results
.000
Batting Avg
.000
On-Base %
.000
Slugging %
.000
OPS
—
Singles
—
Total Bases
—
Plate App.
Formulas Used
BA = H ÷ AB
OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)
SLG = (1B + 2×2B + 3×3B + 4×HR) ÷ AB
OPS = OBP + SLG
Singles (1B) are derived as H − 2B − 3B − HR. OBP and SLG are shown as “N/A” when the optional fields are not filled in.
Copied!
Summary
Enter hits, at-bats, walks, and extra-base hits to instantly compute batting average, OBP, slugging percentage, and OPS.
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.
Frequently Asked Questions
Related tools
Last updated: 2026-05-29 ·
Reviewed by Nham Vu