Stair Calculator

Plan a straight stair flight from total rise, preferred maximum riser and tread depth, including risers, treads, run, diagonal and angle.

Enter your values

Calculations run on your device; inputs are not sent to our server.

Measure the finished rise and avoid input mistakes

Measure vertically from the finished lower floor to the finished upper floor. Enter tread depth as horizontal going, not the sloped board length or nosing projection. All three dimensions must use the selected unit; changing the selector reinterprets the numbers rather than converting them.

Formula and result interpretation

Risers = ceil(total rise ÷ preferred maximum riser). Actual riser = total rise ÷ risers. With the upper floor acting as the last landing, treads = max(risers − 1, 0). Total run = treads × tread depth. The straight-flight diagonal and angle use a right triangle; the diagonal is not a cut-list stringer length.

Independent check example

For a 280 cm rise, 18 cm preferred maximum riser and 28 cm tread: ceil(280/18)=16 risers, actual rise 17.5 cm, 15 treads, 4.2 m run, 5.047772 m diagonal and 33.6901° angle. Also, 2×17.5+28=63 cm.

Safety, codes and limits

This is preliminary geometry for one straight flight. It does not check headroom, landings, width, guards, handrails, nosing, structure, local residential code or permits. OSHA workplace rules cite 30–50° stairs, maximum 9.5 in risers and minimum 9.5 in tread depth, but those are not a substitute for the code governing your project. Verify every dimension with the authority having jurisdiction and a qualified builder.

Sources and calculation scope

Official safety reference: OSHA 1910.25 Stairways.

Unexpected result? Tell us the inputs and what you expected.