Baseball & softball

On-base percentage calculator

The short answer

Five inputs (hits, walks, hit-by-pitches, at-bats, sacrifice flies) give your on-base percentage, how much of it is walks, and where it sits against the MLB average.

  • Link keeps your numbers
  • One-page printout
  • Free, no account

Your result

The 2026 MLB average OBP is .318; yours is .357, 39 points higher, from 218 times on base in 610 counted plate appearances.
On-base percentage.357(152 + 61 + 5) ÷ (540 + 61 + 5 + 4)
Times on base
218
hits plus walks plus hit-by-pitches
Outs made
392
in those plate appearances
Batting average
.281
OBP minus AVG
.076
what walks and HBP add
Walk rate
10%
walks per plate appearance
Share of times on base that came from walks and HBP
30%

What the next plate appearance does to it

ResultNew OBPChange
Hit.358+.001
Walk or hit-by-pitch.358+.001
Out (at-bat).357−.001
Sacrifice fly.357−.001
Sacrifice bunt.357no change

Sacrifice bunts aren't part of the formula, so they leave it unchanged, while a sacrifice fly is treated as an out.

Published seasons to compare with

HitterHBBHBPABSFAVGOBP
Barry Bonds, 200413523293733.362.609
Ted Williams, 194118514534560.406.551
Barry Bonds, 200115617794762.328.515
Aaron Judge, 202217711165705.311.425
Luis Arraez, 20232033545743.354.393
Shohei Ohtani, 20241978166365.310.390
Your line1526155404.281.357

MLB (Stats API) is the source of lines and rates, read 2026-11-24. Nobody recorded sacrifice flies in 1941.

  • Reaching via an error, fielder's choice, dropped third strike or catcher's interference is not counted as getting on base.
  • The denominator adds at-bats, walks, hit-by-pitches and sacrifice flies. Plate appearances run slightly higher because they also count sacrifice bunts and catcher's interference.

Keep going with

The question OBP answers

How often does a hitter get to base? Count the times he does and divide by the chances he had. The MLB glossary frames it as avoiding outs, the batter’s basic task, with OBP showing who manages it best.

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

H = hits, BB = walks (intentional ones included), HBP = hit by pitch, AB = at-bats, SF = sacrifice flies.

Three things put a runner on in this formula: a hit, a walk, or being hit by a pitch. Anything the defence gifts him (an error, a fielder’s choice, a dropped third strike) is excluded because he didn’t earn it.

Sacrifice bunts appear nowhere in the fraction. The glossary reasons that a manager usually orders the bunt, so the hitter isn’t blamed. Sacrifice flies are treated the other way: no one tries to fly out, and so they stay in the denominator.

Run the default numbers

The preset line is 152 H, 61 BB, 5 HBP, 540 AB and 4 SF.

  • Times on base: 152 + 61 + 5 = 218
  • Chances: 540 + 61 + 5 + 4 = 610
  • OBP: 218 ÷ 610 = 0.3574, which reads .357

The same line hits 152 ÷ 540 = .281, so walks and HBP are worth 76 points. Set against the .318 MLB average for 2026, he’s 39 points up on the league.

For a famous test, press Bonds 2004: 135 H, 232 BB, 9 HBP, 373 AB and 3 SF produce 376 ÷ 617 = .609, the number MLB records.

What the number tells you

Rating (FanGraphs rule of thumb) OBP
Excellent .390
Great .370
Above average .340
Average .320
Below average .310
Poor .300
Awful .290

Don’t expect big gaps. From average to great is only 50 points: five extra times on base per 100 plate appearances. Stretch that to a 600-plate-appearance season and it’s 30 outs saved, which is more than a full game’s worth.

Below the headline, the tiles split it up:

  • OBP minus AVG is a patience gauge. League-wide in 2026 it was 74 points (.318 against .244). A much wider gap suggests a selective hitter; a much narrower one, a free swinger.
  • Walk rate divides walks by counted plate appearances; the preset hitter walks 10% of the time.
  • Share of times on base from walks and HBP: 30% for the preset line.

Why OBP beats batting average

Nine innings, 27 outs, no more. A walk doesn’t register in batting average, yet it’s a trip to the plate that cost the team no out, which OBP recognises. Here’s how that plays out for two hitters:

AB H BB AVG OBP
Free swinger 600 170 18 .283 .304
Patient hitter 520 140 120 .269 .409

(Both are presets in the calculator, and their OBP figures include the few hit-by-pitches and sacrifice flies they contain.) The free swinger has the higher average by 14 points. The patient hitter still reaches base around 100 points more often, with roughly 50 fewer outs, across more plate appearances.

Branch Rickey and the statistician Allan Roth worked it out for the Dodgers in the 1940s and 1950s. MLB made it official in 1984.

The what-if table

See what one more plate appearance would do: the table reworks OBP for each possible result. With the preset line, every outcome moves the number by about a point, since 610 chances are already counted. In April the very same table can jump 20 points or more. Sacrifice bunts always show “no change”.

Where OBP falls short

  • One base, one credit. A walk and a home run score identically. Bring in slugging percentage, or take both together as OPS.
  • Intentional walks pad feared hitters. Over half the walks in that 2004 season were intentional. Those walks did save him from making outs, but they reflect the lineup behind him as much as his eye.
  • Scorers make judgement calls. A home scorer who is generous with hits, where others see errors, raises OBP and average together.
  • Small samples mislead. A week tells you nothing. Walk rates are steadier than hit rates, so OBP firms up sooner than batting average, though it still wants a sizeable slice of a season.

The pitcher’s side

Put a pitcher’s hits, walks and hit batters allowed through the formula and out comes OBP against. It’s quoted less than WHIP, which counts walks and hits per inning, but it uses the hitters’ scale: a pitcher can be said to turn the league into .280 OBP hitters.

Questions people ask

What's the formula for on-base percentage?
Count every hit, walk and HBP for the top, then put all of those plus at-bats and sacrifice flies underneath. Try a season of 152 hits, 61 walks, 5 HBP, 540 at-bats and 4 sacrifice flies through it and you get 218 ÷ 610 = .357.
What counts as a good OBP?
League-wide, 2026 came in at .318. FanGraphs' yardstick reads .320 as average, .340 above average, .370 great and .390 excellent, and a whole season above .400 almost never happens.
Is a sacrifice fly bad for OBP?
Yes. It's added to the bottom of the fraction and not the top, so it reads as a chance that failed to reach base. Sacrifice bunts never enter the formula, so they change nothing.
If I reach on an error, does OBP go up?
No. Errors, fielder's choices and dropped third strikes don't count as times on base. The plate appearance is logged as an at-bat, which pulls OBP down just as an out would.
Can OBP end up below batting average?
Barely, and only for someone who almost never walks. The reason is sacrifice flies, which enter OBP's denominator but not batting average's. Picture 30 hits in 100 at-bats, zero walks and 2 sacrifice flies: the average is .300, OBP is .294.
What's the record for OBP in a season?
Barry Bonds holds it with .609 in 2004. The line behind it: 373 at-bats, 135 hits, 9 HBP and 232 walks, 120 of them intentional. Among qualified hitters in MLB records, nobody is higher.
Does OBP equal on-base rate per plate appearance?
Almost. The OBP denominator holds at-bats, walks, HBP and sacrifice flies, while a count of plate appearances adds sacrifice bunts and catcher's interference. OBP skips those, which leaves a season's totals a few apart.

Where the numbers come from

  1. MLB.com glossary: On-base Percentage (OBP)
  2. FanGraphs Library: OBP (rule-of-thumb table)
  3. MLB Stats API: team and player season statistics (league totals 2026 and the benchmark seasons)
Put this calculator on your site

Free for clubs, coaches, schools and blogs. Paste the code and it updates itself.