How to use the ERA calculator
- Enter earned runs and innings pitched straight from the box score, using .1 for one out and .2 for two.
- Pick the game length: 9 innings for MLB and college baseball, 7 for softball and most high-school games, or your own.
- Optionally add hits, walks and strikeouts to get WHIP, strikeouts and walks per game, and the strikeout-to-walk ratio.
ERA formula
Innings pitched = full innings + outs รท 3 (6.2 โ 6โ = 6.667)
WHIP = (walks + hits) รท innings pitched ยท K/9 = 9 ร strikeouts รท innings pitched
Worked examples
| Line | Calculation | Result |
|---|---|---|
| 45 ER in 162.1 IP | 9 ร 45 รท 162.333 | 2.49 ERA |
| 3 ER in 6.2 IP | 9 ร 3 รท 6.667 | 4.05 ERA |
| 2 ER in 5.0 IP, softball | 7 ร 2 รท 5 | 2.80 ERA (3.60 on the 9-inning scale) |
| 130 H + 40 BB in 162.1 IP | 170 รท 162.333 | 1.05 WHIP |
| 180 K, 40 BB in 162.1 IP | 9 ร 180 รท 162.333 ยท 180 รท 40 | 9.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)
| ERA | Rough rating |
|---|---|
| Under 2.50 | Elite, award-contending |
| 2.50 โ 3.50 | Very good |
| 3.50 โ 4.50 | Around league average |
| Over 5.00 | Below 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
- Batting averages and win rates are ratios: hits รท at-bats, wins รท games. The ratio calculator handles them.
- Bowling night? Score a game frame by frame with the bowling score calculator.
- Picking teams or batting order fairly: use the random number generator.
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.