Baseball & softball

On-base percentage calculator

Enter hits, walks, hit-by-pitches, at-bats and sacrifice flies to get on-base percentage, with the share that comes from walks and a comparison with the MLB average.

Shareable link Printable report Free, no sign-up

Results

On base 218 times in 610 counted plate appearances: an OBP of .357, 39 points above the 2026 MLB average of .318.
On-base percentage.357(152 + 61 + 5) ÷ (540 + 61 + 5 + 4)
Times on base
218
hits + walks + 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 from walks and HBP
30%

What the next plate appearance does

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

A sacrifice bunt is left out of the formula, so it changes nothing. A sacrifice fly counts as an out.

Published seasons for comparison

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

Lines and rates as published by MLB (Stats API), read 2026-11-24. Sacrifice flies were not recorded in 1941.

  • Reaching on an error, a fielder's choice, a dropped third strike or catcher's interference does not count as a time on base.
  • The denominator is at-bats + walks + hit-by-pitches + sacrifice flies. It is slightly smaller than plate appearances, which also include sacrifice bunts and catcher's interference.

What on-base percentage measures

On-base percentage (OBP) is how often a batter reaches base per plate appearance. MLB’s glossary puts the idea in one line: a hitter’s goal is to avoid making an out, and OBP shows which hitters do that best.

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

H is hits, BB is walks (intentional walks included), HBP is times hit by a pitch, AB is at-bats and SF is sacrifice flies.

Three things count as reaching base: a hit, a walk and a hit-by-pitch. Reaching on an error, a fielder’s choice or a dropped third strike does not count, because the batter did not earn the base.

Sacrifice bunts are missing from both halves of the fraction. The reasoning in the glossary is that a bunt is usually the manager’s decision, so the hitter should not be punished for it. Sacrifice flies are treated differently: nobody tries to fly out, so they stay in the denominator.

Worked example

The default line: 152 hits, 61 walks, 5 hit-by-pitches, 540 at-bats, 4 sacrifice flies.

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

The batting average for the same line is 152 ÷ 540 = .281. The gap of 76 points is what the walks and hit-by-pitches add. The MLB average in 2026 was .318, so this hitter is 39 points above the league.

To check the formula against a famous line, press Bonds 2004: 135 hits, 232 walks, 9 hit-by-pitches, 373 at-bats and 3 sacrifice flies give 376 ÷ 617 = .609, the figure MLB lists.

Reading the result

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

The scale is narrow. The difference between an average hitter and a great one is 50 points, which is five extra times on base per 100 plate appearances. Over a 600-plate-appearance season that is 30 fewer outs, more than a full game’s worth.

The tiles under the headline split the result:

  • OBP minus AVG shows how much of the on-base skill comes from patience. League-wide the gap was 74 points in 2026 (.318 against .244). A much larger gap marks a selective hitter and a much smaller one a free swinger.
  • Walk rate is walks per counted plate appearance. The default line walks 10% of the time.
  • Share of times on base from walks and HBP is 30% for the default line.

Why analysts prefer OBP to batting average

An offence has 27 outs to spend in a nine-inning game. Batting average ignores a walk; OBP counts it as what it is, a plate appearance that did not cost an out. Two hitters show the difference:

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

(Both lines are presets in the calculator; the OBP figures include the few hit-by-pitches and sacrifice flies in those presets.) The free swinger has the better average by 14 points. The patient hitter reaches base about 100 points more often and makes about 50 fewer outs, in more plate appearances.

OBP was developed in the 1940s and 1950s by Branch Rickey and the statistician Allan Roth with the Dodgers, and MLB made it an official statistic in 1984.

What the next plate appearance does

The table on the page recalculates OBP after one more plate appearance of each kind. For the default line every result moves the number by about a point, because 610 chances are already banked. Early in a season the same table shows swings of 20 points or more. A sacrifice bunt always shows “no change”.

Limits

  • It treats all times on base alike. A walk and a home run each count once. Pair OBP with slugging percentage, or read both at once as OPS.
  • Intentional walks inflate it for feared hitters. More than half of the walks in the 2004 line above were intentional. They still kept the hitter from making outs, but they say as much about the lineup behind him as about his eye.
  • Errors are scored by a person. A generous hometown scorer who turns errors into hits raises OBP and batting average together.
  • Small samples. A week of plate appearances proves little. On-base percentage settles faster than batting average because walk rates are steadier than hit rates, but it still needs a large part of a season.

For pitchers

OBP against uses the same formula with the hits, walks and hit batters a pitcher allows. It is less common than WHIP, which counts walks and hits per inning, but it has one advantage: it is on the same scale as the hitters’ statistic, so you can say that a pitcher turns the league into .280 OBP hitters.

Frequently asked questions

How do you calculate on-base percentage?
Add hits, walks and hit-by-pitches, then divide by at-bats plus walks plus hit-by-pitches plus sacrifice flies. With 152 hits, 61 walks, 5 hit-by-pitches, 540 at-bats and 4 sacrifice flies: 218 ÷ 610 = .357.
What is a good on-base percentage?
The MLB average was .318 in 2026. FanGraphs' rule of thumb calls .320 average, .340 above average, .370 great and .390 excellent. A full season above .400 is rare.
Does a sacrifice fly lower on-base percentage?
Yes. A sacrifice fly is in the denominator and not in the numerator, so it counts as a failed chance to reach base. A sacrifice bunt is left out of the formula entirely and changes nothing.
Does reaching on an error count toward OBP?
No. Reaching on an error, on a fielder's choice or on a dropped third strike is not a time on base in the formula. The plate appearance still counts as an at-bat, so it lowers OBP like an out.
Can on-base percentage be lower than batting average?
Yes, but only slightly and only for a hitter with almost no walks. Sacrifice flies add to the OBP denominator and not to the batting average denominator. A hitter who is 30 for 100 with no walks and 2 sacrifice flies has a .300 average and a .294 OBP.
What is the highest on-base percentage in a season?
Barry Bonds reached base at a .609 rate in 2004, with 135 hits, 232 walks (120 of them intentional) and 9 hit-by-pitches in 373 at-bats. It is the highest figure for a qualified hitter in MLB records.
Is OBP the same as plate appearances that end on base?
Almost. The denominator is at-bats, walks, hit-by-pitches and sacrifice flies. Plate appearances also include sacrifice bunts and catcher's interference, which OBP ignores, so the two totals differ by a few per season.

Sources

  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)

Embed this calculator

Free for clubs, coaches, schools and blogs. Copy the code below; it stays up to date by itself.