Baseball Stats Calculator — AVG, OBP, SLG, OPS, ERA, WHIP

Calculate batting average, OBP, SLG and OPS plus pitching ERA, WHIP and K/9 — with proper baseball innings notation (6.1 = 6⅓ IP).

🔒 Runs entirely in your browser. Your input and output are never sent to a server or stored — fully private.

Batting

Pitching

Innings use baseball notation: 6.1 = 6⅓ innings, 6.2 = 6⅔. Fields left at 0 are fine — stats update as you type.

Did this tool help? Tap to react

About this tool

This baseball stat calculator works out the core batting and pitching numbers for you. On the batting side, enter at-bats, hits, doubles, triples, home runs and walk/hit-by-pitch/sacrifice totals to get batting average, on-base percentage, slugging and OPS. On the pitching side, enter innings (in the usual .1/.2 thirds notation), earned runs, hits, walks and strikeouts to get ERA, WHIP and K/9. It is handy for scorekeeping a youth or amateur game, checking a fantasy roster, or settling a stats argument. Everything runs in your browser.

Frequently asked questions

How do I enter innings like 6.1 or 6.2?

Use baseball's thirds notation: the digit after the point means outs, not tenths. 6.1 means six and one-third innings (19 outs), 6.2 means six and two-thirds (20 outs). So ERA for 2 earned runs over 6.1 innings is 2 × 9 ÷ 6.333 = 2.84, not 2 × 9 ÷ 6.1. The calculator parses .1 and .2 correctly and will reject .3 or higher, since only 0, 1 and 2 are valid.

What is OPS and why does it matter?

OPS is on-base percentage plus slugging — it rolls a hitter's ability to reach base and to hit for power into one number, so it correlates with run production better than batting average alone. Roughly, .800 is solid, .900 is very good and 1.000+ is elite. It is not perfect (it weights slugging and OBP equally when OBP is a bit more valuable), but as a quick single figure it beats average, which ignores walks and extra-base hits entirely.

Does this send my scores anywhere?

No. Every stat is computed by JavaScript in your browser, so the numbers you type are never uploaded or stored. You can keep a game's box score entirely on your own device, and it keeps working offline once the page has loaded — handy in a dugout or bleacher with poor signal.