Why Stair Code Compliance Matters
Stairs are one of the most dangerous features in any building. The National Safety Council reports that falls on stairs and steps account for over one million injuries per year in the United States. Building codes exist specifically to minimize this risk — and inspectors enforce them strictly. A failed stair inspection means tearing out work, buying new materials, and delaying your project by days or weeks.
Beyond inspections, non-compliant stairs create real liability. If someone is injured on stairs that violate building code, the builder can face lawsuits even years after construction. Code compliance is not just about passing inspection — it is about building stairs that are genuinely safe to use every day.
This guide covers the specific IRC and IBC requirements for residential and commercial stairs, the most common violations that fail inspections, and how to calculate compliant stair dimensions from the start. For instant calculations, use our free stair calculator which checks IRC and IBC compliance automatically.
IRC vs IBC: Which Code Applies to Your Project?
The United States uses two primary model building codes published by the International Code Council (ICC):
- International Residential Code (IRC): Governs one- and two-family dwellings and townhouses up to three stories. This is the code that applies to most houses, duplexes, and residential additions.
- International Building Code (IBC): Governs commercial buildings, multi-family residential (apartments with 3+ units), public buildings, and institutional structures. The IBC has stricter stair requirements than the IRC.
Important: States and municipalities adopt these model codes and often amend them. Your local jurisdiction may use the 2018, 2021, or 2024 edition, and may have local amendments that modify specific requirements. Always verify which code edition and local amendments apply to your project before starting construction. When in doubt, call your local building department — they will tell you exactly which code they enforce.
Riser Height Requirements
IRC Residential: Maximum 7-3/4 Inches
Section R311.7.5.1 of the IRC (2021 edition) sets the maximum riser height at 7-3/4 inches (196.85 mm). There is no code minimum for riser height, but practical considerations and the comfort range typically keep risers between 7 inches and 7-3/4 inches. A riser below 6 inches feels uncomfortably shallow and creates an awkward shuffling gait.
IBC Commercial: Maximum 7 Inches
Section 1011.5.2 of the IBC (2021 edition) sets a stricter maximum riser height of 7 inches (178 mm) and a minimum of 4 inches (102 mm). The tighter limit reflects the higher traffic volumes and diverse populations using commercial stairs.
The 3/8-Inch Consistency Rule
Both the IRC (R311.7.5.2.1) and IBC (1011.5.4.1) require that the largest riser height and the smallest riser height within a single flight differ by no more than 3/8 inch (9.5 mm). This is the single most commonly violated stair code requirement. Inconsistent risers are a tripping hazard because your body develops a walking rhythm based on the first few steps — an unexpected change in riser height disrupts that rhythm and causes stumbles.
The key to consistent risers is an accurate total rise measurement. If your total rise is off by even 1/2 inch, the error gets distributed across all risers, and the top or bottom riser may end up outside the 3/8-inch tolerance. Always measure from finished floor to finished floor, and account for any flooring material that has not been installed yet.
The 7-11 Rule
The classic 7-11 rule recommends a 7-inch riser paired with an 11-inch tread. This combination produces a comfortable walking angle of approximately 32 degrees and satisfies both IRC and IBC requirements. A useful cross-check: the sum of one riser height plus one tread depth should fall between 17 and 18 inches. The 7-11 combination sums to 18 inches, right at the upper end of the comfort range.
Tread Depth Requirements
IRC Residential: Minimum 10 Inches
IRC R311.7.5.2 requires a minimum tread depth of 10 inches (254 mm). Tread depth is measured horizontally from the leading edge (nosing) of one tread to the leading edge of the next tread above. This measurement does not include the nosing projection — the nosing overhangs the riser below but is not counted in the tread depth.
IBC Commercial: Minimum 11 Inches
IBC Section 1011.5.2 requires a minimum tread depth of 11 inches (279 mm). This extra inch provides a more generous landing surface for commercial foot traffic. Many residential builders also target 11 inches because the resulting stair is noticeably more comfortable than the 10-inch minimum.
Nosing Requirements (IRC R311.7.5.3)
When the tread depth is less than 11 inches, the IRC requires a nosing projection between 3/4 inch and 1-1/4 inches beyond the face of the riser below. The nosing provides additional foot landing surface during descent. The largest and smallest nosing projection in a flight cannot differ by more than 3/8 inch.
If the tread depth is 11 inches or greater, nosing is not required because the tread is already deep enough to provide adequate footing. Open risers (stairs without a vertical riser board) must still meet the 4-inch sphere rule — a 4-inch diameter sphere must not be able to pass through the opening between treads.
Headroom Clearance (IRC R311.7.2)
A minimum headroom of 6 feet 8 inches (80 inches / 2032 mm) is required by both the IRC and IBC. This clearance must be maintained at every point along the stairway, measured vertically from the stair nosing line (the diagonal line connecting the front edges of all nosings) to the nearest overhead obstruction.
Headroom violations are especially common in basement stair renovations. Existing floor joists, HVAC ductwork, plumbing runs, and low headers often encroach into the required headroom envelope. If you are tight on headroom, consider these strategies:
- Increase the tread depth to push the stair further from the overhead obstruction
- Increase the number of risers (reducing unit rise) to make the stair angle shallower
- Relocate ductwork or modify framing above the stairwell
- Reframe the stairwell opening to be larger
Stair Width Requirements
The IRC requires a minimum clear stair width of 36 inches measured at and below handrail height, between finished wall surfaces (not between studs). Handrails can project into this width by up to 4-1/2 inches on each side.
The IBC requires a minimum of 44 inches for most commercial stairs, reduced to 36 inches only when the stair serves an occupant load of fewer than 50 people (Section 1011.2). Egress stairs in high-rise buildings may require wider dimensions.
Handrail and Guardrail Requirements
Handrails (IRC R311.7.8)
Handrails are required on at least one side of stairs with four or more risers. The handrail must be between 34 and 38 inches above the stair nosing line. The handrail must be "graspable" — a round section between 1-1/4 and 2 inches in diameter, or a non-round section with a perimeter of 4 to 6-1/4 inches and a maximum cross-section dimension of 2-1/4 inches.
Handrails must extend horizontally at least the depth of one tread beyond the top riser (called the "top extension") and slope or extend at the stair pitch for a distance equal to one tread depth beyond the bottom nosing (the "bottom extension"). These extensions give users something to grab as they transition on and off the stairs.
A common mistake: A flat 2×4 or 2×6 cap rail does not meet graspability requirements. You need a profiled handrail or round stock that fits within the specified dimensions.
Guardrails (IRC R312.1)
Guardrails (also called guards) are required along open sides of stairs and landings where the walking surface is more than 30 inches above the floor or grade below. The minimum guardrail height is 36 inches for residential stairs, measured vertically from the stair nosing to the top of the guard.
The 4-inch sphere rule applies to all guardrail assemblies: a 4-inch sphere must not be able to pass through any opening in the guard. This means baluster spacing must keep the clear gap under 4 inches. See our baluster spacing calculator for help with code-compliant baluster layout.
Common Code Violations That Fail Inspections
After decades of stair inspections, certain violations appear repeatedly. Knowing these before you build saves time and money:
- Inconsistent riser heights: The 3/8-inch rule (IRC R311.7.5.2.1) is the most commonly failed requirement. Usually caused by inaccurate total rise measurement or failure to account for finish flooring thickness. Our stair calculator divides total rise evenly to prevent this.
- Risers exceeding the maximum: Builders sometimes try to minimize the number of risers to shorten total run, pushing individual risers above 7-3/4 inches. One additional riser is always cheaper than tearing out a failed flight.
- Inadequate headroom: The 6'8" minimum must be maintained at every point along the stair, not just at the top and bottom. Inspectors typically run a measuring stick along the nosing line to check every point.
- Non-graspable handrails: Flat cap rails, oversized newel posts used as continuous handrails, and decorative profiles that exceed the size limits all fail the graspability test.
- Missing or inconsistent nosing: When treads are under 11 inches deep, nosing is required. The projection must be between 3/4 and 1-1/4 inches, and the largest and smallest nosing in the flight cannot differ by more than 3/8 inch.
- Guardrail openings exceeding 4 inches: The 4-inch sphere rule applies to all guardrail components, including the gap between the bottom rail and the stair treads. This gap is often overlooked.
- Stringer throat too thin: After notching, the narrowest remaining width of the stringer must be at least 3-1/2 inches. Using 2×10 stock for stairs with large risers often violates this. Most residential stairs require 2×12 stringer stock.
How to Calculate Code-Compliant Stairs: Step by Step
- Measure total rise accurately. Measure from finished floor to finished floor at three points (left, center, right) across the stair opening. Use the longest measurement. If finish flooring is not yet installed, add its thickness to your measurement.
- Choose your building code. Use IRC for residential (max riser 7-3/4", min tread 10") or IBC for commercial (max riser 7", min tread 11").
- Calculate the number of risers. Divide total rise by your target riser height (7 to 7-1/2 inches is ideal). Round to the nearest whole number. For a 109-inch total rise at 7.5" target: 109 ÷ 7.5 = 14.53, round to 15 risers.
- Calculate actual unit rise. Divide total rise by the number of risers: 109 ÷ 15 = 7.267" (approximately 7-1/4"). Verify this is within code limits.
- Determine number of treads. Number of treads = risers minus 1 = 14 treads.
- Calculate total run. Multiply tread count by unit run: 14 × 10.25" = 143.5" (11'11-1/2"). Verify you have enough space for this horizontal distance.
- Check the rise+run comfort rule. Unit rise + unit run should be between 17" and 18": 7.267 + 10.25 = 17.517" — comfortable.
- Verify headroom. At the critical point where the stairs pass under the floor framing, measure from the nosing line to the lowest overhead obstruction. Must be at least 80".
Or skip the manual math and enter your total rise into our stair calculator. It computes all of these values instantly, checks code compliance automatically, and generates a stringer diagram you can reference on the job site or include with your permit application.
Quick Reference: IRC vs IBC Stair Requirements
| Requirement | IRC (Residential) | IBC (Commercial) |
|---|---|---|
| Maximum riser height | 7-3/4" (196.85 mm) | 7" (178 mm) |
| Minimum tread depth | 10" (254 mm) | 11" (279 mm) |
| Minimum headroom | 6'8" (2032 mm) | 6'8" (2032 mm) |
| Minimum stair width | 36" (914 mm) | 44" (1118 mm) |
| Riser variation tolerance | 3/8" (9.5 mm) | 3/8" (9.5 mm) |
| Nosing projection | 3/4" to 1-1/4" | 3/4" to 1-1/4" |
| Handrail height | 34" to 38" | 34" to 38" |
Building safe, code-compliant stairs starts with accurate measurements and the right calculations. Use our free stair calculator to get precise dimensions, automatic code compliance checking, and exportable stringer diagrams for your next project.