Stair Railing Building Code: What Homeowners Need to Know

The short answer: under the International Residential Code, a handrail is required on at least one side of any stairway with four or more risers. In practice that means three or more steps. Stairways wider than 44 inches need a handrail on both sides. Guardrails are separate and are required wherever a walking surface sits more than 30 inches above the ground below.

Everything below expands on those rules: heights, graspable profiles, spacing, extensions and widths, plus what inspectors actually look for.

Disclaimer: building codes vary by state and municipality. This guide covers the IRC baseline. Always verify with your local building department before installation.

In this article

How many steps before a handrail is required?

The IRC requires a handrail on at least one side of any stairway with four or more risers. A riser is the vertical face between two treads, so four risers usually means three steps plus the landing.

Put simply:

  • 1 to 3 risers (1 to 2 steps): no handrail required by code
  • 4 or more risers (3 or more steps): handrail required on at least one side
  • Stairway wider than 44 inches: handrail required on both sides

Two things worth knowing beyond the letter of the code.

First, local amendments override the IRC baseline. California, Texas and Florida all have amendments that go further than the model code in places. A quick call to your building department settles it.

Second, not required does not mean not worth having. Entry steps are where a large share of household falls happen, precisely because people treat two or three steps as trivial. If anyone in the household is elderly, unsteady, or carrying things through the door regularly, a rail on a two-step entry is a sensible thing to add whether or not an inspector asks for it.

For short entry runs, our single post handrails and stainless single post handrails bolt directly into the concrete of the step, so you do not need an adjacent wall.

How high should a handrail be?

  • Stairways: 34 inches to 38 inches, measured vertically from the stair nosing (the front edge of the tread) to the top of the handrail
  • Landings: the same 34 to 38 inches, measured from the landing surface

Most people find 36 inches the most comfortable height, and it is the most common specification we build to.

Key distinction: this is the handrail height, meaning the thing you grab. Guardrail height is a different requirement and is covered below.

To mark your line, measure your chosen height at both the bottom and top step, then snap a chalk line between the two marks. Our measuring guide covers this in full.

When do you need a guardrail instead?

A handrail is what you hold. A guardrail is what stops you falling off an edge. They are different components with different rules, and confusing them is the most common reason a project fails inspection.

Guardrails are required on any open side of a walking surface (deck, balcony, landing or stair) more than 30 inches above the floor or grade below.

  • Minimum height: 36 inches for residential guardrails under the IRC. Many jurisdictions require 42 inches.
  • Stairway open sides: 34 inches minimum, measured vertically from the stair nosing

Our horizontal stair railing guardrail and cable railing guardrail are built to meet these height requirements. If you are deciding between infill styles, see cable railing vs horizontal bar.

What counts as a graspable handrail?

The IRC requires handrails to have a graspable profile, meaning your hand can wrap around it and maintain a firm grip. This is why an oversized decorative top rail on its own does not satisfy code.

  • Circular handrails: outside diameter of 1.25 inches to 2 inches
  • Non-circular handrails: perimeter of 4 inches to 6.25 inches, with a maximum cross-section dimension of 2.25 inches

Our wall-mounted handrails are sized to fall inside these limits. The 1.5 inch square profile has a 6 inch perimeter, and the 2 inch by 1 inch rectangle profile also measures 6 inches around with a 2 inch maximum cross-section. Both sit within the non-circular allowance.

Baluster and infill spacing

The 4-inch sphere rule is the most important spacing requirement: a 4 inch diameter sphere must not pass through any opening in a guardrail or stair railing. It exists to stop small children getting through or becoming stuck.

It applies to:

  • Vertical baluster spacing
  • Horizontal bar spacing
  • Cable railing cable spacing
  • Any decorative infill pattern

Our railing systems are factory-built to comply. Note that with cable railing, compliance depends on tension: cables that loosen over time can open gaps wider than 4 inches, which is why periodic re-tensioning matters.

Handrail extensions

This is an area where residential and commercial rules genuinely differ, and a lot of online guidance blurs them.

Under the IRC (residential), a handrail must be continuous for the full length of the flight, running from a point directly above the top riser to a point directly above the lowest riser. Horizontal extensions past the flight are not mandated.

Under the IBC and ADA (commercial and accessible routes), extensions are required: 12 inches horizontally beyond the top riser, and one tread depth beyond the bottom riser nosing at the stair slope.

Even where extensions are not required, we recommend adding 6 to 12 inches at each end. A rail that stops exactly at the last step leaves you without support at the two moments you most need it, which is stepping on and stepping off.

Extensions should return to the wall, post or floor rather than ending in open space where clothing or a bag could snag. See our ADA requirements guide if your project needs to comply.

Stairway width requirements

  • Minimum clear width: 36 inches, measured between walls or between a wall and the handrail
  • Handrail projection: handrails may project no more than 4.5 inches from each side into the required width
  • Stairs wider than 44 inches: handrails required on both sides
  • Wall clearance: minimum 1.5 inches between the wall and the rail

Quick reference table

Element Requirement
Stairs requiring a handrail 4 or more risers (3 or more steps)
Handrail height (stairs) 34 in to 38 in
Guardrail height (residential) 36 in minimum (42 in in many jurisdictions)
Guardrail required above 30 in drop
Graspable diameter (circular) 1.25 in to 2 in
Graspable perimeter (non-circular) 4 in to 6.25 in, max 2.25 in cross-section
Baluster / infill spacing Less than 4 in (sphere rule)
Continuity (IRC) Full flight, top riser to bottom riser
Extensions (IBC / ADA) 12 in top, one tread depth bottom
Wall clearance 1.5 in minimum
Minimum stair width 36 in clear
Both sides required above 44 in stair width

Tips for passing inspection

  • Take photos during install. Inspectors appreciate seeing how brackets were anchored, particularly where a bracket did not land on a stud.
  • Keep the product spec sheet. Having manufacturer dimensions on hand speeds up the conversation about graspability.
  • Check local amendments. Some states have requirements stricter than the IRC baseline.
  • Mount before drywall. On new construction, install handrail blocking between studs before the drywall goes up. Retrofitting solid anchoring afterwards is far harder.

Frequently asked questions

Do I need a handrail for 3 steps?

Usually yes. Three steps normally means four risers, which is the IRC threshold for requiring a handrail on at least one side. If your three steps produce only three risers, code does not require one, though it is still worth fitting.

Do I need a handrail for 2 steps?

Not under the IRC. Two steps produce two or three risers, which falls below the four-riser threshold. Many homeowners add one anyway on entry steps, particularly where someone in the household is unsteady on their feet.

Does a handrail have to be on both sides of the stairs?

Only when the stairway is wider than 44 inches. Below that, one side satisfies the IRC.

What is the difference between a handrail and a guardrail?

A handrail is the graspable rail you hold for support while using the stairs. A guardrail is the barrier that prevents a fall from an open edge, and it needs infill such as balusters, bars or cables. A staircase with an open side often needs both.

Is a 2 inch by 1 inch handrail code compliant?

Yes for residential use under the IRC. A 2 inch by 1 inch rectangular profile has a 6 inch perimeter and a 2 inch maximum cross-section, which falls inside the non-circular allowance of a 4 to 6.25 inch perimeter and a 2.25 inch maximum cross-section.

How far apart can handrail brackets be?

Code does not set a fixed spacing, but brackets should be close enough that the rail does not flex under load. We recommend no more than 48 inches between brackets. See our bracket guide for a full chart by length.

Getting the right rail for your stairs

Once you know what your project needs, our handrail length calculator will work out the length to order from your stair measurements, including extensions and bracket count.

Every handrail we build is cut to the length you specify rather than sold in fixed kit sizes, and ships with the correct bracket count and mounting hardware.

Questions about code compliance for your specific project? Contact us. We deal with building code questions daily and can help you choose the right products.