ERA Calculator (Earned Run Average)

Calculate a pitcher's ERA from earned runs and innings pitched, including partial innings like 6.2. Works for 9-inning baseball and 7-inning softball.

ERA Calculator (Earned Run Average)

Calculate a pitcher's Earned Run Average (ERA) based on earned runs and innings pitched. This essential baseball statistic measures a pitcher's effectiveness by showing how many earned runs they allow per nine innings pitched.

Pitcher Statistics

ER
IP

Display Options

ERA Calculator (Earned Run Average): How to Calculate It Correctly

Most explanations of Earned Run Average (ERA) treat it as a simple division problem, then ruin the result by mishandling partial innings. The common mistake that leads to an incorrect ERA is treating 5.2 innings as 5.2 instead of 5 and 2/3. The digit after the decimal point counts outs, not tenths of an inning. One out is one-third of an inning; two outs is two-thirds. Use the correct era calculator method so you never make that error.

ERA measures a pitcher's effectiveness by showing the average number of earned runs they allow per nine innings pitched. A lower ERA is better, indicating the pitcher allowed fewer runs. The statistic standardises performance so pitchers with different workloads can be compared fairly. Enter earned runs (ER) and innings pitched (IP), including partial innings using the correct outs notation, and get the ERA.

  • ERA Formula: ERA = (Earned Runs × 9) ÷ Innings Pitched. For a 7-inning game, replace 9 with 7.
  • Partial Innings Rule: Record .1 for one out (1/3 inning) and .2 for two outs (2/3 inning). Never use .3; three outs is a complete inning.
  • MLB Rule Reference: Rule 9.16 of the Official Baseball Rules (current edition) defines earned runs. Rule 9.02 defines how innings pitched are recorded.
  • Minimum Sample Size: ERA is not reliable below 50 innings for starters and 30 innings for relievers (FanGraphs).
  • League Average (2025): The MLB league-average ERA for the 2025 season was approximately 4.20, published by Baseball-Reference. This figure is updated annually.

ERA Formula: How to Calculate Earned Run Average

The formula for Earned Run Average is straightforward:

ERA = (Earned Runs × 9) ÷ Innings Pitched

The number 9 represents the innings in a regulation baseball game. This standardises the statistic so you can compare a pitcher who pitched 200 innings to one who pitched 50. For a 7-inning game, such as softball or most high school baseball, substitute 7 for 9 in the formula.

Earned runs are defined by MLB Rule 9.16: a run that scores without the aid of an error or passed ball. Unearned runs, caused by defensive errors, are not charged to the pitcher's ERA. For the earned versus unearned distinction, see the topic earned vs unearned runs.

How to Calculate ERA: A Worked Example With a Partial Inning

Here is a realistic example that includes a partial inning, showing the correct thirds conversion. A pitcher allows 7 earned runs in 6.1 innings pitched.

Step 1: Convert the partial inning to a decimal. 6.1 IP means 6 complete innings plus 1 out. One out is 1/3 of an inning. So the decimal value is 6 + (1 ÷ 3) = 6.333 innings.

Step 2: Multiply earned runs by 9. 7 earned runs × 9 = 63.

Step 3: Divide by innings pitched. 63 ÷ 6.333 = 9.95.

The pitcher's ERA is 9.95, which is poor. This result makes sense because the pitcher allowed nearly 10 earned runs per regulation game.

If you use a calculator that treats 6.1 as 6.1, you get 63 ÷ 6.1 = 10.33, an error of nearly 0.4 runs. The third difference matters, especially over small samples.

7-Inning Leagues: Softball and High School

Softball and most high school baseball use a regulation game of 7 innings, not 9. The ERA formula is identical: ERA = (Earned Runs × innings per game) ÷ Innings Pitched. For these leagues, substitute 7 for 9.

A softball ERA is not directly comparable to a baseball ERA. A 2.00 ERA in softball is a different achievement than a 2.00 ERA in MLB because the per-game denominator differs. When comparing a pitcher's performance across leagues, use adjusted statistics like ERA+, which normalises for league context (Baseball-Reference).

What Is a Good ERA?

There is no single "good ERA" number that applies to all leagues, eras, or ballparks. The answer depends entirely on context. A 4.00 ERA in 2025 MLB is slightly above league average (4.20), while a 4.00 ERA in 1968 MLB is about 0.51 runs worse than that year's league average of 3.49. The same number means different things in different seasons.

Compare a pitcher's ERA to the league-average ERA for the same season and level. Baseball-Reference publishes league-average ERA by season for MLB and minor leagues. For quick reference, here are rough MLB benchmarks:

  • Under 2.00: Elite, Cy Young candidate level
  • 2.00 to 3.00: Very good, All-Star caliber
  • 3.00 to 4.00: Above average, solid starter
  • 4.00 to 4.50: Around league average
  • 4.50 to 5.00: Below average
  • 5.00 and higher: Poor

These bands are rough and change over time. For a deeper breakdown, see the topic era rating guide.

ERA Formula with Different Game Lengths
Game Length (Innings)FormulaExample: 7 ER in 6.1 IP (6.333 IP)ERA Result
9 (MLB, College Baseball)(ER × 9) ÷ IP(7 × 9) ÷ 6.3339.95
7 (Softball, High School Baseball)(ER × 7) ÷ IP(7 × 7) ÷ 6.3337.74
6 (Some youth leagues)(ER × 6) ÷ IP(7 × 6) ÷ 6.3336.63

Entering Partial Innings: The Correct Decimal Notation

The most common error when using an ERA calculator is entering partial innings as standard decimals. Baseball uses a notation where the digit after the decimal point counts outs, not tenths. 180.2 IP means 180 complete innings plus 2 outs, which is 180 + 2/3 = 180.667 innings, not 180.2.

How to convert correctly:

  • 6.0 IP = 6 innings (0 outs)
  • 6.1 IP = 6 + 1/3 = 6.333 innings
  • 6.2 IP = 6 + 2/3 = 6.667 innings

If you enter 6.2 as 6.2 in a calculator that does not understand baseball notation, your ERA will be wrong. Always use a calculator designed for baseball that handles the thirds conversion. For a detailed explanation of the notation, see the topic innings pitched decimals.

An Honest Caveat About ERA

ERA is the most widely used pitching statistic, but it is not a pure measure of pitcher skill. It is heavily influenced by the quality of the defense behind the pitcher, the ballpark's effect on batted balls, and the randomness of where batted balls land. A pitcher who allows a high BABIP (batting average on balls in play) will have a higher ERA than their skill warrants, and that BABIP is partly luck. For sample sizes under 50 innings for starters or 30 innings for relievers, ERA is essentially meaningless. If you need a statistic that isolates pitcher skill, use FIP or SIERA instead of ERA. The single thing that most often goes wrong when interpreting ERA is ignoring the context of the team's defense and the ballpark.

Common Questions

What is an earned run?

An earned run is any run that the official scorer judges as not caused by an error or passed ball. MLB Rule 9.16 defines earned runs as those scoring when a batter reaches first base on a hit, walk, error, interference, or when the batter is put out attempting to advance. The scorer's judgment is subjective and can vary between scorekeepers.

What is the ERA formula?

ERA = (Earned Runs × 9) ÷ Innings Pitched. For a 7-inning game, replace 9 with 7. The formula standardises performance to earned runs per regulation game.

How are partial innings (like 6.1 or 6.2) converted for the calculation?

The digit after the decimal point counts outs, not tenths. .1 = 1 out = 1/3 inning. .2 = 2 outs = 2/3 inning. Convert to decimal by adding the fraction: 6.1 IP = 6 + 1/3 = 6.333 innings. 6.2 IP = 6 + 2/3 = 6.667 innings. Never treat .1 as 0.1.

Is a lower ERA always better?

Yes, a lower ERA means the pitcher allowed fewer earned runs per nine innings. However, ERA is heavily influenced by defense, ballpark, and luck on balls in play. A pitcher with a 3.00 ERA on a poor defensive team may be pitching better than one with a 2.80 ERA on a great defensive team. Use advanced stats like FIP or SIERA for a clearer picture of pitcher skill.

Can ERA be infinite?

If a pitcher has allowed earned runs but has zero innings pitched, the ERA is undefined because division by zero is impossible. In practice, ERA is not calculated for pitchers with no innings recorded.

Guides on this site