How to Calculate Deck Baluster Spacing (IRC Code)

By RugCalc Editorial Team · Last updated: October 2026 · 7 min read

Quick answer: use (span + baluster width) ÷ (baluster width + 4 in). For a 10-ft span with 1.5-in balusters that's (120 + 1.5) ÷ 5.5 ≈ 22 balusters, centered evenly so the clear gap never exceeds 4 inches. Here's the code and the worked example.

Quick check? Use the deck calculator for boards and framing, and read the deck board guide for the surface.
Wood deck balusters with a tape measure checking spacing
measuring a deck railing span for baluster spacing
Measure the span. 1) Post-to-post span in inches. 2) Note the baluster width. 3) Set the max gap to 4 in.

Step 1: the 4-inch rule

US residential decks follow the 4-inch rule (IRC guardrail requirements): the clear opening between balusters can't exceed 4 inches. That's the gap between adjacent balusters, not center-to-center. Smaller gaps are fine; the code is the maximum, and inspectors measure the clear space.

Step 2: the spacing formula

To find how many balusters you need across a span between posts:

(span + baluster width) ÷ (baluster width + 4 in) = balusters

Worked example — a 10-ft span with 1.5-in balusters:

deck railing span with evenly spaced balusters
Plan the rail. 1) Draw the span. 2) Divide by width+gap. 3) Center the layout.

Balusters by span

Using 1.5-in balusters and a 4-in max gap:

SpanBalustersEffective gap
6 ft13~4.0 in
8 ft17~4.0 in
10 ft22~3.9 in
12 ft26~4.0 in
balusters needed by deck railing span
Find your span. 1) Read the count. 2) Space evenly. 3) Keep gaps ≤ 4 in.

Center the layout

An even, centered layout is what looks right and passes inspection. After you know the count, mark the first and last balusters, then divide the remaining space into equal gaps. A stair or angled section uses the same formula per section — measure each span between posts separately rather than stretching one layout.

deck railing split into posts, balusters and top rail
Three rail zones. 1) Posts at the ends. 2) Balusters between. 3) Top and bottom rails.

Common mistakes

Related. Plan the deck surface with the deck calculator and the deck board guide.