Measuring the wrong opening
Measure the clear inside distance between posts or newels, not the outside deck edge or full rail board length. If the post spacing is not set yet, use the deck railing post spacing calculator first.
Exact baluster, spindle, or deck picket count with even, code-conscious gap layout for deck rails and stair rails. Defaults to the 4″ IRC limit (US/Canada) or 100 mm (UK/EU), auto-detected by region. Live as you type.
Pick a common rail opening to turn this page into a field template. These use 1.5″ wood balusters with a 3.5″ working gap, tighter than the 4 inch sphere limit.
Repeating this layout on a phone in the field? The free Android app keeps the same calculator handy offline and adds voice input, material lists, and PDF export/share.
Use the Android app when you need voice input, offline use, material lists, or PDF export. Free, no ads, no accounts.
Saved you a mistake? Support VibeCalc
After spacing pickets, spindles, or balusters, use the fence cost calculator to estimate posts, sections, gates, material, and labor.
Need a quick field layout? Use the 6 ft and 8 ft baluster spacing template to answer how many balusters fit common rail sections. Check the baluster spacing code and 4 inch sphere guide for the 4 inch sphere rule and 100 mm spacing target, lay out guardrail posts first with the deck railing post spacing calculator, check cable systems with the cable railing calculator, or find the stair pitch with the stair handrail angle calculator.
Builders use different names - balusters, spindles, pickets, stair balusters, or railing infill - but the spacing math is the same. Measure the clear run between posts or newels, enter the actual width of the material, and let the calculator round the count up so the final clear gap stays under your chosen limit.
For stairs, measure along the sloped rail rather than the horizontal floor run. For deck guardrails, lay out post spacing first with the deck railing post spacing calculator, then return here for the baluster or spindle count inside each opening. For cable rails, use the cable railing calculator instead of treating cable as a solid spindle.
The International Residential Code (IRC Section R312.1.3) and the International Building Code (IBC Section 1015.4) require that a 4-inch sphere cannot pass through any opening in a required guard. In practice, the clear space between balusters must be less than 4 inches. Most builders use 3.5 inches as a working maximum to give safety margin for wood movement and material tolerance.
Exception: on the open side of stairs, the spacing limit is 4-3/8 inches (≈110 mm) due to the geometry of the sloped railing. UK and most of Europe use 100 mm as the limit.
Count = ceil((L − G) ÷ (B + G)) Even gap = (L − count × B) ÷ (count + 1)
Where L = post-to-post length, G = max gap (code limit), B = baluster width. The ceiling on count guarantees the final even gap will land under your max.
Worked example. 6-foot (72″) section, 1.5″ square balusters, 3.5″ max gap:
14 balusters at a uniform 3.40″ gap, well under the 4″ code requirement.
| Post-to-post | 1.5″ balusters, 3.5″ max gap |
|---|---|
| 4 ft (48″) | 9 balusters, ≈3.45″ gap |
| 6 ft (72″) | 14 balusters, ≈3.40″ gap |
| 8 ft (96″) | 19 balusters, ≈3.38″ gap |
| 10 ft (120″) | 24 balusters, ≈3.36″ gap |
| 12 ft (144″) | 29 balusters, ≈3.35″ gap |
Measure the clear inside distance between posts or newels, not the outside deck edge or full rail board length. If the post spacing is not set yet, use the deck railing post spacing calculator first.
A “2×2” wood baluster is usually 1.5″ actual width. Metal spindles may be 1/2″, 5/8″, or 3/4″. Enter the real measured width or the final gap will drift.
For stair baluster spacing, measure along the rake or sloped rail between newels. Do not use the horizontal stair run unless the local detail specifically calls for projected spacing.
| Style | Typical width |
|---|---|
| Square wood (2×2) | 1.5″ |
| Square iron / aluminium | 0.5″–0.75″ |
| Round iron / aluminium | 0.5″–0.75″ |
| Turned wood | 1.5″–1.75″ |
Use the actual width at the widest point. For cable rail, measure the cable spacing (typically 3-3/8″ vertical separation between cables).
Amazon affiliate links - small commission at no extra cost to you. Products and store ship to US addresses.