Guide
Baseball statistics from counting stats: ERA, WHIP, FIP, batting average, OBP, slugging, OPS, ISO and BABIP
Baseball loves its numbers, and most of them are simple rates built from counting stats: hits, walks, strikeouts and outs. This calculator turns the totals from a scorebook or a stats page into the standard measures for pitchers and for hitters. It can calculate pitching, hitting or both in a single go, and it handles the unusual way baseball writes innings.
Innings in thirds
Innings pitched are counted in outs, three to an inning, and written with the extra outs after the point: 6.1 means six innings and one out, which is six and one third, and 6.2 is six and two thirds. The figure after the point can only be 0, 1 or 2. The calculator converts the entry into outs, so 182.1 innings is 547 outs, and uses them in the formulas.
The pitching rates
Earned run average is nine times the earned runs divided by innings pitched, the number of earned runs a pitcher would give up in a nine-inning game. WHIP is walks plus hits per inning. Strikeouts and walks per nine innings show power and control, and their ratio is a quick check of command. FIP, fielding independent pitching, weights home runs, walks plus hit batters and strikeouts, and adds a league constant so that the average FIP matches the average ERA.
The hitting rates
Batting average is hits divided by at bats. On-base percentage adds walks and hit-by-pitch to the numerator and sacrifice flies to the denominator. Slugging is total bases divided by at bats, where a single is one base, a double two, a triple three and a home run four. OPS is on-base plus slugging. Isolated power is slugging minus average, which isolates extra-base power, and BABIP is the batting average on balls put in play, excluding home runs and strikeouts.
A worked example
Press the first sample: a starter with 182.1 innings, 62 earned runs, 155 hits, 48 walks, 201 strikeouts, 19 home runs and 6 hit batters. The ERA is 3.06, the WHIP 1.113, strikeouts per nine 9.921, walks per nine 2.369, the strikeout-to-walk ratio 4.188 and the FIP 3.138 with a constant of 3.10. The hitter has 540 at bats and 162 hits, so the average is .300, on-base .378, slugging .504 with 272 total bases, OPS .882, isolated power .204 and BABIP .345. The second sample is a reliever with 68.2 innings; the third is a hitter alone.
Edge cases
At least one of innings pitched or at bats must be filled in. Doubles, triples and home runs cannot exceed the hits, or the page names the problem. Ratios with a zero denominator, such as strikeouts per walk with no walks, are shown as a dash. The decimals follow baseball custom, three places and no leading zero for averages and percentages.
Limits
Rate stats are descriptions of a small number of events, and over a few games they swing wildly. They do not adjust for ballpark, league, defence or the quality of the opposition. For deeper analysis, sites that publish park factors and adjusted stats are better. The calculator is for turning raw counts into familiar rates quickly and for checking a scorecard.
Related tools
- Basketball Stats Calculator calculates efficiency rates for a different court sport.
- Cricket NRR Calculator handles strike rate and economy in cricket, the sport baseball’s rates resemble.
- League Table Calculator ranks teams by points once the games are scored.
- Golf Handicap Calculator shows another number that summarises many rounds.
Checked against the current version of the Baseball Stats Calculator on .

