Adding a legal bedroom to a finished basement is one of the highest-ROI residential projects in the United States, and one of the easiest ways to fail a municipal framing inspection. Under International Residential Code (IRC) Section R310, calling a basement room a bedroom is not a matter of placing a bed and a closet: it requires an emergency escape and rescue opening (EERO) that satisfies five simultaneous geometric constraints.
A classic mistake catches homeowners every day: buying a window whose minimum width (20") and minimum height (24") both pass individually, without realizing that 20" x 24" equals only 3.33 sq ft of net clear opening, failing the 5.7 sq ft (820.8 sq in) minimum area requirement!
In PlanCaliber, we encode every IRC R310.2 and R310.4 window-well clearance directly into our free IRC R310 Egress Window Calculator and our browser CAD studio. Here is the exact geometry model and TypeScript validator that prevents costly foundation-cutting mistakes before concrete saw work begins.
1. The Five Simultaneous IRC R310.2 & R310.4 Requirements
Every basement sleeping room and habitable attic under the 2021/2024 IRC must meet all five checks at the net clear opening (the openable sash passage, NOT the rough framing opening or outside window frame size):
| IRC Section | Requirement | Below-Grade Basement Limit | Grade-Floor Exception |
|---|---|---|---|
| IRC R310.2.1 | Minimum Net Clear Opening Area | 5.7 sq ft (820.8 sq in) | 5.0 sq ft (720.0 sq in) |
| IRC R310.2.1 | Minimum Net Clear Opening Height | 24.0" | 24.0" |
| IRC R310.2.1 | Minimum Net Clear Opening Width | 20.0" | 20.0" |
| IRC R310.2.2 | Maximum Sill Height Above Finished Floor | 44.0" | 44.0" |
| IRC R310.4.1 | Minimum Window Well Horizontal Area | 9.0 sq ft (>= 36" projection x >= 36" width) | N/A |
| IRC R310.4.2 | Permanently Affixed Ladder / Steps Required | Mandatory if well depth > 44.0" | N/A |
Notice the mathematical coupling between width and height:
- If your net clear width is at the
20.0"minimum, your net clear height must be at least820.8 / 20.0 = 41.04"(nearly3'-5"of openable sash height!). - If your net clear height is at the
24.0"minimum, your net clear width must be at least820.8 / 24.0 = 34.2"(requiring a wide casement or slider rough opening). - A single-hung or double-hung window only opens roughly
40%of its total window height, which means you need an unusually tall rough opening (~36" x 64") to reach5.7 sq ftclear! By contrast, a casement window swings fully open (~85%+of frame width and height), hitting5.7 sq ftinside a compact32" x 48"foundation cutout.
2. Deterministic TypeScript IRC R310 Validator (With Sash-Type Net Clear Conversion)
Below is a clean, production-grade TypeScript validator that converts rough-opening dimensions by window operating style (casement, double-hung, or horizontal slider) into realistic net clear opening geometry, checks all IRC R310.2 and R310.4 rules, and flags ladder requirements:
export type WindowStyle = 'casement' | 'double_hung' | 'horizontal_slider'; export interface EgressInput { roughWidthIn: number; // framed opening width (inches) roughHeightIn: number; // framed opening height (inches) style: WindowStyle; sillHeightIn: number; // finished floor to bottom of clear opening (inches) isGradeFloor: boolean; // true only if sill <= 44" above/below adjacent exterior grade wellWidthIn: number; // interior window-well width (inches) wellProjectionIn: number; // horizontal projection from exterior wall (inches) wellDepthIn: number; // vertical depth from top of well to well floor (inches) } export interface EgressAuditResult { netClearWidthIn: number; netClearHeightIn: number; netClearAreaSqFt: number; requiredAreaSqFt: number; wellAreaSqFt: number; ladderRequired: boolean; passed: boolean; failures: string[]; } export function validateIrcR310Egress(input: EgressInput): EgressAuditResult { const failures: string[] = []; // Approximate net clear sash passage from rough opening (field-verify manufacturer NFRC/egress specs) let netW = 0; let netH = 0; if (input.style === 'casement') { netW = Math.max(0, input.roughWidthIn - 6.0); // jamb + hinge + sash projection netH = Math.max(0, input.roughHeightIn - 5.0); } else if (input.style === 'double_hung') { netW = Math.max(0, input.roughWidthIn - 4.0); netH = Math.max(0, (input.roughHeightIn - 8.0) * 0.48); // only lower sash lifts clear } else { // horizontal_slider: only one sash slides clear netW = Math.max(0, (input.roughWidthIn - 8.0) * 0.48); netH = Math.max(0, input.roughHeightIn - 5.0); } const netAreaSqFt = (netW * netH) / 144; const requiredAreaSqFt = input.isGradeFloor ? 5.0 : 5.7; if (netW < 20.0) { failures.push(`Net clear width (${netW.toFixed(1)}") is below 20.0" IRC R310.2.1 minimum.`); } if (netH < 24.0) { failures.push(`Net clear height (${netH.toFixed(1)}") is below 24.0" IRC R310.2.1 minimum.`); } if (netAreaSqFt < requiredAreaSqFt) { failures.push( `Net clear area (${netAreaSqFt.toFixed(2)} sq ft) is below ${requiredAreaSqFt.toFixed(1)} sq ft minimum.` ); } if (input.sillHeightIn > 44.0) { failures.push(`Finished sill height (${input.sillHeightIn}") exceeds 44.0" IRC R310.2.2 maximum.`); } const wellAreaSqFt = (input.wellWidthIn * input.wellProjectionIn) / 144; if (!input.isGradeFloor) { if (input.wellWidthIn < 36.0) { failures.push(`Window well width (${input.wellWidthIn}") is below 36.0" IRC R310.4.1 minimum.`); } if (input.wellProjectionIn < 36.0) { failures.push(`Window well projection (${input.wellProjectionIn}") is below 36.0" IRC R310.4.1 minimum.`); } if (wellAreaSqFt < 9.0) { failures.push(`Window well horizontal area (${wellAreaSqFt.toFixed(2)} sq ft) is below 9.0 sq ft minimum.`); } } const ladderRequired = !input.isGradeFloor && input.wellDepthIn > 44.0; return { netClearWidthIn: Number(netW.toFixed(1)), netClearHeightIn: Number(netH.toFixed(1)), netClearAreaSqFt: Number(netAreaSqFt.toFixed(2)), requiredAreaSqFt, wellAreaSqFt: Number(wellAreaSqFt.toFixed(2)), ladderRequired, passed: failures.length === 0, failures, }; } 3. Window-Well Casement Swing Collision Check
One subtle physical trap is missing from most web calculators: an outward-swinging casement sash must open completely inside the window well (IRC R310.4.1). If your casement sash projects 26" outward into a 36" window well with an interior rung ladder protruding 6" from the outer corrugated steel wall, the sash only clears 4" unless the window well is widened or projected to 42"–48".
Likewise, IRC R310.4.2 specifies that a required window-well ladder (when well depth > 44") must be at least 12" wide, project at least 3" from the wall, have rungs spaced no more than 18" on center, and may encroach no more than 6" into the minimum required 36" x 36" horizontal well footprint.
4. Plan Your Finished Basement Layout and Egress Cutouts Free
Test your exact rough opening, window style, sill height, and well depth right now in our free IRC R310 Egress Window Calculator and Basement Finishing Layout Calculator, or customize a prebuilt layout like our 28x36 Finished Basement Egress Suite or 24x40 Finished Basement Rec Room & Wet Bar directly inside the PlanCaliber 2D/3D Studio.
Drafting, AI sketch/PDF tracing, and watermarked proof PNG exports are free; clean 1/4"=1'-0" vector PDFs start at $9 one-time, and the $19 Full CAD Pack adds layered AutoCAD R12 .DXF, 3D .OBJ/.MTL, and Framing/Drywall .CSV takeoffs. Always verify exact manufacturer net-clear egress specifications, foundation lintel engineering, and local municipal code amendments before cutting foundation walls.
