Stair Calculator
Last Updated:
Work out the steps, riser height, tread depth, angle and stringer length for any rise, with a diagram, code checks and a step-by-step cut table. Free, no sign-up.
Quick answer: Divide the total rise by a 7 inch riser and round to a whole number. A 108 inch rise gives 15 risers of 7.2 inches, 14 treads of 10 inches, a 140 inch run (11 ft 8 in), a 35.75 degree angle and a 176.8 inch stringer line (14 ft 9 in). The 2021 IRC caps risers at 7 3/4 inches and sets treads at 10 inches minimum. Local code governs.
Stair calculator
Enter the total rise above to see your stair layout.
Stair layout
—
Code and comfort checks
| Step | Height (in) | Distance (in) |
|---|
📐 The stair formulas
Risers = total rise ÷ target riser, rounded, and never below total rise ÷ maximum riser, rounded up. Riser height = total rise ÷ risers. Treads = risers − 1. Total run = treads × tread depth. Angle = arctan(riser ÷ tread). Stringer line = √(total rise² + total run²). Bottom riser cut = riser − tread thickness.
How to use the stair calculator
Measure the total rise
Measure from the finished lower floor to the finished upper floor, in inches or millimeters. Include the flooring on both levels. This is the number everything else depends on.
Pick your limits
Leave the code on US IRC 2021 for the model-code limits, or choose My local code and type the maximum riser, minimum tread and minimum headroom from your own code.
Set the tread or the run
Type a tread depth, or switch to Available run if the stairs have to fit a fixed space. Leave the tread blank and the calculator uses the 10 inch IRC minimum.
Add the optional details
Enter a target riser height if you want steeper or gentler steps, the tread thickness for the bottom cut, and the floor thickness above if you want the headroom opening.
Read the layout
The big figure is the number of risers and the riser height. The tiles give treads, run, angle and stringer length, the checks tell you what passes, and the table lists every step.
How to calculate stairs: total rise and run
Every stair starts with one measurement, the total rise. That is the vertical distance from the finished lower floor to the finished upper floor. Divide it by the riser height you want and round to a whole number. That whole number is the count of risers, and the exact riser height is the total rise divided by it.
The run comes next. A flight always has one fewer tread than risers, because the upper floor is the last step. Multiply the tread depth by the number of treads and you have the total run, the horizontal space the stairs take. If you have a fixed space instead, divide the available run by the treads to get the tread depth, and the calculator's Available run option does exactly that.
Take 108 inches of rise. At a target riser of 7 inches, 108 ÷ 7 = 15.4, which rounds to 15 risers. Each riser is 108 ÷ 15 = 7.2 inches, or 7 3/16 inches to the nearest sixteenth. With 10 inch treads, the 14 treads give a run of 140 inches, which is 11 ft 8 in of floor.
Stair rise and run table for common heights
These figures use the calculator's defaults: a 7 inch target riser, never above the 7 3/4 inch IRC limit, and 10 inch treads. They are our arithmetic, so use them as a quick check, then enter your own measurement for the real answer.
| Total rise | Risers | Riser height (in) | Treads | Total run | Angle |
|---|---|---|---|---|---|
| 30 in (2 ft 6 in) | 4 | 7.50 (7 1/2) | 3 | 30 in (2 ft 6 in) | 36.9° |
| 36 in (3 ft) | 5 | 7.20 (7 3/16) | 4 | 40 in (3 ft 4 in) | 35.8° |
| 48 in (4 ft) | 7 | 6.86 (6 7/8) | 6 | 60 in (5 ft) | 34.4° |
| 60 in (5 ft) | 9 | 6.67 (6 11/16) | 8 | 80 in (6 ft 8 in) | 33.7° |
| 96 in (8 ft) | 14 | 6.86 (6 7/8) | 13 | 130 in (10 ft 10 in) | 34.4° |
| 108 in (9 ft) | 15 | 7.20 (7 3/16) | 14 | 140 in (11 ft 8 in) | 35.8° |
| 120 in (10 ft) | 17 | 7.06 (7 1/16) | 16 | 160 in (13 ft 4 in) | 35.2° |
The 30 inch row is a typical deck. The 96, 108 and 120 inch rows are roughly an 8, 9 and 10 foot floor-to-floor height, but your real rise is the ceiling height plus the floor structure above it, so measure it. Notice that the riser heights change only a little from row to row. The count of steps does the work, and the riser stays near 7 inches.
Stair code limits: what the IRC says
The calculator checks every layout against the 2021 International Residential Code, Chapter 3, section R311.7, which we read on November 24, 2026. The IRC is a US model code. Cities and states adopt it with changes, so the number that binds you is the one your building department publishes.
| Item | Limit | Section |
|---|---|---|
| Riser height | 7 3/4 in (196 mm) maximum | R311.7.5.1 |
| Riser uniformity | Tallest riser at most 3/8 in (9.5 mm) over the shortest in a flight | R311.7.5.1 |
| Tread depth | 10 in (254 mm) minimum, same 3/8 in uniformity rule | R311.7.5.2 |
| Nosing | 3/4 to 1 1/4 in (19 to 32 mm) projection, not required where the tread is 11 in (279 mm) or deeper | R311.7.5.3 |
| Vertical rise of one flight | 12 ft 7 in (3,835 mm) maximum between floors or landings | R311.7.3 |
| Headroom | 6 ft 8 in (2,032 mm) minimum, measured vertically from the line along the nosings | R311.7.2 |
| Width | 36 in (914 mm) clear above the handrail, and 31 1/2 in (787 mm) at and below handrail height with one handrail | R311.7.1 |
| Landing | A floor or landing at the top and bottom, as wide as the flight, 36 in (914 mm) deep on a straight run (an interior flight with no door swinging over it needs none at the top) | R311.7.6 |
| Handrail | On at least one side of any flight with four or more risers, 34 to 38 in (864 to 965 mm) high | R311.7.8 |
The calculator tests the riser, the tread, the flight rise and the headroom, because those come straight from your numbers. Width, landings and handrails depend on the build, so they sit in the table for you to check by hand. Spiral stairs and winders have their own rules in the same section and the calculator does not cover them.
Other countries write their own rules. The UK has Approved Document K, Australia has the National Construction Code and Canada has the National Building Code, and each can differ from the IRC and from region to region. We have not published their numbers here. Choose My local code in the calculator and type your own limits.
Stair stringer length and cut layout
The stringer is the sloped board that carries the treads. Its straight-line length is the square root of the total rise squared plus the total run squared. For the 108 inch example that is √(108² + 140²) = 176.8 inches, about 14 ft 9 in. The board must be longer than that line, because the cuts take wood off both ends, so order the next standard length. Lumber is commonly sold in 2 foot steps (common practice), which makes a 16 foot board the pick for this stair.
The bottom riser needs a trim. A tread sits on every notch except the floor, so the first step would end up one tread thickness taller than the rest. Cut the bottom riser shorter by the tread thickness: with a 1 inch tread on a 7.2 inch riser, the first cut is 6.2 inches. Enter the tread thickness in the calculator and it gives you this number.
If you use a flush mount stringer, one that meets the upper floor flush, the top riser is the same height as all the others, which is how this calculator lays out the stair. Check how your stringer attaches at the top before you cut, and mark the cut lines on the board with a framing square set to the riser and tread, stepped along the board.
Stairs and headroom: how long the floor opening must be
Where stairs rise under an upper floor, the opening in that floor decides the headroom. The IRC measures 6 ft 8 in vertically from the line along the nosings up to the underside of whatever is above. Enter the floor thickness above the stairs, joists and finish together, and the calculator works out how far back from the top riser the opening has to reach.
With 108 inches of rise, a 7.2 inch riser, 10 inch treads and a 10 inch floor, the opening has to be 125 inches long, which is 10 ft 5 in measured back from the top riser. A shorter opening leaves you ducking at the top. It is easy to check on paper before the joists are cut and a pain to fix afterwards.
Comfortable stairs: the 7-11 rule and 2R + T
Code sets the limits. Comfort sits well inside them. Builders often target a 7 inch riser with an 11 inch tread, the 7-11 rule, and many check that riser plus tread lands between 17 and 18 inches, or that twice the riser plus the tread lands between 24 and 25 inches. These are common practice, not code. The calculator reports them as notes and never as a failure.
A steeper stair saves floor space and tires the legs. Raise the riser to 7.75 inches with a 10 inch tread and the 2R + T figure climbs to 25.5, past the comfort range. A shallower stair is kinder and takes more room. Try a target riser of 6.5 and see how the run grows.
Deck stairs, porch steps and stairs with a landing
Deck stairs follow the same arithmetic. Measure from the ground, or from the top of the pad, to the finished deck surface. A 30 inch deck gives 4 risers of 7.5 inches and 3 treads, so 30 inches of run at 10 inch treads. Put the stringer's foot on a firm base such as a concrete pad, and measure the total rise from the top of that surface, not from the soil. Our concrete calculator sizes the pad.
Taller stairs need a landing. A flight may not rise more than 12 ft 7 in without one, and a landing also lets a stair turn. Split the rise between the flights and run the calculator once for each. The landing is the floor at the top of the lower flight and the floor at the bottom of the upper flight, so it adds no step. Add its depth to the plan: at least 36 inches in a straight run under the IRC. This calculator handles a stair with a landing one flight at a time. If the foot of the stair sits on bare ground, our gravel calculator sizes the compacted base.
Stair calculator in millimetres: UK, Australia and Canada
Switch the units to millimetres and every field relabels itself. Values you have already typed are converted at 25.4 millimetres to the inch. A 2,700 mm rise with a 175 mm target riser gives 15 risers of 180 mm, 14 treads of 254 mm, the IRC minimum, a run of 3,556 mm, a 35.3 degree angle and a stringer line of 4,465 mm.
The default checks in metric still use the US IRC figures (196 mm riser, 254 mm tread), converted as printed in the code. If your project is in the UK, Australia or Canada, choose My local code and enter the maximum riser, minimum tread and minimum headroom from your own code. The limits vary by building class, region and edition, so we leave the numbers to you.
Common mistakes with stair layouts
The most common one is the off-by-one. A flight has one more riser than treads, so 15 risers means 14 treads. Count the treads for the run and the risers for the height, and the stairs come out right.
Measuring to the unfinished floor is the second. If the lower floor will take tile and the upper floor hardwood, the rise changes by the difference. Measure to finished surfaces on both levels, and re-measure after the flooring decision is made. If the treads will be tiled, our tile calculator counts the tiles. The third is letting the first riser run tall because the tread thickness was ignored, which the 3/8 inch uniformity rule turns into a failed inspection. The fourth is mixing units, typing millimeters into an inch field. Check that the answer looks like a staircase: a riser near 7 inches, or 180 mm.
Finally, an estimate is not an inspection. The calculator checks the geometry. Your building department checks the stair, and a licensed builder or engineer should check anything structural.
Frequently Asked Questions
Sources & Methodology
The code limits on this page come from this publication, read on November 24, 2026:
Risers = the larger of the total rise divided by the maximum riser, rounded up, and the total rise divided by the target riser, rounded to the nearest whole number. Riser = total rise ÷ risers. Treads = risers − 1. Run = treads × tread depth. Angle = arctan(riser ÷ tread). Stringer line = √(rise² + run²). The default 7 inch target riser, the riser-plus-tread and 2 × riser-plus-tread comfort ranges and the lumber-length remark are common practice, not code. Imperial answers are shown to the nearest 1/16 inch. Figures are rounded to two decimals.