On-Base Percentage Calculator

Calculate a baseball player on-base percentage from hits, walks, hit-by-pitch, at-bats, and sacrifice flies.

Health Sabermetrics MLB benchmarks
Rate this calculator · 3.0 (1)

On-Base Percentage

Baseball OBP · sabermetrics-grade math · MLB benchmarks

Instructions — On-Base Percentage Calculator

1

Enter the four core stats

Hits (H), walks (BB), hit-by-pitch (HBP), and at-bats (AB) come from any standard baseball box score. Sacrifice flies (SF) are optional — default 0 if not tracked.

2

Read the OBP

Result is shown in baseball convention (.342) and as a percentage (34.2%). Both formats appear in coverage; box scores use the.XXX form.

3

Compare to MLB benchmarks

Below.280 is bench-bat territory..310-.330 sits at league average..370+ is All-Star territory. Above.400 is Hall of Fame country.

Quick example: a hitter with 160 H, 60 BB, 5 HBP in 550 AB and 6 SF has OBP = 225 / 621 =.362 (top quartile).
Sacrifice flies count in the denominator only. They are not hits, so they lower OBP slightly compared to ignoring them.

Formulas

OBP measures how often a hitter reaches base by any qualifying means: hit, walk, or hit-by-pitch. The denominator is total plate appearances, with one nuance (sacrifice bunts are excluded; sacrifice flies are included).

On-base percentage
$$ \text{OBP} = \frac{H + BB + HBP}{AB + BB + HBP + SF} $$
H is hits, BB is bases on balls (walks), HBP is hit-by-pitch, AB is at-bats, SF is sacrifice flies. Numerator is on-base events; denominator is qualifying plate appearances.
In plate appearances
$$ \text{OBP} = \frac{\text{On-base events}}{\text{Plate appearances}} $$
Functionally identical, but spelled out. Sacrifice bunts and catcher interference are excluded by MLB convention.
Read as a decimal
$$.342 \equiv 34.2\% \equiv 1\text{ in } 2.92\text{ PA} $$
A.342 OBP means the hitter reaches base in 34.2 percent of qualifying plate appearances, or once every 2.92 trips.
OPS (On-base Plus Slugging)
$$ \text{OPS} = \text{OBP} + \text{SLG} $$
OBP is the better predictor of runs, but OPS blends on-base ability with power..800+ is All-Star,.900+ is MVP-caliber.
Why OBP beats batting average
$$ BA = \frac{H}{AB} $$
Batting average ignores walks and HBP. A walker with a.280 BA can have a.380 OBP, which is far more valuable to a lineup.
Run correlation
$$ r^2 \approx 0.85 $$
Team OBP correlates with run scoring at r-squared near 0.85 in sabermetric studies. Few traditional stats track runs as tightly.

Reference

OBP tiers
OBPTierApproximate slice of MLB hitters
.400+Elite / Hall of FameTop 1-2 percent in any season
.370-.399All-StarTop 5-10 percent
.350-.369Above average regularTop 25 percent
.320-.349League averageMLB mean has hovered.315-.325
.300-.319Below averageBackup or platoon role
Below.300ReplacementRoster pressure

Career OBP leaders (MLB)

PlayerOBPCareer
Ted Williams.4821939-1960
Babe Ruth.4741914-1935
John McGraw.4661899-1906
Billy Hamilton.4551888-1901
Lou Gehrig.4471923-1939
Barry Bonds.4441986-2007

Single-season OBP records

Bonds 2004 sets the all-time mark with 232 walks and a strike zone the league refused to honor.

PlayerSeasonOBP
Barry Bonds2004.609
Barry Bonds2002.582
Ted Williams1941.553
Barry Bonds2001.515
Ted Williams1957.526

Article — On-Base Percentage Calculator

On-base percentage calculator: the baseball stat that predicts runs

On-base percentage (OBP) is the fraction of plate appearances in which a baseball hitter reaches base via a hit, walk, or hit-by-pitch. The formula is (H + BB + HBP) divided by (AB + BB + HBP + SF). League-average OBP in MLB sits near.320, All-Star hitters live above.370, and a single-season.400+ marks Hall-of-Fame quality. Ted Williams holds the career record at.482; Barry Bonds set the single-season mark at.609 in 2004.

OBP corrects the most-cited weakness of batting average: it counts walks and HBP as productive outcomes, the same way runs scored count them. That distinction reshaped how teams build lineups.

What is on-base percentage in baseball?

OBP answers a simple question: how often does this hitter avoid making an out? Each plate appearance ends with the hitter reaching base, making an out, or, very rarely, ending in catcher interference (excluded from the formula). The on-base events the formula counts are hits, walks, and hit-by-pitch. Sacrifice flies appear only in the denominator, because they advance a runner but do not count as the batter reaching base.

The denominator is plate appearances minus sacrifice bunts and catcher interference. Players union and league record-keepers settled on the current formula in 1984 after several decades of competing definitions. MLB added sacrifice flies to the denominator in 1954.

Did you know

OBP existed as a "modern average" in early 20th-century scoresheets, but it was largely ignored until Branch Rickey published "Goodby to Some Old Baseball Ideas" in Life Magazine in 1954. Rickey, the Dodgers GM who signed Jackie Robinson, argued OBP and ISO together explained run production better than the traditional triple-slash.

The on-base percentage formula step by step

OBP = (H + BB + HBP) / (AB + BB + HBP + SF). Worked example: a hitter has 160 hits, 60 walks, 5 HBP, 550 at-bats, and 6 sacrifice flies. Numerator: 160 + 60 + 5 = 225. Denominator: 550 + 60 + 5 + 6 = 621. OBP = 225 / 621 =.3623. By baseball convention this is written ".362" (the leading zero is dropped).

Notice that the at-bats line excludes walks, HBP, and sacrifice flies. Those plate appearances exist, but they are not at-bats. AB is the at-bats column in a box score; PA is the plate-appearances column. The OBP denominator is closer to PA than to AB but subtracts sacrifice bunts and catcher interference.

On-base percentage cheat sheet
OBP (H + BB + HBP) / (AB + BB + HBP + SF)
Read.342 as 34.2 percent
OPS OBP + SLG
League avg ~.320 in modern MLB

On-base percentage vs batting average

Batting average = H / AB. It ignores walks and HBP entirely. Two hitters with identical.280 batting averages can have very different OBPs: one walks 30 times in 600 PA (about a.312 OBP), the other walks 100 times (about a.390 OBP). The second hitter is dramatically more valuable.

The numerical relationship is fixed: OBP is always greater than or equal to BA, because every hit is also an on-base event but the OBP denominator is at least as large. The gap is typically 60 to 80 OBP points for a major-league hitter. A "patient" hitter has a larger gap; a "free-swinging" hitter has a smaller one.

Joe DiMaggio (1941)
.357 BA /.440 OBP
free-swinger, gap = 83
Ted Williams (1941)
.406 BA /.553 OBP
patient hitter, gap = 147

What is a good on-base percentage?

MLB league-average OBP has hovered between.315 and.325 across the 2010s and 2020s. Use the following bands as a quick read:

  • .400+ Elite, Hall-of-Fame trajectory (top 1-2 percent in any season)
  • .370-.399 All-Star caliber (top 5-10 percent)
  • .340-.369 Above-average regular
  • .310-.339 League-average regular
  • .280-.309 Below-average bench / platoon bat
  • Below.280 Replacement-level performance

All-time on-base percentage leaders

Ted Williams sits atop the career list at.482, followed by Babe Ruth at.474 and John McGraw at.466. Williams is the only post-deadball-era hitter to top.480; the other names in the top five played most of their careers before 1925.

The single-season record belongs to Barry Bonds at.609 (2004). Bonds drew 232 walks that year, including 120 intentional walks. Pitchers in 2004 frequently chose to put him on first base rather than throw him strikes. Williams's 1941.553 stood as the modern-era record for 60 years before Bonds broke it.

Tip

When evaluating modern hitters, use OPS+ or wRC+ (park- and league-adjusted). A.390 OBP in 2025 Coors Field is not the same as a.390 in 2024 Tropicana Field; the league-relative metrics correct for stadium and era.

On-base percentage and Moneyball

Bill James and other sabermetricians demonstrated in the 1980s and 1990s that team OBP correlates with run scoring at an r-squared above 0.80. The Oakland Athletics under Billy Beane in 2002-2003 built rosters by targeting walk-heavy hitters whose OBP exceeded their batting average by 80 or more points. Those players cost less than slugger-types of similar overall value, which let a low-payroll Oakland team match high-payroll rivals.

Michael Lewis's Moneyball (2003) made the strategy famous. Within a decade every MLB front office had OBP-weighted models, and the value gap closed. Salary surveys from 2013 onward show no significant discount on high-OBP hitters — the market caught up.

On-base percentage and sample size

OBP stabilizes faster than batting average but still needs a meaningful sample. Sabermetric research puts the half-life of OBP at roughly 300 plate appearances: at that point the observed value carries the same weight as the league-mean prior. A full qualifying season (502 PA) gives a reliable seasonal reading.

Don't trust early-season OBP

A.450 OBP through 75 plate appearances says almost nothing predictive. Walk-rate stability arrives faster than batting-average stability, but neither is meaningful below a few hundred PA.

Common on-base percentage mistakes

The first mistake is treating OBP as if it equaled (H + BB + HBP) / PA. PA includes sacrifice bunts and catcher interference; the OBP denominator excludes both. The second is forgetting to subtract sacrifice bunts when working from PA. The third is comparing OBPs across very different eras without context. 1968 was a.299 league-OBP season; 2000 was a.345 season. A.350 in those two years means very different things.

One final note: OBP is not strategy-aware. A hitter who walks frequently because pitchers fear him produces a high OBP. A hitter who walks frequently because pitchers don't respect his power produces a different kind of high OBP. Both look the same in the box score, but their team value differs.

OBP also misses defensive value and base-running impact. A.340 OBP hitter with elite glove work at shortstop produces more wins than a.380 OBP designated hitter when both bat-only run contribution and defensive runs saved are added. Modern composite metrics like fWAR and bWAR fold OBP into a broader picture, but the simple ratio remains the cleanest signal of a hitter's primary job: do not make outs.

For youth and amateur baseball, where sacrifice flies are rare and HBP is uncommon, the formula simplifies almost to (H + BB) / (AB + BB). The OBP-to-BA gap in amateur ball typically runs 50 to 70 points, narrower than in MLB because high-school and college pitchers walk fewer batters per nine innings on average.

FAQ

OBP = (H + BB + HBP) / (AB + BB + HBP + SF). Add hits, walks, and hit-by-pitch in the numerator. The denominator adds at-bats, walks, HBP, and sacrifice flies. Sacrifice bunts and catcher interference are excluded by MLB rule.
League average sits around .315-.325. Above.340 is starting-caliber..370+ is All-Star territory..400+ marks elite, Hall-of-Fame-pace seasons. Below.300 typically pushes a player to the bench.
Career: Ted Williams at.482. Single season: Barry Bonds at.609 in 2004. Bonds drew 232 walks that year because pitchers refused to throw strikes, inflating both his walks and his OBP.
Batting average ignores walks and hit-by-pitch, both of which put a runner on base. A patient hitter with a.280 average can have a.380 OBP, which is far more valuable. Sabermetric studies put team OBP correlation with runs at r-squared near 0.85.
They are in the denominator but not the numerator. A sacrifice fly does not count as an on-base event, but it counts as a plate appearance. This lowers OBP slightly compared to ignoring them entirely. MLB added SF to the formula in 1954.
OPS = OBP + SLG. It combines on-base ability with slugging (extra-base power). An.800 OPS is All-Star caliber;.900+ is MVP territory. Bonds 2004 set the OPS record at 1.422.
Sabermetric work suggests OBP stabilizes around 300-400 plate appearances. Below 100 PA, sample-size noise dominates. A full MLB qualifying season (502 PA) gives a reliable reading.
A team has only 27 outs per game. Each on-base event — hit, walk, or HBP — preserves outs and creates run-scoring opportunities. The Oakland Moneyball Athletics built their 2002-03 success on undervalued walks.