Home/Calculators/Sports/On-Base Percentage Calculator

On-Base Percentage Calculator

Calculate baseball on-base percentage (OBP) — instant and free.

on-base-percentage-calculator
Result
—
In summary: OBP = (hits + walks + hit-by-pitch) ÷ (at-bats + walks + hit-by-pitch + sacrifice flies). It measures how often a batter reaches base.

How on-base percentage works

On-base percentage (OBP) measures how often a batter reaches base: OBP = (hits + walks + hit-by-pitch) ÷ (at-bats + walks + hit-by-pitch + sacrifice flies). Unlike batting average, it credits walks and hit-by-pitches, so it better reflects a hitter's value.

A worked example with the default figures: 50 hits + 20 walks + 3 hit-by-pitch = 73 times on base, against 180 at-bats + 20 + 3 + 2 sacrifice flies = 205 opportunities. That gives 73 ÷ 205 = .356, quoted with a leading decimal point and three places, as baseball statistics always are.

Worth having open at the same time: the slugging percentage calculator.

How to use this calculator

Enter hits, walks, hit-by-pitch, at-bats and sacrifice flies. The result is the three-decimal OBP. Compare it with the simpler batting average calculator.

OBP always sits at or above batting average for the same player, because every hit counts in both while walks lift only OBP. A patient hitter batting .260 with plenty of walks can post a .370 OBP and out-produce a free-swinger batting .300 with a .320 OBP, which is exactly why front offices moved towards it.

Reaching base on an error or a fielder’s choice does not count: those go down as at-bats without a hit, so they push OBP down. Catcher’s interference is excluded from both halves of the formula. For a fuller picture of a hitter, pair OBP with slugging percentage — added together they give OPS, the quick-glance number quoted on most broadcasts.

Keep the ERA calculator nearby for the rest of the same job.

Frequently asked questions

How do I calculate on-base percentage?
OBP = (hits + walks + hit-by-pitch) ÷ (at-bats + walks + hit-by-pitch + sacrifice flies).
What is a good OBP?
In MLB, .340 is solid and .400+ is elite. League average is usually around .320.
How is OBP different from batting average?
OBP counts walks and hit-by-pitches as reaching base; batting average only counts hits.
Why include sacrifice flies but not sacrifice bunts?
By rule, sacrifice flies are in the OBP denominator while sacrifice bunts are excluded.
Do plate appearances and at-bats mean the same thing?
No, and mixing them up is the usual OBP mistake. At-bats exclude walks, hit-by-pitches and sacrifices, which is why the OBP denominator has to add those back — using raw plate appearances instead pulls sacrifice bunts and interference calls into the maths.
How this tool works

The formula behind this tool is written out in full in the sections above, so you can check the maths yourself. Every calculator on Calculorium is verified against worked examples with automated tests before it is published, and pages are reviewed as formulas or standards change. Nothing you type is sent anywhere — the calculation runs entirely in your browser. Read how we build and check these tools.

Last updated: July 27, 2026 · Calculations run in your browser. Estimates for information only.