Stairwell Opening Calculator
Find the minimum floor-opening length your stairwell needs for code headroom — from your rise, run and floor thickness — with a 2D section showing the clearance line and a live code check.
Finished floor to finished floor.
The horizontal depth of one step (going).
Depth of the upper floor structure the opening is cut through.
Clearance measured plumb from the nosing line.
Sets the minimum headroom checked — IRC 2021 requires 6' 8".
Minimum opening length
10' 11 13/16"
3.348 m
In tread units
13 treads
of 11" each
Clears at tread
#2
from the bottom
Headroom checked
6' 8"
2.032 m
Code minimum
6' 8"
IRC 2021
Total treads
15
16 risers
Your 6' 8" clearance meets the IRC 2021 minimum of 6' 8". Frame the floor opening at least 10' 11 13/16" long, measured horizontally.
How the stairwell opening length is calculated
The stairwell opening (also called the rough opening or floor opening) is the hole framed in the upper floor for the stair to pass through. Its length is set by headroom, not by the stair footprint: a person walking up must keep full clearance under the floor above until they have climbed past it. So the opening has to extend back down the flight far enough that the sloping ceiling line has risen a whole head‑height — plus the thickness of the floor — above the steps.
opening length = (floor thickness + headroom) × total run ÷ total rise, measured horizontally. The clearance line runs parallel to the stair pitch, offset
up by the headroom; where it meets the underside of the upper floor is the lower edge of the
opening. A thicker floor or a steeper (shorter‑run) stair both push that point further down and
make the opening longer.
Worked example
Take the canonical flight: a 9′7″ total rise with an 11″ run (15 treads), a 12″ floor structure and the IRC 6′8″ headroom. The minimum opening comes to about 3,348 mm — close to 11 ft, spanning roughly the top twelve treads. Headroom first clears the floor at about the second tread up from the bottom, so framing the opening any shorter would leave someone hitting their head partway down.
Why a too-short opening is a common mistake
Builders often size the floor opening to the stair's plan footprint and find the finished stair fails headroom at the top. The fix is to size the opening to the clearance line, which always reaches further back than the steps themselves. Two levers lengthen it:
- Floor thickness — deeper joists, plus subfloor and finish, raise the underside the clearance is measured to, so the opening grows.
- Stair pitch — a shorter run (steeper stair) means the ceiling has to travel back further to gain the same height, lengthening the opening even though the stair takes less floor space.
To plan the stair itself, the stairs calculator sizes risers, treads and the stringer; if the opening you have is fixed and too short, the stairs with landing calculator splits the rise into two flights to fit, and the spiral staircase calculator fits the smallest possible footprint.
Frequently asked questions
How big does a stairwell rough opening need to be?
The opening must be long enough that someone walking up the stairs keeps full headroom — at least 6′8″ under both the IRC and IBC — until they clear the floor above. The minimum length is (floor thickness + required headroom) × total run ÷ total rise, measured horizontally. Stairs Calc computes it from your stair and shows the exact figure.
How do you calculate the stairwell opening length?
Opening length = (floor thickness + headroom) × total run ÷ total rise. The headroom clearance line runs parallel to the stair pitch, offset up by the headroom; it meets the underside of the upper floor a set horizontal distance back from the top. That distance is the opening. A thicker floor or steeper stair lengthens it.
Why is the stairwell opening so long?
Because headroom is measured plumb from the nosing line, the opening has to extend back down the flight until the sloping ceiling has risen a full head‑height plus the floor thickness above the steps. For a typical 9′7″ rise with an 11″ run that is often 11 ft or more — which is why a too‑short opening is a common framing mistake.
Does a thicker floor change the stairwell opening?
Yes. Headroom is measured to the underside of the upper floor, so a deeper floor structure (joists plus subfloor and finish) pushes the clearance point further down the stair and lengthens the opening. Increase the floor‑thickness input to see the opening grow.
Related stair calculators
Written by the Stairs Calc editorial team. Methodology and code references: see our methodology.
Built and maintained by builders, drafters and engineers who plan stairs for a living — every code limit is transcribed from the published standard and cited to its exact section.
Last reviewed 2026-06-20 against IRC 2021/2024
Stairs Calc gives accurate geometry and checks it against published building-code limits, but results are estimates for planning. Codes are adopted and amended locally and change over time. Always confirm dimensions against your local adopted code and a licensed professional before you build.