Baseball Stats Calculator: ERA, WHIP, AVG, OBP, SLG, OPS
Calculate ERA, WHIP, batting average, on-base percentage, slugging and OPS.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open Baseball Stats Calculator: ERA, WHIP, AVG, OBP, SLG, OPS and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What Baseball Stats Calculator: ERA, WHIP, AVG, OBP, SLG, OPS does
Calculate ERA, WHIP, batting average, on-base percentage, slugging and OPS.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Enter a pitcher's innings pitched, earned runs, hits and walks, and a batter's at bats, hits, walks and total bases. The calculator gives ERA, WHIP, batting average, on-base percentage, slugging percentage and OPS.
Pitching
ERA = 9 × earned runs ÷ innings pitched. WHIP = (walks + hits) ÷ innings pitched. Innings are entered the baseball way, so 180.1 means 180 and one third.
Batting
Batting average = hits ÷ at bats. On-base percentage = (hits + walks) ÷ (at bats + walks); the official formula also uses hit by pitch and sacrifice flies, which are not included. Slugging = total bases ÷ at bats. OPS = OBP + SLG.
Reading
An ERA below 3.50 is good, WHIP below 1.20 is good, a batting average of .300 is excellent and an OPS above .800 is very good in the modern game.
Worked example
180.1 innings with 60 earned runs, 150 hits and 45 walks gives an ERA of 2.99 and a WHIP of 1.08. A batter with 150 hits in 500 at bats, 60 walks and 240 total bases hits .300 with an OBP of .375, a slugging of .480 and an OPS of .855.
Tips for best results
Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.
Quick facts
- Category: Health & Fitness
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
How do I enter partial innings?
Use .1 for one out and .2 for two outs.
Is OBP exact?
It leaves out hit by pitch and sacrifice flies.
What is a good ERA?
Below the league average, about 4.00 in recent years.
Does it work for softball?
ERA uses 7 innings in softball; use the formula with 7 instead of 9.
