Residential stair code guide

Staircase Building Codes: Residential Stair Requirements

Updated for the 2024 IRC. Every number you need to plan a code-compliant staircase remodel: riser height, tread depth, headroom, handrail height, guard height and baluster spacing. Search or sort the table, or jump to a section for diagrams and details.

Quick answers: risers 7¾″ max., treads 10″ min., headroom 6′ 8″ min., stairs 36″ wide, handrail 34″–38″ high on any stair with 4 or more risers, guards 36″ high where the drop is more than 30″, and no opening a 4″ sphere can pass through.

Stair Code Quick Reference

CategoryRequirementMeasurementNotes
StairwaysStair width (above handrail height)36″ min.Clear width, measured above the handrail.
StairwaysStair width with a handrail on one side31½” min.Measured at and below the handrail.
StairwaysStair width with handrails on both sides27″ min.Measured between the handrails.
StairwaysHeadroom6′ 8″ min.Measured straight up from the line connecting the tread nosings, and from landings.
StairwaysFloor edge over the stair (headroom exception)4¾” max. intrusionThe edge of a floor opening above may project into the headroom by this much.
StairwaysRise of one flight12′ 7″ max. (151″)Measured between floor levels or landings. Taller rises need a landing.
StairwaysWalkline on turning stairs12″ from inside of turnThe line used to measure winder tread depth, measured from the widest point of the clear stair width at the walking surface.
StairwaysStairs these rules don’t coverExemptStairs to nonhabitable attics or crawl spaces, and stairs that aren’t in or serving a building, porch or deck.
StairwaysRemodeling existing stairsPitch can stayAlterations to existing stairs don’t have to meet these rules where the existing space doesn’t allow a lower pitch or slope.
Treads & RisersWhat to measureBare stair, not carpetAll tread, riser and nosing dimensions are taken without carpet, rugs or runners.
Treads & RisersRiser height7¾” max.Measured vertically between the leading edges of adjacent treads.
Treads & RisersRiser height variation in a flight⅜” max.Difference between the tallest and shortest riser.
Treads & RisersRiser slope30° max. from verticalRisers may be vertical or sloped up to this angle.
Treads & RisersOpen risers4″ sphere must not passApplies where the stair’s total rise is more than 30″.
Treads & RisersTread depth10″ min.Measured horizontally from nosing to nosing.
Treads & RisersTread depth variation in a flight⅜” max.Difference between the deepest and shallowest tread.
Treads & RisersWinder tread depth at the walkline10″ min.Measured 12″ from the narrow end.
Treads & RisersWinder tread depth at the narrow end6″ min.At any point within the clear width.
Treads & RisersWinder tread variation⅜” max. between windersConsistently shaped winders can share a flight with straight treads and don’t have to match the straight tread depth within ⅜”.
Treads & RisersNosing projection¾” to 1¼”Not required when treads are at least 11″ deep. On open-riser stairs the projection may be more than 1¼”.
Treads & RisersNosing edge9/16″ max. radius or ½” max. bevelKeeps the edge from being sharp or square.
Treads & RisersNosing projection variation⅜” max.Between the largest and smallest projection in a flight, including the nosings at floors and landings.
Treads & RisersTread strength300 lb loadEach tread must hold a 300 lb load on a 2″ × 2″ area (or 40 lb per sq. ft. spread out).
Treads & RisersTread and landing slope2% max. (1 in 48)Walking surfaces must be close to level. A landing may slope up to 5% (1 in 20) where needed to drain water.
LandingsLanding at top and bottomRequiredEvery flight needs a floor or landing at the top and bottom.
LandingsDoor at the top of interior stairsLanding can be on the other sideAllowed when the door doesn’t swing over the stairs. Includes stairs in an enclosed garage.
LandingsEnclosed garage stairsTop landing up to 7¾” below threshold
LandingsExterior door, 2 risers or fewerNo top landing neededWhen the door doesn’t swing over the stairs.
LandingsDeck, porch or patio stairs, 3 risers or fewerBottom landing 36″ wide min.Applies when the stairs aren’t the required exit route.
LandingsLanding widthAt least the stair widthMeasured perpendicular to the direction of travel.
LandingsLanding depth36″ min.Measured in the direction of travel on straight runs. Odd-shaped landings need at least the area of a quarter circle with a radius equal to the landing width.
HandrailsWhen a handrail is required4 or more risersAt least one side of each flight.
HandrailsHandrail height34″ to 38″Measured straight up from the line connecting the tread nosings. A volute, turnout or starting easing over the bottom tread, and fittings at transitions between flights, at winders or from handrail to guard, may go above 38″.
HandrailsClearance from the wall1½” min.Space between the handrail and the wall.
HandrailsProjection into the stair4½” max. per sideUp to 6½” where nosings of landings, floors or passing flights project into the stair, as long as the required width and clearance are kept.
HandrailsContinuityFull length of the flightFrom above the nosing of the top landing to above the lowest nosing. A newel post may interrupt it at a landing, at a turn with winders, or over the bottom tread. A volute, turnout or starting easing may end over the bottom tread or the top landing.
HandrailsHandrail endsReturned or ended at a postReturn the end to itself, toward a wall, guard or the walking surface, or end it at a newel post or safety terminal.
HandrailsGap at a wall return¼” max.A return toward a wall can’t leave more than ¼” from the wall.
HandrailsRound handrail grip (Type I)1¼” to 2″ diameterEdges need at least a 0.01″ radius.
HandrailsNon-round handrail grip (Type I)4″ to 6¼” perimeter, 2¼” max. width
HandrailsLarger handrails (Type II)Over 6¼” perimeterNeeds a finger recess on both sides: starting within ¾” of the top, at least 5/16″ deep within ⅞” below the widest part, and running at least ⅜” down to a point at least 1¾” below the top. The rail above the recess must be 1¼” to 2¾” wide.
HandrailsHandrail strength200 lb loadApplied in any direction at any point along the top.
GuardsWhen a guard is requiredDrop of more than 30″Open sides of floors, landings, decks, ramps and stairs more than 30″ above the surface below, at any point within 36″ horizontally of the edge. Insect screening doesn’t count as a guard.
GuardsGuard height at landings and balconies36″ min.Measured from the walking surface.
GuardsGuard height on the open side of stairs34″ min.Measured from the line connecting the tread nosings.
GuardsOpenings in guards4″ sphere must not passThe baluster spacing rule.
GuardsOpenings on the open side of stairs4⅜” sphere must not passApplies along the sloped stair only. Landings and level runs stay at 4″. Some areas amend this to 4″, and many builders use 4″ everywhere.
GuardsTriangle at tread, riser and bottom rail6″ sphere must not pass
GuardsGuard strength200 lb loadApplied in any direction at the top of the guard.
GuardsBaluster and infill strength50 lb loadBalusters and panels must resist a 50 lb sideways load over 1 sq. ft.
GuardsGlass in guardsSafety glazingAny glass in a guard or railing counts as a hazardous location and must be safety glass.
GuardsStructural glass baluster panelsAttached top railThe rail must be supported by at least 3 panels or stay in place if one panel fails. Not needed when the panels are laminated glass with 2 or more equal plies.
GuardsGlass beside stairs and landingsSafety glass below 36″Glass whose bottom edge is less than 36″ above the stairs or landings needs safety glass, with some exceptions.
GuardsGlass near the bottom landingSafety glass within 60″Glass less than 36″ above the landing and within a 60″ arc of the bottom nosing, unless a guard sits in front and the glass is more than 18″ behind it.
GuardsWindow fall protectionSill under 24″ above floorApplies to operable windows more than 72″ above the ground outside. They need a fall prevention device or opening limit.
LightingInterior stair lighting1 foot-candle min.Measured at the center of the treads and landings.
LightingInterior light switchAt each floor levelRequired when the stair has 6 or more risers, unless the light is automatic.
LightingExterior stair lightingLight at the top landingExterior stairs down to a basement also need a light at the bottom landing.
Special StairsSpiral stair clear width26″ min.At and below the handrail.
Special StairsSpiral stair tread depth6¾” min. at the walklineThe walkline radius can be no more than 24½”.
Special StairsSpiral stair treadsAll identical
Special StairsSpiral stair riser height9½” max.
Special StairsSpiral stair headroom6′ 6″ min.
Special StairsExterior basement stair under a bulkheadExemptApplies when the total rise is 8′ or less and the opening is covered by a bulkhead enclosure.
Special StairsAlternating tread device: where allowedNot the main exitAllowed where a regular stair also serves each level, or where no exit is required. Can serve lofts and mezzanines of 200 sq. ft. or less that aren’t the only way to a kitchen or bathroom.
Special StairsAlternating tread device: clear width20″ min.At and below the handrails.
Special StairsAlternating tread device: angle50° to 70°The first tread starts level with the floor or landing.
Special StairsAlternating tread device: tread width7″ min.
Special StairsAlternating tread device: tread depth5″ min. (8½” projected)
Special StairsAlternating tread device: riser9½” max.
Special StairsAlternating tread device: handrailsBoth sides, 30″ to 34″ high
Special StairsShips ladder: where allowedNot the main exitSame limits as alternating tread devices, including lofts of 200 sq. ft. or less.
Special StairsShips ladder: clear width20″ min.At and below the handrails.
Special StairsShips ladder: tread depth5″ min. (8½” projected)Full-width treads, not alternating.
Special StairsShips ladder: riser9½” max.
Special StairsShips ladder: handrailsBoth sides, 30″ to 34″ high

Jump to:

Stairways

Width, headroom and the height of each flight set the overall size of a staircase. Get these right before you pick parts, because they’re the hardest things to change later.

Plan view of winder treads with the walkline 12 inches from the inside of the turn Walkline12″ from the narrow (inside) end 10″ min.tread depth at the walkline 6″ min.tread depth at any point ⅜″ max.variation between winders Inside of turn
  • Stair width (above handrail height): 36″ min.. Clear width, measured above the handrail.
  • Stair width with a handrail on one side: 31½” min.. Measured at and below the handrail.
  • Stair width with handrails on both sides: 27″ min.. Measured between the handrails.
  • Headroom: 6′ 8″ min.. Measured straight up from the line connecting the tread nosings, and from landings.
  • Floor edge over the stair (headroom exception): 4¾” max. intrusion. The edge of a floor opening above may project into the headroom by this much.
  • Rise of one flight: 12′ 7″ max. (151″). Measured between floor levels or landings. Taller rises need a landing.
  • Walkline on turning stairs: 12″ from inside of turn. The line used to measure winder tread depth, measured from the widest point of the clear stair width at the walking surface.
  • Stairs these rules don’t cover: Exempt. Stairs to nonhabitable attics or crawl spaces, and stairs that aren’t in or serving a building, porch or deck.
  • Remodeling existing stairs: Pitch can stay. Alterations to existing stairs don’t have to meet these rules where the existing space doesn’t allow a lower pitch or slope.

Treads & Risers

Steps that are the same height and depth all the way up are what make a stair feel safe. Most failed inspections come down to uneven risers.

Stair profile showing riser height, tread depth, nosing, handrail height and headroom Riser7¾″ max. Tread 10″ min. Handrail34–38″ Headroom6′ 8″ min. Dashed line = line of nosings (where handrail height and headroom are measured) Nosing projection ¾″–1¼″ where treads are under 11″
  • What to measure: Bare stair, not carpet. All tread, riser and nosing dimensions are taken without carpet, rugs or runners.
  • Riser height: 7¾” max.. Measured vertically between the leading edges of adjacent treads.
  • Riser height variation in a flight: ⅜” max.. Difference between the tallest and shortest riser.
  • Riser slope: 30° max. from vertical. Risers may be vertical or sloped up to this angle.
  • Open risers: 4″ sphere must not pass. Applies where the stair’s total rise is more than 30″.
  • Tread depth: 10″ min.. Measured horizontally from nosing to nosing.
  • Tread depth variation in a flight: ⅜” max.. Difference between the deepest and shallowest tread.
  • Winder tread depth at the walkline: 10″ min.. Measured 12″ from the narrow end.
  • Winder tread depth at the narrow end: 6″ min.. At any point within the clear width.
  • Winder tread variation: ⅜” max. between winders. Consistently shaped winders can share a flight with straight treads and don’t have to match the straight tread depth within ⅜”.
  • Nosing projection: ¾” to 1¼”. Not required when treads are at least 11″ deep. On open-riser stairs the projection may be more than 1¼”.
  • Nosing edge: 9/16″ max. radius or ½” max. bevel. Keeps the edge from being sharp or square.
  • Nosing projection variation: ⅜” max.. Between the largest and smallest projection in a flight, including the nosings at floors and landings.
  • Tread strength: 300 lb load. Each tread must hold a 300 lb load on a 2″ × 2″ area (or 40 lb per sq. ft. spread out).
  • Tread and landing slope: 2% max. (1 in 48). Walking surfaces must be close to level. A landing may slope up to 5% (1 in 20) where needed to drain water.

Landings

Every stairway needs a flat landing at the top and bottom, and wherever a flight would otherwise rise too high.

  • Landing at top and bottom: Required. Every flight needs a floor or landing at the top and bottom.
  • Door at the top of interior stairs: Landing can be on the other side. Allowed when the door doesn’t swing over the stairs. Includes stairs in an enclosed garage.
  • Enclosed garage stairs: Top landing up to 7¾” below threshold
  • Exterior door, 2 risers or fewer: No top landing needed. When the door doesn’t swing over the stairs.
  • Deck, porch or patio stairs, 3 risers or fewer: Bottom landing 36″ wide min.. Applies when the stairs aren’t the required exit route.
  • Landing width: At least the stair width. Measured perpendicular to the direction of travel.
  • Landing depth: 36″ min.. Measured in the direction of travel on straight runs. Odd-shaped landings need at least the area of a quarter circle with a radius equal to the landing width.

Handrails

A handrail is the part you hold. It’s different from a guard, which keeps you from falling off an open side. On many stairs one railing does both jobs.

Handrail grip sizes and the 1 and 1/2 inch clearance from the wall 1½″ min.clearance from wall Round1¼″–2″ diameter Type I, non-round4″–6¼″ perimeter2¼″ max. width Type IIover 6¼″ perimeter,finger recess both sides
  • When a handrail is required: 4 or more risers. At least one side of each flight.
  • Handrail height: 34″ to 38″. Measured straight up from the line connecting the tread nosings. A volute, turnout or starting easing over the bottom tread, and fittings at transitions between flights, at winders or from handrail to guard, may go above 38″.
  • Clearance from the wall: 1½” min.. Space between the handrail and the wall.
  • Projection into the stair: 4½” max. per side. Up to 6½” where nosings of landings, floors or passing flights project into the stair, as long as the required width and clearance are kept.
  • Continuity: Full length of the flight. From above the nosing of the top landing to above the lowest nosing. A newel post may interrupt it at a landing, at a turn with winders, or over the bottom tread. A volute, turnout or starting easing may end over the bottom tread or the top landing.
  • Handrail ends: Returned or ended at a post. Return the end to itself, toward a wall, guard or the walking surface, or end it at a newel post or safety terminal.
  • Gap at a wall return: ¼” max.. A return toward a wall can’t leave more than ¼” from the wall.
  • Round handrail grip (Type I): 1¼” to 2″ diameter. Edges need at least a 0.01″ radius.
  • Non-round handrail grip (Type I): 4″ to 6¼” perimeter, 2¼” max. width
  • Larger handrails (Type II): Over 6¼” perimeter. Needs a finger recess on both sides: starting within ¾” of the top, at least 5/16″ deep within ⅞” below the widest part, and running at least ⅜” down to a point at least 1¾” below the top. The rail above the recess must be 1¼” to 2¾” wide.
  • Handrail strength: 200 lb load. Applied in any direction at any point along the top.

Guards

Guards protect open sides of stairs, landings and balconies. Baluster spacing rules live here.

Guard showing the 4 inch sphere rule, 4 and 3/8 inch on stairs and 6 inch triangle Landing or balcony guard: 36″ min.4″ spherecan’t pass On stairs4⅜″ sphere6″ triangleStair guard: 34″ min. from nosings
  • When a guard is required: Drop of more than 30″. Open sides of floors, landings, decks, ramps and stairs more than 30″ above the surface below, at any point within 36″ horizontally of the edge. Insect screening doesn’t count as a guard.
  • Guard height at landings and balconies: 36″ min.. Measured from the walking surface.
  • Guard height on the open side of stairs: 34″ min.. Measured from the line connecting the tread nosings.
  • Openings in guards: 4″ sphere must not pass. The baluster spacing rule.
  • Openings on the open side of stairs: 4⅜” sphere must not pass. Applies along the sloped stair only. Landings and level runs stay at 4″. Some areas amend this to 4″, and many builders use 4″ everywhere.
  • Triangle at tread, riser and bottom rail: 6″ sphere must not pass
  • Guard strength: 200 lb load. Applied in any direction at the top of the guard.
  • Baluster and infill strength: 50 lb load. Balusters and panels must resist a 50 lb sideways load over 1 sq. ft.
  • Glass in guards: Safety glazing. Any glass in a guard or railing counts as a hazardous location and must be safety glass.
  • Structural glass baluster panels: Attached top rail. The rail must be supported by at least 3 panels or stay in place if one panel fails. Not needed when the panels are laminated glass with 2 or more equal plies.
  • Glass beside stairs and landings: Safety glass below 36″. Glass whose bottom edge is less than 36″ above the stairs or landings needs safety glass, with some exceptions.
  • Glass near the bottom landing: Safety glass within 60″. Glass less than 36″ above the landing and within a 60″ arc of the bottom nosing, unless a guard sits in front and the glass is more than 18″ behind it.
  • Window fall protection: Sill under 24″ above floor. Applies to operable windows more than 72″ above the ground outside. They need a fall prevention device or opening limit.

Lighting

Stairs need enough light to see each tread, with a switch where you need it.

  • Interior stair lighting: 1 foot-candle min.. Measured at the center of the treads and landings.
  • Interior light switch: At each floor level. Required when the stair has 6 or more risers, unless the light is automatic.
  • Exterior stair lighting: Light at the top landing. Exterior stairs down to a basement also need a light at the bottom landing.

Special Stairs

Spiral stairs, alternating tread devices and ships ladders follow their own rules. They’re mostly used for lofts, attics and tight spaces, and usually can’t be the main stair in a home.

  • Spiral stair clear width: 26″ min.. At and below the handrail.
  • Spiral stair tread depth: 6¾” min. at the walkline. The walkline radius can be no more than 24½”.
  • Spiral stair treads: All identical
  • Spiral stair riser height: 9½” max.
  • Spiral stair headroom: 6′ 6″ min.
  • Exterior basement stair under a bulkhead: Exempt. Applies when the total rise is 8′ or less and the opening is covered by a bulkhead enclosure.
  • Alternating tread device: where allowed: Not the main exit. Allowed where a regular stair also serves each level, or where no exit is required. Can serve lofts and mezzanines of 200 sq. ft. or less that aren’t the only way to a kitchen or bathroom.
  • Alternating tread device: clear width: 20″ min.. At and below the handrails.
  • Alternating tread device: angle: 50° to 70°. The first tread starts level with the floor or landing.
  • Alternating tread device: tread width: 7″ min.
  • Alternating tread device: tread depth: 5″ min. (8½” projected)
  • Alternating tread device: riser: 9½” max.
  • Alternating tread device: handrails: Both sides, 30″ to 34″ high
  • Ships ladder: where allowed: Not the main exit. Same limits as alternating tread devices, including lofts of 200 sq. ft. or less.
  • Ships ladder: clear width: 20″ min.. At and below the handrails.
  • Ships ladder: tread depth: 5″ min. (8½” projected). Full-width treads, not alternating.
  • Ships ladder: riser: 9½” max.
  • Ships ladder: handrails: Both sides, 30″ to 34″ high

Stair Terms You’ll See in the Code

The search box above filters these too.

Baluster
A vertical post between the handrail and the treads or floor. Also called a spindle.
Flight
A continuous run of steps between two floors or landings.
Guard
A barrier along an open side that keeps people from falling. On stairs it’s usually the balusters and the rail above them.
Handrail
The rail you hold for support while using the stairs.
Headroom
The clear height above the stairs, measured up from the nosings.
Landing
A flat floor area at the top, bottom or middle of a stairway.
Line of nosings
An imaginary sloped line connecting the front edges of the treads. Handrail height and headroom are measured from it.
Newel post
The larger post that anchors the railing at the bottom, top, turns and landings.
Nosing
The front edge of a tread that sticks out past the riser below.
Riser
The vertical part of a step between two treads.
Run
The horizontal depth of a tread, measured nosing to nosing.
Rise
The vertical height of one step. Total rise is the height of the whole stair.
Stairway
One or more flights of stairs, plus their landings, connecting two levels.
Tread
The horizontal part of a step that you walk on.
Walkline
An imaginary path 12″ from the inside of a turn, used to measure winder treads.
Winder
A wedge-shaped tread used to turn a stair without a landing.
Spiral stair
A stair whose treads wind around a center post.
Alternating tread device
A steep stair with half-width treads offset left and right, so each foot gets its own step.
Ships ladder
A very steep stair with full-width treads and handrails on both sides.

Before You Build

These numbers follow the 2024 International Residential Code (IRC), the model code most US cities and counties use for one- and two-family homes. Many areas are still on the 2018 or 2021 edition, where most of these numbers are the same. Your city may also add its own changes, so confirm with your local building department, and pull a permit when one is required. This guide is for planning, not legal or engineering advice.

Need parts that meet these rules? Our stair railing kits, iron balusters, handrails and treads ship within 1 business day. Send your measurements through our free quote form and we’ll help with the parts list.

Free Shipping Over $750Free ground shipping on parts orders to the lower 48 states.
Secure PaymentAll major credit cards and PayPal.
Call a Stair Expert(866) 727-9356, M–F 8a–3p CST, or get a free quote.
We Beat Competitors by 5%Send us a competitor quote and we'll beat it.