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
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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.
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.
Frequently asked questions.
What is the ERA formula?
How do I handle .1 and .2 innings in an ERA calculation?
What is the difference between a run and an earned run?
What is a good ERA?
How many innings do you need to qualify for the ERA title?
Why do a pitcher's ERA and his team's runs allowed disagree?
Does ERA work for relief pitchers?
What is ERA+ and why is it not on this page?
Why do analysts prefer FIP to ERA?
Can I use this calculator for softball or for a seven-inning game?
References& sources.
- [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]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]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]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]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]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]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