Deck Railing Height Codes—What Dealers Need to Know

August 5, 2025 in Wood Products - #distribution

When your pro or homeowner customers are planning a deck, the safety and functionality of the railing system is one of the most important considerations. In addition to being a design feature, deck railings serve a critical role in preventing falls and ensuring structural integrity. However, the specific regulations regarding deck railing height can vary by location, making it crucial to understand the standard codes in your area.

Keep reading for key aspects of deck railing height codes, including general standards, local variations, and best practices. In this article, we will dive into the most common U.S. railing height requirements and codes. 

Maximum Deck Height Without a Railing

Decks that are lower to the ground may not require a railing. According to the International Residential Code (IRC), decks that are less than 30” above grade (the ground) generally do not need a railing. The risk of receiving an injury from falling from such a low height is deemed minimal. Here is the exact language from the 2024 IRC International Residential Code for One- and Two-Family Dwellings. (The building code refers to railings as guards.)

R312.1.1 Where required.

Guards shall be provided for those portions of open-sided walking surfaces, including floors, stairs, ramps and landings that are located more than 30 inches (762 mm) measured vertically to the floor or grade below at any point within 36 inches (914 mm) horizontally to the edge of the open side. Insect screening shall not be considered as a guard.

Keep in mind that this provision can be influenced by local building codes, which may have stricter requirements. For example, certain areas with specific safety concerns may require railings for decks that are even lower than 30”. Additionally, decks near pools, stairways, or elevated structures may have additional restrictions. Also, customers may want to install a railing even if one isn’t required. A 30” fall could still cause an injury, especially if the surface below the deck is made of concrete or other hard material.  

Standard Deck Railing Height Code

For residential decks higher than 30” above grade, the IRC requires the minimum height of a railing to be 36”. The 36” height is designed to ensure the railing is tall enough to prevent accidental falls over the edge and minimize the risk of a child climbing up and over the top rail. It’s important to note that there are special code provisions for stairs. And while 36” is the minimum height in many locations, local codes do vary, so customers should always check with local building authorities before starting a deck project (more on this below).

Here's what the building code has to say:

R312.1.2 Height

Required guards at open-sided walking surfaces, including stairs, porches, balconies or landings, shall not be less than 36 inches (914mm) in height, as measured vertically above the adjacent walking surface or the line connecting the nosings.

Not All Deck Railing Height Codes Are the Same

As mentioned, specific building codes for deck railings can vary by location. The IRC provides general guidelines, but many cities, counties, and states have adopted their own codes to address specific safety concerns. For example, California and Washington 
require a deck railing height exceeding 36”, mandating a minimum of 42” for residential decks. Also, commercial or multifamily buildings may have stricter regulations that mandate 42” railings.

What Are the Railing Height Requirements for Deck Stairs?

Railing height requirements are similar for standard deck railings and railings for stairs. However, because falls are more likely to occur on stairs, there are some specific considerations for stair railings.

Here are the exceptions/provisions to the IRC code R312.1.2:

Exceptions:

  1. Guards on the open sides of stairs shall have a height of not less than 34 inches (864mm) measured vertically from a line connecting the nosings.
  2. Where at the top of guard serves as a handrail on the open sides of stairs, the top of the guard shall be not less than 34 inches (864mm) and not more than 38 inches (965mm) as measured vertically from a line connecting the nosings.

Railing Baluster Spacing Code

In addition to the height of the deck railing, local codes regulate the spacing of the balusters, the vertical posts (sometimes called spindles) that make up the railing. This spacing requirement is designed to prevent small children from being trapped between the balusters or being injured in a fall.

The IRC mandates a 4” sphere should not be able to fit between any two components of the railing assembly, whether it be below the bottom rail and decking, between a post and baluster, or between two balusters. The spacing between balusters and between the balusters and posts on stairs is allowed to be 4-3/8”, and the triangular space beneath the bottom rail and stair treads and risers must prevent a 6” sphere from passing through.

Here is the specific language in the 2024 IRC that addresses baluster spacing:

R312.1.3 Opening limitations

Required guards shall not have openings from the walking surface to the required guard height that allow passage of a sphere 4 inches (102) millimeters in diameter.

Exceptions:

  1. The triangular openings at the open side of the stair, formed by the riser, tread and bottom rail of a guard, shall not allow passage of a sphere 6 inches (153mm) in diameter.
  2. Guards on the open side of stairs shall not have openings that allow passage of a sphere 4-3/8 inches (111 mm) in diameter.

This 4” sphere rule also applies to cable railing systems, but because cables have more give than solid materials like composite, metal, or glass, the cables on cable railing systems are usually spaced closer than 4” apart. Railing systems produced by premium manufacturers like Trex have these safeguards designed into their products, which makes installation easy and straightforward. 

Recommended Deck Railing Height

Although the standard code requires railings to be a minimum of 36” for decks over 30” off the ground, there are often practical and aesthetic reasons for choosing a particular railing configuration. Keep these design considerations in mind:

  • Consider installing a railing on decks lower than 30” to the ground when the surface below the deck is made of a hard material like concrete.
  • Customers might want to install a railing on a lower deck to enhance safety for children, elderly individuals, or those with mobility challenges.
  • For added safety, build railings taller than 36” if they are located near structures like planters or built-in benches that a toddler might be tempted to climb.
  • Many deck owners choose to build tall railings or walls to provide shade, add privacy, or serve as a wind or sound barrier.

Some choose to build railings to function as a cocktail rail, showcase planters or hold accent lighting, or simply for aesthetic reasons.

Find Out More about Deck Railings

For customers in the planning stages, check out inspiring deck railing ideas or the how-to guides and videos at Trex Academy.

Weyerhaeuser Distribution is committed to delivering the reliable, consistent products you can rely on. Connect with your Weyerhaeuser representative today about decking and railing solutions available in your market.  

Photo courtesy of Trex.