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.
How to Build a Deck Privacy Screen
In some deck design situations, you may feel that it is important to block certain views to increase privacy. This can usually be achieved by building a privacy wall or fence.
Deck Skirting
Skirting can be an attractive feature that can be added to any low-level deck.
Best DIY Outdoor Shower Ideas & Designs
Outdoor showers are perfect for cleaning off after the beach or pool. Here are some of our favorite DIY outdoor shower ideas. Find inspiration at Decks.com.
9 Best Deck Furniture Ideas & Designs
Make your deck the place to be this year. Find unique outdoor furniture ideas for decks of all sizes and transform your backyard into an outdoor living room.
More Helpful Resources
Explore Articles by Topic
![Footings](/media/3vsas025/all-articles_footings-2x.png?format=webpg&quality=80)
Footings
Information related to installing frost footings for decks
![Framing](/media/5wrarsgy/all-articles_framing-2x.png?format=webpg&quality=80)
Framing
Learn structural framing methods
![Decking](/media/meljt4np/all-articles_decking-2x.png?format=webpg&quality=80)
Decking
Learn about wood and composite decking materials
![Stairs](/media/2sopl0br/all-articles_stairs-2x.png?format=webpg&quality=80)
Stairs
An in-depth look at the complex issue of how to build stairs
![Railings](/media/hpwbuyzr/all-articles_railings-2x.png?format=webpg&quality=80)
Railings
How to install guardrails and handrails to meet IRC code
![Features](/media/tvcahlmk/all-articles_features-2x.png?format=webpg&quality=80)
Features
An overview on water drainage, benches, planters and lights
![Design](/media/3bvpzvtz/all-articles_design-2x.png?format=webpg&quality=80)
Design
The basics of deck design
![Planning](/media/qdenqrqv/all-articles_planning-2x.png?format=webpg&quality=80)
Planning
Learn about permits and working with contractors
![Porches and Patios](/media/sg5bst1z/all-articles_porches-and-patios-2x.png?format=webpg&quality=80)
Porches & Patios
Build a covered deck to enjoy all seasons
![Ledger](/media/0htjl4uu/all-articles_ledger-2x.png?format=webpg&quality=80)
Ledger
Proper attachment techniques
![Care](/media/qdpnwkry/all-articles_care-2x.png?format=webpg&quality=80)
Care
Maintain your deck to maintain your investment
![Materials](/media/zqfflkeo/all-articles_materials-2x.png?format=webpg&quality=80)
Materials
An overview on water drainage, benches, planters and lights
Reddit Railing Questions Answered
Deck railing is an essential component of any deck, providing both safety and style. However, with so many materials, designs, and installation factors to consider, questions often arise.
5 Cable Railing Ideas to Inspire Your Deck or Porch Railing
Cable railing adds a modern touch for those looking to add a unique twist to their deck or porch. These top ideas offer inspiration and guidance on cable railing for your deck.
Handrails
Learn about the code requirements for installing a grippable handrail for your deck stairs.
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.
How to Install a Shade Sail
Shade sails are a stylish way to keep your deck cool and shady. Learn how to install a shade sail in your backyard.
What Does it Cost to Build a Second Story Deck?
Interested in an elevated deck but asking yourself how much does a second story deck cost? Learn the cost to build a second story deck here.
Explore Articles by Topic
![Footings](/media/3vsas025/all-articles_footings-2x.png?format=webpg&quality=80)
Footings
Information related to installing frost footings for decks
![Framing](/media/5wrarsgy/all-articles_framing-2x.png?format=webpg&quality=80)
Framing
Learn structural framing methods
![Decking](/media/meljt4np/all-articles_decking-2x.png?format=webpg&quality=80)
Decking
Learn about wood and composite decking materials
![Stairs](/media/2sopl0br/all-articles_stairs-2x.png?format=webpg&quality=80)
Stairs
An in-depth look at the complex issue of how to build stairs
![Railings](/media/hpwbuyzr/all-articles_railings-2x.png?format=webpg&quality=80)
Railings
How to install guardrails and handrails to meet IRC code
![Features](/media/tvcahlmk/all-articles_features-2x.png?format=webpg&quality=80)
Features
An overview on water drainage, benches, planters and lights
![Design](/media/3bvpzvtz/all-articles_design-2x.png?format=webpg&quality=80)
Design
The basics of deck design
![Planning](/media/qdenqrqv/all-articles_planning-2x.png?format=webpg&quality=80)
Planning
Learn about permits and working with contractors
![Porches and Patios](/media/sg5bst1z/all-articles_porches-and-patios-2x.png?format=webpg&quality=80)
Porches & Patios
Build a covered deck to enjoy all seasons
![Ledger](/media/0htjl4uu/all-articles_ledger-2x.png?format=webpg&quality=80)
Ledger
Proper attachment techniques
![Care](/media/qdpnwkry/all-articles_care-2x.png?format=webpg&quality=80)
Care
Maintain your deck to maintain your investment
![Materials](/media/zqfflkeo/all-articles_materials-2x.png?format=webpg&quality=80)
Materials
An overview on water drainage, benches, planters and lights