Level & Tape Logo
Level & Tape Visual DIY Calculators
Open Stair Tool

Deck Baluster Spacing Calculator with Tape Marks

Enter the clear inside span between your deck posts and your spindle width to get perfectly equal gaps guaranteed under the 4-inch IRC safety rule, plus cumulative 1/16" layout marks.

How Baluster Spacing Math Works

Because every railing section has one more open gap than balusters (N balusters create N + 1 equal spaces), dividing the opening evenly requires solving for the smallest whole number of balusters that keeps the clear gap at or below 4 inches:

1. Minimum Balusters (N): N = ceil((Opening − Max Gap) ÷ (Baluster Width + Max Gap))
2. Exact Clear Gap: Gap = (Opening − N × Baluster Width) ÷ (N + 1)
3. On-Center Spacing: OC = Gap + Baluster Width

Pro Tip: Accounting for Pressure-Treated Shrinkage

Freshly purchased wet pressure-treated 2×2 balusters can shrink by up to 1/8" in width over their first summer in direct sunlight. If your inspector checks your railing at 3.98", a tiny bit of drying shrinkage can push the gap over 4.0". Setting your Maximum Allowed Gap input to 3.75" gives you a rock-solid safety buffer while keeping the railing visually balanced.

Frequently Asked Questions

What is the maximum legal gap between deck balusters under US building code? +
Under the International Residential Code (IRC R312.1.3), guard openings must not allow a 4-inch diameter sphere to pass through. That means your clear gap between balusters must be 4.0 inches or less. Many deck builders aim for 3-1/2" to 3-7/8" to allow for wood shrinkage as pressure-treated lumber dries.
Why should I use cumulative tape marks instead of a spacer block? +
Spacer blocks are fast, but if your block is off by even 1/16" or if wood balusters vary slightly in width, the error compounds across 15 balusters and leaves an uneven, noticeably wide or narrow gap at the far post. Hooking your tape on the left post and marking each cumulative position keeps every section symmetrical.
Does the 4-inch rule also apply to stair railings? +
On sloped stair railings, IRC R312.1.3 allows a 4-3/8" sphere between vertical balusters and a 6" sphere in the triangular space formed by the tread, riser, and bottom rail. However, spacing stair balusters to match the 4" deck rule looks cleaner and guarantees compliance.
How wide is a standard 2x2 wood deck baluster? +
A nominal 2x2 pressure-treated wood baluster actually measures 1-1/2 inches (1.5") square after milling. Round or square aluminum deck balusters typically measure 3/4 inch (0.75") wide.

Next Step: Related Visual Calculators

All Tools →