Stair Calculator

A stair calculator determines the number of steps, riser height, tread depth, stair angle, and total run needed for a staircase based on your floor-to-floor height. Enter your total rise below to get dimensions that meet IRC building code standards.

What Is a Stair Calculator?

A stair calculator is a tool that takes your floor-to-floor height (total rise) and desired riser height as inputs, then calculates every dimension needed to build a code-compliant staircase. Rather than trial-and-error math on paper, the calculator divides the total rise into an equal number of steps, then computes the actual riser height, number of treads, total horizontal run, and the resulting stair angle.

Builders, contractors, and DIY homeowners use stair calculators to plan deck stairs, basement stairs, exterior steps, and egress stairways before purchasing lumber or concrete. Getting the numbers right before cutting material avoids costly mistakes and ensures the finished stair meets IRC residential stairway building code requirements.

A polished Stair Calculator hero image shows a centered UI panel with stair height and tread depth fields, a unit dropdown, and a Generate button over a dark architectural staircase backdrop, ideal for a stair rise and run calculator.

Stair Terminology

Rise and Run

Total rise is the vertical distance from the finished floor at the bottom of the staircase to the finished floor at the top. It is measured in inches and represents the height the staircase must climb. Total run is the horizontal distance the staircase covers from the first riser face to the last tread nosing. Total run is calculated by multiplying the number of treads by the tread depth.

Riser and Tread

A riser is the vertical face of each step. Riser height is measured from the top of one tread to the top of the next. A tread is the horizontal surface you step on. Tread depth is measured from the front edge (nosing) to the back of the tread where it meets the riser above. The relationship between riser height and tread depth determines how comfortable and safe the stair feels to walk on. The widely cited rule of thumb is that twice the riser height plus the tread depth should equal approximately 25 inches (2R + T = 25).

Nosing and Stringer

Nosing is the front overhang of a tread that projects beyond the riser face, typically 0.75 to 1.25 inches. Nosing adds visual depth and reduces the effective tread depth when calculating clearance. The stringer is the diagonal structural board that runs along the side of the staircase and supports the treads and risers. Most residential stairs use two or three stringers cut from 2x12 lumber.

How to Calculate Stairs

Step 1 - Measure Total Rise

Measure the vertical distance from the lower finished floor surface to the upper finished floor surface in inches. For a standard 9-foot ceiling, the total rise is typically 108 to 110 inches depending on subfloor and finished floor thickness. Always measure the actual finished-floor-to-finished-floor height rather than using assumed ceiling heights, because flooring thickness and subfloor variations affect the final riser height.

Step 2 - Determine Number of Risers

Divide the total rise by the desired riser height and round to the nearest whole number. For example, a 108-inch total rise with a desired 7.5-inch riser gives 108 ÷ 7.5 = 14.4, rounded to 14 risers. Then recalculate the actual riser height by dividing the total rise by the rounded number: 108 ÷ 14 = 7.71 inches per riser. This actual riser height must not exceed 7.75 inches per IRC code.

Step 3 - Calculate Tread Depth

The number of treads is always one less than the number of risers because the upper floor counts as the last landing. For 14 risers, you need 13 treads. IRC requires a minimum tread depth of 10 inches measured horizontally, not including nosing overhang. A 10-inch tread with a 7.71-inch riser results in a comfortable, code-compliant stair angle of approximately 37 degrees.

Step 4 - Calculate Total Run

Multiply the number of treads by the tread depth to get total run. For 13 treads at 10 inches each, total run = 13 × 10 = 130 inches (10 feet 10 inches). This is the horizontal floor space the staircase occupies and is critical for planning the stair layout in relation to walls, doors, and furniture in both the lower and upper floor areas. You can use our area calculator to help plan the floor space needed.

IRC Building Code Requirements

Maximum Riser Height (7.75 inches)

IRC Section R311.7.5.1 sets the maximum riser height at 7.75 inches for residential stairs. The greatest riser height within any flight of stairs cannot exceed the smallest riser height by more than 0.375 inches (3/8 inch). This consistency requirement means all risers in a single staircase must be nearly identical in height, which is why calculating the exact number of risers and dividing evenly is essential rather than rounding to a convenient number.

Minimum Tread Depth (10 inches)

IRC Section R311.7.5.2 requires a minimum tread depth of 10 inches measured horizontally from the vertical tread nosing to the vertical face of the riser above. The greatest tread depth within any flight cannot exceed the smallest tread depth by more than 0.375 inches. Nosing projections must be between 0.75 and 1.25 inches when the tread depth is less than 11 inches. Winder treads used in curved or L-shaped stairs have different minimum dimensions.

Headroom Clearance (6 ft 8 in minimum)

IRC Section R311.7.2 requires a minimum headroom clearance of 6 feet 8 inches (80 inches) measured vertically from the stair nosing to the nearest obstruction above. Headroom is measured at a perpendicular line from the sloped stair plane. Low ceilings, beams, or ductwork directly above a staircase are common code violations in older homes. Always verify headroom clearance along the entire stair run before finalizing your stair design.

Egress Stairs

What Are Egress Stairs?

Egress stairs are stairways that provide a required means of escape from a building in an emergency. In residential construction, egress stairways connect habitable floors and must meet minimum dimensional and safety requirements set by the IRC. Every story with habitable space must have at least one egress stairway. Basement bedrooms and finished basement spaces require an egress window or egress stairway that leads directly outside.

Egress Stair Requirements

Egress stairs in residential buildings must comply with all standard IRC stair requirements: maximum 7.75-inch riser height, minimum 10-inch tread depth, minimum 6-foot 8-inch headroom, and handrails on at least one side when there are four or more risers. In commercial and multi-family buildings, the International Building Code (IBC) applies stricter requirements including minimum 7-inch riser height, 11-inch tread depth, and specific fire-resistance ratings for stair enclosures. You can also reference OSHA stairway safety requirements for workplace egress stairways.

Width Requirements

IRC R311.7.1 requires residential stairs to have a minimum clear width of 36 inches at and below the handrail height. Where handrails project into the stair width, the minimum clear width above the handrail cannot be less than 31.5 inches. For egress stairs serving a single dwelling unit, the 36-inch minimum is the standard. Commercial and multi-family egress stairs under the IBC require wider stairways depending on occupancy load.

Stair Angle and Slope

Stair angle is calculated as the inverse tangent (arctangent) of the riser height divided by the tread depth: angle = arctan(rise ÷ run). A 7.5-inch riser with a 10-inch tread produces a stair angle of approximately 36.9 degrees, which is considered comfortable for most users. Stairs below 30 degrees feel like a gentle ramp, while stairs above 45 degrees feel steep and ladder-like.

The ideal residential stair angle range is generally 30 to 40 degrees. Exterior deck stairs often use shallower angles of 30 to 35 degrees because they are exposed to weather and used by people carrying items. Interior stairs to finished living spaces typically fall in the 34 to 38 degree range. Attic stairs and loft ladders sometimes exceed 45 degrees but should be treated as alternating-tread stairs or ship's ladders, which have their own IRC section.

For reference on construction planning, our linear feet calculator can help you estimate stringer length and lumber quantities. For material cost planning, check out the asphalt calculator if your stair leads to an exterior paved surface.

Frequently Asked Questions

What is the standard riser height?

The standard riser height for residential stairs in the United States is 7 to 7.75 inches, with 7.5 inches being the most common design target. IRC Section R311.7.5.1 sets the maximum at 7.75 inches. Lower riser heights such as 6.5 to 7 inches feel more comfortable but require more steps and increase total run.

What is the 7-11 rule for stairs?

The 7-11 rule is a common rule of thumb stating that the riser height should be 7 inches and the tread depth should be 11 inches. This produces a stair angle of approximately 32.5 degrees and satisfies IRC minimum tread depth requirements. The 7-11 combination results in a sum of 18 for R + T, which is within the comfortable range of 17 to 18.

How many stairs for a 9 foot ceiling?

A 9-foot ceiling with finished flooring typically results in a floor-to-floor height of about 108 to 110 inches. At 7.5 inches per riser, 108 inches requires 14.4 risers, rounded to 14 risers with an actual riser height of 7.71 inches. At 110 inches, the result rounds to 15 risers at 7.33 inches each. The exact number depends on finished floor thickness above and below.

What are egress stairs?

Egress stairs are stairways that provide a required means of escape from a building or floor. In residential construction, IRC requires at least one egress stairway connecting each habitable floor. They must meet all standard stair dimension requirements including maximum 7.75-inch risers, minimum 10-inch treads, minimum 36-inch width, and minimum 6-foot 8-inch headroom clearance.

What is the maximum riser height allowed by code?

IRC Section R311.7.5.1 allows a maximum riser height of 7.75 inches for residential stairs. Additionally, the variance between the tallest and shortest riser within a single flight cannot exceed 0.375 inches. Commercial stairs under IBC have stricter requirements, with a maximum riser height of 7 inches and minimum tread depth of 11 inches.

Related Tools