Home › Concrete, Decks & Exterior › Baluster Spacing Calculator
Concrete, Decks & Exterior

Baluster Spacing Calculator

Find how many balusters (spindles) you need between deck or porch posts, and the exact gap that spaces them evenly under the 4 inch code limit.

  • Bags, yards & squares
  • Shows the formula
  • Free, no sign-up
A white door leading to a wooden balcony overlooking a fenced backyard with trees
Photo: Josh Lemmon on Unsplash

Your project

in
Inside face to inside face
in
2×2 wood = 1½ in; metal often ¾ in
in
Code: a 4 in sphere must not pass; aim under 4
$

Your results

Enter your measurements.

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

Balusters = (Length − Max gap) ÷ (Baluster width + Max gap), rounded up
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 widthPer linear foot (≈)
¾ in metal2.8
1½ in wood (2×2)2.3
2½ in turned1.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.