Baluster Spacing Calculator
This baluster spacing calculator works out how many balusters a railing needs and the exact, even gap between them. Enter the length between posts, the baluster width, and the maximum gap, and the baluster spacing calculator returns the baluster count, the gap, the on-center spacing, and where to mark the first one, so every space stays under the 4 inch sphere rule.
Results
The Baluster Spacing Calculator is part of our Structural collection. Browse more structural to size, convert, and check your work alongside this tool.
What the baluster spacing calculator does
A railing looks right when every gap matches, and it is safe when no gap lets a 4 inch sphere through. The baluster spacing calculator finds the smallest number of balusters that keeps every gap below your maximum, then spreads them so the gaps at both posts equal the gaps between balusters. You get the count per section, the exact gap, the on-center spacing for your layout stick, and the total for every section of the deck or stair.
Baluster spacing formula
With n balusters there are n + 1 equal gaps. The calculator picks the smallest n that keeps the gap below the limit:
L is the length between posts, W the baluster width, and G the maximum gap. Because n is rounded up past the limit, the real gap always lands below G, never equal to it.
Baluster spacing calculator example
A 72 in section with 1.5 in balusters and a 4 in maximum gap:
The on-center spacing is 5.25 in and the first baluster center sits 4.5 in from the post. A 96 in section with 0.75 in metal spindles needs 20 per section at a 3.857 in gap; six such sections need 120.
How to use the baluster spacing calculator
Measure the clear distance between the inside faces of two posts in inches. Enter the width of one baluster, such as 1.5 in for a wood 2x2 or 0.75 in for a metal spindle. Enter your maximum gap, 4 in for most codes, and the number of sections with the same length. Press Calculate and mark the first baluster center at the distance shown, then step along at the on-center spacing.
Reading the baluster spacing result
The gap is the clear space between neighbors and between the end balusters and the posts. Layout is easiest on centers: mark the first center from the post, then every on-center spacing after it, and the last baluster lands the same distance from the far post. If your sections vary in length, run each one separately so every gap matches within its section. Buy a few spares for splits and bad pieces.
When to use a baluster calculator
- Laying out deck railing between posts
- Counting how many balusters to buy for a deck
- Spacing spindles on a stair railing
- Checking an old railing against the 4 inch sphere rule
- Switching from wood balusters to metal spindles
Common baluster spacing calculator mistakes
- Measuring post centers. Measure the clear space between post faces.
- Setting the gap at exactly 4 in. The code requires the sphere not to pass, so stay below 4 in.
- Ignoring post gaps. The first and last gaps count too.
- One layout for all sections. Run each section length separately.
Tips for even baluster spacing
- Make a spacer block cut to the gap width for fast, even layout.
- Mark centers on the rail with a story stick at the on-center spacing.
- Pre-drill hardwood and composite balusters to stop splitting.
Baluster spacing code and guard rules
Under the IRC, a deck or porch more than 30 inches above the ground needs a guard, at least 36 inches high on most residential decks, and openings small enough that a 4 inch sphere cannot pass. Along the open sides of stairs the IRC allows a 4-3/8 inch sphere, and the triangle formed by the riser, tread, and bottom rail must block a 6 inch sphere. Local codes can be stricter, commercial work follows the IBC with a 42 inch guard height, and some jurisdictions measure the gap under load, so a flexible wood baluster that spreads under a push can fail a gap that measured fine. That is why the baluster spacing calculator keeps the gap strictly below your maximum rather than at it. If your inspector wants extra margin, enter 3.75 or 3.5 inches as the maximum gap. Stair railings follow the same layout along the slope: use the stair geometry from the stair calculator to set the rail angle first.
Deck baluster spacing with wood or metal
Wood 2x2 balusters measure 1.5 inches and give a solid, traditional look with fewer pieces. Metal and composite spindles of 0.75 inches create a lighter view but need more pieces: the same 120 inch section takes 22 wood balusters or 25 metal spindles. Square spindles turned 45° present a wider face, so measure the width as it faces the gap. For top and bottom rails, attach balusters with two screws at each end so they cannot twist and open the gap. Before you order, add up every section and buy about 5% extra for splits and miscuts.
Baluster spacing chart
Balusters per section and the even gap for a 4 in maximum gap:
| Length between posts | 0.75 in spindles | Gap | 1.5 in balusters | Gap |
|---|---|---|---|---|
| 36 in | 7 | 3.844 in | 6 | 3.857 in |
| 48 in | 10 | 3.682 in | 9 | 3.450 in |
| 60 in | 12 | 3.923 in | 11 | 3.625 in |
| 72 in | 15 | 3.797 in | 13 | 3.750 in |
| 96 in | 20 | 3.857 in | 17 | 3.917 in |
| 120 in | 25 | 3.894 in | 22 | 3.783 in |
Baluster Spacing Calculator FAQ
What is the code for baluster spacing?
The International Residential Code requires that a 4 inch sphere cannot pass through any opening in a guard. Keep every gap below 4 inches; many builders aim for about 3.5 to 3.75 inches.
How many balusters do I need for an 8 foot section?
A 96 inch section needs 17 balusters of 1.5 inch width or 20 metal spindles of 0.75 inch width to keep the gaps under 4 inches.
How do you calculate baluster spacing?
Add the gap to the baluster width, divide the length minus one gap by that sum, round down, and add one for the count. Then the gap equals the length minus all balusters, divided by the count plus one.
Do the gaps at the posts count?
Yes. The gap between the last baluster and the post must also stay under the limit, and the calculator makes it equal to the others.
