Skip to main content

Stair & Railing Code Guide for Contractors | Projul

Stair and railing installation on a residential construction project

Stair and railing code violations are some of the most common reasons contractors fail framing and final inspections. I have seen crews tear out finished stairways because the riser heights were off by half an inch, and I have watched railing installers scramble to re-space balusters the morning of a final walkthrough. None of that is fun, and all of it is avoidable.

This guide covers the stair and railing requirements you will run into on residential and commercial projects in 2026. We will walk through the International Residential Code (IRC) and International Building Code (IBC) standards that inspectors actually check, plus the practical tips that keep your installs clean and your callbacks at zero.

If you are also dealing with general code compliance across your projects, our construction building codes guide covers the broader picture.

Stair Geometry: Rise, Run, and the Numbers That Matter

Getting stair geometry right is not optional. Inspectors will measure your risers and treads, and if the numbers are off, you are ripping them out. Here is what the codes require.

Riser Height

The IRC caps maximum riser height at 7-3/4 inches (196 mm). The minimum is 4 inches. Most residential stairs land somewhere around 7 to 7-1/2 inches per riser, which feels comfortable for the average person and keeps you well within code.

The IBC for commercial projects is tighter: maximum riser height is 7 inches (178 mm), and the minimum is 4 inches. That half-inch difference between residential and commercial catches contractors off guard more often than you would think, especially on mixed-use projects.

Tread Depth

Minimum tread depth under the IRC is 10 inches (254 mm), measured from nosing to nosing. The IBC requires 11 inches for commercial stairs. Tread depth is measured horizontally from the leading edge of one tread to the leading edge of the next, not from the nosing to the riser face.

The Consistency Rule

This is the one that trips people up. The IRC and IBC both require that the largest riser in a flight be no more than 3/8 inch taller than the smallest riser in that same flight. The same 3/8-inch tolerance applies to tread depths. That means you cannot just hit the maximum on every riser and call it good. You need to calculate your total rise, divide by the number of risers, and make sure every single one lands within that 3/8-inch window.

Pro tip: always measure your total floor-to-floor height before you cut a single stringer. Framing crews sometimes forget that finished floor thickness changes the total rise. If you frame your stringers before the subfloor or finish floor goes down, measure to the finished floor height, not the raw framing.

Nosing Requirements

Treads need a nosing projection between 3/4 inch and 1-1/4 inches beyond the face of the riser below. If you are using a solid riser (closed stairway), this is straightforward. Open-riser stairs have different rules depending on your jurisdiction, and some codes do not allow open risers at all in certain occupancy types.

Stair Width

Minimum clear width for residential stairs is 36 inches, measured between the finished walls or between the handrail and the wall if the handrail projects into the stairway. Handrails can project up to 4-1/2 inches from each side. Commercial stairs under the IBC need a minimum of 44 inches clear width for most occupancy types, though the exact number depends on the building’s occupant load.

For tracking stair specs and inspection milestones across your projects, a solid construction scheduling tool helps you keep every trade on the same timeline.

Handrail Requirements: Height, Graspability, and Extensions

Handrails are not the same thing as guardrails, and confusing the two is a fast way to fail an inspection. A handrail is what you grab while walking up or down the stairs. A guardrail (which we will cover in the next section) keeps you from falling off an open edge.

When You Need a Handrail

The IRC requires a handrail on at least one side of any stairway with four or more risers. The IBC requires handrails on both sides of every stairway, regardless of the number of risers. Commercial stairs wider than 44 inches need intermediate handrails so that no point along the stair width is more than 30 inches from a handrail.

Handrail Height

Handrail height is measured vertically from the stair nosing to the top of the handrail. Both the IRC and IBC require handrail height to fall between 34 inches and 38 inches. This is measured from the line connecting the nosings, not from the tread surface. Keep that distinction in mind because it can shift your measurement by the depth of the nosing projection.

Graspability

This is where inspectors get particular. The code requires handrails to be “graspable,” which means your hand needs to be able to wrap around them. There are two acceptable profiles:

  • Circular cross section: 1-1/4 inch to 2 inches in diameter. This is the most common and the easiest to get right.
  • Non-circular cross section: The perimeter must be between 4 inches and 6-1/4 inches, with a maximum cross-section dimension of 2-1/4 inches. Think of a rounded rectangular profile.

A flat 2x6 cap rail on top of your guardrail does not count as a graspable handrail. This is probably the single most common handrail violation I see on residential jobs. The guardrail cap is not the handrail. You need a separate graspable rail mounted at the correct height, or your cap rail needs to meet the graspability dimensions.

Handrail Extensions

Handrails must extend horizontally at least 12 inches beyond the top riser and at an angle parallel to the stair slope for a horizontal distance equal to one tread depth beyond the bottom riser. The bottom extension then continues horizontally for 12 inches. These extensions keep people from losing their grip at the transitions where most stair falls actually happen.

The extensions need to return to the wall or post, or terminate in a newel post. You cannot just leave a handrail sticking out into space where someone can catch their sleeve or bag on it.

Guardrail Standards: Keeping People From Falling

Guardrails protect open sides of stairs, landings, decks, balconies, and any walking surface more than 30 inches above the floor or grade below. The 30-inch trigger is standard across most jurisdictions, though some local codes are stricter.

Guardrail Height

  • Residential (IRC): Minimum 36 inches from the walking surface or the line connecting the stair nosings.
  • Commercial (IBC): Minimum 42 inches from the walking surface or nosing line.

Measure from the right spot. On stairs, guardrail height is measured vertically from the nosing line, not from the tread surface. On flat surfaces like decks, it is measured from the finished floor.

The 4-Inch Sphere Rule

Projul is trusted by 5,000+ contractors. See their reviews to find out why.

No opening in a guardrail system can allow a 4-inch diameter sphere to pass through. This is a child safety requirement, and inspectors will literally bring a 4-inch ball to test your balusters. The rule applies to every part of the guardrail, including the triangle-shaped opening between the bottom rail, the stair nosing line, and the first baluster on a raked (angled) section.

That triangular opening on stair-raked sections is a notorious problem area. The gap at the low side of the rake can easily exceed 4 inches even if your baluster spacing is perfect on the flat sections. You need to run the bottom rail close to the nosing line or add a filler piece to close the gap.

Baluster Spacing

With standard 1-1/2 inch square balusters, you will typically space them about 4 inches on center (roughly 3-1/2 inches clear between balusters after accounting for the baluster width). But always check with the sphere test rather than relying on a tape measure alone. Slight variations in baluster width, rail curvature, or installation angles can open gaps wider than you expect.

Guardrail Strength

Guardrails must resist a 200-pound concentrated load applied at the top rail in any direction. Individual balusters must resist a 50-pound load applied over a 1-square-foot area. This is not just a code number on paper. Inspectors can and do push on guardrails. If your posts are not properly anchored, or your baluster connections are weak, you will hear about it.

Solid guardrail installs start with proper post connections. Through-bolted posts lag-bolted to rim joists or notched into framing members will outperform posts that are just surface-mounted with screws. For deck railing posts specifically, check your local code for approved connection details. Many jurisdictions now require specific hardware like post-to-rim-joist connectors from manufacturers such as Simpson Strong-Tie.

If you are building decks and want to keep all the moving pieces organized, check out our deck building guide for a more complete project management breakdown.

Landings, Headroom, and Lighting: The Details That Get Missed

Stairway code compliance goes beyond risers, treads, and railings. Landings, headroom, and lighting requirements are part of every stair inspection, and they are easy to overlook during the framing stage.

Landings

A landing is required at the top and bottom of every stairway. The minimum landing depth (measured in the direction of travel) is 36 inches or the width of the stairway, whichever is greater. Landings must be level, with a maximum slope of 1/4 inch per foot for drainage on exterior landings only.

If a door swings over a landing at the top of a stairway, the door cannot reduce the landing dimension below the required minimum when fully open. There is an exception for screen doors and storm doors that do not swing over the stairs, but the primary door swing is what inspectors check.

Headroom

Minimum headroom clearance is 6 feet 8 inches, measured vertically from the nosing line to any overhead obstruction. This includes soffits, ductwork, beams, and ceiling finishes. Measure at the worst point along the entire stairway, not just at the top or bottom.

Basement stairs are the biggest headroom offenders. Between floor joists, ductwork, and low ceilings, getting 6 feet 8 inches of clearance sometimes means rerouting HVAC or adjusting the stair layout. Catch this in the planning stage, not after the framing is done.

Lighting

All interior stairways need artificial lighting capable of illuminating the treads and landings to at least 1 foot-candle at the walking surface. Exterior stairs need the same illumination at the top landing. Stairs with six or more risers need a wall switch at each level to control the lighting (three-way switches).

For keeping track of these inspection details across all your active projects, a good inspection checklist workflow saves time and prevents missed items.

Residential vs. Commercial: Key Differences Contractors Must Know

If you work on both residential and commercial projects, you already know the codes are not identical. Here is a side-by-side breakdown of the differences that matter most for stairs and railings.

RequirementIRC (Residential)IBC (Commercial)
Max riser height7-3/4 in.7 in.
Min tread depth10 in.11 in.
Min stair width36 in.44 in. (typical)
Handrail height34-38 in.34-38 in.
Handrails requiredOne sideBoth sides
Guardrail height36 in.42 in.
Headroom6 ft 8 in.6 ft 8 in.

A few things to watch:

Mixed-use buildings can trigger IBC requirements even if the residential portion would otherwise fall under the IRC. Talk to your building official early to confirm which code applies to each portion of the project.

Occupant load determines stair width in commercial buildings. High-occupancy spaces like restaurants or assembly halls may need stairs wider than 44 inches. The calculation is based on the number of people the space is designed to serve, and it directly affects egress stair sizing.

ADA compliance adds another layer for commercial projects. Accessible routes must include stairs that meet specific dimensions, and handrails must comply with ADA graspability and extension requirements. The ADA standards generally align with the IBC, but there are additional details around tactile warnings at the top of stair runs and accessible handrail mounting heights.

For contractors moving between residential and commercial work, our residential vs. commercial construction guide digs into the broader operational differences.

Passing Inspection: Practical Tips From the Field

Knowing the code numbers is one thing. Actually passing inspection without callbacks is another. Here are the field-tested habits that keep stair and railing work clean.

Calculate Before You Cut

Measure your total rise (finished floor to finished floor) and divide by your target riser height. Round to the nearest whole number of risers, then recalculate the exact riser height. Write it on the wall, on the stringer, and in your project notes. A $2 calculator prevents a $2,000 tearout.

If you are tracking job costs and want to see how rework like stair tearouts hits your margins, our job costing guide walks through the numbers.

Use a Story Pole

Cut a story pole to your total rise height and mark each riser on it. Hold the pole against the rough opening to verify your layout before cutting stringers. This takes five minutes and catches errors that would take five hours to fix later.

Template Your Baluster Spacing

Build a simple spacing jig from scrap lumber. Cut the jig to the exact clear distance between balusters (accounting for the 4-inch sphere rule) and use it as a go/no-go gauge as you install each baluster. This is faster and more accurate than measuring each one individually.

Mock Up the Handrail Height

Before you commit to final handrail bracket locations, tack a straight board at 34 inches and 38 inches from the nosing line. Walk the stairs holding each one. The code gives you a 4-inch range, and the right height within that range depends on the stair pitch. Steeper stairs feel better with the rail closer to 38 inches. Shallower stairs work fine at 34 to 36 inches.

Check Local Amendments

The IRC and IBC are model codes. Your state and municipality adopt them with local amendments that can change specific requirements. For example, some jurisdictions require 42-inch guardrails on residential decks instead of the IRC standard of 36 inches. Others have specific requirements for cable railings or glass panel systems that go beyond the model code. Always pull the locally adopted code before you start a project.

Document Everything

Take photos of your stair framing before the drywall goes up. Photograph your guardrail post connections, your baluster spacing with the 4-inch sphere in place, and your handrail height measurements. If an inspector questions something after the finishes are installed, you have proof of what is behind the wall.

Digital documentation tied to each project makes this easy. Construction management platforms like Projul let you attach photos directly to project records so they are searchable and organized rather than buried in someone’s camera roll.

Coordinate With Other Trades

Stairways are intersection points for framing, electrical, HVAC, and finish carpenters. Make sure your electrician knows about the three-way switch requirement before the rough-in. Confirm that HVAC runs will not drop below your headroom clearance. And give your finish carpenter accurate nosing-to-nosing measurements so the handrail brackets land at the right height on the first try.

For managing trade coordination across your whole project schedule, a solid project management system keeps everyone in sync and prevents the “I thought you were handling that” moments.

Curious how this looks in practice? Schedule a demo and we will show you.

Stair and railing work is detail-oriented, but it is not complicated when you know the numbers and build good habits around measuring, documenting, and communicating with your crew. Get the geometry right on paper before you pick up a saw, double-check your baluster spacing with a physical gauge, and never assume the model code is what your local jurisdiction enforces. Do those three things consistently and you will pass your stair inspections the first time, every time.

Frequently Asked Questions

What is the maximum riser height allowed by the IRC?
The International Residential Code (IRC) sets the maximum riser height at 7-3/4 inches (196 mm). Every riser in a single flight must be within 3/8 inch of the tallest riser, so consistency matters just as much as the maximum dimension.
How high does a guardrail need to be on a residential deck or balcony?
The IRC requires guardrails to be at least 36 inches high on residential decks, balconies, and open-sided walking surfaces that are more than 30 inches above the floor or grade below. Commercial projects under the IBC bump that minimum to 42 inches.
What is the 4-inch sphere rule for balusters?
Building codes require that no opening in a guardrail or stair railing allow a 4-inch diameter sphere to pass through. This rule is designed to prevent small children from getting their heads stuck between balusters. The spacing between balusters typically works out to about 3-1/2 inches on center depending on baluster width.
Do I need a handrail on both sides of the stairs?
For residential construction under the IRC, you need a handrail on at least one side of every stairway with four or more risers. Commercial stairs under the IBC require handrails on both sides. If the stairway is wider than 44 inches in a commercial building, you also need an intermediate handrail.
When is a landing required on a stairway?
A landing is required at the top and bottom of every stairway. The landing depth must be at least as wide as the stairway it serves, and it cannot be less than 36 inches measured in the direction of travel. If a door swings over a landing, the landing must be large enough that the door does not reduce the required width.
No pushy sales reps Risk free No credit card needed