Batting Average vs On-Base Percentage: Formulas and Examples
Batting average vs on-base percentage is a comparison between hit frequency and how often a batter reaches base. Batting average counts hits per official at-bat. On-base percentage, or OBP, also recognizes walks and hit-by-pitches, while using a different denominator. That is why one player can have the same batting average as another but a higher OBP: the second player may reach base more often without recording a hit.
The short answer
Batting average = hits ÷ at-bats. OBP = (hits + walks + hit-by-pitches) ÷ (at-bats + walks + hit-by-pitches + sacrifice flies). Use batting average to discuss hit frequency; use OBP to include additional ways a hitter reaches base.
What batting average measures
Batting average (BA or AVG) is the share of a player's official at-bats that result in a hit. Its formula is H ÷ AB: H is hits and AB is at-bats. A player with 4 hits in 16 at-bats has a batting average of 4 ÷ 16 = .250. The decimal is commonly shown to three places without a leading zero.
An at-bat is not the same thing as a plate appearance. A plate appearance ends when the batter completes a turn at the plate. Some completed turns do not count as at-bats, including a walk, hit-by-pitch, sacrifice fly, or sacrifice bunt. Those outcomes can still matter to other statistics. Using plate appearances as the denominator for batting average would answer a different question and lower the result in many stat lines.
BA treats each hit as one hit for its numerator. A single, double, triple, and home run each add one hit, even though they produce different numbers of bases. Errors and fielder's choices are not hits in the official scorebook. For an official definition, see MLB's batting average glossary.
What on-base percentage measures
On-base percentage asks how often a batter reaches base through qualifying outcomes. The standard formula is (H + BB + HBP) ÷ (AB + BB + HBP + SF). BB means bases on balls (walks), HBP means hit-by-pitches, and SF means sacrifice flies. The formula is broader than BA because walks and hit-by-pitches can add to both the numerator and denominator even though they are not hits or at-bats.
For example, a walk gives the hitter first base and increases OBP, but it does not count as a hit and does not change batting average. A hit-by-pitch works similarly in these two formulas. Sacrifice flies are different: they add to the OBP denominator but not to the numerator. Sacrifice bunts are removed from the OBP calculation rather than counted as an at-bat. Use the official line for the same player and period instead of trying to reconstruct the denominator from a rough plate-appearance total.
OBP does not count every event where a runner happens to reach safely. MLB's standard definition excludes reaching on an error, fielder's choice, or dropped third strike. The official scorer's ruling matters because a play recorded as a hit can change both BA and OBP, while an error usually changes neither numerator. MLB explains the standard categories in its on-base percentage glossary.
Batting Average vs On-Base Percentage: One Example
Suppose a fictional batter records 4 hits, 16 at-bats, 6 walks, 1 hit-by-pitch, and 1 sacrifice fly over the same span. The batting-average calculation uses only hits and at-bats. The OBP calculation includes the qualifying walks, hit-by-pitch, and sacrifice fly:
| Statistic | Calculation | Displayed result | What the result counts |
|---|---|---|---|
| Batting average | 4 ÷ 16 | .250 | Hits per official at-bat |
| On-base percentage | (4 + 6 + 1) ÷ (16 + 6 + 1 + 1) | .458 | Qualifying times on base per OBP opportunity |
The outcomes cover 24 denominator entries for OBP: 16 at-bats, 6 walks, 1 hit-by-pitch, and 1 sacrifice fly. Eleven of those entries count in the numerator, so 11 ÷ 24 = .4583… and OBP displays as .458. The BA remains .250 because the six walks and hit-by-pitch are not at-bats or hits, and the sacrifice fly is not a hit.
Now consider a second fictional line: 5 hits, 20 at-bats, no walks, no hit-by-pitches, and 1 sacrifice fly. BA is 5 ÷ 20 = .250. OBP is 5 ÷ 21 = .238 after rounding. The sacrifice fly adds one opportunity to the OBP denominator without adding to its numerator, so OBP is lower than BA in this example. This is a formula consequence, not a scoring error.
When each statistic is useful
Use batting average when the question is specifically about how frequently a batter records hits in official at-bats. It is familiar and easy to verify from a box score. A reader can reproduce it by dividing the listed hits by the listed at-bats, provided both numbers cover the same player and period.
Use OBP when you also want to account for walks and hit-by-pitches as ways to reach base. Two players can share the same BA but have different OBPs if one draws more walks or is hit by pitches more often. That difference can help describe a hitter's ability to avoid making an out through these outcomes, though OBP still leaves out other parts of offensive value.
Neither number is a complete ranking of a player. Compare like with like: the same league, season, and type of sample. A short stretch can move quickly after a few plate appearances, while a longer season line is usually more stable. If you compare players from different eras, leagues, or scoring environments, do not assume that a raw decimal carries identical context. Explain the sample and the question behind the comparison.
Common mistakes and limits
- Using plate appearances as at-bats: walks and some sacrifice outcomes are plate appearances but not at-bats. Use the official AB figure for BA.
- Adding every safe reach to OBP: errors, fielder's choices, and dropped third strikes are excluded under the standard MLB definition.
- Forgetting sacrifice flies: they increase OBP's denominator, even though they are not hits and do not enter the numerator.
- Mixing time periods: do not divide season hits by career at-bats. Both parts must describe the same player and span.
- Rounding too early: keep the unrounded quotient for calculations and round only the displayed result, usually to three decimal places.
- Reading one rate as total value: BA and OBP describe different outcomes; neither records every contribution a hitter can make.
Official scoring and league rules determine how unusual plays are recorded. If a box score and a hand calculation disagree, check the listed hit, at-bat, walk, hit-by-pitch, and sacrifice-fly totals first. For a quick arithmetic check, the site's batting average calculator (Japanese) accepts hits and at-bats. Its labels are in Japanese, so use the official stat line when you need a record rather than an estimate.
How BA, OBP, SLG, and OPS fit together
Slugging percentage (SLG) also uses at-bats, but it weights hits by the number of bases: singles count as one base, doubles as two, triples as three, and home runs as four. It therefore answers a different question from BA. OBP counts qualifying ways to reach base, while SLG reflects the bases recorded from hits.
OPS adds on-base percentage and slugging percentage: OPS = OBP + SLG. It places a reach-base rate and a total-bases rate side by side in one summary number. That shorthand can be useful, but the combined score does not make the original measures interchangeable. When a comparison depends on walks, hit-by-pitches, or extra-base hits, look at the component stats and explain what each one includes.
The site's slugging percentage calculator (Japanese) can check a SLG example. The linked calculators are provided by JPN Tools; this article explains the measures and does not rank or endorse any player.
Frequently asked questions
Are batting average and on-base percentage the same?
No. Batting average divides hits by at-bats. On-base percentage also counts walks and hit-by-pitches in its numerator and denominator, and includes sacrifice flies in the denominator.
Does a walk count toward batting average?
No. A walk is a plate appearance but not an at-bat, so it does not change batting average. It does count in the on-base percentage formula.
Can on-base percentage be lower than batting average?
Yes. For example, a sacrifice fly adds to the OBP denominator without adding a hit or a qualifying reach to its numerator. The exact result depends on the official stat line.
Do reaching on an error or fielder's choice count for OBP?
They do not count as times on base in MLB's standard OBP definition. Official scoring decisions determine how each play is recorded.
Which statistic should I use to compare hitters?
Use batting average when you want hit frequency per at-bat and OBP when you want to include walks and hit-by-pitches. Compare the same league, season, and adequate sample, and use additional measures for a wider view of offense.
Summary
Batting average is hits divided by official at-bats. On-base percentage adds walks and hit-by-pitches to its numerator and denominator, and includes sacrifice flies in the denominator. Use BA for hit frequency, OBP for a broader view of qualifying times on base, and compare both with the same sample and scorekeeping rules.
Source note: Formula and scoring categories checked against MLB's glossary on November 30, 2026. This guide is explanatory; official league records take precedence for a player's statistics.
