What Are Deck and Stair Spindles?
Spindles, in construction and carpentry, are slender vertical support members used to create a see-through barrier for staircases, decks, terraces, and balconies. They are installed vertically from a bottom base rail (or shoe rail) to the underside of a handrail or guard rail. Unlike balusters — which are typically more decorative and made from wood, stone, or cement — spindles are generally slimmer and made from wood or metal.
Railings at adequate heights provide guidance and protection against accidental falls. Proper spindle spacing also ensures that children cannot pass through or get stuck between spindles. The U.S. Building Code mandates a maximum spindle gap of 4 inches (≈ 10 cm) — a safe measurement to prevent a small child's head from passing through.
How to Use This Spindle Spacing Calculator
- Select your unit system: Imperial (inches) or Metric (cm).
- Enter the railing length — the total interior length between the two end posts.
- Enter the spindle width — the horizontal thickness of a single spindle (e.g., 1.5 in for a 2×2 wood spindle).
- Enter the maximum gap allowed. The default is 4 in / 10 cm per U.S. Building Code.
- If you are working on a stair railing, check the "Stair / Slanted Railing" box and enter the stair angle in degrees.
- Click Calculate Spacing.
The calculator will display the minimum number of spindles required, the actual even gap between each spindle, and whether your spacing passes the building code.
How to Calculate Spindle Spacing
To achieve even spacing — equal gaps between every spindle and between the end spindles and the posts — use the two-step formula below.
Spindle Spacing Formula for Evenly Spaced Spindles
Step 1 — Find the minimum number of spindles (N):
N = ⌈ (L − gap_max) / (W + gap_max) ⌉
- L — total railing length
- W — width of one spindle
- gap_max — maximum allowed gap (4 in or 10 cm)
- ⌈ ⌉ — ceiling function (round up to nearest whole number)
Step 2 — Calculate the actual even spacing:
spacing = (L − N × W) / (N + 1)
This formula places N + 1 equal gaps: one before the first spindle, one between each pair, and one after the last spindle — ensuring perfectly uniform spacing throughout the entire railing.
Example (Imperial)
Railing length L = 72 in, spindle width W = 1.5 in, max gap = 4 in:
- N = ⌈(72 − 4) / (1.5 + 4)⌉ = ⌈68 / 5.5⌉ = ⌈12.36⌉ = 13 spindles
- spacing = (72 − 13 × 1.5) / (13 + 1) = (72 − 19.5) / 14 = 52.5 / 14 = 3.75 in
- 3.75 in < 4 in ✓ Passes building code
Slanted Spindle Spacing (Stairs)
For stair railings, the railing runs at an angle. The U.S. Building Code measures the horizontal opening between spindles, not the slant distance. To find the horizontal measurement from a slope measurement:
horizontal_length = slope_length × cos(angle)
Then apply the standard formula to horizontal_length. The calculator also reports the spacing along the slope so you can mark positions directly on the rail:
slope_gap = spacing / cos(angle)
U.S. Building Code Requirements
- Maximum opening between spindles: 4 inches (≈ 10 cm) — IRC Section R312.1.3
- Minimum railing height for decks ≥ 30 in above grade: 36 inches (42 in recommended for commercial)
- Spindles must not provide a climbing foothold (horizontal rails are restricted in some codes)
Always verify with your local building authority, as codes may differ by jurisdiction.
FAQs
- What is the maximum gap between deck spindles?
- Per the U.S. Building Code (IRC R312.1.3), the maximum opening is 4 inches (≈ 10 cm). This prevents a 4-inch sphere — representing a child's head — from passing through.
- How many spindles do I need for a 6-foot railing?
- For a 72-inch railing with 1.5-inch wide spindles and a 4-inch max gap: you need 13 spindles spaced 3.75 inches apart.
- What is the difference between spindles and balusters?
- Spindles are slender vertical members, typically made of wood or metal. Balusters serve the same structural function but are often wider and more decorative, made from wood, stone, or cement.
- Do I measure spindle spacing on stairs differently?
- Yes. For stairs, first find the horizontal projection of your slope length using
horizontal = slope × cos(angle), then apply the standard formula. The calculator handles this automatically when you enable stair mode. - Should spindles be installed on a shoe rail or directly on the stair treads?
- This calculator assumes spindles are installed on a base (shoe) rail, not directly on stair treads. Installing on a shoe rail gives a cleaner look and more accurate spacing calculation.