Stair building codes exist to prevent falls — the leading cause of residential injuries. Whether you're building deck stairs, interior stairs, or a basement staircase, the International Building Code (IBC) sets minimum safety standards that most local jurisdictions adopt. Here's what you need to know.
Verify rise, run, and stringer length against IBC requirements.
IBC rise and run requirements
These are the core dimensional requirements from the IBC for residential stairs:
- Maximum rise per step: 7.75 inches (7¾"). This is the vertical distance from the top of one tread to the top of the next.
- Minimum tread depth: 10 inches, measured horizontally from nosing to nosing.
- Nosing projection: 0.75 to 1.25 inches beyond the face of the riser. Required when treads are less than 11 inches deep.
- Maximum variation between steps: 3/8 inch. The tallest riser and the shortest riser cannot differ by more than 3/8 inch. This is one of the most commonly failed inspection items.
The comfort rule: Rise plus run should equal 17 to 18 inches. This isn't in the IBC, but it's a widely accepted industry standard. A 7.5-inch rise with a 10.5-inch run gives you 18 inches — right in the sweet spot. Stairs that follow this rule feel natural to walk on.
Handrail and guard requirements
- Handrail height: 34 to 38 inches, measured vertically from the stair nosing to the top of the handrail.
- When required: Handrails are required on at least one side when there are 4 or more risers.
- Guards (railings): Required when the stair is 30 inches or more above grade. Guards must be at least 36 inches high (42 inches in many commercial applications).
- Graspable profile: The handrail must have a graspable cross-section — circular with a diameter of 1.25 to 2 inches, or a non-circular profile with a perimeter of 4 to 6.25 inches. A flat 2×4 on edge does not meet this requirement.
- Guard openings: The 4-inch sphere test applies — no opening in the guard can allow a 4-inch sphere to pass through. See our baluster spacing guide for calculations.
Headroom and width
- Minimum headroom: 6 feet 8 inches (80 inches), measured vertically from the stair nosing to any overhead obstruction.
- Minimum stair width: 36 inches clear, measured between finished walls or between the guard and the wall.
- Enclosed vs. open stairs: Width is measured differently. For enclosed stairs, measure between finished wall surfaces. For open stairs, measure from the guard to the opposite edge.
Common code violations
These are the issues that most frequently cause inspection failures:
- Inconsistent riser heights. The 3/8-inch maximum variation rule catches many DIY builders. If your total rise doesn't divide evenly, you cannot just make one step shorter or taller. Every step must be within 3/8 inch of every other step.
- Treads too shallow. Using 2×10 lumber for treads gives you only 9.25 inches of actual depth — less than the 10-inch minimum. You need 2×12 stock or purpose-made stair treads.
- Missing handrail. Even outdoor deck stairs with 4 or more risers require a handrail. A guard rail (the railing with balusters) is not a handrail unless it has a graspable top rail at the correct height.
- Guard openings too large. The 4-inch sphere test applies to all openings in the guard, including the triangle formed between the stair nosing, the bottom rail, and the riser. Use our baluster spacing calculator to get this right.
Local code amendments
The IBC is the baseline. States and municipalities can — and do — amend it. Notable differences:
- California (CBC): Additional seismic and structural requirements for stair framing. Some jurisdictions require 42-inch guards on residential decks.
- New York: NYC has its own building code separate from the IBC with stricter requirements in several areas.
- Florida (FBC): Enhanced wind resistance requirements that can affect railing and guard construction, especially in coastal areas.
Always check with your local building department before starting. A quick phone call or visit to the permit counter can save you from tearing out completed work. Ask specifically about stair rise, run, handrail, and guard requirements — those are the areas where local amendments are most common.
Enter your total rise and tread depth. Get rise per step, number of steps, stringer length, and IBC compliance check.