SportStatNow

Guide

How Is OBP Calculated? Sac Flies, Bunts, and the Denominator

The official on-base percentage formula, why sacrifice flies count against you but bunts don't, why reached-on-error is an out, and a fully worked season line.

On-base percentage (OBP) is times reached base — hits, walks, and hit-by-pitches — divided by a denominator that is almost, but deliberately not quite, total plate appearances. The exact official formula, per the MLB glossary, is:

OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF)

Everything interesting about the stat lives in what that denominator includes and excludes.

A worked example

A hitter finishes the season with 165 hits, 60 walks, and 5 hit-by-pitches over 550 at bats, with 4 sacrifice flies:

OBP = (165 + 60 + 5) ÷ (550 + 60 + 5 + 4)
    = 230 ÷ 619
    ≈ .372

That .372 sits well above the .310–.320 league-average range of recent MLB seasons — .360+ is very good, .380+ is excellent, and a .400 OBP over a full season is elite. You can run any line through the OBP Calculator to see the same arithmetic with your numbers.

The denominator rules: sac flies in, sac bunts out

The official definition makes two judgment calls that look inconsistent until you see the reasoning:

  • Sacrifice flies count against you. A sac fly is treated as a real attempt to hit that happened to produce a productive out, so it's an opportunity in the denominator. Hitting a deep fly with a runner on third lowers your OBP.
  • Sacrifice bunts don't. A sac bunt is scored as a manager-directed, deliberate out — the rule treats it as if the plate appearance never happened for OBP purposes.

Catcher's interference is likewise excluded from the denominator. The result: OBP's denominator is not the same as plate appearances, and computing it as "times on base ÷ PA" will produce slightly wrong numbers for players with sac bunts or interference calls.

Reaching base isn't always "reaching base"

Two more scoring subtleties keep OBP honest:

  • Reached on error doesn't count. If the shortstop boots your grounder, you're standing on first, but the play is an at bat with no hit — it lowers your OBP exactly like an out.
  • Fielder's choice doesn't count either. You reached first, but a teammate was erased; the plate appearance is an out for OBP purposes.

OBP credits only outcomes the hitter earned against the pitcher: hits, walks, and wearing the pitch.

Why OBP beats batting average as an out-avoidance stat

Batting average is hits per at bat — it ignores walks and HBP entirely, so a .270 hitter who walks 90 times and a .270 hitter who walks 25 times look identical. OBP counts every earned trip to first, which is why it maps far more directly onto the thing that actually ends innings: outs. A team's offense has 27 of them to spend, and OBP measures how rarely a hitter spends one.

OBP is also half of on-base plus slugging (OPS) — the other half, slugging percentage, measures bases per hit rather than trips to first. Which half drives a player's OPS changes what kind of hitter he is, a split examined in detail in the OPS lineup-construction guide.

Informational only — not a substitute for official league statistics or professional judgment.

Primary source: MLB glossary — On-Base Percentage (OBP)

Last reviewed: July 2026