Baseball ERA Calculator

Calculate a pitcher's Earned Run Average from raw stats.

Input earned runs allowed and innings pitched to compute ERA using the official (ER × 9 / IP) formula, with an optional FIP estimate from strikeouts, walks, hit batters, and home runs. Runs in your browser.

What is ERA in baseball?

Earned Run Average is the average number of earned runs a pitcher allows per nine innings. It is the classic measure of run prevention, calculated as earned runs times nine divided by innings pitched, so a lower ERA is better.

Earned Run Average remains the headline statistic for evaluating pitchers. This calculator applies the official formula and, importantly, handles the baseball-specific way innings are written in thirds, so 6.1 means six and a third innings rather than 6.1 decimal innings. It also estimates FIP to reveal how much defence and luck shaped the raw ERA.

How it works

ERA scales earned runs to a nine-inning game after converting innings notation:

real IP = whole innings + (thirds digit / 3)   // .1 -> .333, .2 -> .667
ERA     = (ER × 9) / real IP

FIP isolates pitcher-controlled outcomes using the standard formula with a constant near 3.10 to put it on the ERA scale:

FIP = (13×HR + 3×(BB + HBP) − 2×K) / IP + 3.10

Example and tips

A pitcher with 18 earned runs over 50.2 innings pitched has a real IP of 50.667, so ERA = 18 × 9 / 50.667 ≈ 3.20. If that same pitcher struck out 55 and walked only 12, FIP would land lower, hinting the ERA could improve as luck normalises. Always enter innings in thirds notation (.1 or .2), never as plain decimals, or the result will be wrong.