CalcNeeds
CalcNeeds

Stair Calculator

Calculate stair dimensions including risers, treads, total run, and stringer length based on building codes.

The total vertical height from the lower floor to the upper floor

Ideal range: 7″ to 7.75″. IRC max is 7-3/4″

IRC minimum is 10″. Standard is 10-11″

IRC minimum is 36″ for residential stairs

Advertisement

Last updated: April 8, 2026· Reviewed by the CalcNeeds Team

About This Calculator

This stair calculatortakes a total floor-to-floor rise and gives you the exact stair dimensions: number of risers, actual riser height, tread depth, total horizontal run, and stringer length. Enter your total rise (the vertical distance between the two finished floors) and you'll get a complete, code-compliant staircase layout in seconds. It checks against International Residential Code (IRC) limits and the universal comfort formula so the result is both legal and pleasant to walk on.

Building stairs is one of the most exacting parts of residential carpentry — small errors in riser height get amplified across every step and become trip hazards or code violations. Use this tool before you cut a single piece of lumber.

Rise and run — the basics

Every staircase is defined by two numbers: total rise (vertical distance from one finished floor to the next) and total run (horizontal distance the staircase covers).

These get divided into individual risers (the vertical face of each step) and treads(the horizontal surface you step on). The number of risers is always one more than the number of treads, because the topmost "step" is the upper floor itself.

To find the number of risers, divide total rise by your target riser height (usually 7.5 inches) and round to the nearest whole number. Then divide total rise by that whole number to get the actual riser height. Example: 108-inch total rise ÷ 7.5 = 14.4 → round to 14 risers → 108 ÷ 14 = 7.71 inches per riser. Then 13 treads at 10–11 inches each.

IRC building code requirements (US residential)

The 2021 International Residential Code (used by most U.S. jurisdictions for single-family homes) sets these limits:

Maximum riser height: 7-3/4 inches (7.75").

Minimum tread depth: 10 inches. Measured from the front nosing to the riser behind it (excluding the nosing overhang).

Minimum stair width: 36 inches above the handrail height.

Maximum variation: all risers in one flight must be within 3/8 inch of each other; same for treads. Larger variations are trip hazards and will fail inspection.

Minimum headroom: 6 ft 8 in (80") measured vertically from the nosing of any tread to any overhead obstruction.

Handrails: required on at least one side for any flight with 4+ risers, mounted 34–38 inches above the tread nosings.

Nosing: 3/4 inch to 1-1/4 inch overhang required when tread depth is less than 11 inches.

Always check with your local building department — jurisdictions can amend the IRC and some have stricter rules.

The comfort formula

Within the code limits, there's still a wide range of possible stair geometries — and not all of them feel comfortable to walk on. The widely-used comfort formula is:

2R + T = 24 to 25 inches

Where R is riser height and T is tread depth, both in inches. Stairs that satisfy this rule feel natural; stairs outside it feel either too steep (your knees take a beating) or too shallow (your foot stretches awkwardly between treads).

Common comfortable combinations: 7.5" riser with 10" tread (2×7.5 + 10 = 25), 7" riser with 11" tread (2×7 + 11 = 25), or 6.5" riser with 12" tread (2×6.5 + 12 = 25). The shallower combinations are more comfortable but use more horizontal space.

Stringer length

The stringer is the diagonal structural board that runs alongside the staircase and supports each tread and riser. Its length is the hypotenuse of a right triangle whose legs are the total rise and total run, so:

Stringer length = √(total rise² + total run²)

Example: 108" rise and 130" run → √(11,664 + 16,900) = √28,564 ≈ 169 inches ≈ 14 ft 1 in. Always buy lumber several inches longer than the calculated length to allow for the cuts at top and bottom.

Stringers are typically cut from 2×12 lumber. After cutting the notches for treads and risers, the remaining "throat" depth (the wood between the bottom edge of the stringer and the deepest point of the cuts) must be at least 5 inches per most building codes for structural integrity.

Frequently Asked Questions

What's the standard rise and run for stairs?

The most common comfortable combination in U.S. residential construction is a 7.5-inch riser with a 10-inch tread, satisfying both the IRC code limits and the comfort formula 2R + T = 25. Anything from 7-inch riser / 11-inch tread to 7.75-inch riser / 10-inch tread is acceptable and feels reasonable to walk on.

How many stairs do I need for an 8-foot ceiling?

An 8-ft ceiling typically has a total rise around 105–108 inches (8 ft of finished ceiling plus joist depth and floor thickness above). At 7.5 inches per riser, that's 14 risers and 13 treads. Total horizontal run at 10 inches per tread = about 130 inches (10 ft 10 in).

What's the maximum riser height allowed by code?

Per the International Residential Code (IRC), the maximum riser height for residential stairs is 7-3/4 inches (7.75 inches). The minimum tread depth is 10 inches. All risers in a flight must be within 3/8 inch of each other. Many jurisdictions adopt the IRC directly, but always check your local building department for amendments.

How do you calculate stringer length?

Use the Pythagorean theorem: stringer length = √(total rise² + total run²). For example, with a 108-inch rise and 130-inch run, the stringer is √(11,664 + 16,900) ≈ 169 inches, or about 14 ft 1 in. Buy 2×12 lumber a few inches longer than this to allow for end cuts.

How wide should stairs be?

The IRC requires a minimum of 36 inches in width above the handrail height for residential stairs. 42–48 inches is more comfortable for two-way traffic and moving furniture. Commercial stairs require wider minimums (typically 44 inches).

Do I need a handrail?

Yes, for any flight of stairs with 4 or more risers per the IRC. The handrail must be mounted 34–38 inches above the tread nosings, be continuous along the full flight, and have a graspable profile (1.25–2 inch diameter for round handrails). Commercial buildings usually require handrails on both sides.

What's the comfort formula for stairs?

The widely used rule is 2R + T = 24 to 25 inches, where R is the riser height and T is the tread depth (both in inches). Stairs that hit this target feel natural to walk on. Anything outside it feels too steep or too shallow. Examples that satisfy it: 7.5"R + 10"T, 7"R + 11"T, 6.5"R + 12"T.

How much headroom is required for stairs?

The IRC requires a minimum of 6 feet 8 inches (80 inches) of vertical headroom measured from the nosing of any stair tread to any overhead obstruction. Check this at every point along the staircase, especially the top where a floor opening may restrict clearance. Insufficient headroom is one of the most common stair code violations.

Can I have a staircase with more than one rise/run combination?

No — the IRC requires all risers in a flight to be within 3/8 inch of each other, and all treads within the same tolerance. This is for safety: the human gait adapts to the first step or two and assumes the rest match. A single odd step is a serious trip hazard. If you need a different geometry partway up, separate the staircase with a landing.

About CalcNeeds— We build free, accurate, and easy-to-use calculators for everyday decisions. Our tools are reviewed for accuracy and updated regularly. Have feedback? Let us know.