Staircase Calculator
Calculate the number of steps, riser height, tread depth, stringer length, and stair angle for any staircase. Check building code compliance and get material estimates — all free and private in your browser.
How the Staircase Calculator Works
This staircase calculator helps builders, architects, and DIY enthusiasts design safe and code-compliant staircases. By entering the total floor-to-floor height and your preferred riser height, the calculator determines the optimal number of steps, the actual riser height per step, the tread depth, the stringer length (the diagonal board that supports the steps), the total horizontal run, and the stair angle. All calculations follow the International Residential Code (IRC) and are suitable for residential and light commercial staircases.
The calculator uses a straightforward approach: it divides the total rise by your preferred riser height to determine the number of steps, then rounds to the nearest whole number and recalculates the actual riser height. If you provide a total horizontal run, the tread depth is calculated by dividing the run by the number of treads (steps minus one). If no run is provided, a standard tread depth of 10 inches is assumed. The stringer length is calculated using the Pythagorean theorem: the square root of (total rise squared plus total run squared). The stair angle is determined using the arctangent of total rise divided by total run.
Building codes in most jurisdictions require risers between 7 and 7.75 inches (178–197 mm), treads at least 10 inches (254 mm) deep, and a stair angle between 30 and 37 degrees. The calculator checks each of these requirements and shows a clear pass or fail indicator. It also checks the 2R + T comfort rule — twice the riser height plus the tread depth should fall between 24 and 25 inches for optimal walking comfort. This formula, developed by French architect Francois Blondel in the 17th century, remains the gold standard for stair comfort today.
Building Codes and Stair Safety
Staircase design is one of the most heavily regulated areas of residential construction. The International Residential Code (IRC) Section R311.7 sets minimum requirements that protect occupants from falls, the leading cause of injury in homes. Risers that are too tall cause tripping on the way up, while risers that are too short create an uncomfortable, shuffling gait. Treads that are too shallow do not provide enough foot space, increasing the risk of slipping on the way down. The 30–37 degree angle range ensures a natural, ergonomic climbing motion.
Headroom is another critical safety requirement. The IRC mandates a minimum of 6 feet 8 inches (80 inches or 203 cm) of clear headroom measured vertically from any tread nosing to the ceiling above. Insufficient headroom forces occupants to duck, which is both uncomfortable and dangerous, especially when carrying objects up or down the stairs. This calculator includes a headroom check when you provide the available clearance above the staircase.
Consistency is equally important: all risers in a flight must be within 3/8 inch of each other in height, and all treads must be the same depth. Inconsistent step dimensions are a major cause of stair falls because the human body relies on muscle memory — once you establish a step rhythm, your brain expects each subsequent step to be the same height and depth. This calculator ensures uniform riser and tread dimensions throughout the staircase.
Design Tips for Better Staircases
Beyond meeting code minimums, several design choices improve comfort and aesthetics. A riser height of 7 to 7.5 inches with an 10 to 11 inch tread is considered ideal for residential staircases — these dimensions produce a comfortable 32 to 34 degree angle and satisfy the 2R + T comfort rule. For exterior staircases, slightly lower risers (6.5–7 inches) and deeper treads (11–12 inches) are preferred because outdoor steps are often used with bulkier footwear and may be wet or icy.
Material selection affects both cost and durability. A typical residential staircase requires two to three stringers (three for stairs wider than 36 inches), one tread per step minus one (the top floor serves as the final tread), and one riser board per step. This calculator provides these material estimates so you can plan your lumber purchase accurately. For stringers, use construction-grade 2x12 lumber with no knots in the cut area. For treads, 5/4 (1.25 inch) hardwood or 2x lumber is standard, and risers are typically cut from 1x material or 3/4 inch plywood.
When designing staircases for accessibility, consider wider treads (12 inches or more), lower risers (6–6.5 inches), and a maximum angle of 32 degrees. Handrails should be installed on both sides at a height of 34 to 38 inches, measured vertically from the stair nosing. These accommodations make the staircase usable by elderly residents, children, and individuals with mobility challenges.