Math · Every step shown

Batting Average & ERA Calculator

Find a baseball batting average, or an earned run average (ERA).

Enter your numbers

Press Solve with steps to see the answer and how to get it.

Job: Sports
Your answer

Press Solve with steps to see the answer and every step.

How it works, examples and FAQ

Batting average = hits ÷ at-bats. ERA = (earned runs × 9) ÷ innings pitched.

Example: 150 hits in 500 at-bats gives a .300 batting average. 40 earned runs over 180 innings gives a 2.00 ERA.

How is batting average calculated?
Hits ÷ at-bats, usually shown as a three-decimal number without the leading zero, like .300.

How is ERA calculated?
(Earned runs allowed × 9) ÷ innings pitched — it estimates earned runs allowed per 9-inning game.

What counts as an "earned run"?
A run that scores without the help of a fielding error or passed ball — runs that result from defensive mistakes aren't charged to the pitcher's ERA.

More math calculators

Snap a photo of a problem →   All math tools →   All calculators →

These calculators show the method as well as the answer, so you can learn the steps and check your own work. If a result ever looks wrong, tell us on the Contact page with the numbers you entered.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.