Skip to content
Mathico

ERA Calculator

Calculate a pitcher's earned run average (ERA) from earned runs and innings pitched, entered just like a box score (6.2 = 6โ…”). It works for 9-inning baseball or 7-inning softball, and also gives WHIP, K/9, BB/9 and strikeout-to-walk ratio.

.1 = one out, .2 = two outs

Game length
Optional: for WHIP and rate stats

Earned run average (9-inning games)

2.49

Outs recorded
487
WHIP
1.05
K/9
9.98
BB/9
2.22
H/9
7.21
K/BB
4.50

ERA = 9 ร— 45 รท 162.3333 = 2.49

How to use the ERA calculator

  1. Enter earned runs and innings pitched straight from the box score, using .1 for one out and .2 for two.
  2. Pick the game length: 9 innings for MLB and college baseball, 7 for softball and most high-school games, or your own.
  3. Optionally add hits, walks and strikeouts to get WHIP, strikeouts and walks per game, and the strikeout-to-walk ratio.

ERA formula

ERA = innings per game ร— earned runs รท innings pitched
Innings pitched = full innings + outs รท 3 (6.2 โ†’ 6โ…” = 6.667)
WHIP = (walks + hits) รท innings pitched ยท K/9 = 9 ร— strikeouts รท innings pitched

Worked examples

LineCalculationResult
45 ER in 162.1 IP9 ร— 45 รท 162.3332.49 ERA
3 ER in 6.2 IP9 ร— 3 รท 6.6674.05 ERA
2 ER in 5.0 IP, softball7 ร— 2 รท 52.80 ERA (3.60 on the 9-inning scale)
130 H + 40 BB in 162.1 IP170 รท 162.3331.05 WHIP
180 K, 40 BB in 162.1 IP9 ร— 180 รท 162.333 ยท 180 รท 409.98 K/9 ยท 4.50 K/BB

A common mistake is treating 6.2 innings as 6.2 instead of 6.667: here that would give 4.35 instead of the correct 4.05.

ERA guide (MLB)

ERARough rating
Under 2.50Elite, award-contending
2.50 โ€“ 3.50Very good
3.50 โ€“ 4.50Around league average
Over 5.00Below average

League-wide ERA changes with the era of play, ballparks and rules, so compare pitchers within the same league and season. Youth and softball ERAs run on different scales entirely.

Earned vs unearned runs

A run is unearned if it scores because of a fielding error or passed ball, including runs that score after an error should have ended the inning. ERA counts only earned runs, so it measures the pitcher rather than the defense. Relief pitchers are charged for runners they leave on base who later score.

More game stats

More education and sports calculators.

Sources

Frequently asked questions

How do you calculate ERA?

ERA = 9 ร— earned runs รท innings pitched. It's the number of earned runs a pitcher would allow over a full nine-inning game at their current rate. A pitcher who allows 45 earned runs in 162โ…“ innings has an ERA of 9 ร— 45 รท 162.333 = 2.49.

What does 6.1 or 6.2 innings pitched mean?

The digit after the decimal point counts outs, not tenths. 6.1 innings is 6โ…“ (6 innings plus one out) and 6.2 is 6โ…”. There's no such thing as 6.3, because three outs complete the inning. Enter innings the way they appear in a box score; the calculator converts them.

How do you calculate ERA for softball or 7-inning games?

Use the number of innings in a regulation game instead of 9: ERA = 7 ร— earned runs รท innings pitched. Two earned runs in 5 innings is a 2.80 ERA in a 7-inning game, versus 3.60 on the 9-inning scale.

What is an earned run?

An earned run is any run that scores without the help of a fielding error or passed ball. If an error extends an inning, runs that score after the third out should have been made are unearned. Official scorers make the call, so use the earned runs from the official scoresheet.

What is a good ERA?

In Major League Baseball, an ERA under about 3.00 is excellent, around 4.00 is roughly average in recent seasons, and above 5.00 is poor. League averages shift from year to year, so compare a pitcher with others in the same league and season.

What is WHIP?

WHIP is walks plus hits per inning pitched: (walks + hits) รท innings. It shows how many baserunners a pitcher allows. 40 walks and 130 hits in 162โ…“ innings is a WHIP of 1.05; around 1.00 is elite and 1.30 is about average in recent MLB seasons.