On Base Percentage Calculator

Batting average only counts hits, but a walk gets a player on base just as surely as a single. This free on base percentage calculator measures how often a batter reaches base safely, counting hits, walks and hit by pitch against plate appearances. Enter the hits, walks, hit by pitch, at-bats and sacrifice flies, and it gives the on-base percentage, times on base, and plate appearances, plus slugging percentage and OPS from the hit breakdown, so one page covers the three numbers that sum up a hitter.

Hits, Walks and Plate Appearances

Enter the player's season totals. Doubles, triples and home runs are part of the hit total, so they must add up to no more than the hits: the calculator works out singles from the rest. Walks, hit by pitch and sacrifice flies are not at-bats, but they do count in the on-base formula, which is why they appear here.

OBP .371 Times on base: 230 Plate appearances: 620 SLG .509 Total bases: 280 At-bats: 550 OPS .880
On-base percentage
On-Base Percentage (OBP)
Times on base (H + BB + HBP)
Plate appearances (AB + BB + HBP + SF)
Slugging and OPS
Singles (1B)
Total Bases (TB)
Slugging Percentage (SLG)
On-Base Plus Slugging (OPS)
Batting Average (AVG)
Note: on-base percentage counts every way a hitter reaches base safely except errors and fielder's choices, so it rewards patience at the plate in a way batting average does not. A .350 OBP is strong and .400 is elite. Add slugging percentage to get OPS, the single number most often used to sum up a hitter: .800 is good, .900 is excellent, and 1.000 is rare.
Walks (BB)On-Base PercentageSlugging PercentageOPS

Each row keeps the hits, hit by pitch, at-bats and sacrifice flies you entered and changes only the walk total. Walks lift OBP and OPS but leave slugging unchanged, since walks are not at-bats and add no total bases.

Powered by Techraxy

Creator & Reviewer

Faiq Ur Rahman

Founder & CEO, Techraxy

Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

What is an On Base Percentage Calculator?

An on base percentage calculator works out OBP, the share of a player’s plate appearances that end with the player reaching base safely. The formula is (H + BB + HBP) / (AB + BB + HBP + SF): hits plus walks plus hit by pitch, divided by at-bats plus walks plus hit by pitch plus sacrifice flies. Like batting average it is written to three decimal places with the leading zero dropped, so .371 means the player reaches base in 37.1% of plate appearances.

OBP differs from batting average in two ways. First, the numerator counts walks and hit by pitch as well as hits, so a patient hitter who draws walks gets credit for reaching base. Second, the denominator is plate appearances rather than at-bats, with one exception: sacrifice bunts are left out entirely, because the decision to bunt is usually the manager’s rather than the batter’s. Reaching base on an error or a fielder’s choice does not count as reaching base for OBP, and neither does reaching on catcher’s interference in the official formula.

This calculator also returns slugging percentage and OPS, because OBP alone only tells half the story. Slugging comes from the hit breakdown: singles count 1 base, doubles 2, triples 3 and home runs 4, and total bases divided by at-bats gives SLG. Adding the two gives OPS, on-base plus slugging, the most used single-number summary of a hitter. The Batting Average Calculator covers the classic hits divided by at-bats figure, and the Slugging Percentage Calculator goes deeper on power, including isolated power.

How to Use the On Base Percentage Calculator

  1. Enter the player’s hits (H), then the doubles, triples and home runs that make up part of that total. The calculator works out singles from the rest.
  2. Enter the walks (BB) and hit by pitch (HBP). Both count as reaching base in the numerator.
  3. Enter the at-bats (AB) and sacrifice flies (SF). Sacrifice flies count in the denominator but not the numerator, since the batter is out.
  4. Click Calculate, or just type: the results update as you enter the numbers. The diagram updates as the inputs change, resizing the on-base and slugging bars and relabelling times on base, plate appearances, total bases and OPS.
  5. Read the Summary tab for OBP, times on base, plate appearances, singles, total bases, SLG, OPS and batting average.
  6. Open the Compare Walks tab to see how OBP and OPS move as the walk total changes from 30 below to 30 above the entered value.

On Base Percentage Calculator Formula

On-Base Percentage (OBP) = (H + BB + HBP) / (AB + BB + HBP + SF).

Singles (1B) = H – 2B – 3B – HR.

Total Bases (TB) = 1B + (2 x 2B) + (3 x 3B) + (4 x HR).

Slugging Percentage (SLG) = TB / AB.

On-Base Plus Slugging (OPS) = OBP + SLG.

Batting Average (AVG) = H / AB.

All rates are rounded to three decimal places and written without the leading zero, per baseball convention: 0.371 displays as .371. OPS is computed from the unrounded OBP and SLG, then rounded.

Worked Example

A player with 165 hits (30 doubles, 5 triples, 25 home runs), 60 walks, 5 hit by pitch, 550 at-bats and 5 sacrifice flies. All steps below use the unrounded values; displayed figures are rounded to three decimals.

Singles = 165 – 30 – 5 – 25 = 105. Times on base = 165 + 60 + 5 = 230. Plate appearances = 550 + 60 + 5 + 5 = 620. On-base percentage = 230 / 620 = 0.370967, displayed as .371. Total bases = 105 + (2 x 30) + (3 x 5) + (4 x 25) = 105 + 60 + 15 + 100 = 280. Slugging percentage = 280 / 550 = 0.509090, displayed as .509. OPS = 0.370967 + 0.509090 = 0.880057, displayed as .880. Batting average = 165 / 550 = 0.300, displayed as .300.

So the player reaches base in 37.1% of plate appearances, slugs .509, and posts an .880 OPS, with a .300 batting average underneath.

Benefits of Using an On Base Percentage Calculator

  • Measures the full picture of reaching base: hits, walks and hit by pitch together, not hits alone.
  • Returns OPS in the same pass: slugging and OPS come from the hit breakdown, so one entry gives all three headline numbers.
  • Works out singles for you: enter the hit total and the extra-base hits, and singles are derived automatically.
  • Shows the working: times on base and plate appearances are displayed separately, so the OBP fraction is transparent.
  • Compares walk totals side by side: the Compare Walks tab shows how patience at the plate lifts OBP and OPS while slugging stays put.
  • Works for any stretch: a game, a month, a season or a career, as long as every input covers the same span.
  • Free and instant: no sign-up, no download, and the results and diagram update as you type.

Frequently Asked Questions

What is a good on-base percentage?

A .350 OBP is strong and .400 is elite: only the best hitters in the game reach base in 40% of their plate appearances. League averages in Major League Baseball usually sit near .310 to .320. A player at .371, like the default example here, is comfortably above average. OBP is generally a better guide to a hitter’s value than batting average, because it credits walks and hit by pitch as well as hits.

Why do walks count in on-base percentage but not in batting average?

Because the two stats measure different things. Batting average measures contact: hits per at-bat, and a walk is not an at-bat, so it cannot count either way. On-base percentage measures reaching base: a walk puts the player on first base just as a single does, so it counts in both the numerator and the denominator. A hitter who draws 100 walks in a season reaches base 100 extra times, and OBP is the stat that shows it.

What is the difference between OBP and batting average?

Batting average is hits divided by at-bats, so it only credits hits and only counts at-bats. On-base percentage is (hits + walks + hit by pitch) divided by (at-bats + walks + hit by pitch + sacrifice flies), so it credits every safe way of reaching base except errors and fielder’s choices, and it counts plate appearances instead of at-bats. OBP is almost always higher than batting average for the same player: the default example here bats .300 with a .371 OBP. The Batting Average Calculator covers the classic figure.

How is OPS calculated?

OPS, on-base plus slugging, is simply OBP + SLG. Add the on-base percentage from this page to the slugging percentage: .371 + .509 = .880 in the default example. An OPS of .800 is good, .900 is excellent, and 1.000 is rare enough to mark an MVP-level season. OPS is popular because it combines the two skills that matter most at the plate, getting on base and hitting for power, into one number. The Slugging Percentage Calculator covers the power side in detail.

Do sacrifice bunts count in on-base percentage?

No. Sacrifice bunts are removed from the OBP equation entirely: they appear in neither the numerator nor the denominator, because the decision to bunt is usually the manager’s call rather than the batter’s, and penalising the batter for it would be unfair. Sacrifice flies are different: they count in the denominator but not the numerator, since the batter makes an out even though a run scores. Reaching base on an error or a fielder’s choice also does not count as reaching base for OBP.

Calculator Sources

Disclaimer

This calculator uses the official on-base percentage formula from the Official Baseball Rules (Rule 9.21(f)) and the standard total bases weighting for slugging percentage. It does not adjust for league, ballpark, era, quality of opposition, or the number of plate appearances needed to qualify for a rate title (3.1 plate appearances per team game in MLB, or 502 in a 162-game season). On-base percentage over a short stretch can swing widely with a few results either way. Use it as a quick measure of how often a hitter reaches base, and read it with slugging percentage for the full offensive picture.

Last updated: 24 November 2026

ADVERTISEMENT

ADVERTISEMENT