What’s the Correct Railing Height Code for Stairs and Decks?

Stay on track with the right rail dimensions

Photo: ferrantraite / E+ / Getty Images
Photo: ferrantraite / E+ / Getty Images
Highlights
  • Railing height codes vary depending on rail type and local codes.

  • Guardrails should be at least 36 inches tall, while handrails should be at least 34 inches tall. 

  • It’s mandatory to follow railing height codes for decks above 30 inches and staircases with four or more risers. 

Get quotes from up to 3 pros!
Enter a zip below and get matched to top-rated pros near you.
Geo Icon

If you’re in the early stages of building a new deck or installing a fresh staircase, you might be wondering how high your rails need to be to stop you from falling off. First, this will depend on what kind of rail you’re dealing with—handrails versus guardrails, for instance—and whether you’re building on a residential or commercial lot. This guide breaks down the proper railing height codes for all possible situations so you never have to go hunting for the right requirements. 

What Are Railing Height Codes and Why Should I Follow Them? 

Railing height codes are a set of requirements for the various types of rails found on home features like stairs and decks. Designed with safety in mind, the modern recommendations have been tried and tested to ensure they’re at an ideal placement to prevent the risks associated with tall structures, like falling.

That being said, all railing height codes are not the same. Stair railing height codes differ from deck railing height codes, so it’s a good idea to familiarize yourself with each before starting a project.

Although they need not always be followed, depending on special circumstances that we’ll talk about later, you may be required to follow them by law and local building codes. This is especially true if the new construction is taking place in a commercial building. Regardless of whether you have to obey them or not, making use of them is a good way to create a safe home environment for you and others. 

Who Makes Railing Height Requirements?

Railing height codes are prescribed by organizations and legislatures, like The International Residential Code (IRC), the International Building Code (IBC), Americans with Disabilities Act (ADA), and the Occupational Safety and Health Administration (OSHA). Their recommendations differ between residential and commercial buildings—the height requirements for the former are generally shorter, while taller codes are enforced in the latter for legal and accessibility reasons, as well as safety.

Keep in mind that codes vary slightly from state to state, so double-check with your local jurisdiction before making any big moves. Alternatively, a nearby pro will already be intimately familiar with the codes in your area, so you may want to hire a stair company near you to take this work off your plate. 

Railing Height Code by Type

Handrail and guardrail height codes illustrated, with handrails having a lower height range than guardrails

Handrails

For both residential and commercial buildings, the recommended handrail height code is between 34 and 38 inches when measured vertically from the top of the handrail (or gripping area) to the nosing or bottom of each step, as well as on ramps with a slope greater than 1:20, according to standards set by the IRC, IBC, and ADA. These requirements apply to both interior staircase handrails as well as those on outdoor staircases leading up to decks, balconies, or terraces. 

Guardrails

These rails are featured on everything from balconies to staircase landings, as well as being the main type of railing on decks. Unlike handrails, they don’t need to be short enough to comfortably accommodate where your hand falls since you won’t be using them for support. This means that their minimum height requirement is also slightly taller—they should be at least 36 inches and up to 42 inches high when measured vertically from the top of the rail to the bottom of the posts.

When Are Railing Height Codes Required?

There are a couple of instances when railing height codes don’t need to be followed—namely, when structures in residential buildings aren’t tall enough to merit extra safety precautions. In general, you don’t need to worry about them if your deck is below 30 inches or if your staircase features less than four risers. Otherwise, you’ll need to obey the regulations to avoid both personal injury and local code violations.

Frequently Asked Questions

Railing height codes do not differ for indoor and outdoor structures. Instead, what will have the biggest impact is the type of rail (hand versus guard rail), what your local building codes dictate, and the scope or height of your stairs, deck, or balcony to begin with. 

The same rules apply for decks and balconies. Balcony guardrails should also be at least 36 inches and up to 42 inches tall. Additionally, they should be able to support a certain amount of weight without collapsing—200 pounds of horizontal load or 100 pounds vertical load and 50 pounds horizontal load simultaneously. 

Need professional help with your project?
Get quotes from top-rated pros.
The homeowners guide to woodworking services
From average costs to expert advice, get all the answers you need to get your job done.
Stone front steps with a black metal handrail lead up to a porch with stone and siding exterior walls.
Aug 14, 2025
Aug 14, 2025
How much does outdoor railing installation cost? Find out the cost to install a railing on concrete steps, porches, and patios, including material and labor.
home office desk with drawer space
Aug 12, 2025
Aug 12, 2025
Get a clear estimate of the cost of a custom desk, including average prices, key cost factors, and tips to help you budget for your home office project.
Bedroom with wainscoting installed on the walls
Jan 10, 2025
Jan 10, 2025
The cost to install wainscoting depends on labor, materials, and square footage. This guide will help you budget for your next project.
Dining room interior with crown molding and hardwood flooring
Oct 7, 2024
Oct 7, 2024
How do you cut crown molding inside corners? The answer requires practice with a coping saw and patience for detailed adjustments that create tight seams.
empty dining room with cope crown molding
Oct 15, 2024
Oct 15, 2024
Coping, a common woodworking technique, is the secret to perfect inner corners with your trim. This guide will show you how to cope crown molding.
Wood crown molding on the ceiling
Jun 30, 2025
Jun 30, 2025
When comparing foam crown molding versus wood, foam offers multiple advantages, especially with price. However, wood has a traditional look that’s tough to beat.