Baseball & softball stats calculator

Type a batter's or a pitcher's numbers and get batting average, on-base percentage, slugging, OPS, ERA and WHIP. For softball, ERA is calculated over 7 innings.

Formulas

Batting

Batting average (AVG): hits divided by at bats.

AVG = H / AB

On-base percentage (OBP): how often the batter reaches base, counting walks and hit by pitch.

OBP = (H + BB + HBP) / (AB + BB + HBP + SF)

Slugging (SLG): total bases divided by at bats. A single is worth 1, a double 2, a triple 3 and a home run 4.

TB = H + 2B + 2×3B + 3×HR · SLG = TB / AB · OPS = OBP + SLG · ISO = SLG − AVG

Pitching

Earned run average (ERA): earned runs allowed per full game. A baseball game is 9 innings; softball, 7.

ERA = ER × 9 / IP (softball: ER × 7 / IP)

Innings pitched are written with outs: 5.1 is 5 innings and 1 out (5⅓), 5.2 is 5⅔.

WHIP = (BB + H) / IP · K/9 = K × 9 / IP

Averages show three decimals without the leading zero, baseball style: .333.

Stats that calculate themselves

In TitanScores every play scored live or in the box score adds to each player's stats per league and season, and builds the leaders.

FAQ

How is batting average calculated?

Divide hits by official at bats. Walks, hit by pitch and sacrifices are not at bats. For example, 3 hits in 10 at bats is .300.

How is ERA calculated?

Multiply earned runs by 9 and divide by innings pitched. For softball, multiply by 7, because a game is 7 innings.

What does 6.2 innings pitched mean?

Six full innings and two outs, that is 6⅔ innings. That is why the next out makes it 7.0, not 6.3.

What is OPS?

The sum of on-base percentage (OBP) and slugging (SLG). It shows in one number how often a batter gets on base and how much power they hit with.

Ready for your next season?

Create your league today. It is free.