How to use this calculator
Calculate how often a batter reaches base through a hit, walk, or hit-by-pitch under the standard OBP definition.
- Enter Hits, At-bats, Walks, Hit by pitch, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Baseball on-base percentage explained
OBP counts hits, walks, and hit-by-pitches in the numerator; sacrifice flies join the denominator, while errors and fielder’s choices do not count as qualifying times on base.
Example with entered values
Hits = 104; At-bats = 350; Walks = 42; Hit by pitch = 6; Sacrifice flies = 5.
- On-base percentage: 0.377
The entered line gives (104 + 42 + 6)/(350 + 42 + 6 + 5) = 152/403 ≈ 0.377. That is a 37.7% on-base rate under the standard components, not batting average.
The calculation behind the result
OBP = (H + BB + HBP) / (AB + BB + HBP + SF).
Inputs and units
- Hits
- All credited hits.
- At-bats
- Official at-bats.
- Walks
- Bases on balls.
- Hit by pitch
- Plate appearances ending in HBP.
- Sacrifice flies
- Official sacrifice flies.
Before interpreting the result
Errors and fielder’s choices do not enter the numerator. Sacrifice bunts are excluded.
SLG measures bases from hits. OBP measures qualifying times reaching base.
Frequently asked questions
Does reaching on an error count?
Not in the OBP numerator.
Why include sacrifice flies?
They are part of the standard OBP denominator.
Are intentional walks included?
Yes, when included in the walks input.
How do I use the Baseball on-base percentage calculator?
Enter Hits, At-bats, Walks, Hit by pitch, then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Baseball on-base percentage?
Hits = 104; At-bats = 350; Walks = 42; Hit by pitch = 6; Sacrifice flies = 5. On-base percentage: 0.377 The entered line gives (104 + 42 + 6)/(350 + 42 + 6 + 5) = 152/403 ≈ 0.377. That is a 37.7% on-base rate under the standard components, not batting average.
Method reference: MLB statistical glossary (checked October 15, 2026).
See our calculation methodology.