Spindle Spacing Calculator

Calculate the equal spacing between spindles (balusters) for deck railings, staircases, and fences. Ensures code-compliant gaps of 4 inches or less.

SPINDLES
--
spindles
Spindles Needed
--
Actual Gap
--
Center to Center
--
Number of Gaps
--

What is Spindle Spacing?

Spindle spacing refers to the distance between adjacent balusters (spindles) in a railing system. Building codes in most jurisdictions require that the gap between spindles be no greater than 4 inches to prevent children from getting their heads stuck between them. This calculator helps you determine the exact number of spindles needed and the precise spacing for even distribution.

Proper spindle spacing is both a safety requirement and an aesthetic consideration. Evenly spaced spindles create a professional, uniform appearance, while uneven spacing looks sloppy and may fail building inspection.

Spacing Formulas

Usable Length = Total Length − Post Width
Min Spindles = Ceil((Usable − MaxGap) / (SpindleWidth + MaxGap))
Actual Gap = (Usable − Spindles × Width) / (Spindles + 1)

Building Code Requirements

CodeMax OpeningRailing Height
IRC (Residential)4 inches36" (deck), 34" (stairs)
IBC (Commercial)4 inches42" minimum
Ontario Building Code100 mm (3.94")900 mm (35.4")

Worked Example

An 8-foot (96") railing section with 1.5" wide spindles, 3.5" posts, and 4" max gap:

Usable = 96 − 3.5 = 92.5"
Min spindles = Ceil((92.5 − 4)/(1.5 + 4)) = 17
Gaps = 18
Actual gap = (92.5 − 17 × 1.5)/18 = 3.72"

Frequently Asked Questions

What is the 4-inch rule for balusters?

The 4-inch rule states that a 4-inch sphere should not be able to pass through any opening in a guardrail system. This prevents small children from getting their heads stuck between balusters. This is mandated by the International Residential Code (IRC) and most local building codes.

How do I account for the first and last gaps?

The gaps next to posts are included in the calculation. With N spindles, there are N+1 gaps (including the two end gaps next to posts). This calculator distributes all gaps evenly.

Can I use wider spindles to need fewer of them?

Yes, wider balusters require fewer units to fill the same span. However, wider balusters can look heavy and reduce visibility through the railing. Common spindle widths are 1.25" to 1.75" for wood and 0.75" for metal.