IRC Stair Code Requirements Simplified: Rise, Run, Handrails, and Headroom

carpentry April 2, 2026

Why Stair Code Matters (More Than You Think)

Stairs are one of the most regulated building elements in the IRC, and violations are expensive to fix. An inspector calling out stair dimensions mid-frame is a nightmare scenario—the work is visible and permanent. Unlike electrical rough-in or plumbing, you can’t hide stairs in a wall. Get it wrong, and you’re either tearing out and rebuilding or applying for a variance (which often gets denied).

The good news: the rules are mathematically precise and don’t change much between code cycles. Once you understand the core requirements, you can calculate stair dimensions with confidence.

The Core IRC Stair Dimensions

Rise (Riser Height): The vertical distance from the top of one tread to the top of the next.

Run (Tread Depth): The horizontal distance from the front edge of one tread to the front edge of the next.

The magic formula: Rise + Run = 17 to 18 inches (most code officials prefer 17.5).

IRC Requirements:

  • Maximum individual riser height: 7¾ inches
  • Minimum individual riser height: 4 inches
  • Minimum run (tread): 10 inches
  • Run and rise variation within a flight: No single riser or tread can vary by more than ⅜ inch from others in the same flight

This last rule catches many carpenters off-guard. If your first riser is 7.5 inches, every riser in that flight must be between 7.125 and 7.875 inches. You can’t have one at 7.5 and another at 7.2—the ⅜-inch tolerance is your margin.

Calculating Stair Dimensions: The Step-by-Step Process

Let’s say you need to design stairs from a basement floor to a main floor 9 feet (108 inches) above.

Step 1: Determine total rise.

Measure the vertical distance from the basement floor to the top of the main floor (including the main floor joist thickness). This is your total rise: 108 inches.

Step 2: Divide by the maximum riser height (7.75 inches).

108 ÷ 7.75 = 13.94

Since you can’t have a partial step, round up: you need 14 risers (or steps).

Step 3: Calculate the individual riser height.

108 ÷ 14 = 7.71 inches per riser

This is between 4 and 7.75 inches, so it’s code-compliant. All 14 risers must be 7.71 inches (within ⅜ inch, so 7.46–7.96 inches).

Step 4: Calculate the run.

Using the formula Rise + Run = 17.5:

17.5 − 7.71 = 9.79 inches

Round this to 9.8 inches (or 9¾ inches on your tape). All treads in the flight must be within ⅜ inch of this: 9.42–10.17 inches.

Step 5: Verify total run.

Total run = Run × (Number of risers − 1)

With 14 risers, you have 13 treads: 13 × 9.79 = 127.27 inches (about 10 feet 7 inches)

This is your horizontal floor space required for the staircase. Make sure the basement and main floor layouts can accommodate it.

Handrail Height and Continuity

Handrails are not optional. Every staircase with 4 or more risers must have at least one handrail (or two if the staircase is wider than 44 inches).

IRC Requirements:

  • Height: 34–38 inches (measured vertically from the stair nosing to the top of the handrail grip)
  • Diameter (round rail): 1¼–2 inches
  • Diameter (oval rail): 1¼ × 2⅜ inches
  • Clearance to wall: At least 1½ inches

Continuity: The handrail must extend from the first step nosing to the last. At the top, it must extend at least 12 inches past the top landing (called the departure extension). At the bottom, it must extend at least 12 inches beyond the first step nosing (the arrival extension).

Many carpenters end the handrail at the landing, thinking the railing takes over. The code doesn’t work that way—the handrail itself must extend continuously or have a compliant transition.

Headroom and Stairwell Openings

Minimum headroom: 80 inches (measured vertically from the top of the tread nosing to the ceiling or soffit above).

This is where many builders make mistakes. If your main floor has low-profile joists or ductwork, verify that the headroom clears the entire staircase. A dimension that’s fine at the front may not be adequate halfway up.

Stairwell opening size: The opening must be large enough to accommodate all the treads and headroom. If you’re framing a stairwell in the floor above, ensure it’s not so small that it violates headroom or doesn’t allow safe passage on the landing.

Guardrails and Stair Widths

Stairs with a drop-off (such as stairs without a wall on one side) need a guardrail. Guardrails are different from handrails.

Guardrail height: 42 inches (measured from the stair nosing to the top of the guardrail) or 36 inches if it’s a residential handrail serving dual duty.

Guardrail opening rules: The opening in the guardrail must not allow passage of a 4-inch sphere. This prevents a child’s head from fitting through. Balusters (vertical rails) must be spaced appropriately—typically 4 inches on center or less.

Stair width: The minimum width for residential stairs is 36 inches (measured from wall to wall or wall to guardrail). Commercial stairs and wide residential stairs can be 44 inches or more.

Nosing and Tread Overhang

The nosing is the part of the tread that extends beyond the riser below.

Nosing projection: 1¼ inches minimum, 1½ inches maximum (measured horizontally from the riser to the nosing edge).

Stair width at nosing: Ensure the nosing doesn’t reduce the stair width below 36 inches. If you have a wall on both sides, the width is measured wall-to-wall. If one side has a guardrail, measure from the wall to the inside edge of the guardrail (excluding the nosing).

Common Mistakes That Trigger Inspections

Variable riser heights within a flight. The ⅜-inch tolerance is strict. Carpenters sometimes eyeball the layout and end up with risers that vary by half an inch. Use a rise calculation tool or spreadsheet to set all riser heights identically and double-check during framing.

Handrail extension failures. Not extending the handrail 12 inches past the top and bottom landings is surprisingly common. Mark your layout clearly.

Undersized headroom. Measuring headroom only at the front edge of the opening is a mistake. Check the clearance at the midpoint and back of the staircase.

Guardrail balusters too far apart. A 4½-inch opening might seem small, but it can allow a child’s head. Space balusters no more than 4 inches apart—measure from the center of one baluster to the center of the next.

Forgetting the landing. The IRC requires a landing at both the top and bottom of the staircase. Landings must be at least 36 inches deep (measured in the direction of travel).

The Fast Way to Calculate Stairs

Rather than doing this by hand for every project, use our stair rise and run calculator. Enter the total rise, and it calculates the number of risers, individual riser height, run depth, and total run distance. It also flags if your dimensions violate IRC requirements.

The calculator saves time and eliminates math errors. You get a professional output you can print and keep with your plans.

Quick Checklist for Stair Framing

  • Total rise measured (floor-to-floor, including joist thickness)
  • Number of risers calculated (round up if needed)
  • Individual riser height between 4–7.75 inches
  • Run depth minimum 10 inches
  • Rise + Run = 17–18 inches
  • All risers within ⅜ inch of each other
  • All runs within ⅜ inch of each other
  • Handrails: 34–38 inches high, continuous with 12-inch extensions
  • Headroom: minimum 80 inches throughout
  • Guardrails: 42 inches high, 4-inch sphere test passed
  • Landings: 36 inches deep, top and bottom
  • Landing opening: adequate for passage without hitting soffit or ductwork

Stairs are one of the most visible, regulated parts of a home. Take the time to calculate correctly, and you’ll pass inspection every time. Get it wrong, and you’ll know it—probably on the walkthrough when the inspector stops at the first step and measures.

stairsIRCbuilding-codecarpentry