Batting Average Calculator

Batting average.300
On-base percentage.378
Slugging percentage.492
OPS.870
Total bases246
How this was calculated
  1. Batting average = hits / at-bats = 150 / 500 = .300 - walks and hit-by-pitches are plate appearances but not at-bats, so they never enter this fraction.
  2. On-base percentage = (hits + walks + hit-by-pitch) / (at-bats + walks + hit-by-pitch + sacrifice flies) = .378.
  3. Slugging = total bases / at-bats: 97 singles, 30 doubles, 3 triples and 20 home runs make 246 total bases, so slugging = .492 and OPS = OBP + SLG = .870.
  4. Baseball prints averages to three decimals and drops the leading zero, so .300 is the landmark figure: three hits in every ten at-bats across a full season.

This batting average calculator turns a player's hits and at-bats into a batting average, the classic rate that measures how often a batter gets a hit. The math is simple division: batting average equals hits divided by at-bats. If a player has 150 hits in 500 at-bats, the calculator returns a .300 average. Enter your own numbers and you get the same figure in an instant, with no manual long division and no rounding guesswork.

The method behind the answer is the accepted standard because it is the exact ratio baseball has always used to define batting average: hits over at-bats, written to three decimal places. It also fits alongside the other rate stats fans compare. The same 150-hit, 500-at-bat line, with 60 walks, 5 hit-by-pitches and 4 sacrifice flies, gives a .378 on-base percentage, and a season of 97 singles, 30 doubles, 3 triples and 20 home runs makes 246 total bases and a .492 slugging percentage. Add those two for a .870 OPS. An elite power season of 180 hits, 35 home runs and 329 total bases in 550 at-bats reaches a .598 slugging percentage and a 1.006 OPS. This page shows the formula, step-by-step workings, worked examples and sources so you can check every result yourself.

Worked examples

Full season: .300 hitter with power

Batting average = .300. On-base percentage: .378; Slugging percentage: .492; OPS: .870; Total bases: 246. (500 · 150 · 30 · 3 · 20 · 60 · 5 · 4)

Batting average.300
On-base percentage.378
Slugging percentage.492
OPS.870
Total bases246

Part-time player, 400 at-bats

Batting average = .250. On-base percentage: .303; Slugging percentage: .368; OPS: .671; Total bases: 147. (400 · 100 · 15 · 1 · 10 · 30 · 2 · 3)

Batting average.250
On-base percentage.303
Slugging percentage.368
OPS.671
Total bases147

MVP-calibre season

Batting average = .327. On-base percentage: .408; Slugging percentage: .598; OPS: 1.006; Total bases: 329. (550 · 180 · 40 · 2 · 35 · 70 · 8 · 5)

Batting average.327
On-base percentage.408
Slugging percentage.598
OPS1.006
Total bases329

The four rate stats explained

A batting average calculator gives you one number, but four rate stats tell the full story of a hitter's season. Each one answers a different question: how often a batter gets a hit, how often he reaches base, how much power he produces, and what all of it adds up to. The same 500-at-bat season can show all four at once, and walking through it is the clearest way to see what each stat measures.

Batting average, or AVG, is hits divided by at-bats. It counts only hits — not walks, not hit-by-pitches — against official at-bats. In our example season, 150 hits in 500 at-bats is a .300 average. That is the number most fans know first, and it is the one a batting average calculator is built around. On-base percentage, or OBP, asks a broader question: how often did the batter avoid making an out? It counts walks and hit-by-pitches along with hits, and it accounts for sacrifice flies in the denominator. The same line — 150 hits, 60 walks, 5 hit-by-pitches and 4 sacrifice flies in 500 at-bats — gives a .378 OBP. Because it includes more ways of reaching base, OBP is always at least as high as AVG for the same player.

Slugging percentage, or SLG, shifts from frequency to power. Instead of counting each hit once, it counts total bases: one for a single, two for a double, three for a triple and four for a home run. In the example season, 97 singles, 30 doubles, 3 triples and 20 home runs make 246 total bases, which works out to a .492 SLG. OPS simply adds the last two together: OBP plus SLG. For the full-season example, .378 + .492 = .870. OPS is a quick summary stat — one number that blends getting on base with hitting for power.

The scale matters too. A .300 average is strong, a .378 OBP is well above typical, and a .492 slugging percentage shows real pop. Put together, .870 OPS marks a productive everyday hitter. For contrast, an elite power season — 180 hits, 35 home runs and 329 total bases in 550 at-bats — reaches a .598 SLG and a 1.006 OPS. That comparison shows how much a big power year can lift the slugging and OPS numbers even when the other stats look similar.

One formatting note: baseball rate stats are traditionally printed to three decimal places with the leading zero dropped. So a .300 average appears as ".300," not "0.300," and the same goes for .378, .492 and .870. Keeping that convention makes your numbers look like the ones on a scoreboard or a baseball card.

AVG counts hits only; OBP adds walks and hit-by-pitches; SLG weighs hits by total bases; OPS is OBP plus SLG. The 500-at-bat example: .300 AVG, .378 OBP, .492 SLG, .870 OPS.

Why walks do not count as at-bats

A batting average calculator divides hits by at-bats, and that denominator is where most confusion starts. A walk is not an at-bat. Neither is a hit-by-pitch or a sacrifice fly. All of them are plate appearances — trips to the plate that count in the official record — but the rules of scoring keep them out of the at-bat column. So a player can step to the plate 500 times and still finish the season with fewer than 500 at-bats, and the batting average calculator only ever sees the smaller number.

The reason is that an at-bat is meant to measure a hitter's performance when he is genuinely trying to hit. When a pitcher walks a batter, the batter did not swing at a pitch he could handle, so charging him with a failed at-bat would punish him for the pitcher's mistake. The same logic covers a hit-by-pitch. A sacrifice fly is different: the batter gives himself up on purpose to score a runner, and the rules credit the out but spare him the at-bat. In each case the plate appearance is real, but the at-bat is not.

That distinction is exactly why on-base percentage needs a fuller denominator. OBP asks how often a player reaches base, so it has to count every way of getting there, including the walks and hit-by-pitches that batting average ignores. Take a hitter with 150 hits, 60 walks, 5 hit-by-pitches and 4 sacrifice flies in 500 at-bats. His batting average is 150 divided by 500, or .300. His OBP adds the walks and hit-by-pitches to the top and builds the bottom from hits, walks and hit-by-pitches, and the same line comes out to .378. The gap between .300 and .378 is the value of the plate appearances that never became at-bats.

The counting stats extend the same idea. Slugging weights each hit by the bases it produces: 97 singles, 30 doubles, 3 triples and 20 home runs make 246 total bases, and 246 divided by 500 at-bats gives a .492 SLG. Add OBP and SLG for OPS, and .378 plus .492 equals .870 for that full-season line. A bigger power season — 180 hits, 35 home runs and 329 total bases in 550 at-bats — reaches a .598 SLG and a 1.006 OPS. Notice that each of these numbers is built on the same at-bat figure, which is why keeping walks out of it matters so much.

When you use a batting average calculator, enter at-bats rather than plate appearances. If you feed it the 500 plate appearances from the example above, you will get a lower average than the hitter earned, because the walks and hit-by-pitches will be treated as outs. Check the stat line first: hits and at-bats go into the average, while walks, hit-by-pitches and sacrifice flies belong in the on-base calculation instead.

Walks, hit-by-pitches and sacrifice flies are plate appearances, not at-bats. Batting average uses at-bats; OBP uses the broader set of times on base.

Total bases and slugging

Batting average treats every hit the same, but a home run is not the same event as a single. Total bases is where that difference shows up. Each single counts as one base, each double as two, each triple as three, and each home run as four. Add those together and you have the raw material for slugging percentage, which divides total bases by at-bats. A batting average calculator that stops at hits over at-bats gives you part of the picture; the total-bases build gives you the rest.

Take the full-season example. The hitter collected 150 hits in 500 at-bats for a .300 average. Break those 150 hits into types: 97 singles, 30 doubles, 3 triples and 20 home runs. The singles contribute 97 bases, the doubles 60, the triples 9, and the home runs 80. That comes to 246 total bases. Divide 246 by 500 at-bats and the slugging percentage is .492. Notice that 97 plus 30 plus 3 plus 20 equals 150, so every hit is accounted for exactly once.

The arithmetic is worth walking through because it explains why slugging can move so much while batting average barely budges. Twenty home runs in 500 at-bats add 80 total bases on their own. Swap those 20 home runs for 20 singles and the batting average stays at .300, since the hit count does not change, but total bases fall to 206 and slugging drops to .412. Same average, very different production. That is the gap slugging is designed to expose, and it is why the two numbers are usually read together rather than in isolation.

Slugging also sets up the next step. On-base percentage for this same line, with 150 hits, 60 walks, 5 hit-by-pitches and 4 sacrifice flies in 500 at-bats, is .378. Add that to the .492 slugging and OPS comes to .870. For a sense of scale, an elite power season of 180 hits, 35 home runs and 329 total bases in 550 at-bats reaches a .598 slugging percentage and a 1.006 OPS. Slugging rewards the hitter who does the most damage per at-bat, and total bases is the count that makes it possible.

One caution: slugging uses at-bats in the denominator, not plate appearances, so walks and hit-by-pitches do not lower it. That is a feature, not a bug, but it means a patient hitter's slugging and on-base numbers can tell quite different stories.

  • Singles: 97 × 1 = 97 bases
  • Doubles: 30 × 2 = 60 bases
  • Triples: 3 × 3 = 9 bases
  • Home runs: 20 × 4 = 80 bases
  • Total: 97 + 60 + 9 + 80 = 246 total bases
  • Slugging: 246 ÷ 500 at-bats = .492
Total bases weights each hit by the bases it earns: 97 singles, 30 doubles, 3 triples and 20 home runs produce 246 total bases and a .492 slugging percentage in 500 at-bats.

What is a good OPS?

OPS stands for on-base plus slugging, and it is simply a player's on-base percentage added to his slugging percentage. Because it combines the two, it rewards a hitter twice for the same skill: getting on base and hitting for power. That is why OPS is a quick way to judge a season, and why a batting average calculator that also reports OBP, SLG and OPS gives you a fuller picture than batting average alone.

The scale is easiest to read through examples. Take a full season of 500 at-bats with 150 hits, 60 walks, 5 hit-by-pitches and 4 sacrifice flies. Those 150 hits in 500 at-bats make a .300 batting average. Add the walks and hit-by-pitches and the on-base percentage comes to .378. Break the hits down into 97 singles, 30 doubles, 3 triples and 20 home runs, and you get 246 total bases, which is a .492 slugging percentage. Add the two together: .378 + .492 = .870. That .870 OPS is a strong season, the kind of line a team is glad to have in the middle of the order.

At the other end, a .671 OPS is a light-hitting season. The number is lower because the hitter is not doing much of either job — not reaching base often enough and not driving the ball for extra bases. A player with that OPS is usually in the lineup for defense, speed or some other reason, not for his bat.

At the top of the scale, an elite power season looks different. Give a hitter 550 at-bats, 180 hits, 35 home runs and 329 total bases, and the slugging percentage reaches .598. With a strong on-base mark alongside it, the OPS comes to 1.006. That 1.006 OPS is elite — the sort of season that puts a hitter among the best in the league. So when you ask what is a good OPS, the examples give you a working range: .671 is light, .870 is strong, and 1.006 is elite. Anything in between falls somewhere on that spectrum, and the higher the number, the more the hitter is helping his team every time he comes to the plate.

Quick reference: .671 OPS = light-hitting season; .870 OPS = strong season; 1.006 OPS = elite.

FAQs

How is batting average calculated?

Divide hits by at-bats. If a player has 150 hits in 500 at-bats, the math is 150 divided by 500, which equals .300. That three-digit decimal, read as a percentage of at-bats that became hits, is the player's batting average.

What is the difference between OBP and batting average?

Batting average counts only hits against at-bats. On-base percentage also credits walks and hit-by-pitches, so it measures how often a player reaches base by any means. The .300 hitter in our example has a .378 OBP, showing that walks and hit-by-pitches added meaningfully to his on-base rate.

How is slugging percentage calculated?

Divide total bases by at-bats. Total bases weight each hit by its value: one for a single, two for a double, three for a triple, four for a home run. In the example, 246 total bases in 500 at-bats gives a .492 slugging percentage, which measures power rather than just contact.

What is OPS?

OPS stands for on-base plus slugging. You simply add a player's on-base percentage and slugging percentage together. In the example, .378 OBP plus .492 SLG equals .870 OPS. Because it combines getting on base with hitting for power, OPS is a quick single-number summary of a hitter's overall offensive value.

Is a .300 average good?

Yes. A .300 batting average is the classic landmark for an excellent hitter, so reaching it is a strong season. The example player, with a .300 average and a 1.006 OPS, shows the elite end of that scale, pairing a high average with power and on-base skills.

Do walks hurt batting average?

No. Walks are not at-bats, so they neither help nor hurt batting average, which counts only hits divided by at-bats. A walk does raise on-base percentage, though, because OBP credits walks. That is why a player can hold a .300 average while his OBP climbs to .378 with walks and hit-by-pitches included.

Sources

Related calculators

NFL Passer Rating Calculator
NFL passer rating calculator: the official rating from completions, attempts, yards, touchdowns and interceptions, on the 0 to 158.3 scale.
Golf Handicap Calculator
Convert a Handicap Index into a course handicap for any tee set with the World Handicap System formula — plus the 95% playing handicap.
Darts Average Calculator
Calculate a three-dart average from total points and darts thrown, with per-dart average and how much of the scoring came from 180s.