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.

By ConstructlyTools · Published: March 21, 2026 · Updated: April 3, 2026
Stair Calculator
📐 Formulas Used
Risers = CEILING(Total Rise ÷ 7.75") · Riser Height = Total Rise ÷ Risers
Treads = Risers − 1 · Tread Depth = 17.5 − Riser Height (clamped 10–11.25")
Total Run = Treads × Tread Depth · Stringer = √(Rise² + Run²)
Number of Steps
0 steps
Enter total rise above to calculate
Riser Height
Tread Depth
Total Run
Stringer Length

IRC code: Max riser 7¾" · Min riser 4" · Min tread 10" · Min width 36" · Max variation between steps ⅜" · Min headroom 6'8"

Always verify stair dimensions comply with your local building code before construction. Measure finished floor to finished floor for total rise.

Understanding the Calculator Inputs

Stair calculation looks straightforward but 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 of the staircase 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 flooring on the upper level, your riser heights will be inconsistent by the flooring thickness, which is a code violation (max ⅜" variation between any two risers).

For existing stairs you're replacing: measure from finished floor to finished floor. For new construction: calculate the subfloor-to-subfloor distance and add the finished flooring thickness on both levels. If you haven't installed flooring yet, leave the stair calculation until floor thicknesses are confirmed.

Stair Width

36 inches is the IRC minimum clear width for residential stairs — this is the usable walking surface, measured between handrails (or between the handrail and the wall on a single-rail stair). The actual framing width must be wider to achieve 36" clear. For a comfortable everyday staircase, 42–48 inches is strongly recommended — it allows two people to pass and furniture to be moved. Measure the opening width in your floor plan before locking in this number.

Stair Type

Stair type affects material selection more than the calculation formula. Interior stairs use finished treads and risers with hardwood or carpet. Exterior/deck stairs must use weather-resistant materials — pressure treated lumber for stringers (required by code), composite or PT treads, and galvanized or stainless hardware. Basement stairs often use open risers and utility-grade lumber since they're not primary living space, but still must meet all IRC dimensional requirements.

Key Stair Terms

  • Riser — the vertical face of each step. The height of each riser must be consistent within ⅜" across the entire staircase.
  • Tread — the horizontal surface you step on, measured nose-to-nose (nosing to nosing).
  • Nosing — the front edge of the tread that projects beyond the riser below. Code requires ¾–1¼" projection for solid risers.
  • Run — the total horizontal distance from the base of the first riser to the face of the top riser.
  • Stringer — the diagonal structural board that supports treads and risers. Standard stairs use 3 stringers on a 36" wide stair. Always cut from 2×12 lumber — the remaining wood after notching must be at least 3.5" at the narrowest point.
  • Headroom — vertical clearance measured from the nosing of each tread to the ceiling or structure above. IRC minimum is 6 ft 8 in at all points along the stair path.
💡 The 17–18 Comfort Rule

The most comfortable staircases satisfy this formula: 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 code minimum). A 7.75" riser + 10" tread = 17.75" (at code limit). The calculator applies this rule automatically — but understanding it lets you manually verify your results make sense.

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)

The most common residential stair scenario: main floor to second floor, straight run, 36" wide, oak treads with painted risers.

Total rise measurement:

Subfloor to subfloor = 105". Upper level gets ¾" hardwood, lower level has ¾" hardwood → add ¾" - ¾" = 0 net difference. Total rise = 105 inches.

Number of risers:

105 ÷ 7.75 = 13.55 → round up to 14 risers.

Actual riser height:

105 ÷ 14 = 7.5 inches per riser. Under 7.75" max ✓

Number of treads:

14 risers − 1 = 13 treads.

Tread depth (comfort formula):

17.5 − 7.5 = 10.0 inches. At IRC minimum — comfortable.

Total run:

13 treads × 10" = 130" = 10 ft 10 in.

Stringer length:

√(105² + 130²) = √(11,025 + 16,900) = √27,925 = 167.1" (13.9 ft). Need 14 ft 2×12 stringers — buy 16 ft boards.

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 stringers3 pieces$35–$55 each$105–$165
Oak handrail (linear ft)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 descending from a deck surface to grade — the most common exterior stair project. Pressure treated stringers, composite treads.

Total rise (deck surface to grade):

Deck height above grade = 22 inches.

Number of risers:

22 ÷ 7.75 = 2.84 → round up to 3 risers.

Actual riser height:

22 ÷ 3 = 7.33 inches per riser. Under 7.75" max ✓

Number of treads:

3 risers − 1 = 2 treads (the deck surface acts as the top landing).

Total run:

2 treads × 10" = 20 inches (1 ft 8 in).

Stringer length:

√(22² + 20²) = √(484 + 400) = √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")4 boards (2 treads, doubled)$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: Short deck stairs (2–4 steps) are the most common DIY stair project. The biggest mistake: not anchoring the bottom of the stringers. Stringers must be anchored at both the top (to the deck frame) and the bottom (to a concrete pad, buried post anchor, or gravel base) — stringers floating on soil will shift and heave in freeze-thaw cycles, eventually pulling away from the deck.

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 since the basement has moisture history.

Total rise (main floor to basement floor):

Subfloor to concrete = 93". Main floor has ¾" hardwood, basement will have ¾" LVP flooring. Total rise = 93 + ¾ − ¾ = 93 inches.

Number of risers:

93 ÷ 7.75 = 12.0 → 12 risers exactly.

Actual riser height:

93 ÷ 12 = 7.75 inches per riser. At IRC maximum ✓ (verify local code)

Number of treads and total run:

12 − 1 = 11 treads. Tread depth: 17.5 − 7.75 = 9.75" → round up to 10" (IRC minimum). Run = 11 × 10" = 110" (9 ft 2 in).

Headroom check:

If floor opening starts at the top riser, measure from each tread nosing vertically to the floor above. With 93" rise over 110" run, the stair angle is 40°. At the first tread down, headroom = 96" (8 ft ceiling) − 0 = 96" ✓. Check each tread — tight basements with low headroom fail this check and require moving the stair opening.

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 — it's 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 the minimum standards for residential stairs in the US. Most municipalities adopt IRC with minor local amendments. The requirements below are IRC 2026 — always confirm with your local building department before finalizing stair design.

DimensionIRC RequirementRecommendedWhy It Matters
Riser Height4"–7¾" max7"–7¼"Taller risers cause tripping; shorter than 4" causes toe-stub
Tread Depth10" min (nose to nose)10"–11"Shorter treads don't support the full foot, increasing fall risk
Riser ConsistencyMax ⅜" variationUnder ¼"Inconsistent risers are the leading cause of stair falls
Stair Width36" min clear42"–48"36" is passable, 42"+ is comfortable for two people
Headroom6'8" min at all points7 ft+Measured vertically from nosing to structure above
Handrail Height34"–38"36"Measured vertically from tread nosing
Handrail Graspability1¼"–2" circular or Type II1½" roundMust be graspable along entire length — flat rails don't comply
Baluster SpacingMax 4" between3½"–4"Prevents 4" sphere (child's head) from passing through
Nosing Projection¾"–1¼" (if solid risers)1"Provides toe clearance when ascending
Landing at Top/BottomMin 36" × 36"48" × 48"Required at top and bottom of each stair flight

When Are Permits Required?

Building permits are required for virtually all structural stair work: new staircases, replacing staircases, deck stairs attached to permitted decks, and any stair that is the primary means of egress between floors. Moving or modifying a stair opening in the floor framing always requires a permit. Replacing only the treads and risers on an existing structure may not require a permit in some jurisdictions — confirm with your local building department. The inspection process typically involves a framing inspection (before any finish is applied) and a final inspection.

⚠️ The ⅜" Riser Consistency Rule Is Strictly Enforced

Of all stair code requirements, the ⅜" maximum variation between any two risers 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 then 7.75" at the last riser (because you miscalculated the finished floor thickness) 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

The right stair configuration depends on your available floor plan, budget, and how the stair will be used daily. Here's a practical comparison of all common types.

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

Straight vs L-Shaped — Which to Choose

Straight stairs are the cheapest and simplest to build but require a long unobstructed run — typically 10–13 ft of linear floor space for a standard 9 ft ceiling. If your floor plan doesn't have that space, an L-shaped stair is the next choice: it turns 90° at a landing mid-flight, requiring less linear footage at the cost of more complex framing. The landing in an L-shaped stair must be at least 36"×36" — typically 48"×48" to feel comfortable. The landing is not a tread — it does not count toward the step count but it does break the run into two shorter sections that both must meet code.

Rise & Run Quick Reference

Common floor-to-floor heights with pre-calculated stair dimensions. All configurations comply with IRC 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 calculated using comfort formula (17.5 − riser height, clamped to 10–11.25"). Stringer length calculated via Pythagorean theorem. All riser heights under 7¾" maximum.

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)

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

The labor portion of stair installation — cutting stringers, fitting treads and risers, installing handrails and balusters — is skilled work that takes an experienced carpenter 6–12 hours for a standard 14-step staircase. At $60–$90/hour for a finish carpenter, that's $360–$1,080 in labor alone, plus markup. DIY is genuinely feasible for straight staircases if you're comfortable with a circular saw, can cut accurate angles with a speed square, 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

This is the single most common stair calculation error. If you measure from subfloor to subfloor and then install ¾" hardwood on the upper level, your top riser ends up ¾" shorter than every other riser — instantly failing the ⅜" consistency requirement. Always calculate from finished floor surface to finished floor surface. If flooring isn't installed yet, account for the final flooring thickness in your total rise calculation before cutting a single stringer.

Not Verifying Headroom at Every Tread

Headroom must be 6 ft 8 in (80 inches) at every point along the stair path — measured vertically from each tread nosing to the ceiling or structure directly above it. Most builders check headroom at the first step down and at the bottom, but miss that intermediate treads can fail — particularly where the stair passes under a floor framing header. Draw the stair profile on graph paper with the overhead structure marked, and verify clearance at every tread before framing the floor opening.

Buying Stringers That Are Too Short

The stringer length from the Pythagorean theorem is the minimum length needed — but stringers must be purchased in standard lengths and cut down. For a 167" calculated stringer, you need a 16 ft board (192"), not a 14 ft board (168"). Always buy the next standard length up from your calculated minimum. Also: stringers must be cut from 2×12 lumber, and after cutting the tread and riser notches, at least 3.5" of uncut wood must remain at the narrowest point — called the "effective depth." Verify this before buying undersized lumber.

Skipping the Layout Step

Many first-time stair builders go straight from calculator to saw. The correct sequence: (1) calculate all dimensions, (2) mark the first stringer using a framing square with stair gauges at the exact riser and tread dimensions, (3) cut the first stringer, (4) test-fit the cut stringer in the actual opening before cutting the remaining stringers. Discovering an error after all three stringers are cut is a significant material loss. The test-fit step takes 15 minutes and is non-negotiable.

Incorrect Baluster Spacing

IRC requires that a 4-inch sphere cannot pass through the baluster spacing. Most builders install balusters at 4" spacing — which technically allows a 4" sphere to pass (the gap must be less than 4", meaning the finished opening between balusters must be 3⅞" or less). A practical installation approach: set balusters at 3¾" clear spacing, which ensures compliance with standard balusters up to ¼" width variation without remeasuring each one.

How We Calculate

Riser Count Formula

Risers = CEILING(Total Rise ÷ 7.75)

We divide by the IRC maximum riser height (7.75") and round up using a ceiling function. Rounding up ensures the actual riser height (Total Rise ÷ Risers) stays at or below 7.75" — the code maximum. Rounding down would produce risers above the maximum. The calculator also enforces the 4" minimum riser height by incrementing riser count if needed.

Tread Depth Formula

Tread Depth = 17.5 − Riser Height, clamped to 10"–11.25"

The 17.5 constant derives from the IRC comfort rule (riser + tread = 17–18"). We use 17.5 as the midpoint. The result is clamped to the IRC minimum (10") and a practical maximum (11.25") that prevents excessively shallow stair angles on very low-riser configurations. This formula produces code-compliant, comfortable stairs for all common residential rise values.

Stringer Length Formula

Stringer = √(Total Rise² + Total Run²)

Standard Pythagorean theorem applied to the right triangle formed by the stair's total rise (vertical leg) and total run (horizontal leg). This gives the diagonal length of the stringer cut — the minimum board length needed before accounting for the top and bottom cuts. Always add 6–12 inches to the calculated stringer length when purchasing boards to allow for the plumb cut at the top and the seat cut at the bottom.

Pricing Data

Material costs in the tables above are derived from retail pricing at Home Depot, Lowe's, and regional lumber yards for the specific materials listed, as of early 2026. Contractor installation costs are based on project data from HomeAdvisor and Angi for clearly scoped stair installation projects, cross-referenced with RSMeans labor unit data for residential finish carpentry. The ranges represent the 20th to 80th percentile of actual market pricing — excluding outlier low bids (incomplete scope) and outlier high bids (premium markets or complex projects).

💡 Always Verify on Site Before Cutting

Calculator results are as accurate as the measurements you enter. Before cutting any stringer, verify your total rise measurement on-site with a level and tape — floors are rarely perfectly level and the actual measurement at the stair location may differ from architectural drawings by ¼–½". A ½" error in total rise on a 14-riser stair produces a 0.036" error per riser — under the ⅜" limit, but cumulative errors in measurement and cutting can push you over. Measure twice, calculate once, cut once.

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 → round up to 14 risers = 13 treads, with a 7.71" riser height. If finished floor thicknesses shift the total rise to 105": 105 ÷ 7.75 = 13.5 → 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 depending on finished floor and subfloor thicknesses. At 96": 96 ÷ 7.75 = 12.4 → 13 risers = 12 treads, riser height 7.38". At 100": 100 ÷ 7.75 = 12.9 → 13 risers = 12 treads, riser height 7.69" (just under the 7.75" maximum). 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?+
The IRC sets a maximum of 7¾ inches and minimum of 4 inches for riser height. 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 don't choose it freely, you engineer toward it.
What is the minimum tread depth for stairs?+
IRC minimum tread depth is 10 inches, measured horizontally from nosing to nosing. The recommended comfortable range is 10–11 inches. Tread depth and riser height should sum to 17–18 inches for the most ergonomic stair. Very deep treads (over 12") on steep stairs feel awkward because your stride doesn't match the geometry — the 17–18 rule keeps the riser and tread proportional to natural walking stride.
How do I calculate stringer length?+
Stringer length = √(Total Rise² + Total Run²). Example with 105" rise and 130" run: √(11,025 + 16,900) = √27,925 = 167.1 inches. You need a board at least 167" long — buy a 16 ft (192") 2×12 board to allow for the top plumb cut and bottom seat cut. The 2×12 is required because after cutting the tread and riser notches, at least 3.5" of uncut wood (the "effective depth") must remain — a 2×10 is usually inadequate.
How wide should stairs be?+
IRC minimum clear stair width is 36 inches for residential stairs. However, 42–48 inches is strongly recommended for everyday comfort — it allows two people to pass each other and furniture to be moved up and down. 36" feels narrow in regular use. The clear width is measured between the handrail and the opposite wall (or between handrails on a freestanding stair). The structural framing must be wider than the clear width to account for wall finish and handrail projection.
How much does it cost to build stairs?+
Cost varies significantly by stair type and finish level: exterior deck stairs (3–4 steps) run $400–$900 installed. Basement utility stairs run $900–$2,000. Interior straight stairs with standard wood treads and handrail run $1,500–$4,000 installed. Interior stairs with oak treads and full balustrade run $2,500–$6,000. L-shaped or winder stairs run $3,500–$9,000. Floating open-riser custom stairs run $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 in 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 homeowner's insurance claims on related incidents.
Scroll to Top