Health
Batting Average Calculator
Last updated: June 19, 2026
A batting average calculator is a sports statistics utility designed to compute standard offensive metrics for baseball and softball players. It calculates Batting Average (AVG) by dividing hits by at-bats, On-Base Percentage (OBP) by factoring in walks and hit-by-pitches, and Slugging Percentage (SLG) by measuring total bases per at-bat.
Calculate batting average (AVG), on-base percentage (OBP), slugging percentage (SLG), and on-base plus slugging (OPS). Enter hits, at-bats, walks, and total bases to get instant baseball/softball statistics.
Quick Answer
Calculate batting average (AVG) and advanced hitting stats (OBP, SLG, OPS) from hits, at-bats, walks, and total bases.
Batter Record
Optional
Optional
Optional
Optional (used for Slugging %)
Batting average (AVG)
.280
Based on 28 hits in 100 at-bats
Examples
30 hits, 100 at-bats (AVG)
Batting Average: .300
25 hits, 10 walks, 2 HBP, 90 at-bats, 1 SF (OBP)
OBP: .359
100 at-bats, 15 singles, 5 doubles, 2 home runs (SLG)
Total Bases: 33, SLG: .330
How it works
Standard baseball offensive statistics are calculated using hits, walks, at-bats, and base breakdowns:
Batting Average (AVG):
AVG = Hits ÷ At Bats
On-Base Percentage (OBP):
OBP = (Hits + Walks + HBP) ÷ (At Bats + Walks + HBP + SF)
Slugging Percentage (SLG):
SLG = Total Bases ÷ At Bats
On-Base Plus Slugging (OPS):
OPS = OBP + SLG
Related Calculators
More tools from Health
Frequently asked questions
Batting average is calculated by dividing the total number of hits (H) by the total number of official at-bats (AB). It is historically expressed as a decimal rounded to three decimal places (e.g. .300).
Plate appearances include every time a batter completes a turn batting. At-bats are a subset of plate appearances that exclude walks (BB), hit-by-pitches (HBP), sacrifices (bunts/flies), and interference. AVG is calculated using at-bats, not plate appearances.
On-Base Percentage measures how frequently a batter reaches base. The formula is (Hits + Walks + Hit by Pitch) divided by (At Bats + Walks + Hit by Pitch + Sacrifice Flies).
Slugging Percentage measures the power of a hitter by calculating total bases (TB) per at-bat. Single hits count as 1, doubles as 2, triples as 3, and home runs as 4. Walks and hit-by-pitches are excluded.
Related calculators
Education
Average Calculator
Calculate the arithmetic mean, median, mode, range, and weighted average of any list of numbers.
Education
Grade Average Calculator
Average a list of grades with a simple mean or a weighted average, and see the matching letter grade.
Health
Prostate Volume Calculator
Calculate prostate volume using the ellipsoid formula from ultrasound measurements, compute tissue weight, and analyze PSA density.