Deck Baluster Calculator
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.
Built and maintained by DixonAppStudio LLC · How the figures are worked out · Report an error
What you'll need
As an Amazon Associate I earn from qualifying purchases.

105 Pack 26 inch Aluminum Balusters for Deck Railing,Black Round Metal Spindles for Staircase,3/4" Diameter Hollow Deck Ballasters with Screws and Connectors for Railing Fencing Porch Stair Spindles
$129.99
Check price on Amazon
Egadis 4 Pack 36 in x 6 ft Modular Aluminum Porch and Deck Railing Kit | Pioneer in Modular Aluminum Railing Kit, ASTM Certified, Textured AAMA2604 Finish for Deck, Porch & Balcony (4 Post, 4 Panel)
$619.99
Check price on Amazon
Brileine 10 Tons Hydraulic Crimping Tool with 9 Dies, 12 to 2/0 AWG | Battery Cable Crimper Tool, Wire Rope Crimping Tool for 1/16" 1/8" 3/16" Stainless Steel Cable Railing Tool
$39.99
Check price on Amazon
Sidasu 50-Pack Baluster Connectors for 1/2'' Square Balusters | 180° Rotation Adjustable,Pre-Drilled Set Screws,Indoor & Outdoor Use,Stainless Steel with POM
$69.50
Check price on AmazonPrices as of Oct 25, 2026, 4:32 AM UTC. Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon.com at the time of purchase will apply to the purchase of this product.
Shopping for someone? See our guide to gifts for woodworkers.
Cable instead of spindles? Use the cable railing calculator.
Choosing railing or balusters? See our deck railing buying guide.
Get the Smart Decking Calculator app for Android
Estimate decks on the go, save projects, and share them with contractors.
Building something else? Try our sister calculators
Smart Fencing Calculator
Estimate fence cost by material and linear footage.
Smart Roofing Calculator
Free roof replacement cost estimates by material.
Fence Calculator
Android app — posts, pickets, panels and fence cost.
Gravel & Stone Calculator
Android app — gravel under the deck and footings, in tons and yards.
Roofing Calculator
Android app — roof squares, shingles and covered-deck roofs.
Drywall Calculator
Android app — drywall sheets, mud, and tape estimates.
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.
Related calculators
All calculators →
Stair Stringer Calculator
Stringer length, the board size you need, and the cut layout.
Open calculator →
Deck Railing Cost Calculator
Estimate cost of railing by linear footage and material.
Open calculator →
Deck Stair Calculator
Number of steps, rise per step, total run, and stringers needed.
Open calculator →