Stair Calculator
Designing stairs requires precise calculations to meet building codes and ensure comfortable, safe steps. This stair calculator figures out the number of risers, total horizontal run, and diagonal stringer length based on your total rise and desired riser and tread dimensions.
Advertisement
Calculator
See your Stair Calculator results
Enter your email to unlock results — free forever.
No spam, ever. Unsubscribe at any time.
Advertisement
Formula
Risers = ceil(Rise / Riser Height); Stringer = √(Run² + Rise²) / 12
Total rise divided by riser height gives the number of steps. Total run equals number of risers times tread depth. The stringer (the diagonal support board) length uses the Pythagorean theorem — square root of run squared plus rise squared, divided by 12 to convert inches to feet.
How to use the Stair Calculator
- 1
Enter your total rise (in)
Value should be in in.
- 2
Enter your riser height (in)
Value should be in in.
- 3
Enter your tread depth (in)
Value should be in in.
- 4
Read your results instantly
Results update in real time as you type.
Advertisement
Building Code Requirements for Stairs
Most US building codes (based on IRC) require risers to be 4–7-3/4 inches tall and treads to be a minimum of 10 inches deep. The riser-to-tread relationship should follow the rule: 2R + T = 24–25 inches for comfortable stairs. Maximum riser variation within a flight is 3/8 inch — inconsistent risers are a major cause of stair falls and will fail inspection.
Stringer Types and Sizing
Stringers are the diagonal structural members that support the treads. A cut stringer has notches cut into it to support treads and risers. A closed stringer has dadoes routed into it and is more elegant but harder to build. Most residential stairs use 2×12 lumber for stringers. After cutting, the narrowest remaining section of the stringer (the "effective depth") must be at least 3.5 inches to maintain structural integrity.
Tips & Insights
Measure Total Rise Accurately
Measure from finished floor to finished floor — not subfloor. Including floor material thickness in your rise measurement prevents the bottom riser from being the wrong height after flooring is installed.
Check Your Rise-to-Run Ratio
A comfortable stair follows the formula 2 × Riser + Tread = 24–25 inches. For a 7-inch riser and 10-inch tread: 2(7) + 10 = 24. Adjust riser and tread together to stay within code while hitting this comfort target.
Use a Framing Square
Mark your stringer layout with a framing square set to your rise and run dimensions. Use stair gauges clamped to the square to maintain consistent marks across all cuts on the stringer board.
Worked Examples
Interior Basement Stairs
16 risers, 160-inch (13.3 ft) total run, and 190-inch (15.8 ft) stringer length.
Exterior Deck Stairs
7 risers, 77-inch total run, and 90-inch (7.5 ft) stringer — a short, comfortable deck stair run.
Advertisement
Frequently Asked Questions
What is the ideal riser height for stairs?
Building codes allow 4–7-3/4 inches. The most comfortable riser height for residential stairs is 7–7-1/2 inches. Outdoor and deck stairs are often 6–7 inches for a more gradual climb.
What is the minimum tread depth for stairs?
The IRC minimum is 10 inches for interior stairs. Exterior and deck stairs should be 11–12 inches for comfort. The nosing (overhang) can add 3/4–1-1/4 inches to the effective tread depth.
How many steps can a staircase have without a landing?
The IRC limits staircase flights to a maximum vertical rise of 147 inches (12.25 feet) before requiring a landing. Most residential stairs stay well within this limit.
How thick should stair treads be?
Minimum tread thickness is 1 inch. Standard 5/4×12 or 2×12 lumber is most common. For wood treads, 1-1/16 inches is code minimum; thicker treads (1.5 inches) feel more substantial underfoot.
Do I need a handrail on my stairs?
Yes. Building codes require a handrail on any stairway with 4 or more risers. The handrail must be graspable (1-1/4 to 2-inch diameter for round rails) and between 34 and 38 inches above the tread nosing.
Advertisement