Deck Railing Calculator
Determine the quantity of balusters for your stairs and deck perimeter.

This calculator will tell you:
- How many balusters you’ll need
1. Total Linear Feet of Railing
2. Post Type
3. Total Posts
4. Baluster Type
5. Spacing Between Balusters
In order to be up to code, U.S. building codes mandate that balusters have no more than a 4-inch gap between them.
Your Deck Railing Calculator Results
An error occured:
Results
Total Balusters Needed: {{calculatorResult}}
Take the Next Step in Your Project
Explore Decking Samples
Discover what works best with your home. All decking samples conveniently ship for free. Choose from an extensive collection of colors and grain patterns and feel the difference.
Build Like a Pro
Trex Academy is your go-to resource for learning how to build any part—or every part—of your deck, with step-by-step videos, expert tips, and design inspiration.
Explore Deck Plans
Choose from hundreds of free downloadable deck plans based on the International Residential Code.
How Many Spindles Do I Need?
In order to determine how many spindles you’ll need, you should first know how much space should be between deck balusters. In order to comply with building regulations and codes, balusters must be spaced less than 4 inches apart. The test is called a “4-inch sphere test” - basically could a 4” wide ball fit between the balusters. If not, you should be compliant.
How Far Apart Should Spindles Be On a Deck Railing?
The general rule is that your railing must have three balusters per foot (every 12 inches), although you can place them closer together if you’d like. The length of your railing (in total linear feet) will play a factor in how many balusters you’ll need to be sure your deck and railing are compliant with safety standards. Use this deck railing and spindle calculator to help you find out how many balusters (or spindles) you’ll need for your project.