How to use the stair calculator
- Measure the Total rise from the finished lower floor (or ground) to the finished upper floor or deck surface.
- Set the Maximum riser height; the IRC allows 7¾ in in homes.
- Enter the Tread depth, at least 10 in under the IRC.
- Enter the Stair width to get the number of stringers.
- Optionally add the price of a 2×12 board.
How it works
Every riser in a flight must be the same height, so the total rise is divided evenly after rounding the step count up. The IRC allows no more than ⅜ in difference between the tallest and shortest riser.
There is one fewer tread than risers because the upper floor serves as the top step.
Risers = total rise ÷ maximum riser, rounded up
Riser height = total rise ÷ risers
Treads = risers − 1; total run = treads × tread depth
Stringer length = √(total rise² + total run²)
Stringers = stair width ÷ 16 in, rounded up, + 1
Worked example
A 108 in (9 ft) floor-to-floor rise ÷ 7.75 in = 13.9, so use 14 risers of 7.714 in (about 7 ¾ in).
13 treads at 10 in give a 130 in run. The stringer is √(108² + 130²) = 169 in, or 14.08 ft, cut from 16 ft 2×12s.
A 3 ft wide stair needs 4 stringers at no more than 16 in apart.
Tips before you buy
- Lay out stringers with a framing square and stair gauges set to the riser and tread.
- Subtract one tread thickness from the bottom of the stringer so the first and last risers match the rest.
- Measure the total rise in two or three places; floors and ground are rarely level.
Frequently asked questions
How many steps do I need?
Divide the total rise by your maximum riser height and round up. A 108 in rise with 7¾ in risers needs 14 risers and 13 treads.
What is the code for stair risers and treads?
The International Residential Code allows risers up to 7¾ in and requires treads of at least 10 in, with headroom of 6 ft 8 in. Your local code may differ.
How long should stair stringers be?
Use the Pythagorean theorem: the square root of total rise squared plus total run squared. Buy boards about a foot longer to allow for the top and bottom cuts.
How many stringers do I need?
Space stringers no more than 16 in apart: a 36 in stair needs 4 and a 48 in stair needs 4 to 5, depending on the tread material.
Results are estimates based on the measurements you enter and typical material properties, and costs are planning estimates: actual costs vary. Products vary, so check quantities with your supplier and follow product labels and your local building codes. Read the full disclaimer. Last reviewed October 9, 2026.