On-Base Percentage (OBP) Calculator

Calculate a baseball player's on-base percentage (OBP) — the fraction of plate appearances that result in the batter reaching base. Also calculates OPS when combined with slugging percentage.

On-Base Percentage (OBP) —
OBP (percentage) —
Plate Appearances (PA) —
Times on Base —
OPS (OBP + SLG) —
Benchmark —

How to Use

  1. Enter the batter's stats: hits (H), walks (BB), hit by pitch (HBP), at-bats (AB), and sacrifice flies (SF).
  2. Optional: Enter the slugging percentage (SLG as a decimal, e.g. 0.450) to also calculate OPS.
  3. Results update as you type. OBP is displayed as both a 3-decimal number and a percentage.
  4. A benchmark rating shows how the OBP compares to MLB standards.

What You'll Discover

  • On-base percentage (OBP) — shown to three decimal places, the way box scores and stat sheets print it (for example .411).
  • OBP as a percentage — the same number multiplied by 100 (41.1%), which is easier to explain to players and parents.
  • Plate appearances (PA) — the OBP denominator: AB + BB + HBP + SF. This can be a little lower than the PA in a box score, because official PA also includes sacrifice bunts and catcher's interference, which OBP leaves out.
  • Times on base — hits + walks + hit-by-pitches, the OBP numerator.
  • OPS — on-base plus slugging, if you enter a slugging percentage.
  • Benchmark — a rough rating from Below Average to Elite, based on the table further down this page.

Formula

On-Base Percentage (OBP):

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

The numerator counts the ways a batter reaches base on their own merit: hits, walks and hit-by-pitches. The denominator adds walks, hit-by-pitches and sacrifice flies to at-bats. Sacrifice flies sit in the denominator but not the numerator, so a sacrifice fly lowers OBP slightly. Sacrifice bunts are left out entirely.

OPS (On-base Plus Slugging):

OPS = OBP + SLG

OPS adds two differently scaled statistics, so it is a rough shortcut rather than a precise measure. It is popular because it is quick to calculate and captures both getting on base and hitting for power.

What Counts Toward OBP (and What Doesn't)

Most OBP mistakes come from putting an event in the wrong part of the formula. Use this table when you are working from a scorebook.

Plate appearance resultTimes on base (top)OBP denominator (bottom)
Single, double, triple, home runYes (hit)Yes (at-bat)
Walk, including intentional walkYesYes
Hit by pitchYesYes
Strikeout or batted-ball outNoYes (at-bat)
Reached on an errorNoYes (at-bat)
Reached on a fielder's choiceNoYes (at-bat)
Reached on a dropped third strikeNoYes (at-bat)
Sacrifice flyNoYes
Sacrifice buntNoNo
Catcher's interference or obstructionNoNo

The idea behind the rules is that OBP should reward the batter, not the defense. Reaching on an error or a fielder's choice is treated like an out, because the batter would have been out with a clean play. Sacrifice bunts are excluded because the batter is usually giving himself up on purpose, often on the manager's instruction.

OBP Benchmarks

OBPRatingContext
Below .300Below AverageReplacement-level hitter
.300 – .339AverageTypical major league hitter
.340 – .369GoodAbove-average contributor
.370 – .399Very Good / All-StarElite on-base ability
.400+Elite (rare)Historical season-level OBP

These bands are a rough guide for adult professional baseball. League-wide levels change from season to season, and youth, high school, college and softball numbers run on different scales, so compare players against their own league where you can.

Historical context: According to Baseball-Reference, Ted Williams has the highest career OBP on its all-time leaderboard at .482, and Barry Bonds's .609 in 2004 is the highest single-season mark. A full season at .400 or better is exceptional in any era.

Examples

HBBHBPABSFOBP
1506054508.411
1204024805.307
14070104206.435
1003033804.319

Worked through for the first row: times on base = 150 + 60 + 5 = 215, and the denominator = 450 + 60 + 5 + 8 = 523. 215 ÷ 523 = 0.4111, which rounds to .411.

OBP vs Batting Average vs Slugging vs OPS

The four most common hitting rate stats each answer a different question. Here is the same hypothetical hitter (150 H, 60 BB, 5 HBP, 450 AB, 8 SF, .550 SLG) measured four ways.

StatFormulaQuestion it answersExample
Batting average (AVG)H ÷ ABHow often does a batter get a hit?.333
On-base percentage (OBP)(H + BB + HBP) ÷ (AB + BB + HBP + SF)How often does a batter avoid making an out?.411
Slugging percentage (SLG)Total bases ÷ ABHow much power does each at-bat produce?.550
OPSOBP + SLGA quick all-round measure of offense.961

The gap between OBP and AVG shows how much a hitter adds through walks and hit-by-pitches. Here it is .078. A hitter who never walks has an OBP very close to their batting average.

OBP is older than many people think. It was developed in the late 1940s by Brooklyn Dodgers statistician Allan Roth working with general manager Branch Rickey, and it became an official MLB statistic in 1984. It gained wider attention when analysts showed that avoiding outs is closely tied to scoring runs.

What Is My OBP If...

What is my OBP if I went 1-for-4 with a walk?

Going 1-for-4 with a walk gives an OBP of .400. You reached base twice (1 hit + 1 walk) in 5 plate appearances (4 AB + 1 BB), and 2 ÷ 5 = .400. Your batting average for the game is only .250, because walks do not count in AVG.

What is my OBP if I went 2-for-4 with a walk?

Going 2-for-4 with a walk gives an OBP of .600. That is 3 times on base in 5 plate appearances: 3 ÷ 5 = .600.

What is my OBP if I hit .300 and never walked?

With no walks, hit-by-pitches or sacrifice flies, your OBP equals your batting average: .300. For 30 hits in 100 at-bats, both are 30 ÷ 100 = .300. Every walk or HBP you add pushes OBP above AVG.

What is my OBP if I have 30 hits and 20 walks in 100 at-bats?

30 hits and 20 walks in 100 at-bats is an OBP of .417. Times on base = 50, and the denominator is 100 + 20 = 120. 50 ÷ 120 = 0.4167. Your batting average is still .300.

What is my OBP if I hit a sacrifice fly?

A sacrifice fly lowers your OBP: 3-for-4 plus a sac fly is .600 instead of .750. The sacrifice fly adds 1 to the denominator but nothing to the top, so 3 ÷ 5 = .600. Your batting average stays .750, because a sacrifice fly is not an at-bat.

What is my OBP if I lay down a sacrifice bunt?

A sacrifice bunt does not change your OBP at all. It is left out of both the top and bottom of the formula. 3-for-4 plus a sacrifice bunt is still 3 ÷ 4 = .750.

What is my OBP if I reached base on an error?

Reaching on an error counts as an out for OBP: 1 hit and 1 error in 4 at-bats is .250. The error is charged to the fielder, so it counts as an at-bat but not as a time on base. 1 ÷ 4 = .250, even though you stood on first base twice.

What is my OBP if I hit .250 but drew 75 walks?

A .250 hitter with 125 hits and 75 walks in 500 at-bats has an OBP of .348. Times on base = 200, and the denominator is 500 + 75 = 575. 200 ÷ 575 = 0.3478. That is higher than a .300 hitter with no walks, whose OBP would be .300.

What is my OBP for a full season of 130 H, 50 BB, 5 HBP, 500 AB and 5 SF?

That season line gives an OBP of .330. Times on base = 130 + 50 + 5 = 185. Denominator = 500 + 50 + 5 + 5 = 560. 185 ÷ 560 = 0.3304, which falls in the Average band of the benchmark table.

What is my OBP for a youth season of 25 H, 10 BB, 1 HBP, 80 AB and 2 SF?

That youth season works out to an OBP of .387. Times on base = 36, and the denominator = 80 + 10 + 1 + 2 = 93. 36 ÷ 93 = 0.3871. The formula is the same at every level of baseball and softball.

People Also Search For

How to calculate on-base percentage by hand

Add hits, walks and hit-by-pitches; divide by at-bats plus walks, hit-by-pitches and sacrifice flies. For 150 H, 60 BB, 5 HBP, 450 AB and 8 SF: 215 ÷ 523 = 0.4111. Round to three decimals and drop the leading zero to write it as .411.

OBP formula in Excel or Google Sheets

With H, BB, HBP, AB and SF in columns B to F, use =(B2+C2+D2)/(E2+C2+D2+F2). Format the cell to three decimal places. Wrap it in =IFERROR(...,"") so empty rows do not show a divide-by-zero error.

What is the difference between plate appearances and at-bats

Plate appearances count every trip to the plate; at-bats leave out walks, hit-by-pitches, sacrifices and interference. That is why batting average (H ÷ AB) ignores walks while OBP includes them. A batter with 4 at-bats and 1 walk has 5 plate appearances.

What is OPS in baseball

OPS is on-base percentage plus slugging percentage. A .360 OBP and a .500 SLG give an OPS of .860. Enter a slugging percentage in the optional field above and the calculator adds it for you. Use our slugging percentage calculator if you need SLG first.

How to calculate OBP in softball or Little League

Use exactly the same formula: (H + BB + HBP) ÷ (AB + BB + HBP + SF). Some youth leagues do not record sacrifice flies; in that case enter 0 for SF. Make sure errors and fielder's choices are recorded as at-bats, not hits.

How to calculate OBP from a box score

Take AB, H, BB and HBP from the box score, plus SF from the game notes, and add up the totals across games before dividing. Do not average each game's OBP; that gives the wrong answer because games have different numbers of plate appearances. Totals first, then divide.

Frequently Asked Questions

What does OBP include and exclude?

OBP counts hits (H), walks (BB), and hit-by-pitches (HBP) in the numerator. The denominator includes at-bats (AB), walks, hit-by-pitches, and sacrifice flies (SF). Reaching on an error, a fielder's choice or a dropped third strike does not count as a time on base. Sacrifice bunts and catcher's interference are excluded from both numerator and denominator entirely.

Why are sacrifice flies included in the denominator but not the numerator?

Sacrifice flies count as plate appearances in which the batter made productive outs — they drove in a run but did not reach base. Including them in the denominator penalizes batters slightly for these productive plays, which some analysts argue is unfair. However, the MLB official formula includes SF in the denominator, so this calculator follows the official definition.

How does OBP differ from batting average?

Batting average (AVG = H / AB) only counts hits and at-bats, ignoring walks and hit-by-pitches. OBP is a more complete measure of a batter's ability to reach base because it includes all the ways a player can reach base without the help of a fielding mistake. A player with many walks can have a much higher OBP than batting average. Many analysts consider OBP a better guide to run production than AVG.

What is OPS and why is it useful?

OPS combines OBP (ability to get on base) with slugging percentage (batting power, measured by total bases per at-bat). Despite the mathematical imprecision of adding two different metrics, OPS is widely used as a quick summary of a hitter's offense. A common rule of thumb treats .800 as good, .900 as excellent and 1.000 as elite for MLB hitters. OPS+ is an adjusted version normalized to league average, where 100 is average.

What is a good OBP for a major league player?

As a rough guide, .340 or better is good, .370 or better is All-Star level, and .400 or better is exceptional. Below .300 is generally weak for a regular player. League-wide levels shift from season to season, so the most accurate comparison is against the league average for the same year.

Does an intentional walk count toward OBP?

Yes. An intentional walk is recorded as a walk (BB), so it adds 1 to both the numerator and the denominator. Include intentional walks in the walks field.

Can OBP be lower than batting average?

Yes, but only because of sacrifice flies. A batter with 1 hit in 3 at-bats and 1 sacrifice fly, and no walks or HBP, hits .333 but has an OBP of 1 ÷ 4 = .250. Once a hitter draws a few walks, OBP is almost always higher than AVG.

What is the highest possible OBP?

The maximum OBP is 1.000, which means the batter reached base by hit, walk or HBP in every plate appearance that counts toward OBP. Unlike slugging percentage, OBP can never go above 1.000.

Why is the plate appearance total different from my scorebook?

The calculator's PA figure is the OBP denominator: AB + BB + HBP + SF. Official plate appearances also include sacrifice bunts and times reached on catcher's interference or obstruction. If a batter had any of those, the scorebook PA will be higher than the number shown here.

Should I enter singles or total hits?

Enter total hits (H): singles, doubles, triples and home runs combined. For OBP every hit counts the same, because the stat only asks whether the batter reached base. Power is measured separately by slugging percentage.

Is my data stored or sent anywhere?

No. All calculations run in your browser. Nothing you type is sent to a server or saved, and no account is needed.

Last reviewed: November 2026 — formulas and worked examples verified.