Tallyard

Check the number.

Every IRC dimensional limit builders check: stair risers and treads, guards, handrails, egress openings, ceiling heights, and attic access, each with its code section.

2021 IRCSection citedFree to cite
The verdict

Under the 2021 IRC, stair risers max at 7-3/4 inches with treads at least 10 inches, guards are required above a 30 inch drop and must be 36 inches tall, emergency escape openings need 5.7 square feet of net clear opening, and habitable rooms need 7 foot ceilings.

Tallyard EditorialUpdated July 29, 2026Reviewed against 2021 International Residential Code, Chapters 3 and 8, as published by the International Code Council

What this is

The residential code numbers that come up constantly, in one place, each with the section it comes from. Not the code itself, which runs to hundreds of pages, but the dimensional limits a homeowner or builder actually hits: stairs, guards, handrails, egress, ceilings, landings, attic access.

Every figure here is the 2021 IRC, and every one cites its section so you can check it against the source rather than trusting this page. That matters more than usual with code, because a number without a section number is a rumor.

The six numbers inspectors check most (2021 IRC)7-3/4″max stair riserR311.7.5.110″min tread depthR311.7.5.236″min guard heightR312.1.230″guards required aboveR312.1.15.7 sq ftmin egress openingR310.2.17 ftmin ceiling heightR305.1Figures are the 2021 IRC, the edition most US jurisdictions currently enforce. Local amendments can bestricter, and a few states amend these numbers outright. Confirm with your building department.
Figure 1. The limits that generate the most failed inspections in residential work.
How we calculated these numbers

All figures are from the 2021 International Residential Code unless noted. The IRC is a model code: it has legal force only where a state or local jurisdiction adopts it, and jurisdictions routinely amend individual sections. Pennsylvania, for example, amends the maximum riser height upward. This page is a reference for the model code, not a substitute for your local amendments.

Stairs (R311.7)

 
Limit
Section
Maximum riser height7-3/4 inR311.7.5.1
Minimum tread depth10 inR311.7.5.2
Riser variation within a flight3/8 in maxR311.7.5.1
Tread variation within a flight3/8 in maxR311.7.5.2
Minimum clear width above handrail36 inR311.7.1
Clear width with one handrail31-1/2 inR311.7.1
Clear width with two handrails27 inR311.7.1
Minimum headroom6 ft 8 inR311.7.2
Maximum vertical rise per flight12 ft 7 inR311.7.3
Nosing projection, treads under 11 in3/4 to 1-1/4 inR311.7.5.3
Landing depth, direction of travel36 in minR311.7.6
Open riser openingNo 4 in sphereR311.7.5.1
Spiral stair minimum width26 inR311.7.10.1
Spiral stair maximum riser9-1/2 inR311.7.10.1

The 3/8 inch variation rule is the single most commonly failed stair requirement, and it usually traces back to a total rise measured before finish flooring went down.

The 2024 edition changes the stair numbers
The 2024 IRC raises the maximum riser to 8-1/4 inches and lowers the minimum tread to 9 inches, the first change to residential stair geometry in decades. Very few jurisdictions enforce it yet: adoption typically lags publication by two to five years, and most of the country is still on the 2021 or 2018 edition. Build to whatever edition your jurisdiction has adopted, and if in doubt, build to the tighter 2021 numbers, which pass under both.

Guards and handrails (R311.7.8, R312)

 
Limit
Section
Guards required above30 in dropR312.1.1
Minimum guard height36 inR312.1.2
Guard opening limitNo 4 in sphereR312.1.3
Triangular opening at stair treadsNo 6 in sphereR312.1.3
Handrail required at4 or more risersR311.7.8
Handrail height above nosing34 to 38 inR311.7.8.1
Circular handrail diameter1-1/4 to 2 inR311.7.8.5
Non-circular handrail perimeter4 to 6-1/4 inR311.7.8.5
Handrail projection into stair width4-1/2 in max each sideR311.7.1

Graspability is why a flat 2x4 laid on edge fails as a handrail in most jurisdictions: it exceeds the maximum cross-section dimension.

Emergency escape openings (R310)

 
Limit
Section
Minimum net clear opening5.7 sq ftR310.2.1
Grade-floor opening5.0 sq ftR310.2.1
Minimum clear width20 inR310.2.1
Minimum clear height24 inR310.2.1
Maximum sill height above floor44 inR310.2.2
Window well floor area9 sq ftR310.2.3
Window well projection36 inR310.2.3
Ladder required when well is deeper than44 inR310.2.3.1

Required in every sleeping room and in basements with habitable space. The dimensional minimums do not multiply to a passing opening: 20 by 24 inches is only 3.3 square feet.

Rooms, ceilings, and access

 
Limit
Section
Minimum ceiling height, habitable rooms7 ftR305.1
Minimum ceiling height, basements without habitable space6 ft 8 inR305.1.1
Minimum hallway width36 inR311.6
Egress door minimum size32 in wide, 78 in tallR311.2
Landing at doors, depth36 inR311.3
Attic access opening22 by 30 inR807.1
Attic access headroom above opening30 inR807.1
Attic ventilation ratio1:150, or 1:300 balancedR806.2
Minimum room area, habitable rooms70 sq ftR304.1
Minimum horizontal room dimension7 ftR304.2

Ceiling height and room area are what separate a finished basement room from a legal bedroom, alongside the egress opening above.

Cite these figures
Free to reference with attribution to Tallyard. Every number above carries its IRC section so a reader can verify it at the source, and the calculators on this site check user inputs against these same limits.

Which edition applies to you

The IRC is a model code with no legal force by itself. It applies where a state or local jurisdiction adopts it, and adoption is uneven. The IRC is in use in some form in 49 states plus the District of Columbia, but the edition varies widely: adoption typically lags publication by two to five years, so at any moment the country is spread across three or four editions.

The variation runs deeper than edition numbers. Some states adopt statewide with amendments. Some leave it to cities and counties, which is why unincorporated areas in parts of the country have no residential code at all. Some maintain their own code built on the IRC, and a handful amend specific numbers, which is how a state can legally allow a taller stair riser than the model code.

Two consequences for anyone using numbers off a page like this one. First, the model code figure is the safe default: building to the tighter number passes under both a stricter and a looser local amendment. Second, when a project turns on a specific limit, call the building department. A five-minute call is the difference between a passed inspection and a torn-out flight of stairs, and no reference table, this one included, can substitute for the amendment list your jurisdiction actually enforces.

For the current adoption status in your state, the International Code Council maintains the official adoption map, linked in the sources below. Treat third-party adoption charts with care; they contradict each other and go stale quickly.

Frequently asked

What is the maximum stair riser height under the IRC?

7-3/4 inches under the 2021 IRC (R311.7.5.1), with all risers in a flight equal within 3/8 inch. The 2024 edition raises the maximum to 8-1/4 inches, but few jurisdictions enforce it yet. Some states amend the figure: Pennsylvania allows 8-1/4 inches under its Uniform Construction Code.

When are guards required on a deck or stair?

Whenever a walking surface is more than 30 inches above the floor or grade below, measured at any point within 36 inches horizontally of the open edge (R312.1.1). Required guards must be at least 36 inches tall and must not allow a 4 inch sphere to pass through their openings.

How tall should a handrail be?

Between 34 and 38 inches, measured vertically from the sloped plane along the tread nosings (R311.7.8.1). A handrail is required on at least one side of any flight with four or more risers, and it must be graspable: circular sections 1-1/4 to 2 inches in diameter, or non-circular sections with a 4 to 6-1/4 inch perimeter.

What is the minimum ceiling height for a habitable room?

7 feet (R305.1). Basements without habitable space can go down to 6 feet 8 inches, and beams or ducts may project below the required height within limits. A basement room also needs at least 70 square feet of floor area and a compliant egress opening before it counts as a bedroom.

Which IRC edition applies to my project?

Whichever edition your state or local jurisdiction has adopted, plus its amendments. Adoption lags publication by two to five years, so most of the country enforces the 2021 or 2018 edition while the 2024 edition rolls out. Check the ICC adoption map, then confirm amendments with your local building department.

Is the IRC the law?

Not by itself. The IRC is a model code published by the International Code Council; it carries legal force only where a jurisdiction adopts it, and jurisdictions frequently amend specific provisions. Some areas, including many unincorporated counties, have no adopted residential code at all.

Sources