Stair Calculator with Code Check
Enter the total rise from finished floor to finished floor, a target riser height and a tread depth. The calculator works out the number of risers and treads, the exact riser height, the total run and the stringer length, draws the stair to scale and checks it against the International Residential Code.
Your stair
–
Checked against the International Residential Code (one- and two-family homes). Local codes can differ; commercial stairs follow the IBC.
How the stair is worked out
- Risers. The total rise is divided by your target riser height and rounded up, so no riser comes out taller than the target. The exact riser height is the total rise divided by that count.
- Treads. A straight stair has one fewer tread than risers, because the upper floor is the last step.
- Total run. Treads times tread depth: the floor length the stair covers, measured from the face of the first riser to the face of the last.
- Stringer length. The diagonal of the total rise and the total run. Buy stringer stock longer than this to allow for the cuts at the top and bottom.
The IRC stair rules it checks
- Riser height: no more than 7 3/4 in.
- Tread depth: at least 10 in. Treads under 11 in need a nosing of 3/4 to 1 1/4 in.
- Width: at least 36 in clear. Handrails may project up to 4 1/2 in into that width on each side.
- Headroom: at least 6 ft 8 in, measured straight up from the line of the tread nosings.
- Flight height: no more than 151 in (12 ft 7 in) of rise between floors or landings.
- Handrail: required on at least one side of any flight with four or more risers, 34–38 in above the nosings.
- Consistency: risers and treads in a flight may vary by no more than 3/8 in, which is why the riser height is worked out exactly rather than rounded.
The calculator also shows the 2R + T comfort check: twice the riser plus the tread. Stairs between 24 and 25 in feel natural to most people. This is a design rule of thumb, not a code requirement.
Local codes can differ, and commercial stairs follow the International Building Code instead. Confirm with your building department.
FAQ
What is the maximum riser height for stairs?
Under the International Residential Code, a stair riser can be no taller than 7 3/4 in, and treads must be at least 10 in deep. Risers within one flight may vary by no more than 3/8 in.
How many steps do I need for a 9 ft ceiling?
With 9 ft ceilings and a typical floor structure, the floor-to-floor rise is often about 10 ft (120 in). At a maximum of 7 3/4 in per riser, that needs 16 risers of 7 1/2 in and 15 treads. Measure your actual floor-to-floor height before ordering.
How do you calculate stair stringer length?
Stringer length is the diagonal of the stair: the square root of the total rise squared plus the total run squared. For 120 in of rise and 157.5 in of run, that is about 198 in, so buy stock longer than 16 ft 6 in.
What is the minimum headroom for stairs?
The IRC requires at least 6 ft 8 in of headroom over the full width of the stair, measured vertically from the sloped line connecting the tread nosings.
Related guide: How to Build a Bloxburg House in Real Life.