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

Stay on track with the right rail dimensions

Construction worker nailing porch railing
Photo: ferrantraite / E+ / Getty Images
Construction worker nailing porch railing
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.
Woman stacking firewood in autumn
Apr 16, 2025
Apr 16, 2025
Whether you need to heat your home for the winter or just enjoy lighting a fire now and then, it helps to know the price of a cord of wood in your area.
blue house front entrance
Jun 19, 2025
Jun 19, 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.
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.
Modern bedroom with wooden baseboard and white walls
Jun 20, 2025
Jun 20, 2025
Learn how to measure baseboard trim of any style or size to help speed up installation, save on materials costs, and look amazing anywhere in your home.
Modern stainless steel railing
Jun 13, 2025
Jun 13, 2025
Your installed glass railing cost hinges on several factors, including materials, size, and add-on prices. Learn about the factors that impact your total cost.
Home staircase with wooden railing
Feb 27, 2025
Feb 27, 2025
If you’re preparing to install or replace stairs or railings made of wood, here are the stair and railing questions you should be asking a pro about the project.