01What this calculator tells you
This calculator turns a pitcher’s earned runs and innings pitched into an earned run average (ERA) — the single number that has measured pitching effectiveness for more than a century. Enter the earned runs allowed and the innings pitched (in the usual .1/.2 out notation) and you get the ERA to two decimals, a plain-language rating band from elite to poor, an ERA scale showing where the number falls, and a readout of how the partial inning was converted.
It works for a single outing or a whole season, and for baseball or softball. Baseball uses a nine-inning regulation game; flip the toggle to the seven-inning basis for softball and many high-school games. If you keep other kinds of stats too, you can browse the full set on our calculators home page.
02What counts as a good ERA?
ERA is a “lower is better” stat: it estimates how many earned runs a pitcher would give up over a full nine-inning game, so smaller numbers mean stingier pitching. The bands below are a practical guide for starting pitchers in modern Major League Baseball, where the league-average ERA sits around 4.25. Relievers are usually judged a few tenths tougher, and softball and youth leagues run on different scales.
Tracking different numbers on an off day? Our BMI calculator and water intake calculator cover everyday health stats on the same site.
03Earned runs vs. total runs (what to type in)
The word “earned” does the heavy lifting. An earned run is one the pitcher is held responsible for; an unearned run is one that only scored because of a fielding error or a passed ball and does not count against the ERA. If a batter reaches on an error and later scores, that run is unearned — leave it out of the earned-runs box. When a pitcher leaves the game with runners on base, any of those runners who later score are still charged to him, a rule spelled out in the official record of the game preserved in the Library of Congress collections.
The second thing people mistype is innings pitched. Innings are tracked in thirds, one third for each out recorded, so the digits after the decimal are an out count, not tenths. A line of 6.1 innings means six full innings plus one out (6⅓), and 6.2 means six innings plus two outs (6⅔). Enter it exactly that way and the calculator handles the thirds conversion for you.
ERA has been baseball’s headline pitching stat since the early 1900s, but analysts have long noted that it mixes a pitcher’s own skill with the defense behind him and a bit of luck. That observation launched a whole field of run-estimation research, including the classic offensive earned-run average paper from Stanford, which reframed the same run-scoring logic from the hitter’s side.
Modern work layers pitch-tracking data on top of ERA to separate skill from noise. A university thesis on Statcast’s impact on predicting pitcher performance shows that batted-ball measurements can forecast future ERA better than the raw stat forecasts itself. Descendants such as FIP (fielding-independent pitching) are built to sit on the same 9-inning scale as ERA so the two can be compared directly.
- Small samples swing wildly. One rough outing can double a season ERA in April. The number stabilizes only after a decent workload.
- Defense and scorekeeping matter. The earned/unearned split depends on an official scorer’s error calls, so ERA is not purely the pitcher’s doing.
- Inherited runners hide relief damage. A reliever who lets someone else’s runners score can post a clean personal ERA while doing real harm — a gap that Berkeley’s analysis of pitching with runners on base quantifies.
- Different eras and levels differ. A 3.50 ERA in a high-scoring season is better than the same number in a pitcher-friendly one, and softball, college and youth ERAs are not directly comparable to MLB.
04Related calculators
Working through a related project? Try our Win Percentage Calculator, Age Gap Calculator, and Average Time Calculator.
01The ERA formula
Earned run average scales a pitcher’s earned runs up to a full regulation game. Multiply the earned runs by the number of innings in a game (9 for baseball, 7 for softball) and divide by the innings actually pitched. The same rule is taught in college coursework, for example this William & Mary mathematics course note that lists “ERA = earned runs × 9 / innings pitched”.
Where:
- earned runs= runs charged to the pitcher, excluding runs from errors or passed balls.
- innings pitched= full innings plus outs, counted in thirds (.1 = 1 out, .2 = 2 outs).
- 9 or 7= innings in a regulation game — the basis the ERA is scaled to.
- ERA= projected earned runs allowed per full game (lower is better).
02Worked example
Say a pitcher gives up 3 earned runs in 5.2 innings of a baseball game and you want the ERA. The trap is the 5.2: it means five innings and two outs, not five-point-two. Work it one line at a time:
So 3 earned runs in 5.2 innings is a 4.76 ERA, not the 5.19 you get by dividing by 5.2. Over a full season the same math applies to the totals: a pitcher with 70 earned runs in 200 innings has a (70 × 9) ÷ 200 = 3.15 ERA, a clearly above-average line.