Baseball Statistics Calculator

Hitting

Pitching

The one notation that breaks spreadsheets: innings pitched. In baseball writing, 170.1 and 170.2 are not decimal fractions; the digit after the point counts outs, thirds of an inning. 170.2 is 170⅔ innings, 512 outs recorded. This calculator reads it the baseball way and refuses a .3 or higher fraction, because there is no such thing as a fourth out in an inning.

StatisticValue

Disclaimer: This calculator gives estimates for general information only. It is not financial, medical or other professional advice.

What this calculator does

Works the standard rate statistics of baseball from a raw counting line, on both sides of the ball. For a hitter: batting average, on-base percentage, slugging, OPS, isolated power, total bases (built from the hit breakdown, or taken from your figure), plate appearances, and walk and strikeout rates. For a pitcher: ERA, WHIP, and strikeouts, walks and hits per nine innings. Every definition is the documented one used by the official record (the Elias/MLB conventions): OBP’s denominator includes sacrifice flies but not sacrifice bunts, innings pitched are counted in outs rather than decimal fractions, and ERA scales earned runs to nine innings. The innings notation is handled the baseball way throughout and explained wherever it bites, because it is the single most common way baseball arithmetic goes quietly wrong in a spreadsheet.

How to use it

  • Use one consistent line. A season, a month, a career: any span works, as long as every counting number comes from the same span and the same source.
  • The hit breakdown must fit inside hits. Doubles + triples + home runs cannot exceed total hits; singles are whatever is left, and total bases are built as singles + 2×doubles + 3×triples + 4×homers. If your source gives total bases directly, enter them and they rule (the breakdown is then still checked for consistency with hits).
  • Enter innings pitched exactly as published, with the outs digit: 170.2, not 170.67. The calculator converts to outs first and does all its arithmetic in outs, so no rounding of thirds ever creeps in.
  • Runs for ERA are earned runs only. Total runs allowed includes unearned runs (scored because of errors) and will flatter or sink an ERA incorrectly; the earned/unearned split is the official scorer’s, printed on every standard line.

The method

Batting average BA = H/AB. On-base percentage OBP = (H + BB + HBP)/(AB + BB + HBP + SF): note what is excluded, sacrifice bunts are not in the denominator at all (they are not plate appearances charged against reaching base), while sacrifice flies are, which is why a fly that scores a run still costs OBP. Slugging SLG = TB/AB with TB = 1B + 2(2B) + 3(3B) + 4(HR). OPS = OBP + SLG, a sum of two rates with different denominators, universally used and formally odd, both facts covered in the reading section. Isolated power ISO = SLG − BA. Plate appearances PA = AB + BB + HBP + SF (sacrifice bunts and interference would complete the official definition; they are rarely on a summary line and are excluded here, which can understate PA by a few). Rates: BB% = BB/PA, K% = SO/PA. Pitching: innings are converted to outs, OUT = 3×whole + outs digit; ERA = 9 × ER/(OUT/3); WHIP = (H + BB)/(OUT/3); per-nine rates K/9, BB/9, H/9 likewise scaled by 9 over true innings. Averages display to three decimals in baseball style (.327 with the leading zero dropped, per convention), ERA and per-nines to two.

Worked examples

The default hitter. 550 at-bats, 180 hits (40 doubles, 8 triples, 25 homers, so 107 singles), 60 walks, 5 HBP, 4 sacrifice flies: BA = 180/550 = .327. Total bases = 107 + 80 + 24 + 100 = 311, so SLG = 311/550 = .565. OBP = 245/619 = .396, and OPS = .961, with ISO = .238. Plate appearances 619; he walked in 9.7% and struck out in 19.4% of them. That is a star’s line, which is what the defaults were built to be: strong in every column at once.

The default pitcher. 170.2 innings (512 outs), 58 earned runs, 160 hits, 55 walks, 150 strikeouts: ERA = 58 × 9/170.667 = 3.06. WHIP = 215/170.667 = 1.260. K/9 = 7.91, BB/9 = 2.90, H/9 = 8.44. Same ballpark of quality as the hitter, deliberately: the page’s two default lines would belong to two players arguing over the team MVP.

The notation trap, costed. Read 170.2 as a decimal and the same pitcher’s innings become 170.2 instead of 170.667: ERA comes out 3.07 instead of 3.06 and every rate shifts a little. Over a relief pitcher’s 60.1 innings the error doubles in relative size, and over a single appearance (0.2 innings read as 0.2 decimal instead of 0.667) the arithmetic becomes nonsense, an ERA near 45 instead of 13.50 for one earned run. The smaller the innings, the bigger the lie, which is why the conversion to outs happens before anything else.

Reading your result

Benchmarks move with era and league, but modern MLB reference points are roughly: a .260 average, .320 OBP and .410 SLG are near league average; an OPS over .800 is a genuinely good hitter and over .900 a star; on the mound, an ERA under 3.50 and a WHIP under 1.20 are strong, and league-average ERA sits near 4.00 to 4.30 in recent seasons. Two habits make these numbers lie less. First, respect sample size: a month of at-bats (about 100 PA) can move an average 60 points on luck alone, and rate stats stabilise at very different speeds (strikeout rate fast, batting average notoriously slowly, because balls in play carry heavy variance). Second, remember what each stat ignores: BA treats a walk as nothing and a homer as a single; OBP fixes the first; SLG the second; OPS approximates both at once without park or league adjustment, which is what OPS+ and wRC+ exist to add, and why those adjusted stats, not raw OPS, are the fair cross-era comparisons. ERA likewise ignores defence, park and the earned/unearned judgment calls behind it.

Limitations

  • No park, league or era adjustment. Raw lines are computed as published; comparing a 1968 pitcher’s ERA with a 2000 hitter’s OPS crosses contexts this page does not normalise.
  • PA excludes sacrifice bunts and catcher’s interference, as stated in the method: BB% and K% can be a few tenths of a point off an official PA-based figure for bunt-heavy lines (mostly pitchers batting and NL-style small ball).
  • Earned runs are an input, not a judgment. The official scorer’s earned/unearned calls are taken as given; disputed reconstructions are beyond any calculator.
  • Rounding follows baseball convention (three decimals for averages, two for ERA and per-nines, ties resolving by standard rounding): a figure can differ in the last digit from a source that truncates instead, which is a display difference, not an arithmetic one.
  • Small samples are honoured arithmetically and doubted statistically. The page will happily compute a 2-for-3 day’s .667 average; the reading section explains why you should not believe it yet.

Frequently asked questions

Why does 170.2 innings not mean 170.2?

Because baseball records partial innings in outs, and there are three outs in an inning: the digit after the point can only be 0, 1 or 2, meaning no outs, one out (a third of an inning) or two outs (two-thirds). Newspapers and databases print that compactly as .0, .1 and .2. Any system that reads them as decimal tenths quietly shortens every pitcher’s innings, by up to nearly half an inning per appearance, and inflates every rate built on them.

Why is a sacrifice fly in OBP’s denominator but not a sacrifice bunt?

History and intent: the rules treat the bunt as a deliberate sacrifice of the batter, excluded from the reaching-base contest entirely (it is not even an at-bat), while the fly is scored as a plate appearance that failed to reach, albeit a productive one. The asymmetry is a known quirk, hitters and analysts both complain that a run-scoring fly costs more than a run-scoring bunt, but the definition is the definition and the calculator applies it as written.

Is OPS a legitimate statistic if it adds rates with different denominators?

As a quick sorting tool, yes: it correlates strongly with run production and needs only a standard line. As a precise measure, no: it double-counts hits (they appear in both terms) and weights OBP and SLG equally when analysis shows OBP is worth more per point. The honest summary is the one on this page: universally used, formally odd, fine for screening, superseded by wOBA and wRC+ for serious comparisons.

What is a good WHIP?

WHIP counts baserunners per inning: under 1.20 is strong in the modern majors, around 1.30 is league-average territory, and the rare sub-1.00 season is historic. It ignores how far the runners advance, so a pitcher can post a fine WHIP while allowing damaging extra-base hits, which is why it pairs with ERA and slugging-against rather than standing alone.

Related calculators

Method: BA = H/AB; OBP = (H + BB + HBP)/(AB + BB + HBP + SF); SLG = TB/AB with TB from the hit breakdown or as entered; OPS = OBP + SLG; ISO = SLG − BA; innings converted to outs before all pitching arithmetic (the .1/.2 digit counts outs); ERA = 9·ER/IP; WHIP = (H + BB)/IP; per-nine rates scaled the same way. Last reviewed: 24 October 2026.