Deck Baluster Calculator

Free balusters calculator

As an Amazon Associate I earn from qualifying purchases.

Count balusters needed for code-compliant railing.

Worked example

With these inputs:

ResultValue
Balusters required120 balusters
Material cost$540
Spacing4" OC

IRC requires gaps that won't pass a 4" sphere. Use ≤4.25" OC with 1.5" balusters.

How it works

Baluster spacing is governed by one rule that has not changed in decades: a four-inch sphere must not pass through any opening in the guard. That fixes your maximum gap and, with the baluster width, fixes the count. This works out how many balusters each railing section needs and the exact spacing to lay out, so every bay comes out even.

Frequently asked questions

How far apart should deck balusters be?

No more than four inches of clear space between them — the rule is that a four-inch sphere must not pass through. With 1 1/2 inch square balusters that means a repeat of about 5 1/2 inches on centre; with 3/4 inch round metal balusters, about 4 3/4 inches. Lay out from the exact clear gap, not from the centres, because the centre figure changes with baluster thickness.

Why is the four-inch rule used for deck railings?

It comes from child safety research: a four-inch sphere approximates the size below which a small child's head can pass through and become trapped. The same limit appears in the triangular opening at the bottom of a stair guard, where the figure is six inches, and in the gap between the bottom rail and the deck surface.

How many balusters do I need for my deck?

Take each railing section's clear length between posts, divide by the baluster width plus the maximum gap, and round up — then recalculate the actual gap so it comes out even across the bay. A 6 ft section between posts with 1 1/2 inch balusters needs about 13. Across 40 linear feet of railing, expect roughly 85 to 95.

Do balusters have to be vertical?

Vertical is the norm and the safest bet. Horizontal rails are permitted in some jurisdictions and banned in others, because they form a ladder a child can climb — where allowed, they still have to meet the same four-inch rule. Cable rail is the horizontal exception most codes do accept, provided the cables are tensioned enough that the gap cannot be pushed past four inches.

Need the whole roof at once? The free roofing calculator works out roof area, squares, shingle bundles, underlayment, drip edge, ridge cap and installed cost from one set of measurements.