Baseball stats calculator

Choose batting or pitching and enter the counts.

Your answer

Batting average.288
OPS.850
On-base percentage.365
Slugging.485
Total bases252

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. AVG = H ÷ AB. OBP = (H + BB + HBP) ÷ (AB + BB + HBP + SF). SLG = total bases ÷ AB. ERA = 9 × ER ÷ IP. WHIP = (H + BB) ÷ IP.

Method and assumptions

These are the official definitions in the MLB rules. Innings written as 180.2 mean 180 and two-thirds innings.

Questions

What is a .288 hitter’s OPS with 30 doubles, 3 triples and 22 homers in 520 at bats?

About .850 (.365 OBP + .485 SLG) with 60 walks, 5 hit-by-pitches and 4 sacrifice flies.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators