Sports & Fitness

On-Base Percentage Calculator

Calculate baseball on-base percentage (OBP) from hits, walks, hit-by-pitches, at-bats, and sacrifice flies.


On-Base Percentage Calculator

Advertisement

Find a hitter’s on-base percentage (OBP) — how often they reach base by any means, not just hits.

How it works

OBP is (hits + walks + hit-by-pitch) divided by (at-bats + walks + hit-by-pitch + sacrifice flies): OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF). Unlike batting average, OBP credits a hitter for drawing a walk, not just for getting a hit.

What this does not include

OBP does not weight extra-base hits — a double and a single count the same toward reaching base. Pair it with slugging percentage for a fuller offensive picture.

How to use this calculator

  1. Enter hits, walks, and hit-by-pitches (hit-by-pitch is optional if you don’t track it).
  2. Enter at-bats and sacrifice flies (also optional).
  3. Read off the on-base percentage.

A worked example

150 hits, 50 walks, 5 hit-by-pitch, 500 at-bats, 5 sacrifice flies: OBP = (150+50+5) ÷ (500+50+5+5) = 0.3661.

45 hits, 10 walks, 0 HBP, 180 at-bats, 2 sac flies: OBP = 0.2865.

What the variables mean

Variable Meaning
Hits, walks, HBP Ways a batter safely reaches base
At-bats Official at-bats
Sac flies Sacrifice flies, counted in the denominator but not as a way of reaching base

Edge cases worth knowing

OBP counts walks and hit-by-pitches, unlike batting average, which only counts hits. A patient hitter who draws many walks can have a much higher OBP than their batting average alone would suggest.

Missing hits makes the calculation impossible, so the calculator declines to show a result without it.

Why does OBP use a different denominator than batting average?

Batting average’s denominator (at-bats) excludes walks and sacrifice flies by rule, but OBP needs those plate appearances counted since it’s measuring how often a batter reaches base at all, including via a walk.

What’s a good on-base percentage?

In modern professional baseball, .360 or higher is generally considered strong, and league average tends to sit in the low .300s.

Does OBP count reaching base on an error?

No — reaching base on a fielding error isn’t counted as an official time on base for OBP purposes under standard scoring rules.

Be the first to rate this

Written by

A. Osei

Health and fitness writer

A. Osei writes the health and fitness calculators, covering body composition estimates, energy expenditure, hydration and training loads. These pages are written to be informational rather than advisory: they explain what a population-level formula can and cannot tell an individual, and every health page carries a disclaimer pointing readers to a qualified professional for decisions about their own care.

Reviewed by

N. Haddad

Calculator reviewer — health and fitness

N. Haddad reviews the health and fitness calculators, with particular attention to how population-level formulas are described to individual readers. Review here means checking that thresholds are attributed to a stated source rather than asserted, that estimates are labelled as estimates, and that the required health disclaimer is present and correctly worded.

How we write and review

Related calculators