Stair Calculator — Free Rise, Run, Stringer & Code-Compliant Design 2026 | AllInOneTools
🪜 Construction & Home Improvement

Stair Calculator

Calculate the perfect stair dimensions — number of steps, riser height, tread depth, stringer length, and total run. Building code compliance check included with visual stair diagram.

Total Rise (Floor-to-Floor Height)
inches
inches
Stair Options
inches
inches
inches
📐
Stair Dimensions
Building Code Check (IRC)
🪵
Material Estimate
📝 Step-by-Step Calculation
💡

Stair Calculator: The Complete Guide to Designing Code-Compliant Stairs

Stairs are one of the most structurally and dimensionally critical elements in any building. Incorrectly designed stairs are uncomfortable at best and dangerous at worst — uneven risers are a leading cause of falls. Building codes exist specifically to ensure stairs are safe and consistent. This guide walks you through every dimension, code requirement, and practical consideration.

The Core Stair Formulas

Number of Risers = Total Rise ÷ Desired Riser Height (round to nearest whole number)
Actual Riser Height = Total Rise ÷ Number of Risers
Number of Treads = Risers − 1 (top tread is the upper floor)
Total Run = Number of Treads × Tread Depth
Stringer Length = √(Total Rise² + Total Run²)
Stair Angle = arctan(Total Rise ÷ Total Run)
Worked Example — Interior Stairs (8ft Ceiling)
Total rise: 108" (96" ceiling + 12" floor structure)
Desired riser: 7.5" → 108 ÷ 7.5 = 14.4 → 14 risers
Actual riser: 108 ÷ 14 = 7.714" ✓ (under 7.75" max)
Treads: 14 − 1 = 13 treads at 10.5" each
Total run: 13 × 10.5 = 136.5" (11 ft 4.5 in)
Stringer: √(108² + 136.5²) = 174.1" = 14.5 ft (use 16ft 2×12)

IRC Building Code Requirements

The International Residential Code (IRC) sets minimum standards for residential stairs. These are the key requirements that every set of stairs must meet, and our calculator checks automatically.

Critical Code Requirements
Maximum riser height: 7.75 inches. Minimum tread depth: 10 inches. Maximum riser variation: 3/8 inch between largest and smallest riser. Minimum width: 36 inches clear. Minimum headroom: 6 ft 8 in (80 inches). Handrail height: 34–38 inches above nosing. Landing at top and bottom: depth ≥ stair width. Nosing: 3/4–1.25 inches overhang (or no nosing with 11"+ tread depth).

The 7/11 Rule

The most universally comfortable stair has a 7-inch rise and 11-inch run. This produces an angle of about 32.5 degrees — gentle enough for elderly and children, yet efficient in floor space. A secondary comfort check: riser + tread should equal 17–18 inches. This formula (known as the "rule of 17") ensures the stairs feel natural to climb. Our calculator evaluates both the code compliance and the comfort factor.

Stringer Design

Stringers are the structural backbone of any staircase. They must be cut from 2×12 lumber — anything smaller won't have enough remaining wood after the notches are cut. After cutting, at least 3.5 inches of solid wood must remain at the narrowest point (the "throat"). Three stringers is standard for stairs up to 36 inches wide; use four for wider stairs. The top of the stringer connects to the header joist; the bottom sits on a concrete pad or pressure-treated kicker plate.

Pro Tip — Measure Total Rise Exactly
The total rise measurement is the single most important number. Measure from the finished floor surface at the bottom to the finished floor surface at the top. If floors aren't finished yet, account for the finished floor thickness (3/4" hardwood, 3/8" tile + mortar, etc.). A 1/2" error in total rise distributed across 14 risers means each riser is off by only 0.036" — practically invisible and code-compliant.

Frequently Asked Questions

How do you calculate stair dimensions?
Measure total rise (floor-to-floor). Divide by ideal riser (7-7.75"). Round to nearest whole number = risers. Divide total rise by risers = exact riser height. Treads = risers − 1. Total run = treads × tread depth. Stringer = √(rise² + run²). The 7/11 rule (7" rise, 11" tread) is the most comfortable combination.
What is the building code for stairs?
IRC code: max riser 7.75", min tread 10", min width 36", min headroom 80", max riser variation 3/8", handrail 34-38" above nosing. Landing required at top and bottom. These are national minimums — local codes may be stricter. Always check with your local building department.
How many steps for an 8-foot ceiling?
8ft ceiling = ~108" total rise (including floor structure). At 7.5" per riser: 108 ÷ 7.5 = 14.4 → 14 risers at 7.71" each. That's 13 treads. Total run at 10.5" treads: 136.5" = 11 ft 4.5 in of horizontal floor space needed.
How do you calculate stringer length?
Stringer = √(total rise² + total run²). Example: 108" rise, 136.5" run = √(11,664 + 18,632) = 174.1" = 14.5 ft. Use 16ft 2×12 lumber. Maintain at least 3.5" throat depth after notch cuts. Use 3 stringers for stairs up to 36" wide, 4 for wider.
What is the ideal stair angle?
30-35 degrees is ideal. Code max is ~42 degrees (7.75" rise / 10" tread). The 7/11 rule produces 32.5° — the most comfortable angle. Steeper stairs feel cramped; shallower ones waste floor space. Outdoor deck stairs are often shallower (25-30°) for safety.
How wide should stairs be?
Code minimum 36" clear width above handrail. Recommended 42-48" for comfort and furniture moving. Main stairs in upscale homes: 48-60". Exterior deck stairs: minimum 36". Handrails can project 4.5" into width on each side. Basement stairs are often minimum 36".
Do I need a landing?
Yes — code requires landings at top and bottom, at least as deep as the stair width (min 36"). For rises over 12 vertical feet, an intermediate landing is required. L-shaped and U-shaped stairs have landings at the turn. Exterior landings may slope slightly (max 1/4" per foot) for drainage.