CalcWorks

Home › Lumber

Stair Calculator

Quick start:
Units:Switches the numbers you type and the answers. Diagrams, examples and product sizes stay in feet/inches for now.
Number of steps (risers)
—
Actual riser height
— in
Number of treads
—
Total run
— in
Stringer length
— in
Stair angle
— °

Formula verified · Updated Nov 2026

Results update as you type. Estimates only — confirm final quantities before ordering.

Enter the total rise — the floor-to-floor height — and this calculator works out a straight stair: how many steps, how high each riser is, the total run, the stringer length and the stair angle. With the default 7.75 in maximum riser and 10 in tread, the result meets the US residential code; always check your locally adopted code before building.

Wooden staircase with open risers in a bright loft interior
Embed this calculator

Paste this code into your site to show this calculator on your own page. Adjust the height if the calculator is cut off or leaves a large gap.

The formula

Steps = Total rise ÷ Maximum riser (rounded up)
Actual riser = Total rise ÷ Steps
Treads = Steps − 1 (the top tread is the upper floor)
Total run = Treads × Tread depth
Stringer length = √(Total rise² + Total run²)
Stair angle = atan(Total rise ÷ Total run)

The defaults — 7.75 in maximum riser and 10 in tread — are the US residential code (IRC) limits. If you raise the maximum riser above 7.75 in or drop the tread below 10 in, the result no longer meets that code: only do it if your local code allows it, and check before you cut any stringers.

Worked example

Example: a total rise of 105 in, 10 in treads, 7.75 in maximum riser.

Reference chart

Steps and riser height by total rise (10 in treads, 7.75 in maximum riser)
Total riseStepsRiser heightTotal run
96 in (8 ft)137.38 in120 in
100 in137.69 in120 in
105 in147.50 in130 in
108 in (9 ft)147.71 in130 in
120 in (10 ft)167.50 in150 in
132 in (11 ft)187.33 in170 in

Frequently asked questions

What do building codes require for stairs?

The US residential code (IRC 2021 §R311.7) limits risers to 7¾ in maximum and treads to 10 in minimum, with at least 6 ft 8 in of headroom. Codes are adopted locally and vary, so verify against your local code before building.

Why is the step count rounded up?

Risers on one stair must all be equal height — you cannot build 13.55 steps. Rounding up adds one step and drops each riser slightly, which keeps every step the same and the stair comfortable.

Why is there one fewer tread than riser?

The top step of a stair is the upper floor or landing itself, so a 14-riser stair has 13 treads plus the landing. Counting 14 treads would make the stair one tread too long.

What if my stair has a landing or a turn?

This calculator sizes one straight run. For a stair with a landing, split the total rise at the landing and calculate each run separately, then add the landing depth to the total run.

How many steps for a standard 8 ft ceiling?

An 8 ft floor-to-floor height is 96 in. At the 7.75 in maximum riser: 96 ÷ 7.75 = 12.39, rounded up to 13 steps, each 96 ÷ 13 = 7.38 in high, with 12 treads and a total run of 12 × 10 in = 120 in (10 ft) at the standard 10 in tread — the same figures in the table above.

Related calculators

How we verify this

International Residential Code (IRC) 2021 §R311.7 — risers max 7¾ in, treads min 10 in, headroom min 6 ft 8 in; stringer length by Pythagoras; codes are adopted locally — verify against your local code before building.