keisoku

Baseball On-Base Percentage Calculator

Enter hits, walks, hit-by-pitch, at-bats, and sacrifice flies to instantly compute a player's on-base percentage (OBP) to three decimal places. Unlike batting average, OBP credits the value of walks and hit-by-pitches.

Input

Number of hits (H)

Base on balls (BB)

Hit by pitch (HBP)

Plate appearances minus walks, hit-by-pitch, sacrifices, etc. (AB)

Sacrifice flies (SF)

Result

On-base percentage (OBP)

.375

Times on base

195 times

Plate appearances (denominator)

520 PA

As a percentage

37.5 %

FormulaOBP = (H + BB + HBP) / (AB + BB + HBP + SF)
Numerator (times on base)195
Denominator (plate appearances)520

How it works

  • On-base percentage is calculated as (hits + walks + hit-by-pitch) / (at-bats + walks + hit-by-pitch + sacrifice flies) and measures how often a batter reaches base.
  • Unlike batting average, OBP also rewards reaching base via walks and hit-by-pitches, so disciplined hitters with a good eye tend to post an OBP higher than their batting average.
  • Following baseball convention, results are shown to three decimal places, so a .300 mark is written as ".300".
  • The denominator excludes sacrifice bunts and adds only sacrifice flies, which is the standard definition. Enter at-bats as plate appearances minus walks, hit-by-pitch, and sacrifices.
  • Blank fields are treated as 0, and the calculation cannot run when at-bats, walks, hit-by-pitch, and sacrifice flies all sum to zero.
  • Roughly speaking, an OBP above .350 is considered excellent, and around .400 marks top-tier on-base ability.