Audited ·Last updated 28 Jul 2026·7 citations·Tier 1·0 uses

ERA Calculator — Earned Run Average, With Real Partial Innings

Free ERA calculator using Official Baseball Rule 9.21(e). Reads .1 and .2 innings correctly as one and two outs — the error most ERA tools get wrong.

ERA Calculator

What do you want to work out?
Earned runs only. Rule 9.16 has the official scorer reconstruct the inning without errors and passed balls, so a run that only scored because of a misplay is unearned and does not belong here.
Baseball notation: .1 means one out and .2 means two outs. Enter 177 and two thirds as 177.2, never 177.67. A fractional part of .3 to .9 is impossible and is rejected.
Used only by the second mode. 3.00 is the traditional marker of a front-line starter.
The baseline the result is compared against. The default 4.07 is the 2024 Major League figure, derived from the official 30-club season totals. Use 4.33 for 2023, 4.15 for 2025, or your own league's number.
Earned run average
2.3809
Earned runs per nine innings — 9 × ER ÷ IP, the quotient Official Baseball Rule 9.21(e) defines. Baseball prints it to two decimal places.
Earned runs
47
Innings pitched (true decimal)
177.6667
Outs recorded
533
Runs better than league per nine
1.6891
Earned runs prevented vs league
33.3448
Reading
An ERA of 2.38 is 1.69 earned runs per nine innings below the 4.07 league baseline you entered — about 1.7 earned runs prevented across 177.7 innings.

Background.

Earned run average is the oldest and most widely quoted measure of a pitcher, and Official Baseball Rule 9.21(e) defines it in one sentence: multiply the total earned runs charged against the pitcher by nine, and divide the result by the total number of innings he pitched, including fractions of an inning. Nine, because that is the length of a game. So ERA answers a single question — if this pitcher threw a full nine-inning game at this rate, how many earned runs would he give up?

The phrase "including fractions of an inning" is where almost every third-party ERA calculator goes wrong, and it is why this page exists. Baseball writes innings pitched in a notation that looks decimal but is not. Rule 9.02(c)(1) instructs the official scorer to count each putout as one third of an inning, so a pitcher who records 533 outs has thrown 177 and two thirds innings, and the box score prints that as 177.2. The digit after the point is a count of outs, not tenths. Feed 177.2 into a calculator that treats it as the decimal 177.2 and you get an ERA of 2.39 instead of the correct 2.38 — a small error over a full season, but a devastating one over a short outing, where 0.2 innings read as two tenths inflates the ERA by a factor of more than three. This calculator parses the notation properly, shows you the outs it decoded, and refuses a fractional part of .3 through .9 because no such innings total can exist.

The second thing worth understanding is what "earned" means, because it is a judgement, not a calculation. Rule 9.16 tells the official scorer to reconstruct the inning without the errors and passed balls, always giving the benefit of the doubt to the pitcher, and to charge only the runs that would still have scored. A run that crosses the plate only because a shortstop threw the ball into the dugout is unearned and never touches ERA. That reconstruction cannot be derived from a box-score line, which is why this calculator takes the official earned-run figure as an input rather than trying to infer it. It also means ERA already contains one defensive adjustment — errors — while remaining completely blind to the far larger defensive effect of range, positioning and the plays that were never made.

Because a bare ERA means nothing without an era, the calculator compares your result against a league baseline you control. It defaults to 4.07, the 2024 Major League average, which was not copied from a secondary source: it is derived from the official 30-club season totals, 19,508 earned runs across 129,349 outs. The 2023 figure was 4.33 and the 2025 figure 4.15, both derived the same way, and any amateur or minor league will have its own. The page reports the gap two ways — as a rate per nine innings, and as the whole number of earned runs that rate is worth across the innings actually thrown — because a 1.7-run edge over 40 innings and the same edge over 200 innings are not remotely the same accomplishment.

The second mode inverts the formula for the question every pitcher and every fantasy manager actually asks in August: with this workload already on the books, how many more earned runs can I afford? That is ER = target ERA × IP ÷ 9, and the answer is usually a fraction, which you should read as the whole number below it — the next run over that line pushes you past the target.

Below the widget you will find the rule text verbatim, the full derivation, a worked example reproducing a triple-crown season from official MLB data, a second check against the rulebook's own printed example of 9 1/3 innings and 3 earned runs, the qualifying rule that decides the ERA title, and an honest account of what ERA misses — defence, park, bullpen inheritance, and the sequencing luck that FIP was invented to strip out.

What is era calculator?

Earned run average (ERA) is the number of earned runs a pitcher allows per nine innings pitched. The formula is 9 × ER ÷ IP, set out in Official Baseball Rule 9.21(e). An earned run is any run scored without the aid of an error or a passed ball, determined by the official scorer reconstructing the inning as it would have gone with errorless play. The denominator is innings pitched, counted in thirds because each out recorded is one third of an inning; box scores write those thirds as .1 and .2 after the whole innings, which is a notation and not a decimal. ERA is the statistic that decides the official league pitching championship: Rule 9.22(b) awards it to the pitcher with the lowest ERA who has thrown at least as many innings as his club had scheduled games, which is 162 innings in a standard Major League season. Because a run's value depends entirely on the run-scoring environment, ERA is only interpretable against its own league and season — the Major League average has moved between roughly 3.4 and 4.6 over the last three decades. ERA is also a team-influenced statistic: it inherits the quality of the defence behind the pitcher, the dimensions of his home park, and the relievers who strand or fail to strand the runners he leaves on base. Those limitations are exactly why fielding independent pitching and other defence-neutral estimators sit alongside it rather than replacing it.

How to use this calculator.

  1. Leave the mode on the default to compute an ERA. Switch to the second mode to find how many earned runs a target ERA permits over a given number of innings.
  2. Enter earned runs, not total runs allowed. Box scores list both, usually as R and ER. If your source gives only R, you cannot compute ERA from it — Rule 9.16 requires the scorer's inning reconstruction, which is not recoverable from the totals.
  3. Enter innings pitched exactly as the box score prints them. 177.2 means 177 and two thirds. 6.1 means six and one third. If you have a true decimal such as 177.67, convert it back: multiply the fractional part by 3, round to the nearest out, and write that digit after the point.
  4. Check the 'outs recorded' output before you read anything else. It should equal three times the whole innings plus the digit after the point. If it does not match what you expected, your notation was wrong.
  5. Set the league baseline to your own league and season. The default is 2024 Major League Baseball; college, high-school and amateur run environments are usually much higher, which makes a 4.00 ERA read very differently.
  6. Read the two league-relative outputs together. The per-nine figure tells you the quality of the rate; the earned-runs-prevented figure tells you how much that rate was actually worth given how long the pitcher stayed on the mound.

The formula.

ERA = 9 × ER ⁄ IP, IP = outs ⁄ 3

There are three steps, and only the first is ever done wrong.

Step one, decode the innings. Rule 9.02(c)(1) counts each putout as one third of an inning, so the box-score figure is whole innings followed by a digit that counts leftover outs. Convert it to outs: outs = 3 × whole + digit. 177.2 gives 3 × 177 + 2 = 533 outs. Then convert outs back to true innings by dividing by three: 533 ÷ 3 = 177.666666…. Every subsequent step uses that true value. A digit of 3 or higher after the point is not a legal innings total, because a fourth out would have ended the inning, and this calculator rejects it rather than quietly computing something meaningless.

Step two, apply Rule 9.21(e). Multiply earned runs by nine, then divide by true innings. For 47 earned runs in 533 outs: 47 × 9 = 423, and 423 ÷ 177.666666… = 2.380863…. Written as a single fraction it is 1269 ⁄ 533, which is the form to use if you are checking by hand, because it avoids the repeating decimal entirely.

Step three, compare. A raw ERA is uninterpretable without a run environment. Subtracting the league average gives runs saved per nine innings; multiplying the league average by the pitcher's own innings and subtracting his actual earned runs gives the whole number of runs he prevented relative to a league-average pitcher over the same workload. Both are exact and both are always defined.

The inverse mode is the same identity solved for earned runs: ER = ERA × IP ÷ 9. A 3.00 target over 177.2 innings permits 3.00 × 177.666666… ÷ 9 = 59.222 earned runs, which means 59 in practice — the sixtieth run takes the ERA to 3.04.

One statistic deliberately not offered here is ERA+, the league-and-park-adjusted index that sets 100 as average. ERA+ divides the league ERA by the pitcher's ERA, so it is undefined for a scoreless pitcher — and a calculator output that becomes infinity for a legitimate input is a bug, not a feature. The two subtractive comparisons above carry the same information and never break.

A worked example.

Example

Chris Sale won the National League pitching triple crown for Atlanta in 2024. MLB's official data feed gives his line as 47 earned runs in 177.2 innings pitched — and, usefully, also gives the outs total as 533, which confirms the notation: 177 × 3 + 2 = 533. Convert to true innings: 533 ÷ 3 = 177.6667. Apply Rule 9.21(e): 47 × 9 = 423, and 423 ÷ 177.6667 = 2.380863…, which the calculator returns as 2.3808630394 and which MLB publishes as 2.38. Read the same innings as the decimal 177.2 and you would get 2.3871, printing as 2.39 — plausible-looking and wrong, which is precisely why the 'outs recorded' output is on the page. Against the 2024 Major League baseline of 4.07, Sale's rate was 1.6891 earned runs per nine innings better than average. Converted to a run count over his actual workload: a league-average pitcher would have allowed 4.07 × 177.6667 ÷ 9 = 80.34 earned runs across those innings, so Sale prevented 80.34 − 47 = 33.34 earned runs relative to the league. That is the number worth quoting, because it accounts for the fact that he stayed on the mound for 177 innings rather than 60. Switching the mode to the target question with the same innings shows the other side of it: a 3.00 ERA over 177.2 innings permits 59.22 earned runs, so Sale finished the season with a dozen earned runs of headroom he never needed.

innings Pitched177.2
league Era4.07
target Era3
earned Runs47
solve Forera

Frequently asked questions.

What is the ERA formula?
ERA = 9 × earned runs ÷ innings pitched. Official Baseball Rule 9.21(e) words it as "multiply the total earned runs charged against such pitcher by 9, and divide the result by the total number of innings he pitched, including fractions of an inning". The nine is there to express the rate per regulation game. MLB's own glossary gives the same formula as "9 x earned runs / innings pitched".
How do I handle .1 and .2 innings in an ERA calculation?
They are outs, not tenths. Rule 9.02(c)(1) counts each putout as one third of an inning, so .1 is one out (0.3333 innings) and .2 is two outs (0.6667 innings). Convert the whole line to outs first — outs = 3 × whole innings + the digit after the point — then divide by three to get true innings. 177.2 is 533 outs and 177.6667 innings. There is no such thing as .3 through .9 innings; a fourth out ends the inning, so this calculator treats those as an entry error.
What is the difference between a run and an earned run?
An earned run is one the pitcher is held accountable for. Rule 9.16 tells the official scorer to reconstruct the inning without the errors and passed balls, always giving the benefit of the doubt to the pitcher, and only runs that would still have scored in that reconstruction are earned. A run that scores solely because of a fielding error or a passed ball is unearned and is excluded from ERA. Because this is a reconstruction rather than a formula, you cannot derive earned runs from a box-score line — you have to take the scorer's figure.
What is a good ERA?
It depends entirely on the run environment, which is why this page makes the league baseline an input. Against the 2024 Major League average of 4.07, anything under 3.50 is clearly above average, under 3.00 is front-line starter territory, and under 2.50 is a Cy Young-calibre season. The same 4.00 ERA that is roughly average in modern MLB would be poor in the deadball era and outstanding in many amateur leagues, where run environments are far higher. Always read an ERA against its own league and season rather than against a fixed rule of thumb.
How many innings do you need to qualify for the ERA title?
Rule 9.22(b) requires the pitcher to have thrown at least as many innings as the number of games scheduled for each club that season — 162 innings in a standard Major League season, and 80% of the scheduled games in a Minor League. Note that this is a different structure from the batting title, which uses 3.1 plate appearances per scheduled game. The rule exists because ERA over a small sample is extremely noisy: a single three-run inning moves a 20-inning ERA by 1.35.
Why do a pitcher's ERA and his team's runs allowed disagree?
Three reasons, all structural. Unearned runs are excluded from ERA but still cost the team the game. Runs charged to a starter can score after he leaves — MLB's glossary is explicit that "if a pitcher exits a game with runners on base, any earned runs scored by those runners will count against him", so a reliever's failure lands on the starter's ERA. And ERA is a rate per nine innings, whereas runs allowed is a raw count, so a pitcher with a high ERA over few innings can have cost his team fewer runs than one with a lower ERA over many.
Does ERA work for relief pitchers?
Less well, and MLB's own glossary says so: relievers "often pitch only fractions of an inning -- sometimes leaving their ERA in the hands of other relievers". Two structural problems compound. Inherited runners a reliever allows to score are charged to the pitcher who put them on, so a reliever can post a shining ERA while regularly losing games. And with 60 to 70 innings in a season instead of 200, a single bad outing swings the number enormously — this is why relievers' ERAs bounce by more than a run from year to year far more often than starters' do.
What is ERA+ and why is it not on this page?
ERA+ is a league-and-park-adjusted index scaled so that 100 is average, calculated as roughly 100 × league ERA ÷ pitcher's ERA. It is genuinely useful for cross-era comparison, but it divides by the pitcher's ERA, which means it is undefined for anyone who has not yet allowed an earned run — a real and common case in short samples. Every output on a Quanta page has to be a finite number for every legal input, so this calculator reports the same information subtractively: runs better than league per nine, and earned runs prevented across the actual workload.
Why do analysts prefer FIP to ERA?
Because ERA measures outcomes the pitcher only partly controls. The quality of the defence behind him, the dimensions of his park, the sequencing of hits within an inning and whether his bullpen strands his runners all move ERA without telling you anything about how he pitched. Fielding independent pitching strips the calculation back to strikeouts, walks, hit batters and home runs — the four outcomes that involve no fielder — and puts the result on the ERA scale so the two can be compared directly. A large gap between a pitcher's ERA and his FIP is the standard signal that one of them is about to move.
Can I use this calculator for softball or for a seven-inning game?
The arithmetic is identical but the multiplier is not. ERA scales earned runs to the length of a regulation game, so a league that plays seven-inning games should multiply by 7 rather than 9, and NCAA softball conventionally uses 7. This calculator implements the nine-inning Major League definition from Rule 9.21(e). If your league plays seven, the quickest correction is to multiply the result here by 7/9, which is 0.7778.

References& sources.

  1. [1]Office of the Commissioner of Baseball (2025). Official Baseball Rules, 2025 Edition, Rule 9.21(e) and Comment: "multiply the total earned runs charged against such pitcher by 9, and divide the result by the total number of innings he pitched, including fractions of an inning", with the worked example "9 1/3 innings pitched and 3 earned runs is an earned-run average of 2.89" — reproduced as a unit test for this calculator.
  2. [2]Office of the Commissioner of Baseball (2025). Official Baseball Rules, Rule 9.02(c)(1) Comment: "In computing innings pitched, the Official Scorer shall count each putout as 1/3 of an inning", with the examples of 5 1/3 innings for a starter removed with one out and 2/3 of an inning for a reliever who retires two batters. Source of the .1 / .2 notation parsing implemented here.
  3. [3]Office of the Commissioner of Baseball (2025). Official Baseball Rules, Rule 9.16 (Earned Runs and Runs Allowed): the official scorer "shall reconstruct the inning without the errors (which exclude catcher's interference) and passed balls, giving the benefit of the doubt always to the pitcher". Source for the earned/unearned distinction, and the reason earned runs are an input here rather than a computed value. Rule 9.22(b) on the same document gives the innings-per-scheduled-game qualifying rule for the ERA title.
  4. [4]Major League Baseball. Official MLB Glossary, "Earned Run Average (ERA)": the definition, the formula "9 x earned runs / innings pitched", the rule that runners left on base still count against the pitcher who allowed them, and the caveat about relievers who pitch only fractions of an inning.
  5. [5]Major League Baseball. Official MLB Glossary, "Innings Pitched (IP)": "Because there are three outs in an inning, each out recorded represents one-third of an inning pitched", including the note that a double play is worth two thirds of an inning.
  6. [6]MLB Stats API (statsapi.mlb.com), season pitching statistics for player 519242 (Chris Sale), 2024: innings pitched "177.2", outs 533, earned runs 47, published era "2.38". Source of the worked example, and independent confirmation that "177.2" encodes 533 outs.
  7. [7]MLB Stats API (statsapi.mlb.com), 2024 team pitching totals for all 30 clubs: 19,508 earned runs in 129,349 outs (43,116 1/3 innings), giving a league ERA of 4.0720. This is the derivation of the 4.07 default baseline on this page; the same query for 2023 gives 4.33 and for 2025 gives 4.15.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 590 calculators remain free
  • No billing is enabled
Coming soon