MyBallPlayer
Hitting · OBP

On-Base Percentage Calculator

Enter the plate line to get on-base percentage (OBP) — how often a player reaches base by a hit, walk or hit-by-pitch.

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

What you'll need

What is on-base percentage in baseball?

On-base percentage (OBP) is the share of a player's plate appearances in which they reach base by a hit, a walk or a hit-by-pitch, written as a three-digit decimal such as .350. Where batting average asks how often a player gets a hit, OBP asks the more important question: how often do they avoid making an out?

OBP is always at least as high as batting average for the same player, because every hit counts in both, and OBP adds walks and hit-by-pitches on top. A hitter who draws lots of walks can post an ordinary average and a strong OBP — which is exactly the kind of plate discipline coaches want to see develop in young players. It is one half of OPS, the most common one-number rating of a hitter.

Softball uses the same formula and the same conventions. In youth fastpitch, where walks are common, OBP is often a more telling number than average.

The on-base percentage formula

OBP = (Hits + Walks + Hit-by-Pitch) ÷ (At-Bats + Walks + Hit-by-Pitch + Sacrifice Flies)

The top line counts every time the player reached base under their own steam: hits (H), bases on balls (BB) and hit-by-pitch (HBP). Reaching on an error, a fielder's choice or catcher's interference does not count — the player is on base, but not credited for it.

The bottom line is at-bats plus walks plus hit-by-pitch plus sacrifice flies. Notice what is missing: sacrifice bunts. A sac bunt is treated as the batter giving themselves up on purpose, so it is left out entirely and neither helps nor hurts OBP. A sacrifice fly, on the other hand, counts as a failed chance to reach base and pulls OBP down slightly.

Round to three decimals and drop the leading zero, the same as batting average.

Worked example

Over ten travel-ball games your player has 30 at-bats, 9 hits, 6 walks, 1 hit-by-pitch, 1 sacrifice fly and 1 sacrifice bunt.

  1. Add the ways they reached base: 9 hits + 6 walks + 1 HBP = 16 times on base.
  2. Build the denominator: 30 AB + 6 BB + 1 HBP + 1 SF = 38 plate appearances that count. The sacrifice bunt is ignored.
  3. Divide: 16 ÷ 38 = 0.4210, which rounds to .421.

Their batting average over the same stretch is 9 ÷ 30 = .300. The gap between .300 and .421 is the walks — and that gap is the thing OBP was invented to show.

What is a good on-base percentage?

In the 2025 MLB regular season the league-wide OBP was .315 (calculated from official MLB Stats API team totals). That number moves a little year to year — 2024 was .312 — but the tiers stay put:

MLB figures are for the 2025 regular season. Youth benchmarks are deliberately not given.
LevelOBPWhat it means
MLB, 2025 league average.315Typical big-league hitter
MLB, good.350+Clearly above average; a leadoff-type profile
MLB, excellent.380+Among the best in the game
MLB, elite.400+MVP-level plate discipline plus hitting
Youth (8U–14U)Varies widely — judge the trend, not the numberWalk rates depend almost entirely on the opposing pitching

Youth OBP is dominated by walks, and walks are dominated by how many strikes the other team's pitcher can throw — something your player has no control over. That is why a 10U OBP of .500 is common and means little, while the same number at 14U would be remarkable. Read OBP the way you read average: against the player's own earlier games, against last season, and against the rest of the league on the same fields. A rising OBP with a flat average is a young hitter learning the strike zone.

Common mistakes when calculating OBP

OBP for youth and travel ball parents

OBP is the best early indicator that a young hitter is learning to see the ball, because plate discipline usually improves before power does. If you log walks and hit-by-pitches alongside hits — the printable scorecard has a column for each — you can compute it after every game and watch the line move.

Compare it with batting average and slugging, or let MyBallPlayer work all three out from the games you log and chart them across the season.

Ready to stop doing this by hand? MyBallPlayer tracks every stat automatically from the games you log and charts the whole season. Get started or grab the free printable stat sheet.

Frequently asked questions

How do you calculate on-base percentage?

Add hits, walks and hit-by-pitches, then divide by at-bats plus walks plus hit-by-pitches plus sacrifice flies. Example: (9 + 6 + 1) ÷ (30 + 6 + 1 + 1) = 16 ÷ 38 = .421.

What is a good OBP?

In MLB the 2025 league average was .315; .350 is good, .380 is excellent and .400+ is elite. For youth players, walk rates depend on the opposing pitching, so judge OBP by the trend over a season and against the league leaderboard rather than a fixed number.

Do walks count toward on-base percentage?

Yes. Walks and hit-by-pitches both count as reaching base in OBP, which is the main difference between OBP and batting average.

Do sacrifice flies count against OBP?

Yes. Sacrifice flies are in the denominator (they lower OBP slightly), but sacrifice bunts are not included in the formula at all.

Why is OBP higher than batting average?

Every hit counts in both stats, and OBP adds walks and hit-by-pitches on top. So OBP can never be lower than batting average for the same player, and the gap between them is a rough measure of plate discipline.

Is OBP calculated the same way in softball?

Yes. Fastpitch and slowpitch use the same formula. In youth fastpitch, where walks are frequent, OBP is often a more useful number than batting average.

Related reading