Skip to content
Popular Calculators
Browse Sports calculators

On-Base Percentage Calculator

On-base percentage from hits, walks, hit-by-pitches, at-bats and sacrifice flies, with OPS when you add slugging percentage.

Including intentional walks.

For OPS, e.g. 0.522.

About the On-Base Percentage Calculator

The most important thing a batter can do is avoid making an out. A walk does not look as exciting as a hit, but it puts a runner on base just the same. On-base percentage, or OBP, measures how often a hitter reaches base by any of the ways that count: hits, walks and being hit by a pitch. Made famous by the "Moneyball" era, it is now one of the first statistics analysts look at.

This on-base percentage calculator works out OBP from hits, walks, hit-by-pitches, at-bats and sacrifice flies. It compares OBP with the batting average, and if you enter a slugging percentage, it gives OPS, on-base plus slugging.

How to Use the On-Base Percentage Calculator

Enter the number of hits, walks and times hit by a pitch.

Enter the number of at-bats and sacrifice flies.

Optionally, enter the slugging percentage to see OPS.

How On-Base Percentage Is Worked Out

  times on base  =  hits + walks + hit by pitch
  opportunities  =  at-bats + walks + hit by pitch + sacrifice flies
  OBP            =  times on base ÷ opportunities
  OPS            =  OBP + SLG

Step-by-Step Example

150 hits, 60 walks and 5 hit-by-pitches in 500 at-bats, with 5 sacrifice flies, and a slugging percentage of .522.

  On base:        150 + 60 + 5              =  215
  Opportunities:  500 + 60 + 5 + 5          =  570
  OBP:            215 ÷ 570                 =  .377
  Average:        150 ÷ 500                 =  .300
  OPS:            .377 + .522               =  .899

What Is a Good On-Base Percentage?

OBPWhat it means
.390 or moreExcellent
.340 – .389Above average
.310 – .339Around average
Under .310Below average

A hitter's OBP is always at least as high as their batting average, usually by 60 to 70 points, because walks and hit-by-pitches are added. Players with a sharp eye for the strike zone can have an OBP more than 100 points above their average.

What Counts and What Does Not

Counted as reaching base: hits, walks (including intentional walks) and being hit by a pitch.

Counted as opportunities but not reaching base: outs, strikeouts, reaching on an error, reaching on a fielder's choice and sacrifice flies.

Left out entirely: sacrifice bunts, catcher's interference and obstruction.

Reaching on an error is treated like an out, because the batter did not earn the base. Sacrifice flies count against OBP even though they do not count as at-bats, because the batter was trying to hit the ball and made an out.

Why OBP Matters

Every team has 27 outs in a nine-inning game. A hitter who reaches base more often uses fewer of them, gives the batters behind more chances to drive in runs, and creates more scoring. Studies of run scoring consistently find OBP more closely linked to runs than batting average is. That insight — that walks were undervalued — helped small-budget teams build competitive rosters in the early 2000s.

OPS

OPS adds on-base percentage and slugging percentage into one quick measure of a hitter's overall offensive value. An OPS around .700 to .750 is typical, .800 good, .900 very good and 1.000 exceptional. It is simple and popular, though it slightly undervalues OBP, which is worth more runs per point than slugging.

Using OBP at Every Level

The formula is the same in youth baseball, softball and the major leagues. For young players in particular, tracking OBP rewards patience at the plate and good pitch selection, which are habits that pay off as the level of play rises.

A Tale of Two Hitters

Imagine two hitters with the same .270 batting average in 500 at-bats: 135 hits each. The first rarely walks — 25 walks and 2 hit-by-pitches, with 4 sacrifice flies — for an OBP of 162 ÷ 531, or .305. The second is patient, drawing 90 walks and getting hit 8 times, with 4 sacrifice flies, for an OBP of 233 ÷ 602, or .387. The second hitter reached base 71 more times over the season, which means many more runs for the team, even though their batting averages are identical. This is exactly the difference that batting average hides and on-base percentage reveals.

Tracking OBP for Young Players

For youth and amateur teams, OBP is an encouraging statistic. It rewards patience, knowing the strike zone and making the pitcher work, not just physical strength. A young hitter who draws walks and avoids chasing bad pitches helps the team even during a slump, and tracking OBP shows them that their approach at the plate matters.

Leadoff Hitters

Teams usually want the hitters with the highest on-base percentages at the top of the order, because they come to the plate most often and set up chances for the power hitters behind them. A leadoff hitter with a high OBP and good speed can change a game without ever hitting the ball far.

Understanding Your Result

On-base percentage is how often the batter reaches base.

Times on base shows the times on base and the opportunities counted.

Compared with batting average shows how much walks and hit-by-pitches add.

OPS gives on-base plus slugging.

Rating describes the OBP in professional terms.

Worth knowing explains what does not count.

When Should You Use This Calculator?

Tracking a hitter's season.

Keeping statistics for a youth or amateur team.

Choosing a leadoff hitter.

Working out OPS with slugging percentage.

Comparing hitters with different styles.

Common Mistakes

Leaving out hit-by-pitches.

Forgetting sacrifice flies in the denominator.

Counting reaching on an error as reaching base.

Including sacrifice bunts.

Comparing OBP with batting average as if they were the same scale.

Frequently Asked Questions

How do you calculate on-base percentage?

Add hits, walks and hit-by-pitches, and divide by at-bats plus walks, hit-by-pitches and sacrifice flies. With 150 hits, 60 walks and 5 hit-by-pitches in 500 at-bats with 5 sacrifice flies, OBP is 215 ÷ 570, or .377.

What is a good on-base percentage?

In professional baseball, around .310 to .340 is average, .340 to .390 is above average, and .390 or more is excellent. The league average OBP is usually about 60 to 70 points higher than the batting average.

Why are sacrifice flies included but not sacrifice bunts?

Sacrifice flies are counted as opportunities in OBP because the batter was trying to hit the ball and made an out. Sacrifice bunts are left out, since the batter deliberately gave themselves up to move a runner.

Does reaching on an error count towards OBP?

No. Reaching base on an error or a fielder's choice is treated like an out for OBP, because the batter did not earn the base. It still counts as an at-bat in the denominator.

How do you calculate OPS?

Add on-base percentage and slugging percentage. An OBP of .377 and a slugging percentage of .522 give an OPS of .899, which is very good. An OPS of 1.000 or more is exceptional.

Why is OBP considered better than batting average?

Because it counts walks and hit-by-pitches, which also put a runner on base and avoid an out. Two hitters with the same batting average can differ greatly in value if one draws many more walks.

Last reviewed September 28, 2026 by the CalculatorPeak editorial team.