Nothing breaks a two-story residential floor plan, garage apartment, or finished basement layout faster than sketching a quick staircase rectangle without solving the actual vertical rise-and-run geometry. On paper, a 9-foot stairwell looks generous. In real life, a 9'-0" floor-to-floor height with IRC-compliant risers and treads demands at least 11'-8" of horizontal run before you even add the 36" top and bottom landings.
In PlanCaliber, we built a deterministic US residential staircase validator directly into our CAD kernel and our free Staircase Rise & Run Calculator. Every geometry constraint traces directly to 2021/2024 International Residential Code (IRC) Section R311.7 so homeowners, remodelers, and builders catch stairwell collisions while editing in 2D and 3D rather than after framing begins.
1. Exact IRC R311.7 Numeric Limits (Inches)
Residential one- and two-family dwellings in the United States follow strict numeric guardrails under IRC R311.7. Commercial IBC stairs are tighter (max 7.0" rise, min 11.0" tread), while residential IRC stairs permit slightly steeper proportions:
| IRC R311.7 Parameter | Residential IRC Limit | Common Field Target | Code Section |
|---|---|---|---|
| Maximum Riser Height | 7.75" (7 3/4") | 7.0" to 7.5" | IRC R311.7.5.1 |
| Minimum Tread Depth | 10.0" (nosing to nosing) | 10.5" to 11.0" | IRC R311.7.5.2 |
| Minimum Clear Width | 36.0" above handrail | 38" to 42" rough opening | IRC R311.7.1 |
| Minimum Headroom | 80.0" (6'-8") plumb vertical | 82"+ finished clear | IRC R311.7.2 |
| Minimum Landings | 36.0" x 36.0" top & bottom | 42" deep at doors | IRC R311.7.6 |
| Max Flight Vertical Rise | 151.0" (12'-7") between landings | 108" to 120" per floor | IRC R311.7.3 |
| Max Riser Variance | <= 0.375" (3/8") across flight | <= 0.0625" (1/16") CNC | IRC R311.7.5.1 |
Two architectural rules catch beginners off guard every single week:
- Tread count is
risers - 1(unless the top tread is flush with the upper subfloor). For14risers spanning108"(9'-0"floor-to-floor,7.714"actual riser), you only place13horizontal treads inside the stairwell, because the upper floor deck itself forms the 14th step. - Floor-to-floor height is NOT ceiling height. An
8'-0"(96") basement or main-floor ceiling plus a10"floor joist (2x10or11-7/8"I-joist) plus3/4"subfloor plus1/2"ceiling drywall equals107.25"to109.125"of actual vertical travel. Designing stairs off96"leaves your stringer 12 inches short of the second floor!
2. Solving Exact Rise, Run, Stringer Length, and Headroom Opening in TypeScript
Here is the deterministic TypeScript solver we use to compute exact riser count, actual riser height (to 1/16"), total horizontal run, rough stringer diagonal length, and the minimum ceiling floor-opening length required to maintain 80" (6'-8") vertical headroom as a person walks down under the upper floor framing:
export interface StairInput { totalRiseIn: number; // finished floor to finished floor (e.g. 108.5") treadDepthIn: number; // net horizontal run per tread (min 10.0") stairWidthIn: number; // clear width (min 36.0") floorAssemblyIn: number; // upper floor joists + subfloor + ceiling drywall (e.g. 12.5") maxRiserIn?: number; // IRC R311.7.5.1 default 7.75" minHeadroomIn?: number; // IRC R311.7.2 default 80.0" } export interface StairSolution { riserCount: number; treadCount: number; actualRiserIn: number; totalRunIn: number; stringerLengthIn: number; slopeDegrees: number; minWellOpeningIn: number; comfortScore: number; // Blondel formula: 2R + T (ideal 24" to 25") violations: string[]; } export function solveResidentialStair(input: StairInput): StairSolution { const maxRiser = input.maxRiserIn ?? 7.75; const minHeadroom = input.minHeadroomIn ?? 80.0; const violations: string[] = []; if (input.totalRiseIn <= 0) { throw new Error('totalRiseIn must be positive'); } if (input.totalRiseIn > 151) { violations.push(`Total vertical rise (${input.totalRiseIn}") exceeds 151" IRC R311.7.3 single-flight limit; add an intermediate landing.`); } if (input.treadDepthIn < 10.0) { violations.push(`Tread depth (${input.treadDepthIn}") is below 10.0" IRC R311.7.5.2 minimum.`); } if (input.stairWidthIn < 36.0) { violations.push(`Clear stair width (${input.stairWidthIn}") is below 36.0" IRC R311.7.1 minimum.`); } // Minimum integer risers so every riser stays strictly <= maxRiser const riserCount = Math.ceil(input.totalRiseIn / maxRiser); const actualRiserIn = input.totalRiseIn / riserCount; const treadCount = Math.max(1, riserCount - 1); const totalRunIn = treadCount * input.treadDepthIn; // Exact stringer diagonal (hypotenuse of total rise & total run) const stringerLengthIn = Math.hypot(input.totalRiseIn, totalRunIn); const slopeDegrees = (Math.atan2(actualRiserIn, input.treadDepthIn) * 180) / Math.PI; // Headroom opening: distance from upper nosing forward until ceiling soffit clears 80" // Required vertical drop from upper finished floor = minHeadroom + floorAssemblyIn const dropRequiredIn = minHeadroom + input.floorAssemblyIn; const stepsUnderOpening = Math.ceil(dropRequiredIn / actualRiserIn) - 1; const minWellOpeningIn = Math.max(0, stepsUnderOpening * input.treadDepthIn); // Blondel ergonomic check (2R + T ideally 24" to 25") const comfortScore = 2 * actualRiserIn + input.treadDepthIn; return { riserCount, treadCount, actualRiserIn: Number(actualRiserIn.toFixed(3)), totalRunIn: Number(totalRunIn.toFixed(2)), stringerLengthIn: Number(stringerLengthIn.toFixed(2)), slopeDegrees: Number(slopeDegrees.toFixed(1)), minWellOpeningIn: Number(minWellOpeningIn.toFixed(2)), comfortScore: Number(comfortScore.toFixed(2)), violations, }; } 3. The Headroom Opening Formula Most Builders Get Wrong
Look closely at the three headroom lines in solveResidentialStair:
const dropRequiredIn = minHeadroom + input.floorAssemblyIn; const stepsUnderOpening = Math.ceil(dropRequiredIn / actualRiserIn) - 1; const minWellOpeningIn = Math.max(0, stepsUnderOpening * input.treadDepthIn); Why do we add floorAssemblyIn (12.5") to 80.0" (minHeadroom)? Because headroom is measured plumb-vertical from the sloped nosing line up to the finished underside of the upper ceiling header, not to the top finished floor surface.
Walk through a concrete example:
- Floor-to-floor rise:
108"(9'-0") ->14risers at7.714",13treads at10.5"->136.5"(11'-4 1/2") total horizontal run. - Upper floor assembly (
11-7/8"I-joist +3/4"subfloor +1/2"drywall):13.125". - Required drop from upper finished floor before ceiling can resume:
80.0" + 13.125" = 93.125". - Steps needed to clear
93.125":Math.ceil(93.125 / 7.714) = 13risers (12treads forward from the top nosing). - Minimum clear stairwell opening:
12 * 10.5" = 126.0"(10'-6").
Framing that floor opening at 9'-0" instead of 10'-6" fails final framing inspection on headroom clearance (~66" instead of 80"), requiring costly header removal after the upper floor is already sheathed.
4. Straight Run vs. L-Shaped vs. U-Shaped Footprint Trade-offs
When converting a single-story layout or designing a compact garage apartment or A-frame loft, choosing the stair geometry dictates the entire floor plan:
- Straight run (
3'-4"x14'-6"incl. landings): Simplest and cheapest to frame (3cut stringers), fits neatly along an exterior garage or great-room wall (like our 24x32 A-Frame Cabin). - L-shaped 90-degree winder/landing (
~7' x 9'): Tucks cleanly into a corner around a mechanical closet or half-bath while preserving open living space. - U-shaped switchback (
6'-8"x9'-6"incl.3'-0"intermediate landing): Compact footprint for two-story homes and garage apartments like our 28x36 Garage Apartment & Workshop or 4-Bed Modern Farmhouse, stacking cleanly floor-to-floor.
5. Run Your Exact Floor-to-Floor Numbers Free
Plug your exact finished-floor-to-finished-floor rise and joist depth into our free Staircase Rise & Run Calculator, then launch directly into the PlanCaliber 2D/3D Floor Plan Studio to verify stairwell landings, door swings, and second-story shells before you cut a single stringer.
Drafting, AI sketch/PDF tracing, and watermarked proof PNG exports are free; clean unwatermarked 1/4"=1'-0" vector PDFs start at $9, and the $19 Full CAD Pack adds layered AutoCAD R12 .DXF, 3D .OBJ/.MTL, and Framing/Drywall .CSV takeoffs. Always verify local residential code amendments, handrail/guard heights, and structural floor headers with a qualified builder or local building department before construction.
