Sports, Games, Gambling Odds & Hobbies Baseball & Softball Statistics MLB Official Baseball Rules, Rule 9.16

ERA Calculator — Earned Run Average

Enter earned runs and innings pitched and this calculator returns earned run average scaled to a full game — nine innings for baseball, seven for most softball codes. It reads innings in the official notation, so 62.1 means sixty-two and one-third innings rather than sixty-two point one, which is the mistake that quietly corrupts most hand calculations. It also converts your innings to a decimal, reports earned runs per appearance, indexes your ERA against a league average, and tells you how many scoreless innings you would need to reach a target.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Earned runs (ER)Runs charged to the pitcher excluding those that scored only because of an error or passed ball.38
Innings pitched (IP)Use official notation: .1 is one out (one third) and .2 is two outs (two thirds).304.2
Innings in a regulation gameThe scale factor. ERA is runs per regulation game, so this sets what a game means in your code.9 — baseball
Appearances or startsGames in which you pitched. Used only for the earned-runs-per-appearance figure.34
League average ERAYour league's composite ERA for the same season, used to index your figure against the environment.2.99
Target ERAThe ERA you want to reach; the calculator returns the scoreless innings that would get you there.1.0

It returns

  • Earned run average — Earned runs per regulation game.
  • Innings pitched (decimal) — Your innings with thirds converted to a true decimal.
  • ERA index vs league (100 = average) — League ERA divided by your ERA, times 100. No park adjustment is applied.
  • Earned runs per appearance — Total earned runs divided by games pitched.
  • Scoreless innings to reach the target — Additional innings without an earned run needed to bring your ERA down to the target.

The formula

ERA=ERIPG
IP=w+outs3
x=ERGTIP

In plain text: ERA = (ER / IP) × G

  • ERAEarned run average — earned runs per regulation game (runs/game)
  • EREarned runs charged to the pitcher (runs)
  • IPInnings pitched, expressed as a true decimal (innings)
  • GInnings in a regulation game: 9 for baseball, 7 for most softball (innings)

Rule 9.16 of the Official Baseball Rules governs which runs are earned. The conversion IP = whole + (outs ÷ 3) must be applied before dividing; .1 is one third and .2 is two thirds.

Updated Category Baseball & Softball Statistics Verified against published test cases Reading time 10 min

What earned run average actually measures

Earned run average is the number of earned runs a pitcher would surrender over a full regulation game at their current rate. It is a rate statistic disguised as a counting statistic: the raw quantity is earned runs per inning, and multiplying by nine converts that into the familiar scale where 3.50 is respectable and 6.00 is not.

The word earned is doing most of the work. A run is unearned when it would not have scored had the defence handled the ball cleanly — errors, passed balls, and any run that scores after the point at which the third out should have been made. Rule 9.16 asks the official scorer to reconstruct the inning without the misplay and charge the pitcher only for what survives that reconstruction. This is why ERA is not simply runs allowed divided by innings, and why two pitchers with identical run totals can have very different ERAs.

Scaling by game length is what makes ERA portable across roles. A starter who works 200 innings and a reliever who works 65 are put on the same axis, and a seven-inning softball code is put on the same axis as nine-inning baseball, because in each case you are asking the same question: at this rate, how many earned runs is a complete game worth?

The formula and the notation trap inside it

The calculation is ERA = (ER ÷ IP) × G. Earned runs is a plain count. Game length is 9 in professional and college baseball, 7 in most fastpitch and slowpitch softball and in scheduled seven-inning doubleheader games, and 6 in many youth leagues. The term that ruins hand calculations is innings pitched.

Innings pitched is scored in outs, and the box-score notation puts the outs after a decimal point even though they are thirds, not tenths. 62.1 means 62 innings and one out — 62.3333 innings. 62.2 means 62 innings and two outs — 62.6667 innings. There is no such thing as 62.3; the next value after 62.2 is 63.0. If you type 62.1 into a spreadsheet and divide, you have computed with 62.1 innings and your ERA will be roughly half a percent low. Over a season that is enough to move a pitcher on a leaderboard.

The safest mental model is to convert to outs first. Multiply the whole innings by three, add the outs after the decimal, and you have a single integer. Gibson's 304.2 becomes 304 × 3 + 2 = 914 outs, and 914 ÷ 3 = 304.6667 innings. This calculator does that conversion for you and shows it as the first step, so you can check it against the scorebook.

Worked example: Bob Gibson, 1968

Gibson allowed 38 earned runs in 304.2 innings across 34 starts in 1968. Work it in the order the formula demands.

  1. Convert the innings. 304 whole innings plus 2 outs = 304 × 3 + 2 = 914 outs, and 914 ÷ 3 = 304.6667 innings.
  2. Divide. 38 ÷ 304.6667 = 0.124726 earned runs per inning.
  3. Scale to a nine-inning game. 0.124726 × 9 = 1.12254.
  4. Round. ERA = 1.12, the lowest qualified mark of the live-ball era.
  5. Index it. The 1968 National League ERA was 2.99, so the unadjusted index is (2.99 ÷ 1.12254) × 100 = 266 — his rate of allowing earned runs was about 37% of the league's.
  6. Runs per start. 38 ÷ 34 = 1.12 earned runs per outing, which happens to coincide with the ERA because he averaged almost exactly nine innings per start.

Note what the index does not do. Baseball-Reference publishes Gibson's ERA+ as 258 rather than 266 because ERA+ also divides by a park factor, and Busch Stadium suppressed scoring. The index this calculator reports is the unadjusted league ratio; treat it as an environment check, not as a park-neutral rating.

Now use the target. To pull a 1.12 ERA down to 1.00 you would need x more scoreless innings, where 38 × 9 ÷ 1.00 − 304.6667 = 342 − 304.6667 = 37.3 innings — four more complete-game shutouts and change.

How to read an ERA

Read ERA against the league before you read it against a fixed benchmark. Major League run environments have swung enormously: the 1968 National League averaged 2.99, and several seasons since 2000 have averaged above 4.50. An ERA of 3.75 is a full run better than average in one of those environments and a fraction worse in the other. The index this calculator returns — league ERA divided by yours, times 100 — puts the figure on a scale where 100 is average and every point above 100 is a one-percent edge in run prevention.

Innings pitched controls how much you should trust it. ERA is noisy over short samples because it is driven partly by sequencing: the same nine baserunners produce zero runs if they arrive spread out and four if they arrive together. Analysts pair ERA with fielding-independent measures precisely because the sequencing component regresses hard. Below about 40 innings, treat ERA as a description of what happened rather than an estimate of ability.

Role matters too. Relievers post lower ERAs than starters as a class, because they face hitters once, work in shorter bursts, and inherit runners whose runs are charged to somebody else. Comparing a closer's 2.10 to a starter's 3.10 without adjusting for role is a category error.

Earned runs allowed at a given ERA

Earned runs a nine-inning pitcher allows over a season, computed as ERA × IP ÷ 9 and rounded to the nearest run.
ERA50 IP100 IP150 IP200 IPRough label
2.0011223344Elite
2.5014284256Excellent
3.0017335067Very good
3.5019395878Above average in a high-scoring league
4.0022446789Near league average in the modern game
5.00285683111Replacement level for a starter
6.003367100133Not a major-league workload

The labels are conventional shorthand for recent Major League run environments, not fixed thresholds. In a 2.99-ERA league every row shifts about a run tighter.

Mistakes that produce a wrong ERA

  • Treating .1 and .2 as tenths. The single most common error. 62.1 is 62.3333 innings, not 62.1, and using the wrong value understates ERA by roughly 0.4%.
  • Including unearned runs. Runs that score only because of an error or passed ball are excluded by Rule 9.16, along with every run that scores after the point at which the third out should have been recorded.
  • Using 9 for a seven-inning code. Softball ERA is scaled to seven innings. Using nine inflates every figure by 28.6%.
  • Charging inherited runners to the wrong pitcher. A run scored by a runner who was already on base is charged to the pitcher who put them there, not the reliever who allowed the hit.
  • Comparing a reliever's ERA to a starter's. Different roles produce systematically different ERAs for reasons that have nothing to do with pitching quality.
  • Reading a three-inning sample. One four-run inning in a three-inning outing produces a 12.00 ERA. That is arithmetic, not evidence.

The governing rule

Rule 9.16 of the Official Baseball Rules, published by the Office of the Commissioner of Baseball, defines an earned run and sets out the reconstruction procedure the official scorer follows when an error or passed ball intervenes. Rule 9.22 sets the one-inning-per-team-game minimum a pitcher must reach to qualify for an ERA title — 162 innings in a 162-game season. NCAA and USA Softball rulebooks adopt the same earned-run concept and the same thirds notation, changing only the regulation game length used as the scale factor.

What to use alongside ERA, and when to use something else

ERA answers "how many earned runs did this pitcher actually allow per game?" It does not answer "how many should they have allowed?" For that, analysts use fielding-independent pitching, which rebuilds an ERA-scaled number from only strikeouts, walks, hit-by-pitch and home runs — the outcomes a pitcher controls without help from the defence. A large gap between ERA and FIP is usually a signal that defence, sequencing or park is doing work that will not repeat.

WHIP — walks plus hits per inning pitched — is the natural companion because it measures traffic rather than runs, and it is far less sensitive to sequencing. A pitcher with a 2.80 ERA and a 1.45 WHIP is walking a tightrope; one with a 3.60 ERA and a 1.05 WHIP has probably been unlucky.

On the hitting side of the ledger the equivalent single-number summaries are batting average, on-base percentage and slugging percentage, and the same lesson applies: each is a ratio whose credibility rests entirely on getting the denominator right. The parallel in other sports is exact — goaltender save percentage divides saves by shots faced, and true shooting percentage divides points by a carefully defined count of scoring attempts.

Key terms

Earned run
A run charged to the pitcher that would have scored even if the defence had committed no errors and allowed no passed balls, as reconstructed under Rule 9.16.
Innings pitched
Outs recorded divided by three, written in box scores as whole innings with .1 or .2 appended for one or two additional outs.
Inherited runner
A baserunner already on base when a relief pitcher enters. If that runner scores, the run is charged to the previous pitcher.
FIP
Fielding independent pitching — an ERA-scaled estimate built only from strikeouts, walks, hit-by-pitch and home runs, used to separate pitching from defence.

Frequently asked questions

What does 62.1 innings pitched mean?

It means 62 innings and one out — 62 and one third, or 62.3333 innings as a decimal. Innings are scored in thirds because each out is a third of an inning, and box scores write the outs after a decimal point purely as notation. Only .0, .1 and .2 are valid; there is no 62.3. If you divide by 62.1 instead of 62.3333 your ERA comes out about 0.4% too high, which is enough to matter on a leaderboard.

How do you calculate ERA for a softball pitcher?

Use the same formula but multiply by 7 instead of 9, because a regulation softball game is seven innings. A pitcher with 5 earned runs in 21 innings has an ERA of (5 ÷ 21) × 7 = 1.67. Using 9 as the scale factor would give 2.14 and would not be comparable to any published softball figure. Select the regulation game length in the calculator and the conversion is handled for you.

What is a good ERA?

It depends entirely on the run environment, which is why the calculator reports a league index. In a league averaging 4.20, an ERA below 3.50 is clearly above average and below 3.00 is excellent. In the 1968 National League, which averaged 2.99, a 3.50 ERA was below average. As a portable rule, an index of 120 or higher means you are preventing runs about 20% better than your league regardless of era.

What is the difference between ERA and RA9?

ERA counts only earned runs; RA9 counts every run that scores while you are pitching, earned or not, on the same per-nine-innings scale. RA9 is always equal to or higher than ERA. Some analysts prefer RA9 on the grounds that the earned/unearned split depends on an official scorer's judgement about a hypothetical clean inning, and that pitchers bear some responsibility for the defence behind them.

Can a pitcher have an infinite ERA?

Yes, and it happens whenever a pitcher allows an earned run without recording an out. The denominator is zero, so the ratio is undefined; box scores print INF or a series of dashes rather than a number. This calculator returns a dash for ERA in that case and tells you why. Once the pitcher records a single out the figure becomes finite, though it will be very large.

How many innings do I need to qualify for an ERA title?

One inning per team game — 162 innings over a 162-game Major League season, under Rule 9.22. College and high-school bodies set their own thresholds, usually expressed the same way as innings per scheduled game. Below the threshold a pitcher's ERA still exists and is still correct, it simply does not appear on the official leaderboard.

Why did my ERA go up after a scoreless outing?

It cannot. Adding innings without adding earned runs strictly reduces the ratio ER ÷ IP, so a scoreless appearance always moves ERA down or leaves it unchanged when the earned-run total is already zero. If your published ERA rose, check whether a run was reclassified from unearned to earned on review, or whether innings were credited to a different pitcher.

How many scoreless innings would it take to reach my target ERA?

Set the target field and read the output. The algebra is x = ER × G ÷ T − IP, because holding earned runs fixed and adding innings is the only way a scoreless stretch changes the ratio. A pitcher with 20 earned runs in 50 innings has a 3.60 ERA; to reach 3.00 they need 20 × 9 ÷ 3.00 − 50 = 10 more scoreless innings.

References