Stair Rise and Run Calculator

Use this free stair rise and run calculator to quickly determine the correct dimensions for your staircase. Enter total height, step rise, and tread depth to get accurate results, including number of steps, rise per step, and run length, making it ideal for construction, renovation, and DIY projects.

stair rise run calculator online
By ConstructlyTools Editorial Team · Published: March 29, 2026 · Updated: May 3, 2026 · Sources: IRC 2026 · IBC · CPSC
Stair Rise & Run Calculator
📐 Formula
Steps = ROUND(Total Rise ÷ Target Riser) · Actual Riser = Total Rise ÷ Steps · Stringer = √(Riser² + Tread²) × Steps · Per IRC 2026 R311.7: max riser 7¾″, min tread 10″, min width 36″ · Comfort: Rise + Run = 17–18″
Number of Steps
Enter total rise above
Riser Height
Total Run
Stringer Length
Code Compliance

IRC residential: max riser 7¾ in · min tread 10 in · min width 36 in · Exterior stairs: max riser 7¾ in · min tread 11 in · All steps must be identical — riser variation > ⅜ in is a code violation

How Does the Stair Rise & Run Calculator Work?

This calculator takes your total floor-to-floor height (total rise), desired tread depth (run), and stair width, then calculates the number of steps, actual riser height, total horizontal run, stringer length, and an IRC/IBC code compliance check for each dimension.

Getting stair dimensions right matters for two reasons: safety (inconsistent riser heights are the leading cause of stair falls) and code compliance (out-of-code stairs must be rebuilt before a home can be sold or a permit closed). The IRC gives you specific allowable ranges — this calculator checks all of them automatically.

💡 The 17–18 Rule for Comfortable Stairs

The ergonomic formula for comfortable stair proportion is: Rise + Run = 17 to 18 inches. A 7-inch rise + 11-inch run = 18 ✓. A 7.5-inch rise + 10-inch run = 17.5 ✓. This range produces stairs that feel natural to climb without straining or shuffling. Steeper stairs (smaller run) feel like a ladder; shallower stairs (larger run) make people shuffle their feet. The ideal sweet spot is 7-inch rise × 11-inch run for interior residential stairs.

For the lumber and materials needed to build your stairs, use our stair material calculator to get exact board counts and dimensions for stringers, treads, and risers.

IRC Stair Code Requirements (2021 IRC)

The International Residential Code (IRC) sets the minimum standards for residential stairs in the US. Most states and municipalities have adopted the IRC with minor local amendments. Always verify with your local building department before building.

DimensionIRC ResidentialIBC CommercialExterior/Deck
Max Riser Height7¾ in (7.75")7 in7¾ in
Min Riser Height4 in4 in4 in
Min Tread Depth10 in11 in11 in
Min Stair Width36 in44 in (occupancy dependent)36 in
Max Riser Variation⅜ in between any two risers⅜ in⅜ in
Min Headroom6 ft 8 in (80")6 ft 8 inN/A (open)
Handrail Required4+ risersAll stairs4+ risers
Handrail Height34–38 in above tread nosing34–38 in34–38 in
⚠️ Riser Variation Is the Most Common Code Violation

The IRC requires that no two adjacent risers differ by more than ⅜ inch. This means if you calculate 7.5-inch risers but your total rise doesn't divide evenly, you cannot simply make the bottom or top step a different height — you must adjust all riser heights uniformly. The calculator above distributes the remainder equally across all steps to ensure uniform riser heights that meet the ⅜-inch tolerance requirement.

Stair Type Guide

Stair TypeTypical RiseTypical RunKey Notes
Interior Residential6½ – 7¾ in10 – 12 inMost common — carpet or hardwood treads
Exterior / Deck5 – 7¾ in11 – 14 inShallower pitch feels better outdoors; pressure treated lumber
Basement7 – 7¾ in10 – 11 inOften steeper due to space constraints — open risers common
Attic / Ship's Ladder8 – 12 in8 – 10 inSteep access stairs — not code compliant for main stairs
Commercial / Public4 – 7 in11 – 14 inIBC requires min 11" tread, 44" width for high-occupancy
Winding / Curved6 – 7¾ in10–12 in (at walk line)Tread width measured 12" from narrow end for winders
✅ The Ideal Interior Stair: 7" Rise × 11" Run

A 7-inch rise with an 11-inch tread (run) is widely considered the ideal ergonomic stair proportion for interior residential use — comfortable for all ages, code compliant in all US jurisdictions, and aesthetically proportionate. It produces a 34.8° angle of ascent, which feels natural. If your total rise doesn't divide evenly into 7-inch risers, round to the nearest number that gives you a riser between 6.5 and 7.75 inches and adjust your tread depth to maintain the 17–18 inch sum.

Example Calculations

Example 1 — Standard Interior Staircase

Total rise: 108 inches (9 ft floor-to-floor) · Desired tread: 10 in

Steps = 108 ÷ 7.0 (target riser) = 15.43 → round to 15 steps

Actual riser = 108 ÷ 15 = 7.2 in per step ✓ (under 7.75" max)

Total run = 15 × 10 = 150 in = 12.5 ft

Stringer length = √(7.2² + 10²) per step × 15 = 12.33 × 15 = 185 in ≈ 15.4 ft

Example 2 — Deck / Exterior Stairs

Deck height: 60 inches (5 ft) · Desired tread: 12 in

Steps = 60 ÷ 7.0 = 8.57 → round to 8 steps

Actual riser = 60 ÷ 8 = 7.5 in per step

Total run = 8 × 12 = 96 in = 8 ft

Check: Rise + Run = 7.5 + 12 = 19.5 — slightly above ideal 17–18; consider 7 steps with 8.57" riser (exceeds max) — stay with 8 steps and narrow tread to 11 in for 18.5 sum.

Example 3 — Tight Space / Steep Stair

Basement stair: 94 inches total rise · Limited to 8 ft horizontal

Steps = 94 ÷ 7.75 = 12.13 → round to 13 steps

Actual riser = 94 ÷ 13 = 7.23 in

Max available tread = 96 in ÷ 13 = 7.38 in ✗ — below 10 in minimum

→ Reduce to 12 steps: riser = 94 ÷ 12 = 7.83 in ✗ — exceeds max 7.75 in

→ Solution: 13 steps with open risers; add landing or use alternating tread stair

Frequently Asked Questions

What is the standard rise and run for stairs?+
The IRC standard for residential stairs is a maximum riser height of 7¾ inches (7.75") and a minimum tread depth of 10 inches. The ideal ergonomic stair has a 7-inch rise and 11-inch run (rise + run = 18). All risers in a staircase must be the same height within ⅜ inch — variation greater than this is a code violation and must be corrected before a home can pass inspection.
How do I calculate the number of stairs I need?+
Divide the total rise (floor-to-floor height in inches) by your target riser height (typically 7 inches). Round to the nearest whole number — this is your step count. Then divide the total rise by that step count to get the actual uniform riser height. Example: 108" total rise ÷ 7" target = 15.4 → 15 steps → 108 ÷ 15 = 7.2" actual riser height. The calculator above does this automatically and checks the result against IRC code requirements.
How long does a stair stringer need to be?+
Stringer length is calculated using the Pythagorean theorem applied to one step, then multiplied by the number of steps. For each step: stringer length per step = √(riser² + tread²). Multiply by the number of steps for total stringer length. Add 6–12 inches for the top and bottom connection cuts. A 15-step stair with 7.2" risers and 10" treads requires stringers approximately 15.5 ft long, which means you need 16-foot boards with minimal waste.
What is the minimum stair width for residential stairs?+
The IRC minimum stair width for residential stairs is 36 inches measured at and below the handrail height, and above the handrail on the other side. Where handrails project into the stairway on both sides, the minimum clear width between handrails must be at least 31.5 inches. Commercial stairs under the IBC require a minimum of 44 inches for most occupancies. Wider stairs (42–48 inches) are much more comfortable for two people passing and for moving furniture.
Do deck stairs have different requirements than interior stairs?+
Yes — exterior and deck stairs have a minimum tread depth of 11 inches (vs 10 inches for interior), though the maximum riser height of 7¾ inches is the same. The additional inch of tread depth makes sense outdoors where people may be wearing bulkier footwear or carrying items. Deck stair stringers must be pressure treated lumber (ground contact rated) and all hardware must be hot-dip galvanized or stainless steel to resist corrosion. Handrails are required when there are 4 or more risers.
How do I measure total rise for stair calculations?+
Total rise is the vertical distance from the finished floor at the bottom of the stairs to the finished floor at the top — measured plumb (straight up and down). Do not measure along the wall or along the slope of the stair. For deck stairs, measure from the finished deck surface to the finished grade at the base of the stairs. Always measure to finished floor surfaces, not subfloor — if you're adding flooring, account for its thickness in your total rise before calculating.

How We Calculate

Step Count

Steps = ROUND(Total Rise ÷ Target Riser Height)

The calculator starts with a target riser height of 7.0 inches for interior and exterior stairs (6.5 inches for commercial) and divides the total rise by that target. The result is rounded to the nearest whole number — you cannot have a fractional step. Rounding up gives more steps with shorter risers; rounding down gives fewer steps with taller risers. The calculator chooses the rounding direction that keeps the result within code limits.

Actual Riser Height

Actual Riser = Total Rise ÷ Steps

Once the step count is established, the total rise is divided evenly among all steps. This ensures every riser is identical — which is the IRC requirement (no two adjacent risers may vary by more than ⅜ inch). The resulting riser height is almost never a round number: 108 inches ÷ 15 steps = 7.2 inches per riser. This is the dimension you cut to when building the stair stringers.

Total Horizontal Run

Total Run = Steps × Tread Depth

The total horizontal run is the floor-plan length the staircase occupies. This is critical for determining whether the stairs fit in the available space. Note: the number of treads equals the number of risers minus one for a normal staircase (the top landing is the upper floor itself), but the calculator uses the full step count multiplied by tread depth for simplicity — the difference is one tread depth, which you should verify against your space.

Stringer Length

Stringer Length = √(Riser² + Tread²) × Steps

Each step forms a right triangle with the riser and tread as legs. The hypotenuse is the stringer length per step, calculated using the Pythagorean theorem. Multiplying by the number of steps gives the total stringer board length needed. Add 6–12 inches for the top and bottom connection cuts when ordering lumber. A 15-step stair with 7.2″ risers and 10″ treads requires a stringer approximately 15.4 ft long — order 16-ft 2×12 boards.

Code Compliance Check

The calculator checks each calculated dimension against the applicable code limits (IRC for interior/exterior, IBC for commercial): riser height must be between 4″ and 7¾″; tread depth must meet the minimum for the stair type; width must meet the minimum. The Rise + Run sum is checked against the 17–18″ ergonomic comfort range (this is not a code requirement, but a comfort guideline). Each dimension displays a pass/warn/fail badge in the IRC Code Check panel below the result.

📚 References & Data Sources
  1. IRC 2026 (International Residential Code) — Section R311.7 Stairways — Maximum riser height 7¾ inches (Section R311.7.5.1); minimum tread depth 10 inches (R311.7.5.2); minimum stair width 36 inches (R311.7.1); maximum riser height variation ⅜ inch between any two risers in a flight (R311.7.5.1); minimum headroom 6 ft 8 in (R311.7.2); handrail required for 4+ risers at 34–38 inches above tread nosing (R311.7.8). These are the residential code requirements checked by the calculator’s compliance panel. International Code Council, 2026 edition.
  2. IBC (International Building Code) — Section 1011 Stairways — Maximum riser height 7 inches (Section 1011.5.2); minimum tread depth 11 inches (1011.5.2); minimum stair width 44 inches for occupancies with occupant load 50 or more (1011.2). Used for the Commercial stair type option in the calculator. International Code Council, current edition.
  3. CPSC (US Consumer Product Safety Commission) — Stair Safety Guidelines — Riser height variation (inconsistent riser heights) is cited by the CPSC as a leading cause of stair-related falls, which are among the most common home injury accidents. Referenced in the riser variation callout in the IRC code section and the FAQ answer on riser uniformity requirements. The ⅜″ maximum variation tolerance is the IRC standard that directly addresses this safety hazard. CPSC, current edition.
  4. Ergonomic Stair Design — Rise + Run = 17–18″ Rule — The ergonomic proportion rule for comfortable stair design (rise + run = 17 to 18 inches) has been used in architecture and building practice since at least the 18th century and is attributed to the French architect François Blondel (1617–1686). It is referenced in the AIA Architectural Graphic Standards and in modern residential design practice as the comfort target for stair geometry, though it is not a code requirement. Referenced in the 17–18 rule callout and the stair type guide. AIA Architectural Graphic Standards; architectural tradition.

Code requirements shown are from the model IRC 2026 and IBC — always verify with your local building department, which may have adopted local amendments. Stair dimensions must be verified by a licensed contractor or building inspector before construction. ConstructlyTools does not have a paid relationship with any lumber supplier or contractor mentioned on this page.

Scroll to Top