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.
Treads = Risers − 1 · Tread Depth = 17.5 − Riser Height (clamped 10–11.25")
Total Run = Treads × Tread Depth · Stringer = √(Rise² + Run²)
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 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.
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.
| 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 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.
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.
| Material | Qty | Unit Cost | Total |
|---|---|---|---|
| PT 2×12×8 ft stringers | 3 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 screws | 1 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.
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.
| Dimension | IRC Requirement | Recommended | Why It Matters |
|---|---|---|---|
| Riser Height | 4"–7¾" max | 7"–7¼" | Taller risers cause tripping; shorter than 4" causes toe-stub |
| Tread Depth | 10" min (nose to nose) | 10"–11" | Shorter treads don't support the full foot, increasing fall risk |
| Riser Consistency | Max ⅜" variation | Under ¼" | Inconsistent risers are the leading cause of stair falls |
| Stair Width | 36" min clear | 42"–48" | 36" is passable, 42"+ is comfortable for two people |
| Headroom | 6'8" min at all points | 7 ft+ | Measured vertically from nosing to structure above |
| Handrail Height | 34"–38" | 36" | Measured vertically from tread nosing |
| Handrail Graspability | 1¼"–2" circular or Type II | 1½" round | Must be graspable along entire length — flat rails don't comply |
| Baluster Spacing | Max 4" between | 3½"–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/Bottom | Min 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.
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.
| 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 |
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 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 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
| 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)
| 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 |
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).
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
Plan your full stair project with these free calculators.
