The Analytics Lab

INTERACTIVE

Batting average

Batting average (AVG) measures hits per official at-bat. Adjust the values to see how a player's average changes.

BATTING AVERAGE / AVG
.300
30 HITS ÷ 100 AT-BATS
A .300 average is traditionally considered excellent.

Compare two hitters

The example hitters both bat .300. Change their batting lines to see how walks and extra-base hits affect OBP, SLG, and OPS.

MetricHitter AHitter B

How these stats are calculated
  • AVG = hits ÷ at-bats
  • OBP = (hits + walks + hit by pitch) ÷ (at-bats + walks + hit by pitch + sacrifice flies)
  • SLG = total bases ÷ at-bats. Singles are worth one base, doubles two, triples three, and home runs four.
  • OPS = OBP + SLG, added before rounding.

Evaluate a pitching outing

Enter outs recorded as a whole number. For example, 17 outs equal 5⅔ innings.

MetricResult

How these stats are calculated
  • ERA = earned runs × 9 ÷ innings pitched.
  • WHIP = (walks + hits allowed) ÷ innings pitched.