Stair Calculator
Calculate Rise, Run, Treads & Stringer Length Instantly
📏 How to Use This Stair Calculator
This free online stair calculator helps you determine the optimal stair dimensions for any project—whether you're building deck stairs, interior stairs, or outdoor steps. Simply enter your total rise (the vertical height from finished floor to finished floor), your desired riser height, and tread depth. The calculator instantly computes:
- Number of Risers & Actual Riser Height
- Number of Treads & Total Run (horizontal distance the staircase occupies)
- Stringer Length (the diagonal board supporting the steps)
- Stair Angle in degrees
- Comfort Ratio based on the 2R + T formula
The tool also provides a visual stair profile diagram and flags whether your design meets common building code standards.
📐 Key Stair Terminology
- Total Rise: The vertical distance from the top of the finished lower floor to the top of the finished upper floor.
- Riser Height: The vertical height of each individual step. Calculated as Total Rise ÷ Number of Risers.
- Tread Depth: The horizontal depth of each step (not including nosing overhang).
- Total Run: The total horizontal distance the staircase covers. Equal to Number of Treads × Tread Depth.
- Stringer: The structural diagonal board that supports the treads and risers. Its length is calculated using the Pythagorean theorem.
- Stair Angle: The angle of the staircase relative to the horizontal floor. Comfortable stairs typically range from 30° to 37°.
🧮 The Stair Formula Explained
Professional stair builders rely on a few fundamental formulas to ensure safety and comfort. Here are the key equations used by this calculator:
Actual Riser Height = Total Rise ÷ Number of Risers
Number of Treads = Number of Risers − 1
Total Run = Number of Treads × Tread Depth
Stringer Length = √(Total Rise² + Total Run²)
Stair Angle = arctan(Total Rise ÷ Total Run) × 180/π
Comfort Ratio (2R+T) = 2 × Riser Height + Tread Depth (ideal: 24″–25″)
🏗️ Building Code Guidelines (IRC)
When designing stairs, adhering to the International Residential Code (IRC) ensures safety and compliance. Here are the key requirements for residential stairs:
- Maximum Riser Height: 7¾ inches (some jurisdictions allow up to 8¼″ for certain applications)
- Minimum Riser Height: 4 inches
- Minimum Tread Depth: 10 inches (measured nosing-to-nosing)
- Maximum Variation Between Risers: ⅜ inch
- Minimum Stair Width: 36 inches (above the handrail)
- Minimum Headroom: 6 feet 8 inches
- Comfort Formula: 2 × Riser + Tread should equal 24 to 25 inches
Always consult your local building department for specific requirements in your area, as codes may vary by municipality.
🪚 Tips for Building Perfect Stairs
- Measure accurately: Double-check your total rise measurement. Even a ¼″ error can compound across multiple steps.
- Use quality lumber: For stringers, choose straight, knot-free 2×12 boards with minimal warping.
- Cut stringers carefully: Use a framing square with stair gauges to mark consistent rise and run on each stringer.
- Account for flooring: Remember to factor in finished floor thickness at both the top and bottom of the stairs.
- Test-fit first: Before final installation, dry-fit your stringers to verify all measurements.
- Install handrails: Building codes require graspable handrails on at least one side of residential stairs with 4+ risers.
❓ Frequently Asked Questions
Q: How many stringers do I need for my stairs?
For stairs up to 36″ wide, use 3 stringers (one on each side and one in the center). For wider stairs, add an additional stringer for every 12″–16″ of width beyond 36″.
Q: What is the ideal stair angle?
The most comfortable stair angle falls between 30° and 37°. Angles below 27° feel too shallow, while angles above 40° feel steep and can be dangerous.
Q: Can I use this calculator for deck stairs?
Absolutely! This deck stair calculator works perfectly for exterior deck stairs. Just ensure you use pressure-treated lumber and consider ground-level pad or footing requirements for the base of the stringers.
Q: What if my calculated riser height is over 7¾ inches?
If the riser height exceeds code maximums, try increasing the number of risers (by reducing your target riser height input) or consider splitting the staircase with a landing.