Batting Average Calculator (AVG, OBP, SLG, OPS)
Enter a season line to get AVG, OBP, SLG and OPS, plus how many hits you need in your next at bats to reach a target average. Use it to work out how to calculate a batting average, or what a hitter needs next to reach .300.
Updated
Report a problem
Formula
AVG = H / ABOBP = (H + BB + HBP) / (AB + BB + HBP + SF)SLG = TB / AB, withTB = singles + 2 x 2B + 3 x 3B + 4 x HRandsingles = H - 2B - 3B - HROPS = OBP + SLG- Hits needed in the next N at bats:
ceil(target x (AB + N) - H), never below 0
These are the standard Major League Baseball definitions.
Worked example
500 AB, 150 H, 30 2B, 5 3B, 20 HR, 60 BB, 5 HBP, 5 SF.
- Singles = 150 - 30 - 5 - 20 = 95, so TB = 95 + 60 + 15 + 80 = 250
- AVG = 150 / 500 = .300
- SLG = 250 / 500 = .500
- OBP = 215 / 570 = .377
- OPS = .377 + .500 = .877
- To reach .320 over the next 100 at bats: .320 x 600 - 150 = 42 hits
When to use it
Use it for a season line, a career total or a box score. The target field answers how many hits you need to reach .300.
Typical values (rules of thumb)
- Around .250 is close to a typical Major League hitter; .300 is regarded as a very good season and .400 has not been reached for a full season since 1941.
- OBP near .320 and OPS near .700 are commonly treated as average, and an OPS above .900 as excellent.
Common mistakes
- Counting walks as at bats. Walks, hit by pitch and sacrifice bunts are not at bats, which is why OBP uses a different denominator than AVG.
How it differs from nearby tools
The era calculator rates pitchers. This page rates hitters, and for a simple "x out of y" ratio the percentage calculator is enough.
Frequently asked questions
How do you calculate batting average?
Divide hits by at bats. A player with 150 hits in 500 at bats has 150 / 500 = .300. Walks, hit by pitch and sacrifice flies are not at bats.
How are OBP, SLG and OPS calculated?
OBP = (H + BB + HBP) / (AB + BB + HBP + SF). SLG = total bases / AB, where total bases = singles + 2 x doubles + 3 x triples + 4 x home runs. OPS is OBP plus SLG. For 500 AB, 150 H, 30 2B, 5 3B, 20 HR, 60 BB, 5 HBP and 5 SF that is .377 + .500 = .877.
How many hits do I need to raise my average?
Hits needed = the target x (AB + next at bats) - current hits, rounded up. To go from 150 for 500 to .320 over the next 100 at bats you need .320 x 600 - 150 = 42 hits.
What is a good batting average?
In Major League Baseball .300 is usually seen as excellent and .250 is close to a typical regular. Levels differ in youth, college and softball play, so compare with your own league. This tool follows the standard MLB definitions.
What is a .400 batting average?
A .400 hitter gets 4 hits in every 10 at bats, such as 240 hits in 600 at bats. The last full season at .400 or better was Ted Williams at .406 in 1941.
How many hits make a .300 average over 600 at bats?
Multiply 600 by .300 to get 180 hits. In the batting average calculator, enter your hits and at bats so far, set the target to .300 and read the hits needed in the next at bats.
What is the difference between batting average and OBP?
Batting average ignores walks. OBP = (H + BB + HBP) / (AB + BB + HBP + SF), so a hitter with 150 hits, 60 walks, 5 hit by pitch and 5 sacrifice flies in 500 at bats hits .300 but has an OBP of 215 / 570 = .377.