Stair Calculator

Lay out a straight staircase from the total rise, giving the number of risers and treads, exact riser height, total run, stair angle, and stringer length with IRC code checks.

By Mateo Díaz · Last updated: July 19, 2026

Stair calculator

Risers
14
Riser height
7.5 in
Treads
13
Total run
130 in (10' 10")
Stair angle
36.9°
Stringer length
167.11 in (13' 11.11")

Guide

Enter the total rise - finished floor to finished floor - and the calculator returns the riser count, the exact riser height to cut, the treads, total run, stair angle, and stringer length, flagging anything that breaks residential code.

Formula

risers=⌈total risemax riser⌉riser height=total riserisers\text{risers}=\left\lceil\frac{\text{total rise}}{\text{max riser}}\right\rceil \qquad \text{riser height}=\frac{\text{total rise}}{\text{risers}}

treads=risers−1total run=treads×tread depthstringer=rise2+run2\text{treads}=\text{risers}-1 \qquad \text{total run}=\text{treads}\times\text{tread depth} \qquad \text{stringer}=\sqrt{\text{rise}^2+\text{run}^2}

Rounding up keeps every riser at or under the maximum; dividing by the final count makes all risers identical. The top "step" is the upper floor itself (a flush-mounted stringer needs one extra tread). The stringer is the hypotenuse of the rise-run triangle - the Pythagorean theorem at work.

A 105 in rise with the IRC maximum 7.75 in riser and 10 in treads: 14 risers at exactly 7.5 in, 13 treads, a 130 in run, a 36.9° angle, and a 167.1 in stringer (buy 16 ft boards to allow for cuts).

Residential code limits (2021 IRC)

DimensionLimitSection
Riser height7.75 in maxR311.7.5.1
Riser variation3/8 in maxR311.7.5.1
Tread depth10 in minR311.7.5.2
Stair width36 in minR311.7.1
Headroom6 ft 8 in minR311.7.2

These are the model-code numbers for dwellings; local jurisdictions amend them - check with your building department before cutting.

Sources and further reading