Deck Railing Codes
All decks higher than 30" above grade must have a guardrail. If you choose to install a guardrail on a deck lower than 30", the railing must still meet code requirements. Decks attached to single family detached homes are generally regulated under the rules of the International Residential Code (IRC). The IRC requires guardrails to be at least 36" in height, measured from the deck surface to the top of the rail. Note that some local jurisdiction or state require higher, such as 42" in California. Commercial decks attached to multi-family buildings, such as apartment buildings or businesses, are regulated under the International Building Code (IBC). The IBC requires 42" high guardrails. In either case, you are allowed to build taller guardrails as long as they conform to all other requirements stated in the code.
A variety of styles are allowed as long as the interior sections of the rail don’t possess any openings large enough to pass a 4” diameter sphere through. In the case of guardrails for stairs, there is an exception that allows up to a 6” diameter sphere through the triangle opening formed by the stair riser, stairtread and bottom rail. The guardrails must be strong enough to withstand a concentrated 200 lb. force anywhere along the top of the rail.
There is also a safety factor required by the code, so testing loads are higher for manufactured railing systems. To achieve this, you should check to make sure you meet the post spacing requirements for the type of posts you are using and how they are attached to the deck. The sweep space between the deck surface and the bottom rail must be less than 4".
Handrails are required for stairs in many applications and must meet standards as specified by R311.5.6.3 in the IRC code. The top edge of the handrail must be placed between 34” and 38” above the nosing of the stair treads. Handrail ends must be returned and terminated at rail posts. The handgrips must allow a minimum of 1-1/2” space between the handrail and the guardrail or wall. A variety of gripping shapes may be acceptable but must meet requirements for the gripping surface. Flat 2x4 and 2x6 handrails do not meet the requirements for graspable handrails. If you are using a circular cross section, then the handrail must have an outside diameter of between 1-1/4” and 2”.
Engineered railing systems must be tested and certified to meet IRC and IBC building codes. The tests include:
- Infill Load Test: The strength of the balusters are tested so that a one-square foot area must resist 125 lbs. of force.
- Uniform Load Test (for IBC applications): The top rail must be able to sustain 125 lbs./foot length of force applied horizontally or vertically.
- Concentrated Load Test: The top rail must be capable of holding a point load of 500 lbs. of force applied to the mid span, on the side of a post and on top of a post.
A safety factor of 2.5 is included in the numbers listed above.
Glass Deck Railing Ideas and DIY Installation Tips
All glass panels used for deck railings must be safety-tempered and shatter-resistant. Learn how to install glass railing panels and get ideas for your deck.
Cocktail Railing Considerations & Ideas
A cocktail rail is the ideal enhancement for a deck railing. Explore what to consider when introducing a drink rail to your deck.
How to Build & Install an Outdoor Deck Gate
In this easy-to-follow guide, we explain the process of building a deck gate and installing it on your deck.
Deck Skirting
Skirting can be an attractive feature that can be added to any low-level deck.
The 9 Best Porch Swings for 2025
Porch swings are a great way to add charm and comfort to any home. Get our recommendations for how to choose the best porch swing.
What Does it Cost to Enclose a Deck?
Want to enclose your deck but wondering how much it costs? Learn the cost to enclose your deck, porch, or patio to enjoy it all year round.
More Helpful Resources
Explore Articles by Topic
Footings
Information related to installing frost footings for decks
Framing
Learn structural framing methods
Decking
Learn about wood and composite decking materials
Stairs
An in-depth look at the complex issue of how to build stairs
Railings
How to install guardrails and handrails to meet IRC code
Features
An overview on water drainage, benches, planters and lights
Design
The basics of deck design
Planning
Learn about permits and working with contractors
Porches & Patios
Build a covered deck to enjoy all seasons
Ledger
Proper attachment techniques
Care
Maintain your deck to maintain your investment
Materials
An overview on water drainage, benches, planters and lights
Innovative Deck Railing Ideas that Won’t Break the Bank
Discover budget-friendly deck railing ideas and tips to upgrade your outdoor space without compromising on style. Whether you prefer traditional wood and metal or cutting-edge composite and mixed materials, you’ll find affordable solutions that align with your aesthetic, budget, and code requirements.
How to Choose the Right Deck Railing
As one of the most visible elements of a deck, railings add support, safety and style. Get tips for choosing the right deck railing at Decks.com.
Vinyl Deck Railing Reviews, Comparisons, & Costs
Compare Vinyl Deck Railings to wood, aluminum, and composite. Find reviews and cost information to help choose the best deck railing for your home at Decks.com.
5 Best Ways on How to Hide Trash Cans Outside
Outdoor trash cans can be an unwanted eyesore. Discover how you can easily cover them up and add an extra touch of beauty to your yard.
Installing a DIY Under-Deck Drainage System
Whether you're storing outdoor furniture or entertaining guests, you can add a DIY under deck drainage system to your deck to stay dry.
Eco-Friendly Backyard: Tips and Ideas to Green Up Your Space
Living a more sustainable lifestyle can start with a few simple changes in your backyard. Learn how to create a more sustainable backyard with Decks.com.
Explore Articles by Topic
Footings
Information related to installing frost footings for decks
Framing
Learn structural framing methods
Decking
Learn about wood and composite decking materials
Stairs
An in-depth look at the complex issue of how to build stairs
Railings
How to install guardrails and handrails to meet IRC code
Features
An overview on water drainage, benches, planters and lights
Design
The basics of deck design
Planning
Learn about permits and working with contractors
Porches & Patios
Build a covered deck to enjoy all seasons
Ledger
Proper attachment techniques
Care
Maintain your deck to maintain your investment
Materials
An overview on water drainage, benches, planters and lights