On-Base Percentage Calculator

On-base percentage (OBP) measures how often a batter reaches base, counting hits, walks, and hit-by-pitches. The formula is OBP = (Hits + Walks + HBP) / (At-Bats + Walks + HBP + Sacrifice Flies). Unlike batting average, OBP credits a batter for every time they avoid making an out and reach base safely, which is why FanGraphs ranks it among the most valuable offensive stats(opens in new tab).

The calculator below handles OBP for baseball and softball, with an expandable section for slugging percentage and OPS. Enter your numbers, see where the result falls on the rating scale, and use the reference tables to compare across levels.

On-Base Percentage Calculator

Enter hits, at-bats, walks, hit-by-pitches, and sacrifice flies below. The calculator returns your OBP with a quality rating based on MLB benchmarks. Expand the SLG section to add doubles, triples, and home runs for a full OPS calculation.

On-Base Percentage Calculator

Enter hits, at-bats, and walks to calculate on-base percentage.

How Is On-Base Percentage Calculated in Baseball?

On-base percentage is calculated by dividing the number of times a batter reaches base (hits, walks, hit-by-pitches) by their total plate appearances that count toward OBP (at-bats, walks, hit-by-pitches, sacrifice flies). In formula form:

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

Step-by-Step Example

A high school player finishes the season with 45 hits, 150 at-bats, 22 walks, 3 hit-by-pitches, and 4 sacrifice flies.

  • Numerator: 45 + 22 + 3 = 70
  • Denominator: 150 + 22 + 3 + 4 = 179
  • OBP: 70 / 179 = .391

That player's batting average would be 45/150 = .300. The gap between .300 (BA) and .391 (OBP) represents 25 additional times the batter reached base through plate discipline rather than hits. For coaches evaluating lineup construction, those 25 extra baserunners create scoring opportunities that batting average alone would miss.

What Counts in the OBP Formula

Plate AppearanceAdded to Numerator?Added to Denominator?Why
Hit (1B, 2B, 3B, HR)YesYes (as AB)Batter reached base via hit
Walk (BB)YesYesBatter reached base via walk
Hit by Pitch (HBP)YesYesBatter reached base, not their fault
Sacrifice Fly (SF)NoYesOut was made, but productive
Sacrifice BuntNoNoExcluded from OBP entirely
Strikeout, Flyout, GroundoutNoYes (as AB)Batter made an out
Reached on ErrorNoYes (as AB)Fielder's mistake, not batter skill
Catcher InterferenceNoNoDefensive error, excluded

Sacrifice bunts and catcher interference are excluded from the denominator entirely, meaning they do not affect OBP at all. Sacrifice flies count in the denominator but not the numerator, which is why a sac fly lowers your OBP even though it produces a run.

Does OBP Include Walks?

Yes. Walks are one of the three ways a batter can add to the OBP numerator (along with hits and hit-by-pitches). This is the core difference between OBP and batting average: BA ignores walks completely, while OBP treats a walk as equally valuable to a single for the purpose of reaching base.

Why Walks Matter for OBP

Consider two hitters over a full season:

PlayerHitsABBBHBPSFBAOBP
Player A1405007554.280.377
Player B1555002025.310.336

Player B has a better batting average (.310 vs. .280), but Player A reaches base more often (.377 vs. .336) because of 75 walks compared to 20. Over a 162-game season, Player A's walk rate gives their team nearly 60 more baserunners than batting average alone would suggest. That gap shows up in run production.

Intentional Walks and OBP

Intentional walks count as regular walks in the OBP formula. A batter who receives 20 intentional walks in a season gets 20 free additions to the numerator and denominator. This is one reason sluggers with high intentional walk totals (like Barry Bonds, who drew 120 IBBs in 2004) can post extremely high OBPs even in seasons where their batting average is not historically elite.

What Is a Good On-Base Percentage?

At the MLB level, a good on-base percentage falls between .330 and .370. The league-wide average has hovered around .310 to .320 in recent seasons(opens in new tab), so anything above .340 puts a hitter in above-average territory. The thresholds change by level of play because pitching quality and walk rates vary significantly.

OBP Benchmarks by Level

LevelEliteGoodAverageNotes
MLB.400+.340 - .399.310 - .339League avg ~.315 (2023)
NCAA D1 Baseball.430+.370 - .429.330 - .369Higher walk rates than pro ball
High School Baseball.470+.400 - .469.340 - .399Wide pitching talent gaps
Youth Baseball (12U).530+.430 - .529.350 - .429More walks, fewer strikeouts
NCAA D1 Softball.470+.390 - .469.330 - .389Shorter pitching distance
High School Softball.500+.420 - .499.350 - .419Variable pitching quality

Youth OBP numbers tend to run higher because younger pitchers issue more walks and pitch at lower velocity. A .400 OBP in 12U ball reflects a different competitive environment than a .400 OBP at the college level. When tracking a player's development from travel ball to high school, expect OBP to drop as pitching improves, even if the hitter's plate discipline has actually gotten better.

Is .376 a Good OBP? OBP Rating Scale

A .376 OBP is very good. At the MLB level, it falls in the "Great" tier, meaning the batter reaches base at a rate better than roughly 80% of major leaguers. Only about 20 to 30 qualified hitters finish an MLB season with an OBP of .376 or higher.

OBP Rating Scale (MLB Standard)

RatingOBP RangeWhat It Means
Excellent.390+MVP-caliber, top of the league
Great.370 - .389All-Star level, strong plate discipline
Above Average.340 - .369Solid everyday contributor
Average.320 - .339League average on-base ability
Below Average.310 - .319Struggles to get on base consistently
Poor.300 - .309Limited on-base production
AwfulBelow .300Significant offensive liability

Is a .500 OBP Good?

A .500 OBP means the batter reaches base in half their plate appearances. That is exceptional by any standard. Only a handful of MLB seasons in history have produced a .500+ OBP. Barry Bonds holds the single-season record at .609 in 2004(opens in new tab), a number inflated by 232 walks (120 intentional). Ted Williams posted .553 in 1941, the year he hit .406. For youth and high school players, .500 is reachable because of higher walk rates, but it remains rare at the college level and almost unheard of in professional baseball without extreme walk totals.

Slugging Percentage Calculator

Slugging percentage (SLG) measures a batter's power output by assigning weighted values to each type of hit. The formula: SLG = Total Bases / At-Bats. A single counts as 1 base, a double as 2, a triple as 3, and a home run as 4. Unlike OBP, slugging does not include walks at all.

SLG Formula Breakdown

Total Bases = (Singles x 1) + (Doubles x 2) + (Triples x 3) + (Home Runs x 4). To find singles, subtract doubles, triples, and home runs from total hits.

Step-by-Step Example

A player has 120 hits in 450 at-bats: 75 singles, 28 doubles, 5 triples, and 12 home runs.

  • Total Bases: (75 x 1) + (28 x 2) + (5 x 3) + (12 x 4) = 75 + 56 + 15 + 48 = 194
  • SLG: 194 / 450 = .431

SLG Rating Scale (MLB Standard)

RatingSLG RangeWhat It Means
Elite.500+Top-tier power hitter
Great.450 - .499Strong extra-base hit production
Above Average.400 - .449Solid power for the position
Average.370 - .399League average power
Below Average.320 - .369Contact-oriented, limited power
PoorBelow .320Minimal extra-base production

The calculator at the top of this page includes a SLG section. Enter your extra-base hit totals alongside your OBP inputs to see both numbers at once.

On-Base Plus Slugging (OPS)

OPS stands for On-Base Plus Slugging. The formula is straightforward: OPS = OBP + SLG. It combines a batter's ability to reach base (OBP) with their power production (SLG) into a single number. While OPS is not a perfect stat (it weights SLG and OBP equally, even though research shows OBP is roughly 1.8 times more valuable than SLG(opens in new tab) for scoring runs), it remains one of the most widely cited offensive metrics because of its simplicity.

OPS Rating Scale (MLB Standard)

RatingOPS RangeWhat It Means
Excellent1.000+MVP candidate, franchise-caliber hitter
Great.900 - .999All-Star level, top of lineup
Above Average.800 - .899Quality everyday starter
Average.710 - .799League average offensive production
Below Average.670 - .709Needs defensive value to justify spot
Poor.600 - .669Below average offensive production
AwfulBelow .570Significant offensive struggle

OBP vs. SLG: Which Matters More?

StatWhat It MeasuresIncludes Walks?Measures Power?Most Useful For
OBPHow often a batter reaches baseYesNoEvaluating plate discipline and lineup construction
SLGAverage bases per at-batNoYesEvaluating power production and extra-base ability
OPSCombined on-base and powerYes (via OBP)Yes (via SLG)Quick overall offensive evaluation

For youth and high school coaches looking for one stat beyond batting average, OBP is the most valuable starting point. It rewards the plate discipline that young hitters need to develop. SLG and OPS become increasingly useful at the college and professional level, where power production separates roster spots.

How to Calculate OBP in Excel

If you track stats in a spreadsheet, you can calculate OBP with a single formula. Assuming your data is laid out with hits in column B, at-bats in column C, walks in column D, hit-by-pitches in column E, and sacrifice flies in column F:

=(B2+D2+E2)/(C2+D2+E2+F2)

Complete Stat Row in Excel

ColumnStatFormula
BHits (H)Manual entry
CAt-Bats (AB)Manual entry
DWalks (BB)Manual entry
EHit by Pitch (HBP)Manual entry
FSacrifice Flies (SF)Manual entry
GDoubles (2B)Manual entry
HTriples (3B)Manual entry
IHome Runs (HR)Manual entry
JBatting Average=B2/C2
KOBP=(B2+D2+E2)/(C2+D2+E2+F2)
LSLG=((B2-G2-H2-I2)+G2*2+H2*3+I2*4)/C2

Format column K as "Number" with 3 decimal places to display OBP in standard .XXX format. For a roster of 15 players, copy the formula down to auto-calculate each player's OBP as you enter game data.

Google Sheets Tip

The same formula works in Google Sheets without modification. If you want conditional formatting to highlight OBPs above .370 in green, select the OBP column, go to Format > Conditional formatting, and set the rule to "Greater than 0.370" with a green fill.

Tracking On-Base Skills Over a Season

A single game's OBP tells you almost nothing useful. Small sample sizes produce wild swings: going 0-for-4 with a walk gives you a .200 OBP for that game, while going 2-for-3 with a walk gives you .750. The stat becomes meaningful around 100 plate appearances, which is roughly 25 games for an everyday starter.

For coaches tracking development over a full season, the trend matters more than any single number. A player whose OBP climbs from .310 in April to .360 by June is showing growth in pitch recognition and selectivity. A player whose OBP drops when facing breaking-ball-heavy pitchers has a specific weakness to address in practice.

Connecting game stats with practice evaluations is where the real development insights live. If your lineup's collective OBP drops against stronger opponents, that is a signal to work on pitch recognition drills, not just hitting mechanics. Platforms like Striveon let you track these evaluations alongside game stats and see the trends over time. See how Striveon connects practice assessments with competitive results.

For more on tracking baseball stats during games, our baseball scorecard guide covers scoring notation and recording methods. If you also track pitching, the ERA calculator handles earned run average for 9, 7, and 6 inning formats. You can also check the batting average calculator if you want to compare BA alongside OBP for your roster.

What's Next?

Put This Into Practice

Athlete Evaluation and Assessment

Track hitting evaluations, compare practice data with game stats, and measure plate discipline development across a full season.

Athlete Development and Management

Set on-base goals for individual hitters, build development pathways, and track progress from tryouts through the season.

Keep Reading

Batting Average Calculator (Free, With OBP)

Interactive batting average and OBP calculator with quality ratings, softball benchmarks, and level-specific comparisons.

ERA Calculator (Free, Works for 9/7/6 Innings)

ERA calculator for baseball and softball with rating scale, WHIP comparison, and formula breakdown.