🪜

Stair Calculator

Calculate the perfect stair dimensions — risers, tread depth, total run, and stringer length. Includes automatic IRC 2021 code compliance check.

🪜

Stair Calculator

RiseTotal Run

Stair Calculation Formulas

Number of Steps = Total Rise ÷ Desired Riser Height (rounded)
Actual Riser = Total Rise ÷ Number of Steps
Total Run = Number of Steps × Tread Depth
Stringer Length = √(Total Rise² + Total Run²)

IRC 2021 Stair Code Requirements

RequirementMinimumMaximumRecommended
Riser height4 inches7¾ inches7 inches
Tread depth10 inchesNo limit10–11 inches
Stair width36 inchesNo limit36–42 inches
Headroom clearance6 ft 8 inNo limit7 ft
Handrail height34 inches38 inches36 inches
Riser variationMax ⅜" variation between risers< ¼"

The Stair Rule of 17–18

Ergonomics research shows the most comfortable stairs follow this rule:

Rise + Run = 17 to 18 inches
Riser HeightIdeal Tread DepthRise + RunFeel
6.0 inches11.5 inches17.5Gradual / exterior
6.5 inches11.0 inches17.5Comfortable
7.0 inches10.5 inches17.5Standard residential
7.5 inches10.0 inches17.5Steeper / space-saving
7.75 inches10.0 inches17.75Maximum code (steepest)

Types of Stairs

  • Straight stairs — Most common, simplest to build, requires the most horizontal space.
  • L-shaped (quarter turn) — Turns 90° with a landing or winder treads. Good for corners.
  • U-shaped (half turn) — Turns 180° with a landing. Elegant, requires significant space.
  • Spiral stairs — Compact footprint, decorative. Limited to secondary use per most codes.
  • Floating stairs — Modern cantilevered design. Requires structural engineering.

? Frequently Asked Questions

What is the standard riser height for stairs?
Per the International Residential Code (IRC 2021), the maximum riser height is 7¾ inches (196 mm) and the minimum is 4 inches (102 mm). The recommended "comfortable" riser height is 7 inches. Risers within a single flight of stairs must not vary more than ⅜ inch from each other.
What is the standard tread depth for stairs?
The minimum tread depth per IRC 2021 is 10 inches (254 mm), measured from the front of one nosing to the front of the next. The most comfortable tread depth is 10–11 inches. For exterior stairs, 11–12 inches is common for a more gradual slope.
What is the rule of thumb for stair rise and run?
The most widely used rule of thumb is: Rise + Run = 17–18 inches. Another common formula is: 2 × Rise + Run = 24–25 inches. So if your riser is 7 inches, the ideal run would be 11 inches (7 + 11 = 18).
How do I calculate the number of stairs I need?
Divide the total rise (floor to floor height) by your desired riser height. For example, a 9-foot ceiling (108 inches) with 7-inch risers: 108 ÷ 7 = 15.4, which rounds to 15 or 16 steps. Divide 108 by the rounded number to get the exact riser height.
What is a stringer in stair construction?
A stringer is the diagonal structural board that supports the treads and risers. Most residential stairs have 3 stringers. The stringer length equals the hypotenuse of the triangle formed by the total rise and total run: √(rise² + run²).

💡 Pro Tips

  • ✅ Rise + Run should equal 17–18"
  • ✅ Max riser: 7¾" per IRC 2021
  • ✅ Risers must be within ⅜" of each other
  • ✅ Min stair width: 36"
  • ✅ Always pull a building permit for new stairs