OBP Calculator

Calculate on-base percentage (OBP) from hits, walks, hit-by-pitch, at-bats, and sacrifice flies. OBP = (H + BB + HBP) / (AB + BB + HBP + SF).

On-Base Percentage

.377

Excellent

Times on base
215
Plate appearances
570

OBP = (H + BB + HBP) / (AB + BB + HBP + SF). It captures how often a hitter reaches base by any means except errors and fielder's choice.

Get Weekly Training Tips

Join our newsletter for expert insights, training advice, and performance tips delivered to your inbox.

No spam, unsubscribe anytime. We respect your privacy.

Calculation Method

On-base percentage (OBP) measures how often a hitter reaches base safely — by a hit, a walk, or a hit-by-pitch. Because a runner on base can score and a batter who makes an out cannot, OBP correlates with run scoring far more strongly than batting average does. This calculator combines all the ways a hitter avoids making an out and divides by every chance they had to do so.

The OBP Formula

OBP = (H + BB + HBP) / (AB + BB + HBP + SF)
  • H = hits, BB = walks (bases on balls), HBP = hit by pitch
  • AB = at-bats, SF = sacrifice flies

Note that sacrifice flies appear in the denominator but sacrifice bunts do not — a quirk of the official rule. Reaching on an error or a fielder's choice does not count as reaching base for OBP purposes.

Worked Example

A hitter has 150 hits, 60 walks, 5 HBP, 500 at-bats, and 5 sacrifice flies:

  • Times on base: 150 + 60 + 5 = 215
  • Plate appearances counted: 500 + 60 + 5 + 5 = 570
  • OBP: 215 / 570 = .377

A .377 OBP is excellent — this hitter avoids an out in well over a third of their trips to the plate.

OBP Benchmarks

OBP Rating
.400+Elite
.360 – .399Excellent
.330 – .359Above average
.310 – .329Average
Below .310Below average

Why OBP Beats Batting Average

A walk is nearly as valuable as a single for run creation, yet batting average ignores it. The popularization of OBP — central to the "Moneyball" approach — reflected a recognition that the most important offensive skill is simply not making outs. A hitter with a modest average but a high walk rate can be a top-of-the-order asset.

The Sacrifice-Fly Quirk

OBP's denominator is one of the stranger conventions in baseball: sacrifice flies count against you but sacrifice bunts do not. The reasoning is that a fly-ball out that drives in a run still represents a failure to reach base, whereas a bunt is treated as a deliberate, strategic giveaway. Whatever the logic, it means two outs that look similar can affect OBP differently.

OBP and Leadoff Hitters

Because the leadoff spot bats most often and sets the table for the power hitters behind it, on-base percentage is the single most important trait for that role. A leadoff hitter who reaches base 38% of the time creates dramatically more scoring chances over a season than one who hits for a flashy average but rarely walks.

Note: This calculator is for educational use only. Official OBP applies precise scoring rules that may produce small differences.

Frequently Asked Questions

How do you calculate OBP?

OBP = (hits + walks + hit-by-pitch) / (at-bats + walks + hit-by-pitch + sacrifice flies). It measures how often a batter reaches base, including via walks.

What is a good OBP?

.360 or higher is very good, around .320 is average, and below .300 is poor. Elite on-base hitters can exceed .400.

Why is OBP considered better than batting average?

OBP counts walks and hit-by-pitches, so it captures plate discipline and the full value of not making an out. Avoiding outs is the core of scoring runs, which is why analysts favor OBP.