Skip to content

ERA Calculator (Earned Run Average) and WHIP

Earned run average, WHIP, K/9 and BB/9 from innings in baseball notation (6.2 = 6⅔), for 9- or 7-inning games.

Your details

Innings per game
Innings entered as

Box-score style: .1 = one out (⅓), .2 = two outs (⅔).

Results update as you type

Earned run average (ERA)

3.49

WHIP (walks + hits per inning)
1.25
Strikeouts per game (K/9)
9.5
Walks per game (BB/9)
2.7
Hits per game (H/9)
8.5
Strikeout-to-walk ratio (K/BB)
3.45
Innings as a decimal
180.667
Outs recorded
542

An MLB ERA title requires at least 1 inning pitched per team game (162 innings in a 162-game season).

Step-by-step solution
  1. ERA = 9 × 70 / 180 ⅔ = 3.49
  2. WHIP = (55 + 170) / 180 ⅔ = 1.25

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

  1. Choose the innings per game: 9 for MLB and college baseball, 7 for softball and high school, 6 for Little League.
  2. Keep Box score notation to type innings like 45.2, or switch to decimal if your figure is already 45.67.
  3. Enter the innings pitched and the earned runs charged to the pitcher.
  4. Optionally add hits, walks and strikeouts to get WHIP, K/9, BB/9, H/9 and K/BB.
  5. 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 gg innings in a regulation game:

ERA=g×ERIP\text{ERA} = \frac{g \times ER}{IP}
WHIP=BB+HIPK/9=9×KIP\text{WHIP} = \frac{BB + H}{IP} \qquad \text{K}/9 = \frac{9 \times K}{IP}

Innings in box-score notation are converted through outs: IP=whole innings+outs3IP = \text{whole innings} + \frac{\text{outs}}{3}, so 6.2→6+23=6.6676.2 \to 6 + \frac{2}{3} = 6.667. 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 =9×38/304.667== 9 \times 38 / 304.667 = 1.12
  • WHIP =(62+198)/304.667== (62 + 198) / 304.667 = 0.85
  • K/9 =9×268/304.667=7.9= 9 \times 268 / 304.667 = 7.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 7×12/70=7 \times 12 / 70 = 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

Last updated:

More Sports calculators

People also use