Stair Calculator
Determine the number of steps, riser height, and tread depth for a staircase. Follows building code guidelines for safe, comfortable stairs.
Stair design is governed by strict building codes that ensure safety and consistency. The fundamental math: divide total floor-to-floor height by the desired riser height to get the number of steps, then calculate the total horizontal run from tread depth. Critically, every riser in a staircase must be the same height (within ⅜" variation per code) — irregular risers cause trips and falls.
This calculator returns the number of steps, exact riser height (which adjusts from your ideal to evenly divide total rise), tread depth, and total horizontal run. Standard residential codes: rise 7-7¾" (most common 7½"), tread 10-11" deep. Code requires headroom of at least 80" above stair treads, handrails on at least one side (both sides for wide stairs), and minimum stair width of 36" for residential or 44" for commercial.
For exterior stairs, deck stairs, or alternative stair types, calculations still apply but with adjusted parameters. Stair design is critical for safety — improper proportions are a leading cause of home falls and injuries.
Inputs
Results
Steps
14
Riser Height
7.71"
Total Run
10.8 ft
Meets Code
Yes
Stair Dimensions
| Measurement | Value |
|---|---|
| Number of Risers | 14 |
| Actual Riser Height | 7.71 inches |
| Number of Treads | 13 |
| Tread Depth | 10 inches |
| Total Run (horizontal) | 130.0 inches (10.8 ft) |
| Stringer Length | 169.0 inches (14.1 ft) |
| Riser + Tread | 17.71 inches (ideal: 17-18) |
| Angle of Flight | 39.7 degrees |
| Stair Width | 36 inches (3.0 ft) |
| Meets Code | Yes |
Formula
How to use this calculator
- Measure total floor-to-floor height in inches (this is total rise).
- Set ideal riser height (7.5" is comfortable standard).
- Set tread depth (10" minimum per code).
- Set stair width (36" minimum residential, 48" for greater comfort).
- Calculator returns number of steps, actual riser height, and total run.
- Adjust ideal riser if total run doesn't fit available space.
Worked examples
Standard basement stairs
**Scenario:** Basement stairs, 102" total rise (8.5 ft from upper floor to basement floor). Ideal riser 7.5", 10" treads, 36" wide. **Calculation:** Risers: 102/7.5 = 13.6 → 14 risers. Actual riser: 102/14 = 7.29". Treads: 13. Total run: 13 × 10 = 130" = 10.83 feet. **Result:** 14-step staircase, 10.83 ft long (10' 10"), with risers 7.29" each. This easily fits a 12 ft basement stairwell with room for landing at bottom. Tread depth 10" is just at minimum; 11" would be more comfortable but adds 13" to total run.
Deck stairs
**Scenario:** Deck stairs from deck (28" above grade) to ground. 36" wide. **Calculation:** Total rise 28". Choose 7" risers: 28/7 = 4 risers. Actual riser: 7" exactly. Treads: 3. Tread depth 10": Total run = 30" = 2.5 feet. **Result:** 4-step deck stair, 2.5 ft horizontal run. Standard short deck staircase. Materials: 2 stringers (2×12 × 4 ft), 3 treads (2×10 × 36"), 4 risers (1×8 × 36"), railings if rise > 30": ~$150 materials, weekend DIY project.
Spiral staircase
**Scenario:** Spiral metal staircase for tight space, 9-ft floor-to-floor rise. Standard 60" diameter spiral. **Calculation:** Number of steps in 5 ft diameter spiral: depends on design but typical 12-14 steps for 9 ft rise. Per step rise: 9/14 = 7.7". Spiral footprint: 5 ft × 5 ft = 25 sq ft (vs ~30 sq ft for straight run). **Result:** Spiral saves 5+ sq ft of floor space. Cost: $2500-5000 for prefabricated 60" diameter steel kit. Code restrictions: only allowed as secondary egress in residential, minimum 26" tread depth at 12" from narrow side. Best for guest spaces, lofts, or where space is critical.
When to use this calculator
**Use stair calculations for:**
- **New construction**: planning stairwell location and dimensions. - **Renovations**: replacing existing staircase. - **Deck and outdoor stairs**: matching deck height to ground. - **Basement finishing**: making basement accessible. - **Lofts and bonus rooms**: secondary access. - **Commercial space**: ADA-compliant primary and emergency egress.
**Code essentials for residential stairs:**
- Maximum riser: 7¾". - Minimum tread: 10". - Variation between any 2 risers: ⅜" max. - Variation between any 2 treads: ⅜" max. - Headroom: 80" minimum above any tread. - Handrails: required at any rise of 3 risers or more. - Stair width: 36" minimum residential. - Landings: required every 12 ft of vertical rise.
**Design comfort principles:**
- **7-11 rule**: 7" riser, 11" tread = standard comfortable. - **Newer code prefers**: 7-7¼" riser, 11" tread for accessibility. - **Steeper stairs save space but feel cramped**: not safer. - **Wider stairs feel more spacious**: 42-48" common in higher-end homes.
**Stair types by application:**
- **Straight run**: simplest, most space-efficient for under 9 ft rise. - **L-shaped**: tight footprint, requires landing. - **U-shaped**: maximum space efficiency for tall rises. - **Winder**: maintains continuous walkable surface (no landing). - **Spiral**: smallest footprint, code-limited for primary use. - **Floating modern**: aesthetic premium, often expensive.
**Construction approach:**
- **Site-built**: traditional, customized to space. - **Prefabricated stair kits**: faster install, limited customization. - **Stair-jack systems**: modular components. - **Custom millwork**: highest quality, custom dimensions.
**Common stair installation steps:**
1. **Verify total rise measurement**: from finished floor below to finished floor above. 2. **Calculate riser/tread dimensions**: per code and comfort. 3. **Plan landing locations**: at any 12 ft+ vertical rise. 4. **Cut stringers from 2×12 lumber**: framing square + jig. 5. **Attach stringers to header at top**: structural connection. 6. **Anchor stringers to floor at bottom**: keep solid. 7. **Install risers and treads**: bottom up. 8. **Install handrails and balusters**: 34-38" handrail height. 9. **Apply finishes**: stain/paint/carpet. 10. **Code inspection** if required.
**Stair safety upgrades:**
- **Non-slip tread strips**: prevent slipping. - **Tread nosing illumination**: LED strips at edge. - **Handrail extensions**: 12" beyond top/bottom for support. - **Continuous handrails**: no breaks at landings. - **Wide bottom step**: easier for elderly. - **Lift chair**: for users with mobility issues.
**Replacing or remodeling stairs:**
- **Refinish existing**: sand and stain treads, replace risers if needed. - **Replace components**: balusters, newel posts, handrails. - **Restain/repaint**: cosmetic update. - **Full rebuild**: when total rise changes or major redesign needed. - **Open up stairwell**: combine with wall removal for grand entry.
**Cost considerations:**
- DIY new stair (basic): $750-1500 materials, $1000-3000 in time. - Pro new stair (residential): $3000-6000 typical. - Premium hardwood: $5000-15000. - Major remodel/replacement: $5000-25000. - Curved or floating: $10000-50000.
**Common stair calculation issues:**
- Total rise measurement wrong (forgot subfloor thickness, etc.). - Trying to fit ideal riser exactly without rounding to even number. - Forgetting that there's one less tread than risers. - Not allowing landing space at top. - Cutting stringers wrong (mark from bottom, not top). - Overhang/nosing not included in tread depth.
Common mistakes to avoid
- Variable riser heights. Even ¼" variation causes trips and is code violation.
- Steep risers over 7¾". Building code maximum; greater is dangerous.
- Shallow treads under 10". Insufficient foot support.
- No or inadequate handrails. Required for safety and code.
- Inadequate headroom. 80" minimum above all treads.
- Mismatched landing height. Bottom step level off; top tread off from floor above.
- Stairs too narrow. 36" residential minimum; consider 42-48" for comfort.