Slugging Percentage Calculator (SLG) — Total Bases per At-Bat
Free slugging percentage calculator using Official Baseball Rule 9.21(c). Enter the box-score line and it derives singles, total bases, SLG and isolated power.
Slugging Percentage Calculator
Background.
Slugging percentage is the statistic that fixes batting average's biggest blind spot: batting average treats a bunt single and a grand slam as the same event. Slugging percentage does not. Official Baseball Rule 9.21(c) defines it in one clause — divide the total bases of all safe hits by the total times at bat — and the rulebook is so alert to the confusion between the two statistics that the batting-average clause immediately above it contains its own warning, instructing the scorer to divide safe hits "(not the total bases on hits)" by at-bats. Same denominator, different numerator, and the whole difference is in what a hit is worth.
Total bases come from the value of each hit, and those values are fixed by the rules: a one-base hit, a two-base hit, a three-base hit or a home run. MLB's glossary states the weighting arithmetically — one total base for a single, two for a double, three for a triple, four for a home run — and adds the qualification most people forget: a player can only add to his total bases through a hit, and advancing on the basepaths, even by stealing, has no effect at all. A single followed by a stolen base and a run scored is worth exactly one total base. This calculator asks for the box-score line as it is actually printed — hits, doubles, triples, home runs — and derives singles by subtraction, because almost no box score prints a singles column and asking for one is how people end up double-counting their doubles.
The denominator is at-bats, which means slugging percentage is completely blind to walks and hit-by-pitches. A hitter who walks a hundred times gets no credit for it here whatsoever: the walk is not a hit, so it adds nothing to the numerator, and it is not an at-bat, so it does not enlarge the denominator either. This is not an oversight, it is the division of labour. On-base percentage measures how often a hitter avoids an out; slugging percentage measures how far he goes when he does not. Adding the two together gives OPS, which is why the pair are almost always quoted as a set.
The name is a historical accident worth flagging, because it causes real confusion. Slugging percentage is not a percentage and cannot be read as one. The theoretical maximum is 4.000, reached only by a hitter who homers in every single at-bat, and the practical ceiling for a great season is somewhere near .700 — a figure only a handful of players in history have cleared over a full year. A .500 slugging percentage means five total bases for every ten at-bats, not fifty per cent of anything.
Alongside the primary result this calculator reports isolated power, which is MLB's own published statistic and is defined in the official glossary two equivalent ways: slugging percentage minus batting average, or (1 × doubles + 2 × triples + 3 × home runs) divided by at-bats. Both forms are computed here and they agree to the tenth decimal place, which is a useful confirmation that the total-bases derivation is right. Isolated power is the cleanest single read on raw power, because it removes singles entirely — a hitter who slugs .500 on the back of 200 singles and one who slugs .500 on the back of 40 home runs have wildly different isolated power, and only the second one is a slugger in any meaningful sense.
Below the widget you will find the rule text verbatim, the total-bases derivation with the fast hand-check, a worked example reproducing the first 50-home-run 50-stolen-base season in Major League history from official MLB data, two further published seasons as independent checks, the qualifying rule for the slugging title, and an honest account of what slugging percentage still leaves out.
What is slugging percentage calculator?
Slugging percentage (SLG) is the number of total bases a hitter records per official at-bat. Official Baseball Rule 9.21(c) defines it as total bases of all safe hits divided by total times at bat. Total bases weight each hit by how far the batter got on it: one for a single, two for a double, three for a triple, four for a home run, with no credit for anything gained on the basepaths afterwards. Because the denominator is at-bats rather than plate appearances, walks, hit-by-pitches, sacrifice bunts and sacrifice flies are all invisible to it. The scale runs from .000 to a theoretical 4.000; a league-average Major League figure has sat near .400 in recent seasons, .500 marks a strong power hitter, and .600 or better over a full season is exceptional. The all-time single-season record, .863 by Babe Ruth in 1920, was set in a run environment nothing like the modern one. The slugging title carries the same qualifying threshold as the batting and on-base titles — Rule 9.22(a) names all three in a single sentence and requires 3.1 plate appearances per scheduled team game, which is 502 in a 162-game season. Slugging percentage can also be computed from the pitcher's side, where it is called slugging-percentage against. Its natural companion is on-base percentage: the two are added to form OPS, and neither is very informative about a hitter without the other.
How to use this calculator.
- Enter official at-bats. This is the same denominator batting average uses, so if you already have a batting average you can check your entry: hits ÷ at-bats should reproduce it.
- Enter the total hit figure, not just singles. The calculator subtracts doubles, triples and home runs from it to find singles, so entering singles here will understate every result.
- Enter doubles, triples and home runs from the box score. If the three of them add up to more than the hit total, the calculator will stop and tell you — that combination is impossible, since extra-base hits are a subset of hits.
- Read total bases first as a sanity check. The fast hand-check is hits + doubles + 2×triples + 3×home runs, which must equal the figure shown. Most published season lines include a total-bases column you can compare against.
- Read slugging percentage to three decimal places, the way baseball prints it, and remember that it is not a percentage — .646 means 646 total bases per thousand at-bats.
- Use isolated power to separate power from contact. Two hitters can slug identically while one is a singles machine and the other a slugger; only isolated power tells them apart, and roughly .200 is the modern dividing line for a genuine power bat.
The formula.
Three steps, and the first is the one worth doing carefully.
Step one, singles. Box scores print hits, doubles, triples and home runs but almost never singles, because singles are the residual: 1B = H − 2B − 3B − HR. For a line of 197 hits with 38 doubles, 7 triples and 54 home runs, singles are 197 − 99 = 98. If that subtraction goes negative, the entry is wrong — extra-base hits are part of the hit total, not an addition to it, and this calculator refuses the input rather than producing a nonsense slugging percentage.
Step two, total bases. Weight each hit by its value: TB = 1B + 2×2B + 3×3B + 4×HR. Continuing the example: 98 + 76 + 21 + 216 = 411. There is a faster equivalent form that avoids computing singles at all, and it is the one to use when checking by hand: TB = H + 2B + 2×3B + 3×HR, because every hit is worth at least one base and each extra-base hit adds the surplus. 197 + 38 + 14 + 162 = 411, the same answer. Most official season lines publish a total-bases column, so this figure can always be verified against the source rather than trusted.
Step three, Rule 9.21(c): divide by at-bats. 411 ÷ 636 = 0.646226…, printed .646.
Isolated power follows from the same numbers by subtraction. Batting average is 197 ÷ 636 = .3097, so ISO = .6462 − .3097 = .3365. MLB's glossary gives an equivalent direct form, (1×2B + 2×3B + 3×HR) ÷ AB, which for this line is (38 + 14 + 162) ÷ 636 = 214 ÷ 636 = .3365. The two agree exactly, and they must: subtracting hits from total bases leaves precisely the extra bases beyond first.
One word on what the weights mean. The 1-2-3-4 scale is a measure of distance travelled, not of run value. In run-scoring terms a double is worth roughly 1.6 times a single rather than 2, and a home run roughly 2.6 times rather than 4, which is why weighted on-base average was developed with empirically fitted coefficients. Slugging percentage's weights are the geometry of the diamond, not a regression, and that is both its clarity and its limitation.
One precision note. This calculator carries every intermediate at full precision and rounds once at the display boundary, so the isolated-power figure is the exact difference of two exact quotients rather than the difference of two three-decimal roundings.
A worked example.
Shohei Ohtani's 2024 season for the Los Angeles Dodgers was the first 50-home-run, 50-stolen-base year in Major League history — and it is a useful example precisely because the stolen bases are irrelevant to slugging percentage. MLB's official data feed gives his hitting line as 636 at-bats, 197 hits, 38 doubles, 7 triples and 54 home runs. Singles come out by subtraction: 197 − 38 − 7 − 54 = 98. Total bases weight each hit by its value: 98 + (38 × 2) + (7 × 3) + (54 × 4) = 98 + 76 + 21 + 216 = 411, which matches the total-bases figure MLB publishes exactly. Apply Rule 9.21(c): 411 ÷ 636 = 0.646226…, returned as 0.6462264151 and printed as .646, again exactly MLB's published figure. His 59 stolen bases contributed nothing to any of it, because total bases can only be earned by a hit. The supporting outputs tell the rest of the story. His batting average was .3097 — good, not extraordinary. His isolated power was .646 − .310 = .3365, which is enormous: for every ten at-bats he generated three and a third bases beyond simply reaching first. Checked the other way with MLB's direct formula, (1×38 + 2×7 + 3×54) ÷ 636 = 214 ÷ 636 = .3365, the same number to ten decimal places. That gap between a .310 batting average and a .646 slugging percentage is the entire case for the statistic: the hits were not remarkable in number, they were remarkable in size.
Frequently asked questions.
What is the slugging percentage formula?
How do I calculate total bases?
Why isn't slugging percentage a real percentage?
Do walks count in slugging percentage?
What is a good slugging percentage?
What is isolated power and how is it different from slugging?
Can slugging percentage be lower than batting average?
How many plate appearances do you need to qualify for the slugging title?
Are the 1-2-3-4 weights correct in run-scoring terms?
Can I use this calculator for a pitcher?
References& sources.
- [1]Office of the Commissioner of Baseball (2025). Official Baseball Rules, 2025 Edition, Rule 9.21(c): "Slugging percentage, divide the total bases of all safe hits by the total times at bat, as defined in Rule 9.02(a)". Rule 9.21(b) on the same page contains the explicit disambiguation from batting average — divide safe hits "(not the total bases on hits)" by at-bats.
- [2]Office of the Commissioner of Baseball (2025). Official Baseball Rules, Rule 9.06 (Determining Value of Base Hits) and Rule 9.02(a)(8): the scorer scores each base hit as a one-base hit, two-base hit, three-base hit or home run, and reports "Total bases on safe hits" as its own column. Source of the 1/2/3/4 weighting. Rule 9.22(a) gives the 3.1-plate-appearance qualifying standard shared by the batting, slugging and on-base titles.
- [3]Major League Baseball. Official MLB Glossary, "Total Bases (TB)": "A batter records one total base for a single, two total bases for a double, three total bases for a triple and four total bases for a home run… A player can only add to his total-bases tally through a hit. Advancing on the basepaths -- even via a steal -- has no impact on a player's total bases."
- [4]Major League Baseball. Official MLB Glossary, "Slugging Percentage (SLG)": "Slugging percentage represents the total number of bases a player records per at-bat… the formula for slugging percentage is: (1B + 2Bx2 + 3Bx3 + HRx4)/AB", plus the note that it excludes walks and hit-by-pitches and can be applied to pitchers as slugging-percentage against.
- [5]Major League Baseball. Official MLB Glossary, "Isolated Power (ISO)": "The formula (1x2B + 2x3B + 3xHR) / At-bats OR Slugging percentage - Batting average". Both forms are computed on this page and agree to ten decimal places.
- [6]MLB Stats API (statsapi.mlb.com), season hitting statistics for player 660271 (Shohei Ohtani), 2024: 636 at-bats, 197 hits, 38 doubles, 7 triples, 54 home runs, totalBases 411, published slg ".646". Source of the worked example; the same endpoint for players 592450 and 677951 supplies the two independent checks used in this calculator's unit tests.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 590 calculators remain free
- No billing is enabled