About the On-Base Percentage Calculator
This on-base percentage calculator measures how often a batter reaches base safely. Enter hits, walks (including intentional walks), times hit by a pitch, official at-bats and sacrifice flies, and it returns OBP in the familiar three-decimal format, along with batting average and the gap between the two.
OBP is one of the most useful single numbers for a hitter because it captures the most basic job at the plate: not making an out. It is popular with coaches choosing a leadoff hitter, fantasy players in OBP leagues, and anyone keeping a youth or softball scorebook who wants a fairer picture than batting average alone.
The calculator uses the official MLB definition. Reaching base on an error, a fielder’s choice, a dropped third strike or catcher’s interference does not count as reaching base for OBP, and sacrifice bunts are left out of the denominator entirely.
With the default inputs, the on-base percentage (obp) is 0.377. Change any value above to recalculate instantly.
How to use the on-base percentage calculator
- 1Enter the batter’s total hits.
- 2Add walks (including intentional walks) and times hit by a pitch.
- 3Enter official at-bats and sacrifice flies.
- 4Read OBP and compare it with batting average to see the value of walks.
Formula and method
On-base percentage divides the number of times a batter reached base by hit, walk or hit-by-pitch by the plate appearances that count for OBP: at-bats plus walks, hit-by-pitches and sacrifice flies. Sacrifice flies are included in the denominator because the batter put the ball in play and made an out, while sacrifice bunts are excluded as a deliberate team play.
Reaching on an error or fielder’s choice counts as an at-bat but not as a time on base, so it lowers OBP. The result is a proportion between 0 and 1, conventionally written to three decimals without the leading zero (.377).
- H
- Hits
- BB
- Bases on balls (walks), including intentional walks
- HBP
- Times hit by a pitch
- AB
- Official at-bats
- SF
- Sacrifice flies
Worked examples
Patient everyday hitter
150 hits, 70 walks and 6 HBP make 226 times on base. The denominator is 520 + 70 + 6 + 4 = 600, so OBP is 226 ÷ 600 = .3767, shown as .377 — nearly 90 points above the .288 batting average.
Single game: 1-for-3 with a walk and a HBP
One hit, one walk and one HBP are 3 times on base in 5 plate appearances (3 AB + 1 BB + 1 HBP), an OBP of .600 even though the batting average is only .333.
Free swinger with few walks
162 times on base in 568 OBP plate appearances gives .285 — only about 30 points above the .259 batting average, because the hitter rarely walks.
Frequently asked questions
How do you calculate on-base percentage?+
Add hits, walks and hit-by-pitches, then divide by the sum of at-bats, walks, hit-by-pitches and sacrifice flies. For example, (150 + 70 + 6) ÷ (520 + 70 + 6 + 4) = 226 ÷ 600 = .377.
What is a good OBP in baseball?+
In recent MLB seasons the league-average OBP has been roughly .310 to .320. An OBP of .350 is good, .370 is very good and .400 or higher is elite over a full season.
Does reaching on an error count for OBP?+
No. Reaching base on an error, fielder’s choice or dropped third strike counts as an at-bat but not as a time on base, so it lowers on-base percentage just like an out does.
Why are sacrifice flies in the OBP formula but not sacrifice bunts?+
A sacrifice fly is counted in the denominator because the batter swung and made an out while driving in a run. Sacrifice bunts are excluded entirely because they are treated as a deliberate team play.
Can OBP be lower than batting average?+
Yes, but rarely. A hitter with very few walks or HBP and several sacrifice flies can post an OBP slightly below batting average, because sacrifice flies add to the OBP denominator but not to at-bats.