Under the 2021 IRC, stair handrail height is measured from the sloped plane of the tread nosings and must be not less than 34 inches and not more than 38 inches (Section R311.7.8.1). A handrail is required on at least one side of every flight with four or more risers.

This page covers the handrail rules in Section R311.7.8: height, projection, wall clearance, continuity, grip size, and exterior composite rails. It also separates handrails from guards, because the two are often confused on deck stairs. The code edition your jurisdiction has adopted, plus local amendments, governs. The stair opening in the floor is covered in framing a stair opening, and risers, treads, nosings, and headroom are in stair riser height code.

When is a handrail required?

2021 IRC Section R311.7.8 says handrails shall be provided on not less than one side of each flight of stairs with four or more risers. Three risers or fewer do not trigger a handrail under that section, though a guard may still be needed at an open side (see below).

Section R311.7 applies wherever stairways are required by the code or provided. Its exceptions are narrow: stairways not within or serving a building, porch, or deck; stairways to nonhabitable attics; and stairways to crawl spaces. A stair from a deck to the yard serves a deck, so it falls under the handrail rules.

2021 IRC Section R311.7.8, handrail requirements at a glance.

ItemSectionRequirement
Where requiredR311.7.8At least one side of each flight with four or more risers
HeightR311.7.8.134 inches minimum, 38 inches maximum
ProjectionR311.7.8.2Not more than 4-1/2 inches into the stairway on either side
Wall clearanceR311.7.8.3Not less than 1-1/2 inches between wall and handrail
ContinuityR311.7.8.4Full length of the flight, ends returned or terminated at a post
Grip sizeR311.7.8.5Type I or Type II profile, or equivalent graspability
Exterior compositeR311.7.8.6Must comply with Section R507.2.2

Stair handrail height: how it is measured

The 34 to 38 inch range is a vertical measurement from the sloped plane adjoining the tread nosings (or from the finish surface of a ramp slope). It is not measured from the back of a tread or from the floor at the top of the flight.

Two exceptions in Section R311.7.8.1 matter on real stairs:

  1. A volute, turnout, or starting easing is allowed over the lowest tread.
  2. Where handrail fittings or bendings give a continuous transition between flights, transitions at winder treads, the transition from handrail to guard, or the start of a flight, the height at the fitting may exceed 38 inches.

Ramps use the same 34 to 38 inch range under Section R311.8.3.1, measured above the finished surface of the ramp slope.

Handrail projection and wall clearance

Handrails shall not project more than 4-1/2 inches on either side of the stairway (Section R311.7.8.2). The reason is width: a handrail that sticks out reduces the clear width people can use.

There is one exception. Where the nosings of landings, floors, or passing flights project into the stairway and reduce the clearance at passing handrails, handrails may project up to 6-1/2 inches into the stairway, provided the stair width and handrail clearance are not reduced below what the code requires.

Handrails next to a wall need a space of not less than 1-1/2 inches between the wall and the handrail (Section R311.7.8.3). That gap is for the hand, so it matters when you are choosing a rail profile and the brackets that hold it.

Handrails and stair width

Section R311.7.1 ties stair width to handrails. Stairways must be not less than 36 inches in clear width at all points above the permitted handrail height and below the required headroom height. At and below the handrail height, including treads and landings, the clear width may be reduced to not less than 31-1/2 inches where a handrail is installed on one side, and 27 inches where handrails are installed on both sides. The rough opening for the stair has to allow for this, which is one reason the stairwell is dimensioned from the finished stair rather than from the joist layout.

Handrail continuity and returns

Handrails shall be continuous for the full length of the flight, from a point directly above the top riser to a point directly above the lowest riser (Section R311.7.8.4). Handrail ends shall be returned toward a wall, guard, or the walking surface, be continuous to itself, or terminate at a post. A rail that stops short and projects into the walkway is a snag hazard, which is what the return requirement is aimed at.

The code allows two interruptions:

  • A newel post may interrupt continuity at a turn in a flight with winders, at a landing, or over the lowest tread.
  • A volute, turnout, or starting easing may terminate over the lowest tread and over the top landing.

Handrail grip size: Type I and Type II

Required handrails must be one of the two types in Section R311.7.8.5 or provide equivalent graspability. The goal is a profile a hand can close around.

2021 IRC Section R311.7.8.5, Type I and Type II handrail profiles.

ProfileDimensionLimit
Type I, circularOutside diameter1-1/4 inches minimum, 2 inches maximum
Type I, not circularPerimeter4 inches minimum, 6-1/4 inches maximum
Type I, not circularCross sectionNot more than 2-1/4 inches
Type I, any shapeEdge radiusNot less than 0.01 inch
Type IIPerimeterGreater than 6-1/4 inches, with a graspable finger recess on both sides
Type IIWidth above the recess1-1/4 inches minimum, 2-3/4 inches maximum
Type IIEdge radiusNot less than 0.01 inch

A Type II profile also has to meet the finger recess geometry. The recess must begin within 3/4 inch, measured vertically, from the tallest portion of the profile, and have a depth of not less than 5/16 inch within 7/8 inch below the widest portion. That depth must continue for not less than 3/8 inch to a level not less than 1-3/4 inches below the tallest portion. Read the full text of Section R311.7.8.5 before specifying a custom profile.

A plain flat board used as a rail cap generally fits neither type, since it has no finger recess, so check its profile against these limits before relying on it. A common fix is a separate round or oval rail on brackets, or a routed profile that meets Type II.

Deck stair handrail requirements

Exterior stairs follow the same Section R311.7.8 rules as interior stairs: handrail on at least one side of a flight with four or more risers, 34 to 38 inches high, continuous, with a graspable profile.

Some points specific to decks:

  • Composite handrails. Plastic composite exterior handrails must comply with Section R507.2.2 (see R311.7.8.6). Follow the manufacturer's installation instructions and the product label.
  • Attachment. Section R311.5 requires exterior landings, decks, balconies, and stairs to be positively anchored to the primary structure to resist vertical and lateral forces, or designed to be self-supporting. Toenails and nails subject to withdrawal are not acceptable.
  • Guard posts and handrails. A deck guard is governed by Section R507.10, which sends you to Sections R301.5 and R312 for requirements. Section R507.10.2 says 4x4 wood posts supporting guard loads applied to the top of the guard shall not be notched at the connection to the supporting structure.
  • Framing for the posts. Where guards are supported on deck framing, guard loads must be transferred to the deck framing with a continuous load path to the deck joists (Section R507.10.1). That affects blocking and joist layout. See the deck framing plan guide and deck joist span and spacing.

Handrail vs guard

A handrail is something to hold while using the stair. A guard is a barrier at an open side to stop a fall. Guards are a separate requirement under 2021 IRC Section R312, and guard height and the conditions that trigger a guard are set there. Check the adopted version of that section for your jurisdiction, because those provisions are amended in some states.

What this page can say without those numbers:

  • Having a guard does not remove the need for a handrail on a flight of four or more risers, and a handrail does not satisfy a guard requirement.
  • Section R312.1.3 limits openings in required guards. The general limit is a 4 inch sphere, with listed exceptions for the triangular opening beside a stair and for guards on the open side of stairs. Read those exceptions in the code before detailing balusters.
  • A guard top can serve as the handrail only if it also meets the handrail height, grip, and continuity rules.

Where handrails show up on a framing plan

Handrails are not framing members, so they rarely appear on a floor framing plan. The framing consequences do: the stair opening and its headers and trimmers, blocking or solid backing where a rail bracket or newel post needs a fixing, and joist or rim framing that has to carry a deck guard post. A note on the plan such as "stair handrail and guard by others, see detail" keeps those loads visible to whoever reviews it. The second floor framing plan and floor framing plan for a two-story home show where the stair opening sits in the layout.

Limits of this page

This page summarizes prescriptive text from the 2021 IRC for stair handrails. The adopted code edition and local amendments govern, and your building department may enforce different numbers. Manufactured rail systems follow their listings and instructions.

Framing Plan is a preliminary drawing aid. It draws joist layouts, beams, and openings and exports PNG, PDF, and DXF. It does not check handrail, stair, or guard dimensions, and its editor works in millimeters with demo sample figures. Open the framing studio to draw the floor and stair opening, then add the handrail and guard notes as annotations for your designer or plan reviewer.