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) / 1000Total Bases
total_bases_display = total_basesTotal Hits
total_hits = singles + doubles + triples + home_runsOPS (approx, add OBP)
ops_approx = round(total_bases / at_bats * 1000) / 1000Variables
| Variable | Description | Default |
|---|---|---|
singles | Singles | 50 |
doubles | Doubles | 15 |
triples | Triples | 2 |
home_runs | Home Runs | 10 |
at_bats | At Bats | 250 |
total_bases | Derived value= singles + doubles * 2 + triples * 3 + home_runs * 4 | calculated |
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
Worked Example
50 singles, 15 doubles, 2 triples, 10 home runs in 250 at-bats.
singles = 50doubles = 15triples = 2home_runs = 10at_bats = 250
- 01Total bases = 50 + 15*2 + 2*3 + 10*4 = 50 + 30 + 6 + 40 = 126
- 02SLG = 126 / 250 = 0.504
- 03Total hits = 50 + 15 + 2 + 10 = 77
Ready to run the numbers?
Open Slugging Percentage Calculator