ERA Calculator

Enter the earned runs and the innings pitched, typing the outs after a dot: 6.1 for 6⅓ innings, 6.2 for 6⅔. The calculator turns the outs into thirds of an inning, gives the earned run average per 9 innings (or 7 for softball), and adds WHIP and a target ERA check if you want them.

Enter the pitching line

ERA is the earned runs a pitcher allows per full game. Baseball counts 9 innings; the 2026 and 2027 NCAA Softball Rules (Rule 14) count 7.

Earned runs only, as the official scorer charged them.

Type the outs after the dot: 6.1 = 6⅓ innings, 6.2 = 6⅔. You can also type 6 1/3.

For WHIP (optional): leave both blank to skip.

All hits, earned runs or not.

Count of walks.

To see how many earned runs fit under it, or the scoreless innings needed to reach it.

Earned run average

2.89 ERA

3 earned runs in 9 ⅓ innings · per 9 innings · WHIP 0.96

How the ERA is worked out
Innings pitched9.1 = 9 ⅓ innings (28 outs)
Earned runs3
Earned runs per inning0.3214
ERA, earned runs × 9 ÷ innings2.89 (2.8929 before rounding)
Walks + hits2 + 7 = 9
WHIP, (walks + hits) ÷ innings0.96 (0.9643 before rounding)

Formulas: ERA = earned runs × 9 ÷ innings pitched (Official Baseball Rules 9.21(e) use 9; the 2026 and 2027 NCAA Softball Rules, Rule 14, use 7). Each out is ⅓ of an inning, so 6.1 typed here is 6⅓ innings, not 6.1. WHIP = (walks + hits) ÷ innings pitched. Only the official scorer decides which runs are earned.

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.

ERA by earned runs and innings pitched (9-inning scale)
Earned runs5.0 IP6.1 IP7.0 IP9.0 IP
00.000.000.000.00
11.801.421.291.00
23.602.842.572.00
35.404.263.863.00
47.205.685.144.00
59.007.116.435.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.

Guides

Last updated . Free to use, no sign-up. How we check our numbers.