Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

On-Base Percentage Calculator

Hits: enter 0 or more. Prefilled example: 150.

Walks (BB): enter 0 or more. Prefilled example: 60.

Hit by pitch (HBP): enter 0 or more. Prefilled example: 5.

At-bats (AB): enter 1 or more. Prefilled example: 550.

Sacrifice flies (SF): enter 0 or more. Prefilled example: 5.

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.

  1. Hits: enter 0 or more.
  2. Walks (BB): enter 0 or more.
  3. Hit by pitch (HBP): enter 0 or more.
  4. At-bats (AB): enter 1 or more.
  5. Sacrifice flies (SF): enter 0 or more.
  6. 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

  1. Obp=round⁡(h+bb+hbpab+bb+hbp+sf,3)
Symbols used in the formula
SymbolMeaning
hHits
bbWalks (BB)
hbpHit by pitch (HBP)
abAt-bats (AB)
sfSacrifice flies (SF)
ObpOn-base percentage (three decimals)
round(x, d)x rounded to d decimal places, or to a whole number without d.

Worked example

Hits150
Walks (BB)60
Hit by pitch (HBP)5
At-bats (AB)550
Sacrifice flies (SF)5
Plate appearances counted620
  1. Obp=round⁡(150+60+5550+60+5+5,3)=0.347

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.

Related calculators