All Tools View Categories Blog About Contact Privacy

Stair Calculator: How to Calculate Rise, Run & Step Count

Stair Calculator: How to Calculate Rise, Run & Step Count

Stairs that are too steep or too shallow are uncomfortable and may fail inspection — the International Residential Code (IRC R311.7) limits riser height to 7.75 inches maximum and tread run to 10 inches minimum, with a comfort sweet spot around 7.5 inches rise and 10 inches run (17.5 inches total). Calculating rise, run, and step count from the total floor-to-floor height ensures the stairs fit, feel right, and pass code before the first stringer is cut. A stair calculator that takes total rise and desired rise/run and outputs step count, actual rise, total run, and stringer length removes the fractional math and code checks.

This A-to-Z guide explains how to calculate stairs — rise, run, step count, total rise/run, and stringer length, the IRC code, the comfort formula, and common layouts — with references to IRC 2021 R311.7.

TL;DR — Quick Answer: Steps = Total Rise ÷ Desired Rise (e.g., 105" ÷7.5" =14 steps). Actual Rise = Total Rise ÷ Steps. Total Run = Treads × Run (14 steps →13 treads ×10" =130" or 14×10=140" depending on top landing) and Stringer = √(Total Rise²+Total Run²). Enter total rise and desired rise/run into a stair calculator to get step count, actual rise, total run, and stringer instantly with code check (max 7.75" rise, min 10" run).
Stair calculator - rise, run and step count for 7.5x10 with 14 steps

Stair Anatomy — Rise, Run, Total Rise, Total Run, Stringer

Each step has a rise (vertical) and run (horizontal tread depth). Total rise is floor-to-floor height (e.g., 105 inches or 8.75 ft), measured vertically. Total run is the horizontal length the stairs occupy. Steps (risers) is total rise ÷ rise per step; treads is steps minus one if the top landing counts as the last tread (some count steps = treads). Stringer is the diagonal support: √(total rise² + total run²). Nosing is the tread overhang (0.75-1.25 inches) beyond the riser.

Stair anatomy - rise, run, total rise, run and stringer diagram

Code Requirements — IRC R311.7

IRC code requirements for stairs - max rise and min run
RuleCodeIdeal
Max riser height7.75" (R311.7.5.1)7-7.5"
Min tread run10" (R311.7.5.2)10-11"
Headroom6'8" min (R311.7.2)Maintain throughout
Width36" min42" comfortable

The calculator enforces max rise and min run and warns if outside code. Comfort formula: Rise + Run ≈ 17-18 inches (e.g., 7.5 + 10 = 17.5 ideal). Too steep (8+10=18) feels steep; too shallow (6+12=18) is long.

How to Calculate Stairs — Step-by-Step

How stair calculation works - steps, rise and total run

Example — 105" Total Rise, Target 7.5" Rise, 10" Run

  1. Step count: 105 ÷ 7.5 = 14 exactly → 14 risers. If not exact, round to the nearest whole number and recalculate actual rise: e.g., 105 ÷7 =15 steps → actual rise = 105÷15=7" (within code, adjust to keep 7-7.75").
  2. Total run: Treads × Run. With 14 risers, there are typically 13 treads if the top landing is the last tread, so 13×10=130" (10.83 ft); if counting the landing as a step, 14×10=140" (11.67 ft). The calculator shows both interpretations and lets you pick.
  3. Stringer length: √(105²+140²)=175" (14.58 ft) — the diagonal board length before cuts.
  4. Check comfort and code: 7.5+10=17.5 (ideal), rise 7.5 ≤7.75 ✓, run 10 ≥10 ✓.

What if the math isn't exact? Total rise rarely divides evenly by 7.5. The calculator finds the nearest step count that keeps rise within 7-7.75 and run ≥10, then shows the actual rise (e.g., 105" ÷14=7.5 exactly is lucky; 106" ÷14=7.57 still code, but 106 ÷15=7.07 is also code — choose the count that yields a rise closest to 7.5 for comfort).

Common Stair Layouts

  • Straight run: Total run is as calculated — needs 11-12 ft for the 105" example, plus landings.
  • L-shaped with landing: Split steps into two flights with a landing (e.g., 7+7), each with its own total run, plus landing depth (36" min).
  • U-shaped (switchback): Two parallel flights with a landing — total footprint is roughly half the straight run plus landing width.
Stair tips - comfort and code compliance

FAQs About Calculating Stairs

How do you calculate stair rise and run?

Total rise ÷ desired rise = steps (round to whole number), then actual rise = total rise ÷ steps. Total run = treads × run (treads = steps or steps−1 depending on landing). Stringer = √(total rise²+total run²).

What is a comfortable stair rise and run?

7-7.5" rise with 10-11" run, summing to 17-18". 7.5"×10" is the most common comfortable and code-compliant combination per IRC and ergonomic studies.

What is the maximum stair rise allowed by code?

7.75 inches per IRC R311.7.5.1. Some local codes allow 8" for secondary stairs — check the local AHJ.

How do you find the number of steps?

Divide total floor-to-floor height by the desired riser height and round to the nearest whole number, then recalculate the actual riser to stay within code. A stair calculator does this automatically.

Conclusion

Calculating stairs is total rise divided by desired rise for step count, with total run and stringer derived from run and Pythagoras, checked against 7.75" max rise, 10" min run, and the 17-18" comfort sum. Getting the count and actual rise right before cutting ensures the stairs fit, feel right, and pass inspection.

Enter total rise and desired rise/run to get step count, actual rise, total run, and stringer length instantly — with code and comfort checks.