Stair Calculator
Calculate riser height, tread depth, stringer length, angle and number of steps. Includes IRC guidelines and live diagram.
Last updated: September 2026 · Geometry formulas verified · General IRC residential references (confirm local amendments)
Best for straight-run stairs with uniform risers and treads. Enter finished floor-to-floor height for total rise. This tool estimates geometry (riser, run, stringer line, angle) — not structural design, handrail layout, or a permit-ready plan. Local IRC amendments may differ; always confirm with your building department.
Stair Stringer Layout Diagram
This diagram shows the basic layout of a stair stringer with rise, run, and stringer length.
Quick Answer: Rise, Run & Stringer Formula
Number of risers ≈ total rise ÷ preferred riser height (often 7–7.5"), then adjust so each riser is equal.
Number of treads = number of risers − 1 (when the upper floor is the last step).
Total run = number of treads × tread depth.
Stringer (stair-line) = √(total run² + total rise²) — theoretical hypotenuse, not final board length.
- Typical IRC residential max riser ≈ 7.75"; min tread ≈ 10" (confirm local code)
- Comfort: rise + run ≈ 17–18", or 2×rise + run ≈ 24–25"
- Measure finished floor to finished floor for total rise
How to Use This Stair Calculator
- Enter the Total Rise — vertical height from finished lower floor to finished upper floor (include flooring, tile, or decking)
- Optionally enter a preferred riser height (most comfortable is 6.5" – 7.75"; default 7.5")
- Enter desired tread depth (usually 10" – 11"; default 10")
- Leave Number of Risers blank to auto-calculate, or enter a specific number of risers (treads are normally one fewer when the upper floor is the final step)
- Optionally enter Max Available Run to check whether the layout fits your horizontal space
- Click Calculate Stairs for riser count, actual riser height, total run, theoretical stringer length, angle, fit check, and code-style warnings. A live diagram updates automatically.
Stair Rise & Run Examples (10" Tread)
Quick reference for typical floor-to-floor heights using a 10-inch tread and target riser near 7–7.5". Actual riser is adjusted to divide the total rise evenly. Stringer length is the theoretical stair-line (hypotenuse) only.
| Total Rise | Risers | Actual Riser | Total Run | Stringer (stair-line) | Angle |
|---|---|---|---|---|---|
| 8 ft (96") | 13 | 7.38" | 120" | 12.8 ft | 38.7° |
| 9 ft (108") | 14 | 7.71" | 130" | 14.1 ft | 39.7° |
| 10 ft (120") | 16 | 7.50" | 150" | 16.0 ft | 38.7° |
| 11 ft (132") | 18 | 7.33" | 170" | 17.9 ft | 37.8° |
| 12 ft (144") | 19 | 7.58" | 180" | 19.2 ft | 38.7° |
Always re-calculate with your exact total rise. These are planning examples only. Examples use a fixed 10″ tread — change tread depth in the calculator above for deeper or shallower treads; total run and stringer length will update automatically. Stringer values are theoretical diagonal lengths, not final board purchase lengths.
Worked example (9 ft / 108" total rise, 10" tread)
- Target riser ≈ 7.5" → 108 ÷ 7.5 = 14.4 → use 14 risers
- Actual riser = 108 ÷ 14 = 7.71"
- Treads = 14 − 1 = 13 → total run = 13 × 10 = 130"
- Stringer line = √(130² + 108²) ≈ 14.1 ft (buy longer stock for cuts)
11" tread contrast: Same 14 risers with 11" treads → run = 143" and a longer stringer — gentler angle, more floor space. Change tread depth in the calculator to compare.
General IRC Stair Guidelines (US Residential)
| Measurement | Typical IRC Residential Limit |
|---|---|
| Maximum Riser Height | 7.75 inches (197 mm) |
| Minimum Tread Depth | 10 inches (254 mm) |
| Minimum Headroom | 6 ft 8 in (2032 mm) |
| Ideal Riser Height | 6.5" – 7.5" |
| Ideal Tread Depth | 10" – 11" |
| Riser Height Variation | Greatest riser ≤ smallest + ⅜ inch |
These values are general U.S. IRC residential-stair references (commonly R311.7). Local amendments, occupancy type, and jurisdiction may change the requirements. Always verify with your local building department. For deck area and landing size, try the square footage calculator.
Formulas Used
Number of Risers = Total Rise ÷ Desired Riser Height (rounded to nearest whole number)
Actual Riser Height = Total Rise ÷ Number of Risers
Number of Treads = Number of Risers − 1 (when the upper floor or landing serves as the final walking surface)
Total Run = Number of Treads × Tread Depth
Stringer Length (stair-line) = √(Total Run² + Total Rise²)
Angle = arctan(Total Rise ÷ Total Run)
The calculated stringer length is the theoretical diagonal stair-line. It is not automatically the final board purchase length. Layout requires top and bottom cuts, nosing, bearing, and remaining material under the deepest notch — buy stock longer than the calculated value and verify the layout before cutting.
How to Design Comfortable Stairs
Good stairs feel natural underfoot. The relationship between riser height and tread depth is the key to comfort and safety.
The 7-11 Rule & Comfort Checks
A common rule of thumb is a 7-inch riser with an 11-inch tread. Many codes allow up to 7.75" risers and require at least 10" treads. Two useful comfort guidelines (not code requirements):
- Rise + Run ≈ 17–18 inches — keeps the stride natural
- 2 × Rise + Run ≈ 24–25 inches — classic proportion check
Satisfying a comfort formula does not automatically make a stair safe or code-compliant. Always check local requirements.
Risers vs Treads
Number of treads is normally one less than the number of risers when the upper floor or landing acts as the final walking surface. Example: 13 risers typically produce 12 separate treads. Confirm the actual landing arrangement on your project.
Stringers
Stringers are the diagonal boards that support the treads and risers. Stringer count and spacing depend on stair width, tread material, tread thickness, loading, and local requirements — use the tread manufacturer’s span limits or verify framing with the applicable code. A common residential starting point is three stringers (two outer + one center) with closer spacing for thinner treads. Buy stock longer than the calculated stair-line length and leave extra for top/bottom cuts and layout. If your landing or deck needs a concrete pad, use the concrete calculator for volume and bags.
Headroom
Maintain at least 6 ft 8 in of clear headroom for the full width of the stairway. Headroom is typically measured vertically above the line connecting the tread nosings, subject to the applicable code and stair configuration.
Nosing
Most residential codes allow a tread nosing (overhang) of about ¾–1¼ inches. Keep nosing depth consistent on every tread so the foot does not catch. Nosing affects usable tread depth and stringer layout — confirm the product and local rule before cutting.
Handrails & guards (typical ranges — not calculated here)
This calculator does not size handrails or guards. For planning awareness only, many U.S. residential codes use ranges near:
- Handrail height: often about 34–38 inches above tread nosings
- Guard height: often at least 36 inches on open sides (higher in some situations)
- Baluster spacing: commonly such that a 4-inch sphere cannot pass
Treat these as reminders to check the adopted code — not as design values from this tool.
Tips for Building Stairs
- Measure finished floor to finished floor (include flooring, tile, decking, and tread finishes). Small measurement errors can create uneven first or last risers.
- Keep riser heights uniform: the greatest riser must not exceed the smallest by more than ⅜ inch (subject to local code).
- Use a comfortable riser height between 6.5" and 7.75"
- Deeper treads (10–11") feel safer and more comfortable
- Nosing: Most codes allow a nosing (tread overhang) of about ¾–1¼ inches. Keep nosing consistent on every tread.
- Landings: Long stair flights may require an intermediate landing. Check the maximum permitted vertical rise between landings under your local code — do not treat “about 12 feet” as a universal rule.
- Always verify measurements on site before cutting stringers
- Order stringer stock longer than the calculated stair-line length to allow for layout, top/bottom cuts, and remaining material under notches
- If the stair needs a concrete landing or footing pad, estimate volume with the concrete calculator.
Important: This calculator estimates stair geometry only. It does not produce a complete construction plan or verify structural capacity, framing connections, handrails, guards, landings, headroom, or local code compliance. Always confirm with a qualified professional and your local building department before building.
Frequently Asked Questions
Related measurements
Stairs often connect to decks, landings, and floors. Estimate landing or deck area with the square footage calculator, footing volume with the concrete calculator, and finish materials with the flooring calculator or paint calculator. Browse all construction calculators on EntireCalc.