Stair Calculator
Stairs do not forgive small mistakes: miss a quarter inch on each step and by the fifth tread you have a real tripping hazard. This stair calculator turns one total rise measurement into a full cut list, riser count, each riser's exact height, total run, stringer board length and stair angle. Enter your total rise, a target riser height (7 inches is the comfortable residential norm) and your tread depth, and you get hard numbers instead of guesswork. The diagram shows the layout; the figures below are what you carry to the saw. Results follow standard residential building code limits, a maximum 7 3/4 inch riser height, minimum 10 inch tread depth and 6 foot 8 inch headroom clearance, with full stringer layout dimensions for cutting.
Last updated: October 22, 2026
Your result
Keep every riser identical, most codes allow only 3/8 in of variation. Check your local code for maximum riser height and minimum tread depth.
The formula
Risers = total rise ÷ target riser height, rounded to wholeActual riser height = total rise ÷ risersTreads = risers − 1Total run = treads × tread depthStringer length = √(total rise² + total run²)
A worked example
Say the total rise is 36 inches and you are aiming for 7 inch risers: you get 5 risers at exactly 7.20 inches each. With 4 treads at 11 inches deep, the total run is 44 inches, the stringer board is 56.85 inches long, and the stair angle is 39.3°.
More about the Stair Calculator
Measure the rise correctly or nothing else matters
Total rise means floor to floor, finished surface to finished surface, not subfloor to subfloor. If the flooring is not down yet, add its thickness now: a 3/4-inch hardwood layer will change every single riser if you forget it.
Take the measurement in two or three spots and keep the largest. Floors slope, and stairs built to the smaller number end up with one step taller than the rest, exactly the defect building codes exist to prevent.
The numbers behind the layout
First comes the riser count: total rise divided by your target riser height, rounded to whole steps. Then every riser is re divided so they are all exactly equal. A 36 inch rise with a 7 inch target gives 5 risers at exactly 7.20 inches each, matching risers matter more than landing on 7.00, because uneven risers are what cause trips.
Treads are risers minus 1, the top tread is the landing itself. Total run is treads times tread depth: 4 treads at 11 inches gives 44 inches of run. And the stringer length is just the hypotenuse: √(36² + 44²) = 56.85 inches of board.
Code, lumber, and the details that bite
Most codes cap risers around 7.75 inches, demand at least 10 inch treads, and allow only about 3/8 inch of variation between the tallest and shortest riser. Check your local code before building, the calculator gives you geometry, not a permit.
Buy 2×12 lumber for stringers. Cutting the step notches removes a lot of wood, and codes want at least 5 inches of uncut 'throat' left, a 2×10 often cannot manage that on taller stairs. Cut one stringer first, test fit it, then use it as the template for the rest.
Headroom and width: the forgotten dimensions
Building codes typically want at least 6 feet 8 inches of headroom above every tread, measured straight up from the tread nose. This is where DIY stairs fail most often, a staircase that fits perfectly in plan can still clip heads where it ducks under a landing or a beam.
For width, 36 inches is the common residential minimum, but 42 to 48 inches feels dramatically better when you are carrying furniture. If this is the main stair, go wide. You will curse a narrow stair every time a mattress needs to go up.
Laying out the stringer without mistakes
Do not trust a tape measure alone to mark the notches. A framing square with stair gauges (little brass stops) set to your riser and tread dimensions lets you trace each step identically, slide, mark, repeat. Faster and far more accurate than measuring every notch by hand.
Cut just outside the lines with a circular saw, then finish the corners with a handsaw or jigsaw. Overcut corners weaken the stringer exactly where the load concentrates. And always cut the notches before installing, never try to trim a stringer in place.
Railings and balusters: plan them now
Stairs need handrails, codes typically require them on at least one side (both sides for wide stairs), at 34 to 38 inches above the tread noses. Planning the rail while the calculator is open beats retrofitting it later.
Baluster spacing follows the 4 inch sphere rule: no gap should pass a 4 inch ball (think of a child's head). That usually means balusters every 4 to 5 inches. Buy them with the stringer lumber, matching wood later is a lottery.
Stairs and building code: the non negotiables
Codes cap riser height (usually 7 to 7.75 inches max) and mandate minimum tread depth (10 to 11 inches), and critically, the tallest and shortest riser in a flight must differ by no more than 3/8 inch. Uneven risers cause trips, and inspectors measure every one.
Headroom needs 6'8" minimum above the tread noses, and stair width is typically 36 inches minimum for residential. These are not suggestions, a failed inspection means rebuilding.
The calculator gives you code friendly dimensions, but codes vary by jurisdiction, verify yours before cutting stringers. An hour with the code book beats a weekend of rebuilding stairs.
A 108-inch floor to floor example, step by step
Suppose the finished floor to floor height is 108 inches. Dividing by a target riser of 7.5 inches gives 14.4, which rounds up to 15 risers, and re dividing gives the true riser height: 108 divided by 15 is exactly 7.2 inches each. That re division is the step amateurs skip. Every riser must be 7.2 inches, not fourteen at 7.5 and one short step at the top, which is precisely the irregularity that trips people in the dark.
Treads follow directly: 15 risers need 14 treads, because the upper floor is the last step. At an 11 inch tread depth the total run is 14 times 11, which is 154 inches, or 12 feet 10 inches of horizontal space. Check the angle the calculator reports from the same numbers: the rise over the run of one step, 7.2 against 11, gives about 33 degrees, squarely in the comfortable band, and a good cross check that the layout will feel right underfoot.
The comfort formula that catches awkward layouts
Builders sanity check a layout with a simple relationship: twice the riser height plus one tread depth should land between about 24 and 26 inches, matching the natural stride on stairs. The worked example above passes, twice 7.2 plus 11 is 25.4 inches. When a design fails the test, it fails in a predictable direction: a tall riser with a shallow tread scores high and feels like climbing a ladder, while a short riser with a deep tread scores low and feels like a ramp you must shuffle up.
Use the formula when floor space squeezes you, because it tells you which compromise hurts least. If the run available forces a choice, trimming tread depth slightly while keeping risers moderate usually stays climbable, while pushing risers toward the code maximum to save space produces stairs visitors complain about. And never steal the missing space from just one step: if the layout must change, change every riser equally through the calculator and keep the flight uniform.
How to use the Stair Calculator
- Measure the total rise in inches, vertically, finished floor to finished floor.
- Enter your target riser height; 7 inches is the common residential standard.
- Enter the tread depth you plan to use, 11 inches suits most interior stairs.
- Press Calculate, then cut your stringers to the riser, tread and stringer figures shown.
Frequently asked questions
What is the standard riser height and tread depth?
Most codes allow a maximum 7.75 inch riser and a minimum 10 inch tread, and 7 × 11 inches is the comfortable residential norm. Do check your local building code before cutting, though, it varies.
Why is there one fewer tread than risers?
Because the top 'tread' is the floor or deck landing you step onto. It is already there. So you only build risers minus one treads, and the calculator accounts for this automatically.
What angle should stairs be?
Comfortable stairs sit between 30° and 37°. Steeper than about 40° starts to feel like a ladder, so if your angle lands high, see whether the space allows a longer run.
Can I change the number of risers the calculator suggests?
You can, just keep every riser identical. Codes typically allow only about 3/8 inch of variation between the tallest and shortest, and uneven risers are the single biggest cause of stair trips.
How do I measure total rise for a deck staircase?
Hook your tape to the finished surface at the top of the stairs, the actual walking surface, not the bare frame, and measure straight down to where the bottom step will land. If the deck boards are not down yet, lay one on the frame first so the height includes the decking thickness. That single number is all the calculator above needs to start.
How many stringers does my staircase need?
Most deck stairs work well with stringers spaced about 12 to 16 inches apart, and wider stairs often add a center stringer to stop treads from flexing. If you are using composite decking for treads, follow the manufacturer's spacing, some brands want them closer together than wood does. The calculator above gives you the cut layout; use it once per stringer and cut them all alike.
How do I keep every step exactly the same height?
Divide your total rise by the number of risers to get the exact unit rise, then lay out every step from that number instead of a rounded guess. Even a quarter inch fudge per step compounds into a real tripping hazard by the fifth tread. The calculator above does this division for you and keeps every riser identical by construction.
How do you calculate the number of steps in a staircase?
Divide the total height to climb (in cm) by the desired riser height, usually 17 to 18 cm, and round to the nearest whole number for the number of risers. Then solve for the actual riser height by dividing total height by that number. Finally apply Blondel's law: 2 risers + 1 tread should total 60 to 64 cm for a comfortable stair.
Does the tread depth include the nosing overhang?
The figure that matters for layout is the going, the horizontal distance from the face of one riser to the face of the next. A tread board is usually cut a little deeper than the going so its nosing overhangs the riser below by roughly an inch, giving your heel clearance on the way down. When you enter tread depth in the calculator, use the going, then add the overhang when you order or cut the tread boards themselves.
How much headroom do I need above the stairs?
Plan for at least 6 feet 8 inches of clear headroom, measured vertically from the line of the tread nosings up to the ceiling or the edge of the floor opening above, and check your local code, since the required figure is a common inspection point. The tight spot is usually where the flight passes under the upper floor edge. If headroom fails, lengthening the floor opening, not steepening the stairs, is the fix that keeps the flight safe and legal.

