# Deck Railing Calculator

Depending on your local building codes, a deck that’s 30 inches high might require guardrails that are at least 3 feet (36 inches) high, extending from the deck’s surface to the top of the railing. Although this is a general rule, it’s always best to check with your local building codes when securing a permit to build your deck to be sure your deck is up to code. However, if your deck is near a steep drop-off, embankment, or cliff, you should include a railing for safety purposes.

Your deck will require a railing that extends on both sides of your stairs, and around the perimeter of your deck. This railing will require balusters (sometimes called spindles) and vertical posts that support your railing. These posts act as anchors to the railing and tie the deck frame and railing together.

Use this deck railing and spindle calculator to help you find out how many balusters (or spindles) you’ll need for your project.

**This calculator will tell you:**

- How many balusters you’ll need

- 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

### Results

Total Balusters Needed: | {{ Result.TotalBalustersNeededString }} |

Ready to **Build** Your Deck?

Three tiers of premium composite and aluminum deck and porch railing provide low-maintenance options for all tastes and budgets.

Still **Planning** Your Deck?

Build your own design with our free and simple deck designer software.

## 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.

## Calculator Page Ads Macro

- Ad Zone: Calculator Feature Page
- Instances Rendered: 3

## Learn More About Deck Railing

If your deck ranges between 24 inches and 30 inches from the ground, local building safety codes require your deck to have a railing that is at least 3 feet (36 inches) high, extending from the deck’s surface to the top of the railing. Although this is a general rule, it’s best to check with your local building codes when securing a permit to build your deck to be sure your deck is up to code. However, if your deck is near a steep drop off, embankment, or cliff, you should include a railing for safety purposes.

Your deck will require a railing that extends on both sides of your stairs, and around the perimeter of your deck. This railing will require balusters (sometimes called spindles) and vertical posts that support your railing. These posts act as anchors to the railing and tie the deck frame and railing together. Use this deck railing and spindle calculator to help you find out how many balusters (or spindles) you’ll need for your project.

## 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.

## Calculator Page Ads Macro

- Ad Zone: Calculator Feature Page
- Instances Rendered: 3

Looking for a **retailer** to buy your decking supplies?

Find the best deck boards and materials near you

By clicking FIND A RETAILER, you acknowledge that you have read Trex's Privacy Policy.