Home / Sports / Batting Average Calculator

Batting Average Calculator – Hits, OBP, SLG and OPS in One Place

A batting average is just hits divided by at-bats, but the number hides a lot: walks do not count as at-bats, a sacrifice fly does not hurt your average, and a .300 hitter with no power is a very different player from a .300 slugger. Enter your hits and at-bats and get your average plus on-base percentage, slugging and OPS.

A player with 45 hits in 150 at-bats is batting .300. Add 20 walks, 2 hit-by-pitches and 3 sacrifice flies and his on-base percentage is .383. With 28 singles, 10 doubles, 2 triples and 5 home runs his slugging percentage is .493 and his OPS is .876.

45 hits in 150 at-bats = .300BA, OBP, SLG and OPSFree, no sign-up

Your batting line

Hits
At-bats
Advanced options

Walks, hit-by-pitch, sacrifice flies and the hit breakdown are already included in the result with their default values — open this section only to change them.

Plate appearances (for OBP)
Walks (BB)
Hit by pitch
Sacrifice flies
Hit breakdown (for SLG) — must add up to total hits
Singles (1B)
Doubles (2B)
Triples (3B)
Home runs (HR)
Target average (what-if)
Target average
Next at-bats

Private by design: every number is worked out in your browser. Nothing you type is sent anywhere or stored.

Your result

Batting average
.300
45 hits in 150 at-bats, 175 plate appearances
On-base percentage (OBP).383
Slugging percentage (SLG).493
On-base plus slugging (OPS).876
Total bases74
Plate appearances175
Isolated power (ISO = SLG – BA).193
Hit breakdown28 singles, 10 doubles, 2 triples, 5 home runs
Hits needed for .3006 hits in your next 20 at-bats to reach .300
Copied

Key takeaways

  • Batting average = hits divided by at-bats, always written to three decimals: 45 hits in 150 at-bats is .300, not 30 percent.
  • Walks, hit-by-pitch, sacrifice flies and sacrifice bunts do not count as at-bats, so a patient hitter is not punished for taking a walk. They do count toward on-base percentage.
  • Average alone hides power. In the worked example, 45 hits in 150 at-bats give a .300 average, but the hit mix (28 singles, 10 doubles, 2 triples, 5 home runs) produces 74 total bases and a .493 slugging percentage.
  • OPS combines reach and power: .383 on-base plus .493 slugging is an .876 OPS. Around .800 is good, .900 is great, 1.000 is elite.
  • A .300 average needs work to keep. A .300 hitter at 45 for 150 needs 6 hits in his next 20 at-bats to stay at .300.

How batting average is calculated

The formula is one division:

BA = Hits / At-bats

Take the number of hits and divide by the number of at-bats, then round to three decimals. The leading zero is dropped by convention, so 0.300 is written as .300. A player with 45 hits in 150 at-bats is batting 45 / 150 = .300. A player with 60 hits in 200 at-bats is also batting .300, which is why average alone never tells you how many chances a player had — always read it with the at-bat total next to it.

At-bats are not the same as plate appearances. Walks, hit-by-pitch, sacrifice flies, sacrifice bunts and catcher interference send a player to first base without an at-bat being charged. That is the whole point of the stat: it measures what a hitter does when he actually gets a chance to hit.

What counts as an at-bat

Only plate appearances that end in a hit or an out against the pitcher count. Everything else is excluded, so it neither helps nor hurts the average.

Counts as an at-batDoes not count as an at-bat
Single, double, triple, home runWalk (base on balls)
StrikeoutHit by pitch
Groundout or flyoutSacrifice fly
Fielders choiceSacrifice bunt
Reached on an error (charged as an at-bat, no hit)Catcher interference

One quirk to remember: a sacrifice fly does not count as an at-bat, so it does not lower a batting average — but it does count in the on-base percentage denominator. That is why a player can have a higher on-base percentage than his average would suggest and still see his OBP dip after a run-scoring fly ball.

From average to OBP, SLG and OPS

Three numbers complete the picture that average starts:

On-base percentage (OBP) = (Hits + Walks + Hit by pitch) / (At-bats + Walks + Hit by pitch + Sacrifice flies) — how often the player reaches base at all.

Slugging percentage (SLG) = Total bases / At-bats — how much damage the hits do. Total bases count a single as 1, a double as 2, a triple as 3 and a home run as 4.

OPS = OBP + SLG — the quickest single number for overall hitting. It is a sum, not an average, so it can pass 1.000.

Worked example — 45 hits in 150 at-bats, 20 walks, 2 hit-by-pitches, 3 sacrifice flies, and a hit mix of 28 singles, 10 doubles, 2 triples and 5 home runs:

StatCalculationResult
Batting average45 / 150.300
Total bases28 + (10 x 2) + (2 x 3) + (5 x 4)74
Slugging74 / 150.493
On-base percentage(45 + 20 + 2) / (150 + 20 + 2 + 3).383
OPS.383 + .493.876
Isolated power.493 – .300.193
Plate appearances150 + 20 + 2 + 3175

Isolated power (ISO) is slugging minus average. A .193 ISO means this hitter adds almost two-tenths of a base per at-bat beyond a single — real extra-base power, not just a high average built on singles.

What is a good batting average?

Context matters: the Major League average has sat around .240 in recent seasons, so .300 is much further above average than it looks. Use this scale for a full season:

AverageWhat it means
Below .200The Mendoza line — below this, a hitter is in trouble unless his glove or power saves him.
.200 to .239Below average for a regular player.
.240 to .259Around the league average.
.260 to .279Solid everyday hitter.
.280 to .299Very good — a lineup regular teams build around.
.300 to .329Excellent — batting-title territory in most seasons.
.330 and aboveElite season, usually in the MVP conversation.
.400Not done in the Major Leagues since 1941.

Early in a season, averages lie. A hitter who is 6 for 15 is batting .400, but one hitless game drops him to .300. Small samples swing wildly; a full season of 500 or more at-bats is where an average starts to mean something.

The .400 club

Only five players have ever finished a Major League season at .400 or better, and the last one did it more than 80 years ago. Ted Williams hit .406 in 1941 and nobody has reached .400 since.

PlayerSeasonAverage
Rogers Hornsby1924.424
Ty Cobb1911.420
Joe Jackson1911.408
George Sisler1920.407
Ted Williams1941.406

Williams finished 1941 at 185 hits in 456 at-bats — a .406 average — with 147 walks on top, giving him a .553 on-base percentage and a 1.136 OPS. His line shows why the advanced numbers matter: the average alone (.406) is historic, but the OBP and OPS show a hitter who almost never made an out.

Common mistakes

Counting walks as at-bats. Walks are plate appearances, not at-bats. Adding them to the denominator lowers the average for the most patient hitters — the exact players the stat is meant to treat fairly.

Writing .300 as 30 percent. Averages are written to three decimals without a percent sign. Saying 30 percent is not wrong as a description, but nobody in baseball writes it that way.

Forgetting sacrifice flies in OBP. A sacrifice fly spares the average but still counts in the OBP denominator, so it slightly lowers on-base percentage. If your OBP looks lower than expected, check the sacrifice flies.

Judging a hitter by average alone. A .280 hitter who slugs .550 is far more valuable than a .300 hitter who slugs .360. Read average, on-base and slugging together — that is what OPS is for.

Trusting a tiny sample. Ten at-bats can make anyone look like a star or a bust. Wait for at least 100 at-bats before reading much into an average, and 500 before calling it a true level.

How it works

Step 1 — Enter hits and at-bats. Type the hit total and the at-bat total from the scorebook or stat sheet. The average updates as you type.
Step 2 — Open Advanced options. Add walks, hit-by-pitch, sacrifice flies and the hit breakdown to get OBP, slugging, OPS and total bases, plus the hits you need to reach a target average.
Step 3 — Read the line. Your average is the big number; OBP, SLG, OPS, total bases and isolated power sit below it. Copy the result to share it.

Deep dive

Baseball scores averages as a decimal to three places and drops the leading zero by convention, so .300 reads as three hundred. It is the same number as 30 percent, but the three-decimal form is the language of the sport: a .300 hitter, a .250 hitter, the Mendoza line at .200. The third decimal also matters — .299 and .300 look almost identical as percentages, but one is a headline and the other is not. Keeping three decimals preserves the difference that a rounded percentage would hide.

None of them alone. Average measures contact, on-base measures reaching base, slugging measures damage — and a great hitter needs all three. Modern teams lean on OPS because it adds reach and power into one number: a .900 OPS is a star and a 1.000 OPS is a season for the ages. But OPS still treats a point of on-base and a point of slugging as equal, which they are not quite, and it ignores defence, baserunning and park effects. Use average for the headline, OBP and SLG for the story, and OPS for the quick comparison — then check the full context before ranking anyone.

Frequently asked questions

How do I calculate batting average?

Divide hits by at-bats and round to three decimals. A player with 45 hits in 150 at-bats is batting 45 / 150 = .300. A player with 60 hits in 200 at-bats is also batting .300.

Do walks count in batting average?

No. Walks, hit-by-pitch, sacrifice flies, sacrifice bunts and catcher interference are plate appearances but not at-bats, so they never change a batting average. They do count toward on-base percentage, which is why a patient hitter can have an OBP far above his average.

What is a good batting average?

In the Major Leagues, where the league average sits around .240, .260 is solid, .280 is very good and .300 is excellent and usually in the batting-title race. Below .200 is the Mendoza line. In youth and amateur leagues the scale is different — compare a player with his own league, not with the Major Leagues.

How is OBP different from batting average?

Batting average only counts hits over at-bats. On-base percentage counts every way of reaching base — hits, walks and hit-by-pitch — over at-bats plus walks, hit-by-pitch and sacrifice flies. In the worked example, 45 hits in 150 at-bats give a .300 average, but 20 walks and 2 hit-by-pitches lift the on-base percentage to .383.

What is OPS and what is a good OPS?

OPS is on-base percentage plus slugging percentage. In the worked example, .383 on-base plus .493 slugging is an .876 OPS. Around .700 is league average, .800 is good, .900 is great and 1.000 is elite. Ted Williams posted a 1.136 OPS in his .406 season in 1941.

How many hits do I need to raise my average to .300?

Take the target average times the new at-bat total, then subtract the hits you already have. A hitter at 45 for 150 who wants .300 after 20 more at-bats needs 0.300 x 170 – 45 = 6 hits. This calculator works it out for any target average and any number of coming at-bats — set them in Advanced options.

Disclaimer: This calculator is for general information and fun only. It follows the official scoring rules for what counts as an at-bat, but it is not a substitute for an official scorebook or a coach’s judgment. Always check your numbers against the official record for the game or season.

CalcFolk — free calculators, worked out in your browser. Batting average, on-base percentage, slugging and OPS from one set of numbers.