Home & DIY
Stair Calculator (Rise, Run & Stringer)
Design a staircase from the total rise: number of steps, riser height, tread depth, total run, stringer length and angle — checked against the IRC code limits.
How to use
- 1Measure the total rise from finished floor to finished floor.
- 2Enter the maximum riser height and tread depth you want (IRC: risers ≤ 7¾ in, treads ≥ 10 in).
How it's calculated
Risers = ⌈total rise ÷ max riser⌉; riser height = total rise ÷ risers. Treads = risers − 1. Total run = treads × tread depth. Stringer = √(rise² + run²). Comfort check: 2 × riser + tread ≈ 24–25 in.
Frequently asked questions
What are the code limits for residential stairs?
The US International Residential Code allows a maximum riser of 7¾ in and a minimum tread of 10 in, with variation between steps under ⅜ in.
Why is there one fewer tread than risers?
The top 'step' is the upper floor itself, so a staircase with 14 risers has 13 treads.
What's the most comfortable stair?
Around a 7 in riser and 11 in tread; the 2R + T = 24–25 in rule matches a normal walking stride.
Why the calculator works backward from the maximum riser
You can't just divide total rise by a target riser height and get a usable stair, because every riser in a flight has to be the same height — code requires less than 3/8 in variation between steps, since an inconsistent riser height is a well-documented tripping hazard. So the tool rounds the number of risers up to whatever whole number keeps each one at or under your maximum (⌈rise ÷ maxRiser⌉), then divides the total rise evenly across that many risers — which is why the actual riser height that comes out is usually a few hundredths of an inch different from the maximum you entered, not equal to it.
Worked example: Stair Calculator
A total rise of 108 in with a 7¾ in maximum riser needs ⌈108 ÷ 7.75⌉ = 14 risers, giving an actual riser height of 108 ÷ 14 ≈ 7.714 in — just under the maximum, evenly split. With 14 risers there are 13 treads (the top step is the upper floor itself, not an extra tread), and at 10.5 in tread depth that's a total run of 13 × 10.5 = 136.5 in. The stringer — the diagonal board the treads attach to — needs to span the hypotenuse of that rise and run, about √(108² + 136.5²) ≈ 174 in.
Why the 2R + T comfort rule matters beyond code minimums
A staircase can meet IRC code limits (riser ≤ 7¾ in, tread ≥ 10 in) and still feel awkward to walk if the proportions don't match a natural stride — the rule of thumb that twice the riser plus the tread should land around 24-25 in exists because that range matches how most people's legs naturally move between a vertical step and a horizontal one. A stair built to the exact legal maximum riser with the exact legal minimum tread, for instance, often produces a steeper, more tiring stair than one built closer to the 7 in riser / 11 in tread comfort zone, even though both are equally code-compliant.
What this calculator doesn't verify
This handles the geometry of a straight flight of stairs — it doesn't check headroom clearance above the stairs, handrail height and graspability requirements, or landing size, all of which the IRC also regulates and all of which depend on the specific space the staircase sits in, not just the rise and run numbers. A full code check needs the actual drawing, not just these dimensions in isolation.
Related tools
- Dehumidifier, Air Purifier & Lighting Size Calculator
Size appliances for a room: dehumidifier capacity (pints/day), air purifier CADR for its square footage, and the lumens of light the room needs.
- Moving Box & Storage Unit Calculator
Estimate how many moving boxes you need by home size and packing style, and the storage unit size that fits your belongings.
- Concrete Calculator (Slabs, Footings & Columns)
Calculate concrete for a slab, footing or round column in cubic yards and cubic metres — and how many 40, 60 or 80 lb bags you need.
- Paint Calculator
Estimate how much paint you need for a room's walls (and ceiling) in gallons or litres, allowing for doors, windows and the number of coats.
- Sample Size Calculator (Surveys & A/B Tests)
Find the sample size you need for a survey (margin of error) or an A/B test (minimum detectable effect) at your chosen confidence and power.
- Air Conditioner Size (BTU) & Heating Calculator
Find the right air conditioner size in BTU for a room using the ENERGY STAR chart, with adjustments for sun, occupants and kitchens — plus a heating BTU estimate by climate.