CCalculate.Studio
construction · 6 min · Ultima revisione: 2026-07-07

Deck Baluster Spacing and the 4-Inch Sphere Rule

TL;DRUS residential and building codes require guard openings to be small enough that a 4-inch (about 10 cm) sphere can't pass through — the '4-inch sphere rule.' Laying out a railing means finding the smallest number of evenly spaced balusters that keeps every gap at or below that limit. For a 240 cm span with 3.2 cm wide balusters and a 9.9 cm maximum gap (a small margin under the ~10.2 cm code figure), the formula needs 18 balusters, producing an even actual gap of 9.6 cm and an on-center spacing of 12.8 cm to mark out along the rail.

What the 4-inch sphere rule requires

The widely adopted '4-inch sphere' rule from US residential and building codes (IRC/IBC) requires that openings in guards be small enough to reject a 4-inch (about 10 cm) sphere — a proxy for keeping a small child from being able to slip through or get their head caught. The layout problem this creates is finding the smallest number of balusters that keeps every gap at or below that maximum while spacing them evenly across the full span.

Designing slightly under the code limit — for example a 9.9 cm maximum gap rather than the ~10.2 cm sphere figure — leaves a margin for layout and cutting tolerances. Small errors, bowed balusters or cutting variance can otherwise push an individual gap past the sphere limit and fail inspection; that margin typically costs at most one extra baluster on a typical span.

The formula

The minimum baluster count comes from requiring that n balusters divide the span into n + 1 gaps no larger than the maximum: n = ceil((Span − MaxGap) ÷ (BalusterWidth + MaxGap)). The actual gap then redistributes the leftover space evenly across all n + 1 gaps: gap = (Span − n × BalusterWidth) ÷ (n + 1). The on-center spacing — the distance between the same edge of consecutive balusters, the figure to mark repeatedly along the rail — equals the gap plus the baluster width.

  • n = ceil((Span − MaxGap) ÷ (BalusterWidth + MaxGap))
  • Actual gap = (Span − n × BalusterWidth) ÷ (n + 1)
  • On-center spacing = Gap + Baluster width

Worked example: a 240 cm span

A 240 cm span with 3.2 cm wide balusters and a 9.9 cm maximum gap needs ceil((2400 − 99) ÷ (32 + 99)) = 18 balusters. The even gap works out to (2400 − 18 × 32) ÷ 19 = 9.6 cm — comfortably under the ~10 cm sphere limit — with an on-center spacing of 12.8 cm to mark along the rail.

Input / ResultValue
Span240 cm
Baluster width3.2 cm
Maximum gap allowed9.9 cm
Balusters needed18
Actual even gap9.6 cm
On-center spacing12.8 cm

On-center vs. clear gap — a common mix-up

A frequent layout mistake is spacing balusters 10 cm on center instead of leaving 10 cm as the maximum clear gap. On-center spacing includes the baluster width, so it's always larger than the clear gap — using it as if it were the gap limit under-spaces the balusters and wastes material. The code limit applies specifically to the clear opening between baluster faces, not the on-center distance.

Domande frequenti

What is the maximum gap between balusters?

US residential and building codes (IRC/IBC) commonly apply the 4-inch (about 10 cm, ~10.2 cm) sphere rule — no opening should be large enough to pass a 4-inch sphere. Stair balusters sometimes use a 4⅜ inch exception in IBC contexts.

How many balusters do I need for a 240 cm railing span?

With 3.2 cm wide balusters and a 9.9 cm maximum gap, a 240 cm span needs 18 balusters, giving an even clear gap of 9.6 cm and an on-center spacing of 12.8 cm.

Why design to a gap slightly under the code limit?

Designing slightly under the limit leaves a tolerance margin: small layout errors, bowed balusters or cutting variance can otherwise push an individual gap past the sphere limit and fail inspection. A few millimeters of margin costs at most one extra baluster on a typical span.

What's the difference between on-center spacing and the gap limit?

On-center (o.c.) spacing is the distance from a point on one baluster to the same point on the next — the clear gap plus one baluster width. It is the figure to mark repeatedly along the rail when laying out, while the code limit applies to the clear gap between faces.

Fonti

  1. International Code Council (ICC) — International Residential Code (IRC) and International Building Code (IBC): guard opening / 4-inch sphere provisions.
  2. US Consumer Product Safety Commission (CPSC) — guidance on guard and railing opening sizes for child safety.
  3. Standard right-triangle and even-spacing layout arithmetic underlying the baluster count and gap formulas.

Calcolatori correlati

🧩 Aggiungi un calcolatore al tuo sito — gratis. Widgets →