Stair Calculator
Use this free stair calculator to instantly calculate the number of steps, riser height, tread depth, total run, and stringer length for any staircase. Enter your floor-to-floor rise and the calculator checks your dimensions against IRC building code requirements — including the 7¾ inch maximum riser height and 10 inch minimum tread depth.
IRC 2026: Max riser 7¾" · Min riser 4" · Min tread 10" · Min width 36" · Max variation between risers ⅜" · Min headroom 6'8" · Measure finished floor to finished floor
Always verify stair dimensions comply with your local building code before construction. IRC is adopted by most US jurisdictions with local amendments — confirm requirements with your building department.
Understanding the Calculator Inputs
Stair calculation has several measurement pitfalls that cause expensive rebuilds. Here’s exactly what each input means and how to measure it correctly the first time.
Total Rise — The Most Important Measurement
Total rise is the vertical distance from the finished floor at the bottom to the finished floor at the top. The word “finished” is critical — this means after flooring is installed on both levels, not the rough subfloor. If you measure to the subfloor and then add hardwood on the upper level, your riser heights will be inconsistent by the flooring thickness — a code violation (IRC max ⅜" variation between any two risers).
For new construction: calculate the subfloor-to-subfloor distance and add the finished flooring thickness on both levels. If flooring isn’t installed yet, leave the stair calculation until floor thicknesses are confirmed.
Stair Width
36 inches is the IRC minimum clear width for residential stairs — the usable walking surface measured between handrails. For a comfortable everyday staircase, 42–48 inches is strongly recommended. The actual framing must be wider than 36" to achieve 36" clear after wall finish and handrail projection.
Key Stair Terms
- Riser — the vertical face of each step. Heights must be consistent within ⅜" across the entire staircase per IRC §R311.7.5.1.
- Tread — the horizontal surface you step on, measured nose-to-nose.
- Nosing — the front edge of the tread projecting beyond the riser below. IRC requires ¾"–1¼" projection for solid risers.
- Stringer — the diagonal structural board supporting treads and risers. Always cut from 2×12 lumber — the remaining effective depth after notching must be at least 3.5".
- Headroom — vertical clearance from each tread nosing to the ceiling above. IRC minimum is 6 ft 8 in at all points along the stair path (§R311.7.2).
The most comfortable staircases satisfy: Riser Height + Tread Depth = 17–18 inches. A 7" riser + 11" tread = 18" (very comfortable). A 7.5" riser + 10" tread = 17.5" (comfortable and IRC minimum). The calculator applies this rule automatically. Verify your results make sense by checking that riser + tread falls in the 17–18" range.
3 Real-World Stair Examples
These worked examples show the full calculation from measurement to material list — the way a carpenter actually approaches a stair build.
Example 1 — Standard Interior Staircase (9 ft floor-to-floor)
Most common residential stair: main floor to second floor, straight run, 36" wide, oak treads with painted risers.
Subfloor to subfloor = 105". Both levels get ¾" hardwood. Total rise = 105 inches.
Risers (CEILING(105 ÷ 7.75)):13.55 → round up to 14 risers.
Actual riser height:105 ÷ 14 = 7.50" per riser. Under 7.75" max per IRC §R311.7.5.1 ✓
Treads, tread depth, total run:14 − 1 = 13 treads. Tread depth: 17.5 − 7.5 = 10.0". Run: 13 × 10" = 130" (10 ft 10 in).
Stringer length (√(105² + 130²)):√27,925 = 167.1" (13.9 ft) — buy 16 ft 2×12 stringers.
| Material | Qty | Unit Cost | Total |
|---|---|---|---|
| Oak treads (1"×10"×36") | 13 treads | $18–$35 each | $234–$455 |
| Pine risers (¾"×7½"×36") | 14 risers | $6–$12 each | $84–$168 |
| 2×12×16 ft stringers (3) | 3 pieces | $35–$55 each | $105–$165 |
| Oak handrail | 12 linear ft | $5–$10/ft | $60–$120 |
| Balusters (2 per tread) | 26 balusters | $5–$15 each | $130–$390 |
| Newel posts (bottom + top) | 2 posts | $45–$120 each | $90–$240 |
| Total materials (DIY) | $703–$1,538 | ||
| Contractor installed | $2,500–$5,500 | ||
Example 2 — Deck Stairs (3-step, 22" rise)
A 3-step deck stair from deck surface to grade. Pressure treated stringers, composite treads.
22 inches.
Risers (CEILING(22 ÷ 7.75)):2.84 → 3 risers. Actual riser: 22 ÷ 3 = 7.33". ✓
Treads and total run:3 − 1 = 2 treads (deck surface is the top landing). Run: 2 × 10" = 20" (1 ft 8 in).
Stringer length (√(22² + 20²)):√884 = 29.7" (2.5 ft) — buy 2×12×8 ft PT stringers.
| Material | Qty | Unit Cost | Total |
|---|---|---|---|
| PT 2×12×8 ft stringers | 3 stringers | $22–$32 each | $66–$96 |
| Composite treads (1"×6"×36", doubled) | 4 boards | $14–$22 each | $56–$88 |
| Stair hardware (stringer brackets) | 1 kit | $20–$40 | $20–$40 |
| Galvanized joist hanger screws | 1 box | $12–$18 | $12–$18 |
| Total materials (DIY) | $154–$242 | ||
| Contractor installed | $400–$900 | ||
Real-world note: The most common deck stair failure: not anchoring the bottom of the stringers. Stringers must be anchored at both top (to the deck frame) and bottom (to a concrete pad or buried post anchor) — stringers floating on soil will shift and heave in freeze-thaw cycles, eventually pulling away from the deck. This is also a code requirement under IRC §R311.7.9.
Example 3 — Basement Utility Stairs (8 ft ceiling, 48" wide)
A functional basement staircase for a home finishing project. Open risers, 48" wide for moving furniture, PT stringers for moisture resistance.
Subfloor to concrete = 93". Main floor: ¾" hardwood. Basement: ¾" LVP. Total rise = 93 + ¾ − ¾ = 93 inches.
Risers (CEILING(93 ÷ 7.75)):12.0 → 12 risers exactly. Actual riser: 93 ÷ 12 = 7.75" (at IRC max — verify local code).
Treads and total run:12 − 1 = 11 treads. Tread depth: 17.5 − 7.75 = 9.75" → clamped to IRC minimum 10". Run: 11 × 10" = 110" (9 ft 2 in).
Headroom check:With 93" rise over 110" run, stair angle ≈ 40°. Verify headroom (6'8" minimum per IRC §R311.7.2) at every tread nosing — especially where stair passes under a floor framing header.
Real-world note: Headroom is the most commonly failed code requirement on basement stairs. An 8 ft basement ceiling sounds like plenty, but if the floor opening doesn’t start far enough back from the wall, the header above the opening cuts into the headroom path at the upper treads. Calculate headroom at every step before framing the opening — far cheaper to reposition the opening in rough framing than to rebuild after drywall is up.
Stair Building Code Requirements (IRC 2026)
The International Residential Code (IRC) sets minimum standards for residential stairs. Most US municipalities adopt IRC with minor local amendments. Always confirm with your local building department before finalizing stair design.
| Dimension | IRC Requirement | Recommended | Why It Matters |
|---|---|---|---|
| Riser Height | 4"–7¾" max (§R311.7.5.1) | 7"–7¼" | Taller risers cause tripping; shorter than 4" causes toe-stub |
| Tread Depth | 10" min, nose to nose (§R311.7.5.2) | 10"–11" | Shorter treads don’t support the full foot |
| Riser Consistency | Max ⅜" variation (§R311.7.5.1) | Under ¼" | Inconsistent risers are the leading cause of stair falls |
| Stair Width | 36" min clear (§R311.7.1) | 42"–48" | 36" is passable; 42"+ is comfortable for two people |
| Headroom | 6'8" min at all points (§R311.7.2) | 7 ft+ | Measured vertically from nosing to structure above |
| Handrail Height | 34"–38" (§R311.7.8) | 36" | Measured vertically from tread nosing |
| Handrail Graspability | 1¼"–2" circular or Type II (§R311.7.8.3) | 1½" round | Must be graspable along entire length |
| Baluster Spacing | Max 4" between (§R312.1.3) | 3¾" clear | Prevents 4" sphere (child’s head) from passing through |
| Nosing Projection | ¾"–1¼" (solid risers) | 1" | Provides toe clearance when ascending |
| Landing at Top/Bottom | Min 36"×36" (§R311.7.6) | 48"×48" | Required at top and bottom of each stair flight |
Of all stair code requirements, the ⅜" maximum variation between any two risers (IRC §R311.7.5.1) is the one most often failed at inspection — and the one most responsible for stair falls. A stair that’s 7.25" for 13 risers and 7.75" at the last riser fails this test. Inspectors measure every riser. Calculate total rise precisely from finished floor to finished floor and verify your riser math before cutting anything.
Stair Types Guide
| Type | Typical Rise | Floor Plan Needed | Avg Cost Installed | Complexity |
|---|---|---|---|---|
| Straight Stairs | 96–108" | 9–13 ft linear run | $1,200–$3,500 | Low — easiest to build |
| L-Shaped (Quarter Turn) | 96–108" | Corner space, 6–8 ft each leg | $1,800–$5,000 | Medium |
| U-Shaped (Half Turn) | 96–108" | Compact — reverses direction | $2,500–$7,000 | Medium-high |
| Winder Stairs | 96–108" | Very compact corner turn | $3,000–$9,000 | High — complex framing |
| Spiral Stairs | 96–120" | 60–80" diameter circle | $4,000–$14,000 | High — prefab or custom |
| Exterior / Deck Stairs | 24–72" | 3–9 ft linear run | $600–$2,500 | Low-medium |
| Floating / Open Stairs | 96–120" | Open space — no walls | $8,000–$30,000+ | Very high — structural engineering |
Rise & Run Quick Reference
Common floor-to-floor heights with pre-calculated stair dimensions. All configurations comply with IRC 2026 requirements.
| Total Rise | Floor Height | Risers | Riser Height | Treads | Total Run | Stringer Length |
|---|---|---|---|---|---|---|
| 36" | 3 ft | 5 | 7.20" | 4 | 40" | 54" (4.5 ft) |
| 48" | 4 ft | 7 | 6.86" | 6 | 64" | 79" (6.6 ft) |
| 60" | 5 ft | 8 | 7.50" | 7 | 70" | 92" (7.7 ft) |
| 84" | 7 ft | 11 | 7.64" | 10 | 103" | 133" (11.1 ft) |
| 96" | 8 ft | 13 | 7.38" | 12 | 122" | 154" (12.9 ft) |
| 105" | 8 ft 9 in | 14 | 7.50" | 13 | 130" | 167" (13.9 ft) |
| 108" | 9 ft | 15 | 7.20" | 14 | 140" | 177" (14.8 ft) |
| 120" | 10 ft | 16 | 7.50" | 15 | 150" | 192" (16.0 ft) |
Tread depth per IRC comfort formula (17.5 − riser height, clamped 10–11.25"). Stringer length via Pythagorean theorem. All riser heights under 7¾" maximum per IRC §R311.7.5.1.
Material Estimator & Cost Tables (2026)
Materials Per Step — Quick Reference
| Material | Qty per Step | For 14 Steps (36" wide) | Avg Cost (2026) |
|---|---|---|---|
| Oak treads (1"×10"×36") | 1 piece | 13 treads | $18–$35 each |
| Pine risers (¾"×7¾"×36") | 1 piece | 14 risers | $6–$12 each |
| PT 2×12 stringers (16 ft) | — | 3 stringers | $45–$70 each |
| Composite treads (1"×6"×36") | 2 boards | 26 boards | $14–$22 each |
| Handrail (linear ft) | — | ~13 linear ft | $4–$15/ft |
| Balusters (2–3 per tread) | 2–3 | 28–42 balusters | $4–$20 each |
| Newel posts | — | 2–3 posts | $40–$200 each |
| Stair nosing (per tread) | 1 piece | 13 pieces | $3–$8 each |
Total Installed Cost by Stair Type (2026 per HomeAdvisor & RSMeans)
| Stair Type | DIY Materials | Contractor Installed | Notes |
|---|---|---|---|
| Exterior deck stairs (3–4 steps) | $100–$250 | $400–$900 | PT lumber, composite treads |
| Basement utility stairs (12–13 steps) | $300–$600 | $900–$2,000 | Open risers, utility grade |
| Interior straight (13–15 steps, pine) | $500–$900 | $1,500–$3,500 | Painted risers, pine treads |
| Interior straight (13–15 steps, oak) | $800–$1,600 | $2,500–$5,500 | Oak treads, painted risers, handrail |
| L-shaped or U-shaped stairs | $1,200–$2,500 | $3,500–$8,000 | Complex framing, landing |
| Spiral stairs (prefab kit) | $2,000–$5,000 | $4,500–$14,000 | Prefab kits available; custom much more |
| Floating / open riser (custom) | $4,000–$10,000+ | $10,000–$35,000+ | Structural steel, engineering required |
Cutting stringers, fitting treads and risers, and installing handrails and balusters is skilled finish carpentry work — 6–12 hours for a standard 14-step staircase at $60–$90/hour per RSMeans 2026 labor data. DIY is genuinely feasible for straight staircases if you’re comfortable with a circular saw and understand the riser consistency requirement. L-shaped, winder, and floating stairs are contractor-territory for most homeowners.
Common Stair Calculation Mistakes
Measuring Subfloor Instead of Finished Floor
The most common stair calculation error. Measuring to subfloor and then installing ¾" hardwood on the upper level makes the top riser ¾" shorter than every other — failing IRC §R311.7.5.1’s ⅜" consistency requirement. Always calculate from finished floor to finished floor before cutting a single stringer.
Not Verifying Headroom at Every Tread
IRC §R311.7.2 requires 6'8" (80") headroom at every point along the stair path — measured vertically from each tread nosing to the ceiling or structure above. Intermediate treads passing under a floor framing header often fail this check. Draw the stair profile with the overhead structure marked and verify clearance at every tread before framing the opening.
Buying Stringers That Are Too Short
The calculated stringer length is the minimum needed — always buy the next standard board length up. For a 167" calculated stringer, buy a 16 ft board (192"), not a 14 ft board (168"). Also: after cutting notches, at least 3.5" of effective depth must remain at the narrowest point per IRC requirements. Verify this before buying undersized lumber.
Skipping the Layout Step
The correct sequence: (1) calculate all dimensions, (2) mark the first stringer using a framing square with stair gauges, (3) cut the first stringer, (4) test-fit it in the actual opening before cutting the remaining two. Discovering an error after all three stringers are cut is a significant material loss. The test-fit takes 15 minutes and is non-negotiable.
Incorrect Baluster Spacing
IRC §R312.1.3 requires that a 4-inch sphere cannot pass through the baluster spacing. The gap must be less than 4" — set balusters at 3¾" clear spacing to ensure compliance with standard baluster width variation without remeasuring each one.
How We Calculate
Risers = CEILING(Total Rise ÷ 7.75) — dividing by the IRC maximum riser height (§R311.7.5.1) and rounding up ensures the actual riser stays at or below 7.75". Rounding down would produce risers above the maximum.
Tread Depth = 17.5 − Riser Height, clamped to 10"–11.25" — the 17.5 constant derives from the IRC comfort formula (riser + tread = 17–18"). Result is clamped to IRC minimum 10" (§R311.7.5.2) and a practical maximum of 11.25".
Stringer Length = √(Total Rise² + Total Run²) — Pythagorean theorem applied to the right triangle formed by the stair’s total rise and total run. Add 6–12 inches when purchasing boards to allow for top plumb cut and bottom seat cut.
Material costs reflect 2026 retail pricing at Home Depot, Lowe’s, and regional lumber yards. Contractor installation costs are based on HomeAdvisor and Angi completed project data, cross-referenced with RSMeans 2026 labor unit data for residential finish carpentry. Pricing represents the 20th to 80th percentile of actual market data.
Frequently Asked Questions
Plan your full stair project with these free calculators.
Measurement Tools
Material Calculators
- IRC 2026 — International Residential Code for One- and Two-Family Dwellings, Section R311.7 (Stairways) — Primary source for all residential stair dimensional requirements cited in the calculator and code table: maximum riser height 7¾" (§R311.7.5.1), minimum tread depth 10" (§R311.7.5.2), maximum riser variation ⅜" (§R311.7.5.1), minimum stair width 36" (§R311.7.1), minimum headroom 6'8" (§R311.7.2), handrail height 34"–38" (§R311.7.8), baluster spacing max 4" (§R312.1.3). International Code Council, 2026 edition.
- HomeAdvisor True Cost Guide 2026 — Stair Installation — Contractor installation cost ranges by stair type (deck stairs, basement, interior straight, L-shaped, spiral, floating). Referenced for all installed cost data in the cost table, worked examples, and FAQ answers. HomeAdvisor / Angi, 2026.
- RSMeans Building Construction Cost Data 2026 — Division 6 (Wood, Plastics, and Composites) — Labor unit cost data for residential finish carpentry including stair installation by stair type, material, and complexity level. Referenced to validate contractor labor cost ranges in the cost table and the DIY vs contractor comparison callout. RSMeans / Gordian, 2026.
- CPSC (US Consumer Product Safety Commission) — Stair Safety Research — Research on stair-related injuries and the role of inconsistent riser heights and inadequate handrail graspability. Referenced for the safety rationale behind the riser consistency requirement (⅜" max variation) and baluster spacing guidance. US CPSC, current edition.
Material pricing reflects 2026 US national average retail pricing. Labor cost data represents the 20th to 80th percentile of actual market pricing from HomeAdvisor completed project data. Significant regional variation exists — urban and coastal markets often run 25–40% above these ranges. Always verify dimensional requirements with your local building department before starting construction. ConstructlyTools does not have a paid relationship with any contractor or supplier mentioned on this page.
