Batting average only counts hits. On-base percentage counts everything that puts a hitter on base: hits, walks and times hit by pitch. That makes OBP a fairer measure of a hitter, because a walk helps the team just as much as a single. A player who hits .250 but walks a lot can be more valuable than a player who hits .280 and never walks.
This calculator works out OBP from the five numbers that go into it. Type in the hits, walks, hit by pitch, at-bats and sacrifice flies, and it shows the OBP at once, plus the batting average for comparison. The tool is free, works in your browser and needs no sign-up.
How to use the calculator
- Enter the hits. These are singles, doubles, triples and home runs together.
- Enter the walks, also called bases on balls.
- Enter the times hit by pitch.
- Enter the at-bats. Do not include walks or hit by pitch here, because at-bats only count official batting chances.
- Enter the sacrifice flies. These count in the OBP denominator but not in the batting average denominator.
- Press the button. The result updates live when you change any number.
The formula is simple: add hits, walks and hit by pitch, then divide by at-bats plus walks plus hit by pitch plus sacrifice flies.
Worked example
Take a hitter with 90 hits, 40 walks, 5 times hit by pitch, 400 at-bats and 5 sacrifice flies. Add the top: 90 plus 40 plus 5 is 135 times on base. Add the bottom: 400 plus 40 plus 5 plus 5 is 450 plate appearances that count. Divide 135 by 450 and the answer is 0.300. In baseball this is written as .300. The batting average for the same player is 90 divided by 400, which is .225. So the OBP is 75 points higher than the average, because the walks lift it. The calculator calls .300 a solid OBP and suggests tracking the next 50 plate appearances to see if the rate holds.
Try a patient hitter: 150 hits, 60 walks, 10 hit by pitch, 500 at-bats and 8 sacrifice flies. The top is 220 and the bottom is 578, which gives .381. That is an excellent OBP, the kind that leads a league.
When this calculator is useful
- Comparing two hitters. One hits .280 with few walks, the other hits .260 with many walks. The OBP shows which one actually reaches base more often, which is what scores runs.
- Setting a lineup. High-OBP hitters belong near the top of the order, where their trips to base turn into runs. This tool helps a coach sort the order by real value, not just batting average.
- Tracking a player over a season. OBP steadies faster than batting average, so checking it every few weeks shows whether a player’s approach at the plate is improving.
Limitations to keep in mind
OBP treats a walk and a home run as equals, and they are not: a home run scores runs by itself, while a walk needs help. That is why analysts also look at slugging percentage. OBP also ignores defence, base running and the quality of the pitching faced. Small samples are noisy: ten plate appearances tell you almost nothing. Use at least 100 plate appearances before you judge a hitter, and look at OBP together with average and slugging for the full picture.
Frequently asked questions
What is a good OBP?
As a rough guide, .320 is about average for a regular hitter in the major leagues, .350 is good, and anything above .400 over a full season is outstanding. A .300 OBP is playable but below average, and below .280 is a problem for a starter.
Why do walks count in OBP?
Because a walk puts the hitter on base and moves runners, just like a single. A player who takes walks helps the team score, so leaving walks out would punish patient hitters. Batting average ignores walks, which is exactly why OBP was created.
Why do sacrifice flies count in OBP but not in batting average?
A sacrifice fly is a choice to trade an out for a run. In batting average it is not counted as an at-bat, so the hitter is not punished. In OBP it counts in the denominator, because the hitter did use up a plate appearance without reaching base. The rule keeps the two stats consistent with their own ideas.
What is the difference between OBP and batting average?
Batting average is hits divided by at-bats. OBP is times on base divided by plate appearances that count. OBP is almost always higher, because walks and hit by pitch lift it. If a player’s OBP is barely above his average, he almost never walks, and that is a weakness pitchers will exploit.
También disponible en español: Calculadora de porcentaje de embasado de béisbol
