Stair Calculator
Enter your measurements to estimate risers, treads, total run, stair angle, and stringer length.
Note: This tool provides planning estimates. Always verify against local building code and structural requirements.
Accurate stair math is one of the most important parts of safe construction. A small mistake in rise, run, or stair angle can make steps uncomfortable, non-compliant, or unsafe. Whether you are planning a deck stair, interior staircase, or renovation, the basic formulas are straightforward once you know what to measure.
Why stair calculation matters
Good stairs balance comfort, safety, and space. If risers are too tall, climbing feels tiring. If treads are too short, descending becomes risky. Building codes exist to keep these dimensions inside proven ranges, but you still need to calculate a layout that fits your exact floor height and footprint.
- Consistent riser height prevents trips.
- Adequate tread depth improves foot placement.
- Proper angle creates a comfortable walking rhythm.
- Correct stringer length helps with precise cutting and material planning.
Key measurements to gather first
1) Total rise
Total rise is the vertical distance from the finished lower floor to the finished upper floor. Measure carefully because every error is divided across each step.
2) Target riser height
This is your preferred step height. The calculator uses this value to determine how many risers are needed. The final riser value is adjusted so all risers are equal.
3) Target tread depth
Tread depth is the horizontal stepping surface. Larger treads generally improve comfort, but they increase total run and required floor space.
4) Available run and width
Before cutting materials, confirm the staircase fits in the available footprint. Width does not affect riser count, but it affects usability and material costs.
Core stair formulas
The calculator uses standard geometry and common stair layout rules:
- Number of risers = ceil(total rise ÷ target riser)
- Actual riser height = total rise ÷ number of risers
- Number of treads = number of risers − 1 (typical straight stair)
- Total run = number of treads × target tread depth
- Stair angle = arctan(total rise ÷ total run)
- Stringer length = √(total rise² + total run²)
Worked example
Suppose your floor-to-floor height is 108 inches, with a target riser of 7 inches and target tread depth of 10.5 inches.
- Ris ers = ceil(108 ÷ 7) = 16
- Actual riser = 108 ÷ 16 = 6.75 inches
- Treads = 16 − 1 = 15
- Total run = 15 × 10.5 = 157.5 inches
From there, angle and stringer length come from basic right-triangle math. This kind of quick check can prevent costly recuts.
Comfort and code checks
Different jurisdictions have different rules, but these ranges are commonly referenced in residential projects:
- Riser height often limited to around 7.75 in (about 196 mm) maximum.
- Tread depth often at least 10 in (about 250 mm).
- Typical comfortable stair angle is around 30° to 37°.
A useful comfort rule is the classic proportion: 2R + T. In imperial units, many builders aim near 24–25 inches. In metric, many aim around 600–650 mm. This helps create a natural walking pace.
Common mistakes to avoid
Unequal first and last step
Include finished flooring thickness in your total rise. If you forget this, one step may end up noticeably different.
Using rounded values too early
Keep full precision while calculating. Round only at the end to avoid cumulative errors.
Ignoring available footprint
A comfortable tread depth may produce a run too long for your space. If needed, consider a landing, turn, or alternate configuration.
Skipping local code confirmation
This is the biggest one. Always verify dimensions, handrail requirements, guards, and headroom with local code officials.
Practical planning checklist
- Measure total rise from finished floor to finished floor.
- Select a target riser and tread based on comfort and code.
- Calculate riser count first, then actual riser height.
- Confirm total run fits your available space.
- Check angle, stringer length, and material quantities.
- Re-check all dimensions before cutting stringers.
Final thoughts
Stair design combines simple math with strict consistency. If you calculate carefully, keep every riser uniform, and verify local rules, you will build stairs that feel safe and comfortable for years. Use the calculator above for a fast layout draft, then finalize with a site-specific code check before construction.