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.

stair calculator online
By ConstructlyTools Editorial Team · Published: March 21, 2026 · Updated: April 11, 2026 · Sources: IRC 2026 · HomeAdvisor · RSMeans
Stair Calculator
📐 Formulas Used
Risers = CEILING(Total Rise ÷ 7.75") per IRC 2026 max · Riser Height = Total Rise ÷ Risers · Treads = Risers − 1 · Tread Depth = 17.5 − Riser Height (clamped 10–11.25", per IRC §R311.7.5) · Total Run = Treads × Tread Depth · Stringer = √(Rise² + Run²) (Pythagorean theorem)
Number of Steps
0 steps
Enter total rise above to calculate
Riser Height
Tread Depth
Total Run
Stringer Length

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 17–18 Comfort Rule (IRC §R311.7.5)

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.

Total rise (finished floor to finished floor):

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.

MaterialQtyUnit CostTotal
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 handrail12 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.

Total rise (deck surface to grade):

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.

MaterialQtyUnit CostTotal
PT 2×12×8 ft stringers3 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 screws1 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.

Total rise:

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.

DimensionIRC RequirementRecommendedWhy It Matters
Riser Height4"–7¾" max (§R311.7.5.1)7"–7¼"Taller risers cause tripping; shorter than 4" causes toe-stub
Tread Depth10" min, nose to nose (§R311.7.5.2)10"–11"Shorter treads don’t support the full foot
Riser ConsistencyMax ⅜" variation (§R311.7.5.1)Under ¼"Inconsistent risers are the leading cause of stair falls
Stair Width36" min clear (§R311.7.1)42"–48"36" is passable; 42"+ is comfortable for two people
Headroom6'8" min at all points (§R311.7.2)7 ft+Measured vertically from nosing to structure above
Handrail Height34"–38" (§R311.7.8)36"Measured vertically from tread nosing
Handrail Graspability1¼"–2" circular or Type II (§R311.7.8.3)1½" roundMust be graspable along entire length
Baluster SpacingMax 4" between (§R312.1.3)3¾" clearPrevents 4" sphere (child’s head) from passing through
Nosing Projection¾"–1¼" (solid risers)1"Provides toe clearance when ascending
Landing at Top/BottomMin 36"×36" (§R311.7.6)48"×48"Required at top and bottom of each stair flight
⚠ The ⅜" Riser Consistency Rule Is Strictly Enforced

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

TypeTypical RiseFloor Plan NeededAvg Cost InstalledComplexity
Straight Stairs96–108"9–13 ft linear run$1,200–$3,500Low — easiest to build
L-Shaped (Quarter Turn)96–108"Corner space, 6–8 ft each leg$1,800–$5,000Medium
U-Shaped (Half Turn)96–108"Compact — reverses direction$2,500–$7,000Medium-high
Winder Stairs96–108"Very compact corner turn$3,000–$9,000High — complex framing
Spiral Stairs96–120"60–80" diameter circle$4,000–$14,000High — prefab or custom
Exterior / Deck Stairs24–72"3–9 ft linear run$600–$2,500Low-medium
Floating / Open Stairs96–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 RiseFloor HeightRisersRiser HeightTreadsTotal RunStringer Length
36"3 ft57.20"440"54" (4.5 ft)
48"4 ft76.86"664"79" (6.6 ft)
60"5 ft87.50"770"92" (7.7 ft)
84"7 ft117.64"10103"133" (11.1 ft)
96"8 ft137.38"12122"154" (12.9 ft)
105"8 ft 9 in147.50"13130"167" (13.9 ft)
108"9 ft157.20"14140"177" (14.8 ft)
120"10 ft167.50"15150"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

MaterialQty per StepFor 14 Steps (36" wide)Avg Cost (2026)
Oak treads (1"×10"×36")1 piece13 treads$18–$35 each
Pine risers (¾"×7¾"×36")1 piece14 risers$6–$12 each
PT 2×12 stringers (16 ft)3 stringers$45–$70 each
Composite treads (1"×6"×36")2 boards26 boards$14–$22 each
Handrail (linear ft)~13 linear ft$4–$15/ft
Balusters (2–3 per tread)2–328–42 balusters$4–$20 each
Newel posts2–3 posts$40–$200 each
Stair nosing (per tread)1 piece13 pieces$3–$8 each

Total Installed Cost by Stair Type (2026 per HomeAdvisor & RSMeans)

Stair TypeDIY MaterialsContractor InstalledNotes
Exterior deck stairs (3–4 steps)$100–$250$400–$900PT lumber, composite treads
Basement utility stairs (12–13 steps)$300–$600$900–$2,000Open risers, utility grade
Interior straight (13–15 steps, pine)$500–$900$1,500–$3,500Painted risers, pine treads
Interior straight (13–15 steps, oak)$800–$1,600$2,500–$5,500Oak treads, painted risers, handrail
L-shaped or U-shaped stairs$1,200–$2,500$3,500–$8,000Complex framing, landing
Spiral stairs (prefab kit)$2,000–$5,000$4,500–$14,000Prefab kits available; custom much more
Floating / open riser (custom)$4,000–$10,000+$10,000–$35,000+Structural steel, engineering required
✓ What Drives the Cost Gap: DIY vs Contractor

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

How many steps do I need for a standard 9-foot ceiling?+
A 9 ft floor-to-floor height (108 inches) typically requires 14–15 risers depending on finished floor thicknesses. At exactly 108": 108 ÷ 7.75 = 13.9 → 14 risers = 13 treads, 7.71" riser. If finished floor thicknesses shift total rise to 105": 14 risers = 7.5" each = 13 treads. Use the calculator with your exact floor-to-floor measurement for a precise result.
How many steps do I need for an 8-foot ceiling?+
An 8 ft floor-to-floor height is typically 96–100 inches. At 96": 96 ÷ 7.75 = 12.4 → 13 risers = 12 treads, riser height 7.38". The total run for 12 treads at 10" each is 120" (10 ft) — a straight stair for an 8 ft ceiling needs approximately 10 ft of floor plan.
What is the standard stair riser height?+
IRC §R311.7.5.1 sets a maximum of 7¾ inches and minimum of 4 inches. The most comfortable residential riser is 7–7¼ inches. All risers in a single staircase must be within ⅜ inch of each other — inconsistent riser heights are both a code violation and the leading cause of stair falls. The riser height is determined by your total rise divided by the number of risers — you engineer toward it, you don’t choose it freely.
What is the minimum tread depth for stairs?+
IRC §R311.7.5.2 minimum tread depth is 10 inches, measured nose-to-nose. The recommended comfortable range is 10–11 inches. Tread depth and riser height should sum to 17–18 inches for the most ergonomic stair geometry. Very deep treads (over 12") on steep stairs feel awkward because the stride doesn’t match the geometry.
How do I calculate stringer length?+
Stringer length = √(Total Rise² + Total Run²). Example: 105" rise, 130" run → √(11,025 + 16,900) = √27,925 = 167.1". Buy a 16 ft (192") 2×12 to allow for top plumb cut and bottom seat cut. A 2×12 is required because after cutting notches, at least 3.5" of effective depth must remain at the narrowest point of the stringer.
How wide should stairs be?+
IRC §R311.7.1 minimum clear stair width is 36 inches for residential stairs. However, 42–48 inches is strongly recommended — it allows two people to pass and furniture to be moved. The clear width is measured between the handrail and the opposite wall (or between handrails on a freestanding stair). Structural framing must be wider to achieve 36" clear after wall finish and handrail projection.
How much does it cost to build stairs?+
Per HomeAdvisor 2026 data: exterior deck stairs (3–4 steps) $400–$900 installed. Basement utility stairs $900–$2,000. Interior straight with standard wood treads and handrail $1,500–$4,000. Interior stairs with oak treads and full balustrade $2,500–$6,000. L-shaped or winder stairs $3,500–$9,000. Floating open-riser custom stairs $10,000–$35,000+. DIY materials for a 14-step interior stair run $700–$1,600 depending on wood species and railing style.
Do I need a permit to build stairs?+
Yes for virtually all structural stair work — new staircases, replacing staircases, deck stairs, and any stair that is a primary means of egress. Permits require a framing inspection before walls are closed and a final inspection. Simply replacing worn treads on an existing staircase without structural changes may not require a permit in some jurisdictions — confirm with your local building department. Unpermitted stair work creates problems at home sale and limits insurance claims.
📚 References & Data Sources
  1. 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.
  2. 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.
  3. 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.
  4. 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.

Scroll to Top