The ERA formula from the rulebook
Earned run average is the number of earned runs a pitcher allows per full game. Rule 9.21(e) of the Official Baseball Rules (2023 edition) spells it out: multiply the earned runs charged to the pitcher by 9, then divide by the innings pitched, fractions of an inning included.
ERA = earned runs × 9 ÷ innings pitched
The rulebook gives its own example: 3 earned runs in 9⅓ innings is an ERA of 2.89. The calculator returns 2.89 for the same line (2.8929 before rounding). A lower ERA is better: it means fewer earned runs per game.
Only earned runs count. Rule 9.16 defines an earned run as a run the pitcher is held accountable for: the official scorer replays the inning as if there had been no errors and no passed balls, and runs that would not have scored are unearned. The official scorer makes that call, so take the earned runs from the box score rather than from the final score.
Why 6.1 innings is not 6.1
This calculator takes a partial inning as the full innings, a dot, then the number of outs: 6.1 means 6 innings and 1 out, 6.2 means 6 innings and 2 outs. That is how you type innings here, not an official notation. The rule behind it is the comment to Rule 9.02(c)(1): the official scorer counts each putout as ⅓ of an inning. So 6.1 typed here is 6⅓ innings, about 6.333, and never 6.1 as a decimal. After the dot, only 0, 1 or 2 is accepted.
The difference shows up in the ERA. A pitcher who allows 2 earned runs in 6.1 innings has an ERA of 2.84. Typing 6.1 into a plain calculator as a decimal gives 2.95 instead, which is wrong. This calculator reads 6.1 and 6.2 as thirds, and it also accepts 6 1/3 or 6⅓. A number such as 6.3 or 6.5 is refused, because three outs end the inning.
Worked ERA examples
- One start: 2 earned runs in 6.1 innings. 6⅓ innings is 19 outs. ERA = 2 × 9 ÷ 6.333 = 2.84.
- One season: 60 earned runs in 180.2 innings (180⅔ innings, 542 outs). ERA = 60 × 9 ÷ 180.667 = 2.99.
- WHIP for the start above, with 5 hits and 2 walks: (2 + 5) ÷ 6.333 = 1.11 walks and hits per inning.
- A target: a pitcher with 40 earned runs in 150 innings has an ERA of 2.40. To get down to 2.00 without allowing another earned run, the innings must reach 40 × 9 ÷ 2 = 180, so 30 more scoreless innings. At 150 innings, 33 earned runs is the most that still gives an ERA of 2.00 or less.
Softball and 7-inning games
A softball game is 7 innings, so softball ERA counts earned runs per 7 innings. The 2026 and 2027 NCAA Softball Rules write it as earned runs × 7.0 ÷ innings pitched, in the Percentage Table of Rule 14 (Scoring). Choose 7 in the "Innings in a game" box. The same line of 3 earned runs in 7 innings is an ERA of 3.00 on the 7-inning scale and 3.86 on the 9-inning scale, so compare pitchers only on the same scale. If your league plays 7-inning games, use the scale it publishes its stats in.
WHIP and the target ERA
WHIP stands for walks and hits per inning pitched. MLB's glossary gives the formula: the sum of a pitcher's walks and hits, divided by the innings pitched. Unlike ERA it does not scale to a full game, and it counts every hit, whether or not a run scored. Fill in both boxes, using 0 if there were no walks, or leave both blank to skip WHIP.
The optional target ERA answers two questions a pitcher or a coach often asks: how many earned runs still fit under a given ERA with the innings already pitched, and how many scoreless innings it would take to bring the ERA down to that target. Both answers count in outs, the way innings are really pitched.
The table shows how much a single run moves the ERA over one start. Each cell is computed by the calculator.
| Earned runs | 5.0 IP | 6.1 IP | 7.0 IP | 9.0 IP |
|---|---|---|---|---|
| 0 | 0.00 | 0.00 | 0.00 | 0.00 |
| 1 | 1.80 | 1.42 | 1.29 | 1.00 |
| 2 | 3.60 | 2.84 | 2.57 | 2.00 |
| 3 | 5.40 | 4.26 | 3.86 | 3.00 |
| 4 | 7.20 | 5.68 | 5.14 | 4.00 |
| 5 | 9.00 | 7.11 | 6.43 | 5.00 |
ERA works best over many innings. Over one start, a single big inning can move it a lot, so read it with the innings next to it. For other sports numbers, the pace calculator handles running times and the golf handicap calculator works out a Handicap Index.
ERA Calculator FAQ
How do you calculate ERA in baseball?
Multiply the earned runs by 9 and divide by the innings pitched. 3 earned runs in 9⅓ innings is 27 ÷ 9.333, an ERA of 2.89.
What does 6.2 mean in the innings pitched box?
Six full innings and two outs, or 6⅔ innings. In this calculator the digit after the dot is a count of outs, not tenths, because each out is a third of an inning.
How is softball ERA different?
It is scaled to a 7-inning game: earned runs × 7 ÷ innings pitched, as in Rule 14 of the 2026 and 2027 NCAA Softball Rules. Choose 7 innings in the calculator to use that scale.
Do unearned runs count in ERA?
No. Only the runs the official scorer charges as earned count. Runs that score because of an error or a passed ball are usually unearned.
What is the difference between ERA and WHIP?
ERA counts earned runs per 9 innings. WHIP counts walks plus hits per single inning, whether or not anyone scored, so it measures how many runners reach base.