How to space balusters evenly
Building codes require that a 4 inch sphere can't pass between balusters, so gaps must be less than 4 inches. To space them evenly, work out how many balusters fit with gaps at or under your maximum, then spread the leftover space equally across all the gaps, including the gaps next to each post.
The formula
Exact gap = (Length − Balusters × Baluster width) ÷ (Balusters + 1)
Example
A 72 inch section with 1½ inch balusters and a 3⅞ inch maximum gap: (72 − 3.875) ÷ 5.375 = 12.7, so 13 balusters. The exact gap is (72 − 19.5) ÷ 14 = 3.75 inches. Six sections need 78 balusters.
Quick reference: balusters per foot
| Baluster width | Per linear foot (≈) |
|---|---|
| ¾ in metal | 2.8 |
| 1½ in wood (2×2) | 2.3 |
| 2½ in turned | 1.9 |
Railing code basics
- Guards are required on decks more than 30 inches above grade, at least 36 inches tall (42 in for many commercial and some local codes).
- Stair railings: the triangle under the bottom rail must block a 6 inch sphere; balusters on stairs must block a 4⅜ inch sphere.
- Planning the stairs too? Use the /stair-calculator. Decking: the /deck-board-calculator.
Frequently asked questions
What is the 4 inch baluster rule?
Residential codes say a 4 inch sphere must not pass through any opening in a guard. Builders usually space balusters about 3½–3⅞ inches apart to stay safely under the limit.
How many balusters do I need for a 6 foot section?
With 1½ inch balusters, about 13 balusters per 72 inch section, spaced 3¾ inches apart.
How many balusters per linear foot?
About 2.3 for standard 2×2 wood balusters and about 2.8 for slim ¾ inch metal balusters.
Last updated December 2026. Estimates only: confirm quantities with your supplier.