The earned run average calculator above converts earned runs and innings pitched into ERA, the rate statistic that expresses how many earned runs a pitcher gives up per regulation game. It handles partial innings correctly, works over any game length, and reports runs allowed per game and WHIP alongside so the same outing can be read three ways.
Arb Digital publishes this because the arithmetic is easy and the input handling is where everything goes wrong. Innings pitched is written in a notation that looks decimal and is not, and earned runs is a judgement made by an official scorer under a specific rule rather than a count anyone can take from a scoreboard. Get either of those wrong and the number is wrong, however clean the division was.
What This Earned Run Average Calculator Does
It takes earned runs, innings and outs, and a regulation game length, and returns ERA. It converts the baseball notation for partial innings into a true decimal and shows both, so you can see exactly what was divided. It reports outs recorded, which is the form the calculation actually uses. And it computes two companion rates: runs allowed per game, which uses all runs rather than only earned ones, and WHIP, which counts baserunners allowed per inning.
The custom game length matters more than it first appears. ERA is defined per regulation game, and regulation is not nine innings everywhere. Softball and many doubleheader formats play seven, and youth leagues play six or fewer. Applying a nine-inning multiplier to a seven-inning league inflates every pitcher's figure by nearly thirty per cent and makes cross-league comparison meaningless.
It sits alongside our other baseball rate statistics. Hitting is covered by the batting average calculator, the on-base percentage calculator and the slugging percentage calculator, team records by the winning percentage calculator, and goaltending by the save percentage calculator.
How to Use It
- Enter earned runs. Only runs the pitcher is charged with under the scoring rules — not every run that crossed the plate while they were on the mound.
- Enter complete innings, then the extra outs separately. One out is .1 in baseball notation and one third in arithmetic; keeping them apart removes the ambiguity.
- Set the regulation game length. Nine for standard baseball, seven for most softball, lower for many youth formats.
- Add total runs allowed if you want RA/9. This includes unearned runs and is often the more honest picture of what happened on the field.
- Add hits plus walks for WHIP, which measures baserunners allowed per inning rather than runs.
The Formula
ERA is (earned runs × innings in a regulation game) ÷ innings pitched. For standard baseball that is earned runs times nine, divided by innings pitched. Because innings pitched is really a count of outs divided by three, the same calculation can be written as earned runs × 27 ÷ outs recorded, which avoids the fractional notation entirely.
The NCAA's Official Baseball Statistics Rules states that earned run averages must be based on nine innings and notes that the statistician may compute ERA by multiplying earned runs by 27 and dividing by the number of outs recorded. Both routes give the same answer; the second is simply harder to get wrong by hand.
The worked example everyone learns from is 9 1/3 innings and three earned runs. That is 9.333 innings in decimal, or 28 outs. Three times nine is 27, divided by 9.333 gives 2.8929, which rounds to an ERA of 2.89. Enter 9.1 as a plain decimal instead and you get 2.97, which is wrong by a margin that would matter over a season.
What Counts as an Earned Run
This is the part of ERA that is a rule rather than a calculation, and it is decided by the official scorer. Broadly, a run is earned when it scores without the aid of an error or a passed ball. Runs that score because of a fielding mistake are unearned and are excluded from ERA, even though they went on the scoreboard exactly like any other run.
The mechanism the rules use is inning reconstruction. The Official NCAA Baseball and Softball Scorebook instructs that in determining earned runs the scorer reconstructs the inning as if there were no errors or passed balls. The scorer replays the inning in their head with clean fielding and asks which runs would still have scored. That is a genuine judgement, applied consistently but not mechanically, and it is why two people watching the same inning can disagree about a pitcher's line.
Why ERA Flatters and Punishes Pitchers Unequally
Because ERA excludes runs caused by fielding errors, it is partly a measure of the defence behind the pitcher rather than the pitcher alone — and it cuts both ways. A pitcher behind a poor defence gets some protection: the runs that error-strewn innings produce are stripped out. But that same pitcher faces more batters, throws more pitches, and gives up more genuinely earned runs in innings that should already have ended.
The reconstruction rule also creates a specific quirk. Once an inning should have ended, every subsequent run is unearned, which means a pitcher can give up a string of hits with no ERA consequence at all. Conversely a pitcher who inherits runners and lets them score does no damage to their own ERA, because those runs are charged to the pitcher who allowed the runners to reach. Reliever ERAs are shaped by this more than any other statistic.
Reading ERA Alongside RA/9 and WHIP
Runs allowed per game uses every run, earned or not. It is a blunter number and in some ways a more honest one, because it counts what the opposition actually scored. A large gap between ERA and RA/9 says the pitcher's innings contained a lot of runs the scorer attributed to fielding, which is worth knowing before drawing conclusions from ERA alone.
WHIP measures a different thing entirely: baserunners allowed per inning, counting hits and walks. A pitcher can post a strong ERA on a high WHIP by stranding runners, and a run of that kind is famously unstable. Reading all three together tells you whether an ERA came from preventing baserunners or from preventing those baserunners from scoring, and those two skills behave very differently over a season.
Small Samples and Why Early-Season ERA Misleads
ERA is a rate with innings in the denominator, and early in a season that denominator is tiny. A single bad inning of five earned runs across ten innings pitched adds 4.50 to a season ERA all by itself. The same inning across 150 innings adds 0.30. Nothing about the pitching changed; only the divisor did.
This is why an ERA quoted without innings pitched is close to useless. A 1.50 ERA over six innings and a 1.50 ERA over 180 innings are not the same claim about anything. When comparing pitchers, look at the innings first and the rate second — the same discipline that applies to any rate statistic, from the batting average calculator to the average percentage calculator.
Arb Digital builds fast, dependency-free interactive tools that rank on their own merits and earn links. Browse the free library to see the standard, or tell us what you want built.
Browse All Free Tools Talk to Arb DigitalCommon Mistakes to Avoid
- Treating 9.1 innings as 9.1 in decimal. It means nine innings and one out, which is 9.333. This is by far the most common ERA error.
- Counting all runs as earned. Runs that scored because of an error or a passed ball are excluded, and identifying them is a scorer's judgement.
- Using a nine-inning multiplier in a seven-inning league. ERA is defined per regulation game, and applying the wrong game length inflates every figure.
- Charging inherited runners to the wrong pitcher. Runners already on base are charged to whoever put them there, not to the reliever who let them score.
- Comparing ERAs without comparing innings. A rate over six innings and the same rate over 180 are not remotely the same statement.
Related Free Tools From Arb Digital
For hitting statistics use the batting average calculator, the on-base percentage calculator and the slugging percentage calculator. Team records are handled by the winning percentage calculator, goaltending by the save percentage calculator, and head-to-head ratings by the Elo rating calculator. For general rate arithmetic see the average percentage calculator, and the free online tools hub for everything else.
Frequently Asked Questions
Multiply earned runs by the number of innings in a regulation game, then divide by innings pitched. For standard baseball that is earned runs times nine divided by innings pitched, or equivalently earned runs times 27 divided by outs recorded.
Nine innings and one out. Baseball writes thirds of an inning as .1 and .2, so 9.1 is 9.333 in decimal and 9.2 is 9.667. Entering the notation directly into a division is the single most common ERA mistake.
A run that scores without the aid of an error or a passed ball. The official scorer determines this by reconstructing the inning as if there had been no errors or passed balls and asking which runs would still have scored.
Replace the nine with seven in the multiplier. ERA is defined as earned runs per regulation game, so a seven-inning softball or doubleheader format uses seven, and using nine instead inflates the figure by roughly a third.
ERA counts only earned runs; runs allowed per game counts every run the opposition scored while the pitcher was responsible. A wide gap between the two means a lot of the runs in those innings were attributed to fielding rather than to pitching.
No. Runners already on base when a reliever enters are charged to the pitcher who allowed them to reach, so a reliever can let several inherited runners score without their own ERA moving at all.
WHIP is walks and hits per inning pitched, a count of baserunners allowed rather than runs. Reading it beside ERA shows whether a low ERA came from keeping runners off base or from stranding the runners who did reach.
This tool performs published scoring arithmetic only. Whether a given run is earned is a determination made by the official scorer under the rules of the relevant league, and league statistics remain the authority for any official figure.