Earned run average (ERA) is the classic measure of a pitcher: how many earned runs he would allow over a full game at his current rate. A 3.00 ERA means three earned runs per nine innings. Because it is a rate, it lets you compare a starter with 200 innings against a reliever with 60.
The calculator also works as a WHIP calculator (walks plus hits per inning pitched), and adds strikeouts, walks and hits per game and the strikeout-to-walk ratio when you enter them.
It reads innings exactly as they appear in a box score. In baseball, 6.1 means 6⅓ innings and 6.2 means 6⅔, because the digit after the point counts outs, not tenths. Typing 6.2 into an ordinary calculator is the most common way people get ERA wrong; here it is converted for you. Switch the game length to 7 innings for softball and most high-school baseball, or 6 for Little League.
How to use this calculator
- Choose the innings per game: 9 for MLB and college baseball, 7 for softball and high school, 6 for Little League.
- Keep Box score notation to type innings like 45.2, or switch to decimal if your figure is already 45.67.
- Enter the innings pitched and the earned runs charged to the pitcher.
- Optionally add hits, walks and strikeouts to get WHIP, K/9, BB/9, H/9 and K/BB.
- Read the ERA and the calculation steps; the outs recorded show how the innings were interpreted.
The formula
Official Baseball Rule 9.21(e): multiply earned runs by 9 and divide by innings pitched, including fractions of an inning. With innings in a regulation game:
Innings in box-score notation are converted through outs: , so . Unearned runs (those that score because of an error or a passed ball) are excluded from ER; the official scorer decides which runs are earned.
Worked example
Bob Gibson’s 1968 season, the lowest ERA of the live-ball era: 304.2 innings, 38 earned runs, 198 hits, 62 walks and 268 strikeouts.
- 304.2 innings means 304⅔, i.e. 914 outs or 304.667 innings.
- ERA 1.12
- WHIP 0.85
- K/9
Why the notation matters: a reliever with 5 earned runs in 10.2 innings (10⅔) has an ERA of 4.22. Typing 10.2 into an ordinary calculator gives 4.41, a wrong answer.
Softball: a pitcher allowing 12 earned runs in 70 innings has a 7-inning ERA of 1.20.
WHIP, K/9 and what good numbers look like
WHIP counts the base runners a pitcher allows through walks and hits each inning. It ignores hit batsmen and errors, and does not care whether a hit was a single or a home run, but it is a quick read on how much traffic a pitcher allows.
| Rating | ERA (MLB) | WHIP |
|---|---|---|
| Elite | below 2.50 | below 1.00 |
| Very good | 2.50 to 3.25 | 1.00 to 1.15 |
| Average | about 4.00 | about 1.25 to 1.30 |
| Below average | 4.50 to 5.00 | 1.40 |
| Poor | above 5.00 | above 1.50 |
Strikeout rates have risen sharply: a modern MLB average is around 8.5 to 9 strikeouts per nine innings, while 6 was typical in the 1980s.
Earned or unearned run?
A run is unearned when it would not have scored without a fielding error, a passed ball or catcher’s interference. The official scorer reconstructs the inning without the misplay: any run that still would have scored is earned. Unearned runs still count on the scoreboard and in a pitcher’s runs allowed (RA9), but not in his ERA. That is why two pitchers with the same runs allowed can have very different ERAs.
Frequently asked questions
How do you calculate ERA?
Multiply earned runs by 9 and divide by innings pitched. A pitcher who gives up 20 earned runs in 60 innings has an ERA of 9 × 20 / 60 = 3.00.
What does 6.1 or 6.2 innings pitched mean?
Each out is a third of an inning, so 6.1 is 6⅓ innings (19 outs) and 6.2 is 6⅔ (20 outs). There is never a .3: three outs complete the inning.
How do you calculate WHIP?
Add walks and hits allowed and divide by innings pitched. 50 walks and 150 hits in 160 innings give a WHIP of 200 / 160 = 1.25.
How is ERA calculated in softball?
Use 7 instead of 9, since a regulation softball game lasts seven innings: ERA = 7 × ER / IP. Select 7 innings per game above; WHIP is the same in both sports.
What is a good ERA?
In today’s MLB, a league-average ERA is around 4.00. Under 3.00 is excellent, and the best starters in a season are often near or below 2.50.
Can ERA be infinite?
Yes. A pitcher who allows an earned run without recording an out has 0 innings pitched, and the ERA is shown as ∞ or INF until he gets an out.
Sources
- MLB, Official Baseball Rules 2025, rule 9.21(e) earned-run average and rule 9.22(b) minimum innings
- MLB glossary, Earned run average (ERA)
- MLB glossary, Walks and hits per inning pitched (WHIP)
- MLB glossary, Innings pitched (IP), .1 and .2 notation
Last updated: