How to Calculate Stairs
To calculate stairs, divide the total rise by a target riser height of about 7½ inches, round to a whole number of risers, then divide the rise by that number to get the actual riser height. A 108-inch rise from floor to floor gives 14 risers of 7 11/16 in, 13 treads and 130 inches (10' 10") of total run with 10-inch treads.
The five measurements
- Total rise: the vertical distance from the finished lower floor to the finished upper floor. Everything else follows from it.
- Riser: the height of one step, measured between the tops of two treads.
- Tread depth: the horizontal distance from one nosing to the next. A tread board with a 1-inch nosing is 1 inch deeper than this number.
- Total run: the horizontal length of the stair, from the face of the bottom riser to the face of the top riser.
- Stringer: the sloped board that carries the treads, usually notched from 2×12 lumber.
How to calculate stairs step by step
- Measure the total rise from finished floor to finished floor. The example is 108 in.
- Divide by a target riser of 7½ in and round to the nearest whole number: 108 ÷ 7.5 = 14.4, so 14 risers.
- Divide the rise by the riser count to get the actual riser: 108 ÷ 14 = 7.714 in, or 7 11/16 in to the nearest 1/16 in. Confirm it is no more than 7¾ in.
- Count the treads as one fewer than the risers, because the upper floor is the top step: 14 − 1 = 13 treads.
- Multiply treads by tread depth for the total run: 13 × 10 in = 130 in (10' 10"). Check that this fits the space.
- Find the stringer length with the Pythagorean theorem: √(108² + 130²) = 169.01 in (14' 1").
- Check the angle: atan(7.6875 ÷ 10) = 37.6°, just under the steepest stair the code allows.
risers = round(rise ÷ target) · riser = rise ÷ risers · treads = risers − 1
run = treads × tread · stringer = √(rise² + run²) · angle = atan(riser ÷ tread)
The Stair Calculator does this from your total rise and warns you when the riser, tread or headroom misses a code limit.
Code limits for house stairs
According to the 2021 International Residential Code (IRC), Section R311.7, stairs in one- and two-family homes must meet the limits below. Many towns adopt the IRC with local amendments, so your building department has the final word.
| Item | Limit | Section |
|---|---|---|
| Riser height | 7¾ in maximum | R311.7.5.1 |
| Tread depth | 10 in minimum, nosing to nosing | R311.7.5.2 |
| Variation in a flight | 3/8 in maximum between the tallest and shortest riser, and between the deepest and shallowest tread | R311.7.5.1, R311.7.5.2 |
| Headroom | 6 ft 8 in minimum, measured vertically from the line of the nosings | R311.7.2 |
| Width | 36 in minimum clear above the handrail | R311.7.1 |
| Nosing | ¾ to 1¼ in projection; not required when treads are at least 11 in deep | R311.7.5.3 |
| Rise of one flight | 151 in maximum between floors or landings | R311.7.3 |
| Handrail | At least one side when there are four or more risers, 34 to 38 in high | R311.7.8 |
Together, the riser and tread limits set the steepest stair the code allows: 7¾-inch risers on 10-inch treads make an angle of 37.8°.
The comfort rule: 2R + T
A stair can meet code and still feel wrong. A long-standing rule of thumb says two risers plus one tread should equal 24 to 25 inches, close to a normal walking stride.
2 × riser + tread ≈ 24 to 25 in
The worked example gives 2 × 7 11/16 in + 10 in = 25 3/8 in, a little steep. With a 7¼-inch target and 10½-inch treads, the same 108-inch rise becomes 15 risers of 7 3/16 in and 14 treads, and the rule gives 24 7/8 in. The cost is space: the run grows from 130 to 147 in.
Stair layouts for common floor heights
Total rise is not the ceiling height. The floor framing, subfloor and floor finishes add to it, so measure it on site. These layouts use a 7½-inch target riser and 10-inch treads.
| Total rise | Risers | Treads | Total run | Stringer | Angle | 2R + T |
|---|---|---|---|---|---|---|
| 96 in | 13 × 7 3/8 in | 12 | 120 in | 153.7 in (12' 9 11/16") | 36.4° | 24 3/4 in |
| 100 in | 13 × 7 11/16 in | 12 | 120 in | 156.2 in (13' 0 3/16") | 37.6° | 25 3/8 in |
| 105 in | 14 × 7 1/2 in | 13 | 130 in | 167.1 in (13' 11 1/8") | 36.9° | 25 in |
| 108 in | 14 × 7 11/16 in | 13 | 130 in | 169.0 in (14' 1") | 37.6° | 25 3/8 in |
| 112 in | 15 × 7 7/16 in | 14 | 140 in | 179.3 in (14' 11 5/16") | 36.6° | 24 7/8 in |
| 117 in | 16 × 7 5/16 in | 15 | 150 in | 190.2 in (15' 10 1/4") | 36.2° | 24 5/8 in |
| 120 in | 16 × 7 1/2 in | 15 | 150 in | 192.1 in (16' 0 1/16") | 36.9° | 25 in |
Riser heights are rounded to the nearest 1/16 in. The top floor serves as the last tread. Stringer length is the diagonal of the flight, before extra for cuts.
How to lay out and cut a stringer
- Buy stock longer than the stringer length. For the 169.01-inch example, a 14-ft board is too short, so buy 16-ft 2×12s.
- Clamp stair gauges to a framing square: the actual riser on the tongue (the short leg) and the tread depth on the blade (the long leg).
- Sight down the board and place it crown up, so the load pushes the bow flat.
- Step off each riser and tread from the bottom, sliding the square along the edge. Mark the bottom level cut where the stringer sits on the floor and the top plumb cut where it meets the upper floor framing.
- Drop the stringer by one tread thickness. Cut that much off the bottom so the first and last risers come out equal. With 1-inch treads, the first riser on the stringer is 6 11/16 in.
- Cut the notches with a circular saw, stop at the lines and finish the corners with a handsaw. Overcutting weakens the stringer.
- Test-fit the first stringer, check each tread for level, then use it as the pattern for the rest.
Watch the rounding when you step off. 13 risers at 7 11/16 in leave the top riser at 8 1/16 in, which is over the 7¾-inch limit. Lay out at 1/32 in instead: 7 23/32 in per riser leaves a top riser of 7 21/32 in. The Feet and Inches Calculator handles this fraction math.
Common mistakes
- Forgetting the floor finish. Measure between finished floors. If ¾-inch flooring goes on the upper floor after the stair is built, the top riser grows from 7 11/16 in to 8 7/16 in. A finish on only one floor changes one riser by its full thickness.
- Adding a tread at the top. The upper floor or landing is the top step. An extra tread makes the stair one step longer and puts the top nosing in the wrong place. The IRC also requires a floor or landing at the top and bottom of each stair, at least 36 inches deep in the direction of travel (Section R311.7.6, with an exception at the top of some interior stairs), and a landing partway up any flight that rises more than 151 inches.
- Getting the first riser wrong. If you skip the drop, the first step is one tread thickness too tall and the top step too short. Outdoors, measure the rise where the bottom step will land, not under the deck edge. If the ground slopes, run the numbers again with the new rise.
- Rounding down past the limit. Rounding to the nearest riser count can land above 7¾ inches. A 40-inch deck rise at a 7½-inch target rounds to 5 risers of 8 inches, which is over the limit. Round up to the count that keeps every riser legal instead: 40 ÷ 7.75 = 5.16, so 6 risers of 6 11/16 in. The calculator does this automatically and says so in its assumptions.
- Ignoring headroom. Check the edge of the floor opening above the stair. It must clear 6 ft 8 in measured straight up from the line of the nosings.
For deck stairs, the Deck Calculator counts the boards for the deck itself, and the Concrete Calculator sizes a pad for the bottom landing.
Frequently asked questions
How many steps do I need for 8 feet?
A 96-inch total rise needs 13 risers of 7 3/8 in and 12 treads. With 10-inch treads the run is 120 in (10'). Measure from finished floor to finished floor; an 8-foot ceiling does not mean an 8-foot rise.
What is the maximum riser height for stairs?
The maximum is 7¾ inches. According to the 2021 IRC (Section R311.7.5.1), no riser may exceed 7¾ inches, and the tallest riser in a flight may not exceed the shortest by more than 3/8 inch. The minimum tread depth is 10 inches.
How do I calculate the length of a stair stringer?
Take the square root of total rise squared plus total run squared. For a 108-inch rise and 130-inch run, that is 169.01 in (14' 1"). Buy the next standard lumber length up, 16 ft here, to leave room for the cuts.
Does the top floor count as a tread?
Yes. The upper floor or landing works as the last tread, so a stair has one fewer tread than risers: 14 risers and 13 treads for a 108-inch rise.
How much floor space does a staircase need?
A straight stair needs its total run plus clear floor at each end. For a 108-inch rise with 10-inch treads, the run is 130 in, and the 2021 IRC (Section R311.7.6) requires a landing or floor at least 36 inches deep at the top and bottom.
The formula, worked example and tables on this page are generated from the same calculation engine as the calculator, which is checked by automated reference tests. Last reviewed 20 November 2026 by the Solosoft team. Results are planning estimates, not engineering or code approval. See the calculation disclaimer.