Stair Calculator

Calculate staircase dimensions: number of steps, riser height, tread depth, and stringer length from total rise and run. Free stair calculator for building code compliance.

Design your staircase dimensions and materials

About This Calculator

Our stair calculator helps builders, architects, DIY homeowners, and contractors design safe, comfortable staircases by computing all critical dimensions from just three inputs: total rise, total run, and desired riser height. Whether you are building indoor stairs for a new home, outdoor deck steps, or basement stairs, this tool ensures your staircase meets standard comfort guidelines and building code requirements.

The calculator uses the core stair design formula: it divides the total rise by the desired riser height to determine the optimal number of steps, rounds to the nearest whole step, then recalculates the exact riser height. The tread depth is computed by dividing the total run by the number of steps. Finally, stringer length is calculated using the Pythagorean theorem: stringer length = √(total rise² + total run²). This stringer length represents the diagonal structural support needed for the staircase frame.

Regional Notes

India (NBC): The National Building Code recommends riser heights between 150-190 mm (5.9-7.5 inches) and tread depths between 250-300 mm (9.8-11.8 inches). Minimum stair width is 900 mm for residential and 1500 mm for public buildings. Handrails are required for stairs with 4 or more risers.

US (IRC): The International Residential Code specifies a maximum riser of 7.75 inches and a minimum tread of 10 inches. The minimum stair width is 36 inches, and headroom must be at least 6 feet 8 inches. The sum of two risers plus one tread (2R + T) should be between 24 and 25 inches for comfortable stairs.

UK (Building Regulations): Maximum riser height is 220 mm (8.66 inches) with a minimum tread depth of 220 mm. Stair width must be at least 900 mm for habitable rooms. All stairs with 2 or more risers require a handrail, and any flight with 4 or more risers requires a handrail on at least one side.

Frequently Asked Questions

How do I calculate the number of steps for my stairs?

Divide the total rise (vertical height from floor to floor) by the desired riser height. For example, a 96-inch total rise with a 7-inch desired riser gives about 14 steps (96 ÷ 7 = 13.7, rounded to 14). The actual riser height is then recalculated as total rise divided by the number of steps.

What is the standard riser height and tread depth for comfortable stairs?

Building codes typically recommend a maximum riser height of 7.75 inches and a minimum tread depth of 10 inches. The ideal comfort rule is 2 × riser + tread ≈ 25 inches. A common comfortable configuration is a 7-inch riser with an 11-inch tread.

How do I calculate stair stringer length?

Use the Pythagorean theorem: stringer length squared = total rise squared + total run squared. The stringer is the structural support that runs diagonally along the underside of the stairs, and its length determines how much material you need for the staircase frame.

What is the difference between total rise and total run?

Total rise is the vertical height from the finished floor below to the finished floor above. Total run is the horizontal distance the staircase covers, measured from the first tread nosing to the last tread nosing. Both measurements are essential for calculating step dimensions and stringer length.

What are the building code requirements for stairs in the US, UK, and India?

In the US (IRC), maximum riser height is 7.75 inches and minimum tread depth is 10 inches. In the UK (Building Regulations), maximum riser is 220 mm (8.66 inches) and minimum tread is 220 mm. India follows NBC guidelines with risers between 150-190 mm and treads between 250-300 mm. All codes require handrails for stairs with 4+ risers.

Can I use this calculator for outdoor stairs?

Yes, the stair calculator works for both indoor and outdoor stairs. For outdoor stairs, consider using slightly shorter risers (6-6.5 inches) and deeper treads (12-14 inches) for safer traversal in wet conditions. Always check local building codes for outdoor staircase requirements.

What is the stair angle and why does it matter?

Stair angle is the inclination of the staircase, calculated as arcsin(stringer height ÷ stringer length). Comfortable stairs typically have an angle between 30 and 37 degrees. Steeper stairs above 42 degrees become difficult to climb, while shallower stairs below 28 degrees take up more floor space.

How much space do I need for a staircase?

The total floor space needed equals the total run (horizontal distance) plus any landing area. For a typical 9-foot ceiling height (108 inches total rise) with 7-inch risers and 11-inch treads, you would need about 15 steps and roughly 165 inches (13.75 feet) of linear floor space. Add 36 inches minimum for stair width.