DDeckCalcHQ

Deck Railing & Baluster Spacing Calculator

Lay out your deck railing so the baluster gaps are even AND code-legal. Enter your railing length and post spacing and the calculator solves the baluster count and the exact even gap that keeps a 4-inch sphere out (IRC R312).

Balusters
91
13 per section
Even gap
3.26
passes (< 4″)
Railing layout
Rail sections7
Rail posts8
Clear span per section65.1
Guard height (R312)36″ min

Even gap = (section clear − balusters × width) ÷ (balusters + 1). Code requires the gap to reject a 4″ sphere (IRC R312.1.3); 3½″ is the safe build target. Guards are 36″ min on residential decks.

Deck Railing & Baluster — what to know

Want a permit-ready deck plan?

This estimate is built for planning. For your permit packet, DeckCalc HQ Pro turns these numbers into a stamped framing plan, footing schedule and material list as a printable PDF.

See Pro →

Other calculators