Free App
← All calculators

Baluster & Spindle Spacing Calculator

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.

Units
Rail Dimensions
Balusters Needed - balusters
Exact gap between balusters -

Baluster spacing template shortcuts

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.

VibeCalc Android app icon
Android App

Need baluster spacing hands-free?

Use the Android app when you need voice input, offline use, material lists, or PDF export. Free, no ads, no accounts.

Get the Free App Free. Built for Android phones. Donations welcome.

Saved you a mistake? Support VibeCalc

Price the rail or fence run

After spacing pickets, spindles, or balusters, use the fence cost calculator to estimate posts, sections, gates, material, and labor.

View all

More baluster, spindle, and stair railing layout guides

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.

Baluster, spindle, and deck picket spacing

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 code rule

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.

The formula

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:

  • Approximate count: (72 − 3.5) ÷ (1.5 + 3.5) = 13.7 → ceil = 14 balusters
  • Even gap: (72 − 14 × 1.5) ÷ (14 + 1) = 51 ÷ 15 = 3.40″

14 balusters at a uniform 3.40″ gap, well under the 4″ code requirement.

Quick reference - typical deck railings

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

Baluster layout mistakes that cause rework

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.

Using nominal baluster size

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.

Forgetting stairs use sloped length

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.

Common baluster widths

Style Typical width
Square wood (2×2)1.5″
Square iron / aluminium0.5″–0.75″
Round iron / aluminium0.5″–0.75″
Turned wood1.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).

Common Questions

How many balusters do I need for an 8-foot deck rail?
For a 96″ rail with 1.5″ balusters and a 4″ max gap (US code): 17 balusters with an exact ~3.92″ gap between each. Use the calculator below for any rail length.
What is the maximum gap between balusters by code?
In the US and Canada the IRC limits gaps to less than 4″ (101 mm) - small enough that a 4″ sphere cannot pass through. UK and most of Europe set the limit at 100 mm. The calculator defaults to these limits per unit system.
How do I calculate even baluster spacing?
Two-step formula: (1) count = ceil((rail length − max gap) / (baluster width + max gap)), (2) exact gap = (rail − count × width) / (count + 1). The +1 in the denominator accounts for the gap on either side of the run.
What is a standard baluster width?
Most common is 1-1/2″ (38 mm) - the actual width of a 2×2 baluster. Decorative metal balusters are often 1/2″ to 3/4″. Wider posts (5-1/2″, e.g., 4×4 newels) sit at the corners and are not counted as balusters in this calculator.
Do balusters go on the outside or inside of the posts?
Either works structurally - what matters for code is the gap between adjacent balusters being below the limit (typically 4″). Most modern decks mount balusters on the outside (face-mount) so the rail looks clean from the deck side. This calculator measures the rail length between posts; the mount style does not affect spacing.
Is a spindle spacing calculator the same as a baluster calculator?
Yes. In deck and stair railing work, spindle, picket, and baluster spacing usually mean the same layout problem: choose the count, then make every clear opening equal and under the code limit.
Can I use this for stair baluster spacing?
Yes for the clear opening math. Measure along the sloped rail between newels or posts, enter the baluster width, and use the stricter 4″ target unless your local stair rule allows more. Always verify stair-guard code before cutting.

Materials & Tools

Amazon affiliate links - small commission at no extra cost to you. Products and store ship to US addresses.