On-Base Percentage Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter hits, walks, hit-by-pitches, at-bats and sacrifice flies to get on-base percentage.
Result
On-base percentage (three decimals)
Plate appearances counted
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.
Search Amazon for baseball scorebooks. Visit Amazon
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Hits: enter 0 or more.
- Walks (BB): enter 0 or more.
- Hit by pitch (HBP): enter 0 or more.
- At-bats (AB): enter 1 or more.
- Sacrifice flies (SF): enter 0 or more.
- Read the result: On-base percentage (three decimals); the panel also shows Plate appearances counted.
How this calculator works
OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF) (MLB Official Baseball Rules, rule 9.21). Reaching on an error or a fielder's choice does not count as getting on base, and sacrifice bunts are left out.
The formula
| Symbol | Meaning |
|---|---|
| Hits | |
| Walks (BB) | |
| Hit by pitch (HBP) | |
| At-bats (AB) | |
| Sacrifice flies (SF) | |
| On-base percentage (three decimals) | |
round(x, d) | x rounded to d decimal places, or to a whole number without d. |
Worked example
| Hits | 150 |
|---|---|
| Walks (BB) | 60 |
| Hit by pitch (HBP) | 5 |
| At-bats (AB) | 550 |
| Sacrifice flies (SF) | 5 |
| Plate appearances counted | 620 |
|---|
On-base percentage (three decimals) 0.347
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What OBP do 150 H, 60 BB and 5 HBP in 550 AB give?
.347 with 5 sacrifice flies: 215 ÷ 620.
What is a good on-base percentage?
In MLB, an OBP of .360 or more is usually considered very good; league averages have been around .310 to .320.