Code Compliance Calculator
Verify basement egress window net clear area and residential stair riser, tread, width, and headroom against International Residential Code rules.
irc compliance verdict
Net clear opening area: 6.00
View breakdown
What the Code Compliance Calculator Determines
The Building Code Compliance Calculator audits residential framing and remodel measurements against core life-safety rules in the International Residential Code (IRC). Switching between Egress window opening (IRC R310) and Residential stairway geometry (IRC R311.7) shows only the relevant fields for that inspection check, delivering an instant PASS/FAIL verdict alongside exact measured area (sq ft), individual dimensional threshold checks, stair slope angle, and 2R + T comfort proportioning.
Basement bedroom additions and custom stair stringer cuts fail municipal rough-in inspections every day over tiny dimensional misunderstandings—such as ordering a window whose rough opening looks big on a catalog sheet (24" × 36") before double-hung sash rails shrink the net clear opening below 5.7 sq ft, or misreading riser height vs. tread nosing overlap on concrete basement slabs.
After confirming basement bedroom egress compliance, estimate drainage and flood-protection costs before finishing lower-level walls with our Basement Waterproofing Calculator.
Common use cases
- Basement Bedroom Egress Pre-CheckVerify that finished sash-open clear width, clear height, net clear area (
>= 5.7 sq ft), and sill height (<= 44") pass IRC R310 before ordering custom window wells. - Grade-Floor Exception VerificationToggle Grade-floor window (5.0 sq ft exception) for first-floor sleeping rooms to verify whether tighter existing casements still qualify.
- Stair Stringer Cut AuditValidate planned riser height (
<= 7.75"), tread depth (>= 10"), clear width (>= 36"), and stairwell headroom (>= 80") prior to sawing stringers. - Remodel Slope & Comfort ScreeningReview *Stair comfort check (
2R + T)* and pitch angle (°) when retrofitting tight stairwells under existing floor joists.
How IRC Egress and Stairway Compliance Math Works
Depending on the mode chosen in IRC code check mode, the engine evaluates either the four Section R310 emergency escape requirements or the four Section R311.7 stairway limits simultaneously, reporting both overall verdict and every individual pass/fail criterion.
- IRC Code Check Mode (
complianceType): Dynamically filters inputs between Egress window opening (IRC R310) and Residential stairway geometry (IRC R311.7) viashowWhen. - Egress Inputs (
egressWidth,egressHeight,egressSillHeight,isGradeFloor): Visible in egress mode to calculate net square footage, sill reach (<= 44"), and5.0vs.5.7 sq ftarea thresholds. - Stairway Inputs (
stairwayRiser,stairwayTread,stairwayWidth,stairwayHeadroom): Visible in stairway mode to verify R311.7 geometry plus ergonomic2R + Tstride balance and slope angle.
Residential life-safety provisions published under the International Code Council — International Residential Code (IRC) establish minimum basement and sleeping-room egress clearances alongside stair riser, tread, width, and headroom limits.
When sizing stringers or estimating hardwood treads for an IRC-compliant staircase, calculate total lumber volume and milling waste with our Board Foot Calculator.
How to Audit Your Window or Staircase Measurements
Always measure finished drywall-to-finished-sash opening rather than raw framing rough-opening gaps, because trim, sash hardware, and flooring thickness all reduce clearance.
- Select IRC Check Mode: Choose Egress window opening (IRC R310) or Residential stairway geometry (IRC R311.7) in IRC code check mode.
- Enter Measured Clearances: Fill in exact inches for net clear width, height, and floor-to-sill height (or stair riser, tread, width, and vertical headroom).
- Check Grade-Floor Status (Egress Only): Tick Grade-floor window (5.0 sq ft exception) only when the window sill meets grade criteria without a deep basement well.
- Review Individual Threshold Cards: Inspect the top verdict and each individual
PASS/FAILrow to isolate which single dimension needs adjustment before framing or ordering materials.
Suppose a basement egress window measures 20" wide by 36" tall (5.00 sq ft). Without checking the grade-floor exception, the engine flags FAIL — 1 IRC R310 issue (Area Check: FAIL), alerting you immediately to widen the unit to at least 23" or heighten it to 41.1".
Worked numerical examples
(24" clear width × 36" clear height) ÷ 144
PASS: >= 5.7 sq ft, W >= 20", H >= 24", 40" Sill <= 44")(20" × 36") ÷ 144
PASS on a grade-floor window with 5.0 sq ft exception checked, FAIL — 1 IRC R310 issue inside a basement well requiring 5.7 sq ft)7.25" riser (<= 7.75"), 10.5" tread (>= 10.0"), 36" width, 80" headroom → 2(7.25) + 10.5
2R + T at 34.6° slope (PASS)| Code Inspection Scenario | Mode | Key Measurements | Computed Metric | Failed Checks | Code Verdict |
|---|---|---|---|---|---|
| Basement Bedroom Egress (Std.) | Egress | 24" × 36" · 40" Sill | 6.00 sq ft | 0 issues | PASS (Min 5.7) |
| Grade-Floor Bedroom Exception | Egress | 20" × 36" · 42" Sill | 5.00 sq ft | 0 issues | PASS (Min 5.0) |
| Non-Grade 20"×36" Window | Egress | 20" × 36" · 44" Sill | 5.00 sq ft | Area < 5.7 | FAIL (1 issue) |
| Undersized Old Cellar Hopper | Egress | 18" × 22" · 48" Sill | 2.75 sq ft | Area, W, H, Sill | FAIL (4 issues) |
| Standard IRC Staircase | Stairway | 7.25" R · 10.5" T · 36" W · 80" H | 2R+T 25.00" (34.6°) | 0 issues | PASS (R311.7) |
| Legacy Steep Basement Stairs | Stairway | 8.25" R · 9.5" T · 34" W · 76" H | 2R+T 26.00" (41.0°) | R, T, W, H | FAIL (4 issues) |
Key Residential Egress and Stair Safety Rules
Building inspectors verify multiple overlapping rules together—passing individual minimums alone never overrides combined net clear area or stair uniformity limits.
The Minimum-Area vs. Minimum-Dimension Trap
IRC R310 requires all four conditions together: width >= 20", height >= 24", sill <= 44", and total area >= 5.7 sq ft. A 20" × 24" opening delivers only 3.33 sq ft; pairing narrow 20" width requires 41.04" height, while pairing 24" height demands 34.20" width (5.7 × 144).
Net Clear Opening vs. Catalog Nominal Size
Manufacturers stamp 3050 (3 ft × 5 ft) on casement and double-hung labels, yet only the single sliding sash or unobstructed casement swing counts toward net clear opening. Verify the manufacturer's clear egress opening datasheet column—not exterior unit frame width.
Riser & Tread Maximum Variance (3/8" Rule)
IRC R311.7 caps both tallest-to-shortest riser variance and deepest-to-shallowest tread variance within any single stair flight at 3/8" (0.375"). Always deduct bottom flooring thickness and add top finished nosing depth before cutting stringers.
Headroom Vertical Plumb Measurement
Minimum 80" (6 ft 8 in) headroom is measured plumb vertically down from finished stair headers or drywall soffits to the sloped line tangent across all tread nosings—not diagonally along the stairwell.
Why Pre-Check Code Dimensions During Design
Catching an undersized window or steep riser mathematically costs zero dollars compared with saw-cutting poured concrete basement walls after rough inspection fails.
- Mode-Filtered Interface: Displays only egress fields or stairway fields at a time, eliminating clutter and accidental cross-mode confusion.
- Individual Pass/Fail Diagnostics: Highlights exact failing thresholds rather than returning an unhelpful binary rejection.
- Ergonomic Stair Screening: Pairs statutory IRC R311.7 checks with
2R + Tproportion and pitch degrees. - Zero-Transmission Privacy: Evaluates private architectural plans locally inside your browser session.
Pre-checking finished drywall, floor tile thickness, and window hardware reductions early protects project schedules and inspection sign-offs.
Projects adding a wood-burning hearth or masonry flue must also meet roof-clearance rules checked in the chimney height and draft sizing tool.
Code Nuances and Calculator Scope Boundaries
Basement egress wells, stair handrails, nosing projections, and local municipal amendments extend beyond basic rectangular opening dimensions.
- Window Well Dimensions (R310.4): Where sill height lies below exterior ground level, the IRC requires at least
9 sq ftof horizontal well floor area with>= 36"minimum projection/width, plus a permanently attached ladder if well depth exceeds44". - Guardrails & Stair Handrails (R311.7.8 / R312): Continuous graspable handrails are required at
34"–38"above tread nosings on flights with4+risers, and guards (>= 36"residential) apply to open drops over30". - Spiral, Winder & Alternating-Tread Exception Rules: Special compact stair geometries carry custom narrower tread-depth rules at
12"walkline offsets not covered by straight-flight inputs. - Audits core IRC R310 (
egress) and R311.7 (stairway) straight-flight dimensional limits; window well dimensions, guardrail baluster spacing (4"sphere rule), handrail grip profiles, and winder treads require separate review. - Assumes standard residential one- and two-family dwellings (
IRC), not commercial/multifamily International Building Code (IBC) stairs (7"max riser /11"min tread /44"width). - Municipal building departments frequently enact local code amendments; confirm all drawings with your local authority having jurisdiction (AHJ) prior to fabrication.
Inspect how all client-side inspection checks execute without uploading plans in our client-side privacy architecture.
Frequently asked questions
Why does a 20-inch wide by 24-inch tall window fail the IRC R310 egress test?
Although 20 inches meets minimum clear width and 24 inches meets minimum clear height individually, multiplying 20 × 24 gives only 480 sq in, or 3.33 sq ft—well below both the 5.7 sq ft standard minimum and 5.0 sq ft grade-floor exception. To reach 5.7 sq ft at 20 inches wide, height must be at least 41.04 inches.
When does the 5.0 sq ft grade-floor egress window exception apply?
Under IRC Section R310.2.1 Exception, windows located on the grade floor whose sill is at or near exterior ground level—without a recessed basement window well—qualify for a reduced 5.0 sq ft minimum net clear opening. Below-grade basement bedrooms always require the full 5.7 sq ft area.
What are the IRC R311.7 limits for residential stair risers, treads, and headroom?
IRC Section R311.7 enforces a maximum riser height of 7.75 inches (196 mm), minimum tread depth of 10.0 inches (254 mm) measured nosing-to-nosing, minimum clear stair width of 36 inches above handrail height, and minimum 80 inches (6 ft 8 in) of vertical headroom clearance.
Do inspectors measure egress windows using rough framing or open sash dimensions?
Code officials measure finished net clear opening when the operable window sash is fully opened during a normal operation without removing sashes or using tools. Frame stops, double-hung meeting rails, and casement hardware reduce clear width and height well below nominal sash size.
What is the 2R + T stair comfort check shown alongside IRC stair limits?
Traditional architectural proportioning (Blondel's formula) targets 2 × Riser + Tread between 24 and 25 inches for natural human stride rhythm. Even when two stair dimensions pass code individually, values much above 26 inches or below 23 inches feel steep or choppy to climb.
Do local city or state amendments override standard IRC requirements?
Yes. States and municipalities adopt the International Residential Code on varying cycles (2018, 2021, 2024 IRC) and frequently append local rules, such as stricter 3/8-inch riser uniformity tolerances, nosing projection limits, or specific basement window well dimensions.