Stair Calculator — Steps, Rise, Run & Total Length
Calculate the number of stair steps, rise per step, run per step, and total stair run. Enter total rise and desired riser height for an instant stair layout. Free stair calculator.
How to Calculate Stair Steps
Stair design is governed by one of the most critical formulas in construction — get it wrong and the stairs will feel uncomfortable, tiring, or even unsafe. The fundamental calculation determines how many risers fit within a given floor-to-floor height and how deep each tread should be for a natural walking stride.
The stair formula:
- Number of risers: Total rise (in) ÷ Desired riser height (in), rounded to nearest whole number
- Actual riser height: Total rise ÷ Number of risers (this redistributes any rounding)
- Run per step (tread depth): Use the 2R + T = 24–25 rule: Tread = 24 − (2 × riser)
- Total run: (Number of risers − 1) × Tread depth
Example: Total rise = 96 inches (8 ft floor-to-floor). Desired riser = 7.5 inches. Number of risers = 96 ÷ 7.5 = 12.8 → round to 13 risers. Actual riser = 96 ÷ 13 = 7.38 inches. Tread = 24 − (2 × 7.38) = 9.24 inches. Total run = 12 treads × 9.24 = 110.8 inches (9.23 ft).
Why risers ≠ treads: There is always one more riser than tread. Think of it this way: the top landing counts as the final "tread" — it's the floor you step onto. So a staircase with 13 risers has 12 treads (12 physical steps you step on), with the landing as the 13th destination.
Building Code Requirements for Stairs (IRC)
The International Residential Code (IRC) sets minimum standards for residential stair design that most US jurisdictions adopt. Understanding these limits helps ensure your stair design is both safe and code-compliant:
| Parameter | IRC Minimum/Maximum | Recommended Range |
|---|---|---|
| Maximum riser height | 7-3/4 inches (7.75 in) | 7 – 7.5 inches |
| Minimum riser height | 4 inches | 6 – 7.5 inches |
| Minimum tread depth | 10 inches | 10 – 11 inches |
| Maximum riser variation | 3/8 inch between steps | < 1/8 inch ideal |
| Minimum stair width | 36 inches | 36 – 42 inches |
| Minimum headroom | 6 ft 8 in (80 inches) | 7 ft preferred |
| Handrail height | 34 – 38 inches above tread nosing | 36 inches standard |
The most critical code requirement: All risers must be within 3/8 inch of each other. This is a safety standard — if one riser is noticeably different from the others, the stair user's brain misjudges the step height based on the established rhythm and trips. In practice, aim for all risers within 1/8 inch to pass inspection comfortably.
This is why the rounding step in stair calculation matters so much: if you blindly round 12.8 risers down to 12, each riser becomes 8.0 inches — which exceeds the 7.75-inch maximum. Always recalculate the actual riser height after rounding the riser count.
The 2R + T = 24 Rule Explained
The stair comfort formula — "twice the riser plus the tread equals 24 to 25 inches" — has been used by architects and builders for over 300 years. It's attributed to the French military engineer François Blondel (1672) and encodes the natural walking stride of an average adult.
| Riser Height (in) | Tread Depth (in) | 2R + T | Feel |
|---|---|---|---|
| 6.0 | 12.0 | 24.0 | Very comfortable, shallow pitch |
| 6.5 | 11.0 | 24.0 | Comfortable, common for exterior stairs |
| 7.0 | 11.0 | 25.0 | Standard, comfortable for most people |
| 7.5 | 10.0 | 25.0 | Steeper but within comfort range |
| 7.75 | 10.0 | 25.5 | IRC maximum, acceptable |
| 8.0 | 9.0 | 25.0 | Too steep — fails IRC maximum riser |
Lower risers with deeper treads feel comfortable and leisurely but require more horizontal space (longer total run). Higher risers with shallower treads are more compact but feel steeper and more tiring to climb. The ideal balance for most residential applications is a 7-inch riser with a 10–11-inch tread.
For exterior stairs (decks, porches, landscape steps), the recommended riser is lower: 5.5–6.5 inches with 11–14-inch treads. The shallower pitch feels more natural for outdoor use, is safer in rain and ice, and is gentler on the body when carrying items. Many deck codes allow up to 7.75-inch risers, but 6.5 inches is much more comfortable in practice.
Stair Stringer Design
The stringer is the structural diagonal board that supports the treads and risers. Understanding stringer layout is essential before cutting:
- Stringer board size: Typically a 2×12 nominal board (actual 1.5" × 11.25"). Minimum 3.5 inches of net width must remain below the deepest cut after notching for treads and risers.
- Number of stringers: One on each side plus one in the middle for any stair wider than 30 inches. A 36-inch-wide stair needs 2 stringers; 48+ inches needs 3.
- Stringer length formula: √(total run² + total rise²) — the Pythagorean theorem. A 96-inch rise with 110-inch run needs a stringer of √(96² + 110²) = √(9,216 + 12,100) = √21,316 ≈ 146 inches (12.2 feet).
- First step reduction: The bottom riser height must be reduced by the tread thickness to maintain consistent step height after the tread is added. This is a common mistake that causes an out-of-compliance variation at the bottom step.
A critical installation detail: the top of the finished stringer must attach to a structural element — the rim joist, a landing, or a dedicated stair attachment. Never attach stringers only to the deck surface; the shear forces from stair use require a solid structural connection that goes through the deck to the framing.
Stair Total Run by Common Configurations
| Total Rise | Risers @ 7" each | Tread 11" | Total Run |
|---|---|---|---|
| 42 in (3.5 ft) | 6 risers | 5 treads | 55 in (4.6 ft) |
| 56 in (4.7 ft) | 8 risers | 7 treads | 77 in (6.4 ft) |
| 70 in (5.8 ft) | 10 risers | 9 treads | 99 in (8.25 ft) |
| 84 in (7 ft) | 12 risers | 11 treads | 121 in (10.1 ft) |
| 96 in (8 ft) | 14 risers | 13 treads | 143 in (11.9 ft) |
| 108 in (9 ft) | 16 risers | 15 treads | 165 in (13.75 ft) |
These calculations use ideal 7-inch risers and 11-inch treads. The total run determines how much floor space the stair landing zone requires at the bottom. For interior stairs where space is limited, a 7.5-inch riser with 10-inch tread reduces total run significantly while staying within code.
Winder Stairs, L-Shaped, and Spiral Stairs
Not every stair goes straight. Space constraints often require changes in direction, each with different design challenges:
- L-shaped stairs: A 90° turn with a landing. The landing adds a rest point and can be any size, but each flight still must meet full riser/tread requirements. Minimum landing depth = stair width (typically 36 inches).
- U-shaped (switchback) stairs: Two parallel flights connected by a landing. Common in tight spaces. The landing between flights must be at least 36 inches deep.
- Winder stairs: Replace landings with angled "winder" treads that turn the direction. Winders are more compact but trickier to build. IRC requires minimum 6-inch tread depth at the narrow point and minimum 10 inches at 12 inches from the narrow end. Winders are slightly less safe than landings because the narrow inside section reduces foot placement options.
- Spiral stairs: Very compact, but IRC limits them to secondary use (code-compliant only for attic access or one additional floor). Minimum 26-inch clear diameter, minimum 7.5-inch tread depth at 12 inches from the narrow edge. Spiral stairs are not allowed as primary egress in most jurisdictions.
For any non-straight stair design, verify your specific local jurisdiction's requirements — some have stricter standards than the IRC minimums, particularly for winder tread dimensions.
Frequently Asked Questions
How do I calculate the number of stairs for 8 feet of rise?
For 8 ft = 96 inches of total rise: divide by a comfortable riser height of 7 inches = 13.7 risers. Round to 14 risers. Actual riser height = 96 ÷ 14 = 6.86 inches. Using an 11-inch tread, total run = 13 treads × 11 in = 143 inches (11.9 ft). This is the floor space the staircase occupies horizontally.
What is the maximum riser height allowed by building code?
The International Residential Code (IRC) sets a maximum riser height of 7-3/4 inches (7.75 in) for residential stairs. Most jurisdictions follow this standard. All risers within a staircase must be within 3/8 inch of each other — consistent riser height is as important as the actual height for safety.
How deep should stair treads be?
The IRC minimum tread depth is 10 inches (measured from nosing to nosing). The comfortable range using the 2R + T = 24 formula: with a 7-inch riser, tread = 24 − 14 = 10 inches minimum; with a 6.5-inch riser, tread = 11 inches. For exterior stairs, 11–12-inch treads are preferred for comfort and safety in wet conditions.
What is the difference between riser and tread?
A riser is the vertical face of a step — the height you lift your foot. A tread is the horizontal surface you step on — the depth your foot lands on. A typical stair has equal numbers of risers and treads, except the top landing counts as an implied tread, so there's always one more riser than physical tread boards in a flight of stairs.
How many steps is a standard 9-foot ceiling staircase?
A 9-foot floor-to-floor height = 108 inches. At a 7-inch riser: 108 ÷ 7 = 15.4 → round to 15 or 16 risers. With 15 risers: actual riser = 108 ÷ 15 = 7.2 inches (within code). With 16: actual riser = 6.75 inches (very comfortable). Most builders choose 14–16 steps for a 9-ft ceiling depending on available horizontal space.
Stair Safety and Long-Term Performance
Stairs are one of the most-used structural elements in a home and one of the leading causes of household injuries. Building stairs correctly from the start pays dividends in both safety and longevity for decades.
Consistent riser height is non-negotiable: The human brain subconsciously measures the first few steps of a staircase and locks in the expected rhythm. If any subsequent step differs by even 1/4 inch, the user's foot misjudges the placement and a stumble results. The most dangerous variation is the transition between the bottom step and the floor, or the top step and the landing. Always double-check the bottom riser (which must account for the tread thickness) and top riser (which connects to the finished floor level, including any flooring material not yet installed).
Structural attachment is critical: The forces on a stair stringer are significant — both vertical load (people's weight) and horizontal shear (the lateral force of stepping). Stringers must be attached to structural framing, not just to a deck surface or drywall. At the top, a hanger or ledger connection to the rim joist or header. At the bottom, a post anchor or concrete pad. Floating stringers attached only to surface materials fail over time and create the hazard of an entire staircase shifting or collapsing.
Handrail grip matters: Code requires handrails on stairs with 4+ risers, at 34–38 inches above the tread nosing. The grip section must be graspable — a 1-1/4 to 2-inch round profile or equivalent graspable shape. A 2×4 laid flat or a decorative wide rail are not graspable and don't meet code. This requirement exists because a proper graspable handrail is the primary safety feature that prevents a stumble from becoming a fall — you can actually grab it during a misstep.
Tread nosing projection: The nosing is the part of the tread that overhangs the riser below. IRC requires nosings to project 3/4 to 1-1/4 inches beyond the riser face. The nosing adds effective step depth without increasing total run. However, open risers with excessive nosing overhang are a tripping hazard — the foot catches the overhanging edge on the way up. Keep nosing overhang within the code range.
Outdoor stair drainage: Exterior wood stairs collect water at the tread-riser junction and at the stringer notches — exactly where rot begins. Install drip grooves on the underside of the tread nosing to break the capillary bond that wicks water into the joint. Use stainless steel or hot-dipped galvanized hardware. Seal end grain on all cuts immediately. Consider composite treads over wood stringers as a low-maintenance alternative for high-exposure locations.