Slugging Percentage Calculator Formula

Understand the math behind the slugging percentage calculator. Each variable explained with a worked example.

Formulas Used

Slugging Percentage

slg = round(total_bases / at_bats * 1000) / 1000

Total Bases

total_bases_display = total_bases

Total Hits

total_hits = singles + doubles + triples + home_runs

OPS (approx, add OBP)

ops_approx = round(total_bases / at_bats * 1000) / 1000

Variables

VariableDescriptionDefault
singlesSingles50
doublesDoubles15
triplesTriples2
home_runsHome Runs10
at_batsAt Bats250
total_basesDerived value= singles + doubles * 2 + triples * 3 + home_runs * 4calculated

How It Works

How Slugging Percentage Is Calculated

Formula

SLG = Total Bases / At Bats

Where Total Bases = Singles + (2 x Doubles) + (3 x Triples) + (4 x Home Runs)

Slugging measures power by weighting extra-base hits more heavily.

Benchmarks

  • .350: Below average
  • .400: Average
  • .450+: Good
  • .500+: Very good
  • .600+: Elite
  • Worked Example

    50 singles, 15 doubles, 2 triples, 10 home runs in 250 at-bats.

    singles = 50doubles = 15triples = 2home_runs = 10at_bats = 250
    1. 01Total bases = 50 + 15*2 + 2*3 + 10*4 = 50 + 30 + 6 + 40 = 126
    2. 02SLG = 126 / 250 = 0.504
    3. 03Total hits = 50 + 15 + 2 + 10 = 77

    Ready to run the numbers?

    Open Slugging Percentage Calculator