A stair calculator determines the exact riser height, tread depth, stringer length, and stair angle for any floor-to-floor height. Getting these dimensions right before you cut a single board ensures your staircase meets IRC residential building codes and feels comfortable to walk on every day.
Stair Dimensions Calculator
Measure from finished floor to finished floor (include flooring thickness).
IRC minimum: 10". Ideal range: 10"–11".
IRC minimum: 36". Standard: 36"–42".
How to Use the Stair Calculator
Building stairs that feel comfortable and meet building codes starts with accurate math. Our free stair calculator takes the guesswork out of stair construction by computing every critical dimension — from riser height and tread depth to stringer length and stair angle — and checking each measurement against IRC residential building codes.
Step 1: Measure the Total Rise
The total rise is the vertical distance from the finished surface of the lower floor to the finished surface of the upper floor. This is the most important measurement in stair building — even a half-inch error will result in uneven risers. Use a tape measure or laser level to get an accurate reading. Enter the measurement in feet and inches.
Step 2: Set the Tread Depth
The tread depth is the horizontal distance from the front edge (nosing) to the back of each step. The IRC requires a minimum of 10 inches, and the ideal range is 10 to 11 inches. The default value of 10.5 inches works well for most residential staircases. You can adjust this to fine-tune the total run of your staircase.
Step 3: Enter the Stair Width
Stair width affects both comfort and the number of stringers needed. The IRC minimum is 36 inches for residential stairs. Wider stairs (42 inches or more) require additional center stringers for structural support. The calculator automatically recommends the correct number of stringers based on your width.
Step 4: Review the Results
The calculator displays the number of risers, individual riser height, tread depth, and stair angle at a glance. The building code compliance section uses green, yellow, and red indicators to show whether each dimension meets IRC standards. Green means fully compliant, yellow means within tolerance but not ideal, and red means the dimension exceeds code limits.
Step 5: Use the Side View Diagram
The SVG side-view diagram provides a proportionally accurate visualization of your staircase. Use it to verify that the stair angle looks reasonable and the proportions match your space. The diagram updates in real time as you adjust inputs.
Understanding Stringer Dimensions
The stringer is the diagonal board that supports the treads and risers. Its length is calculated using the Pythagorean theorem: stringer = √(total rise² + total run²). The material estimate tells you how many stringers to buy and the minimum board length needed. Always use 2×12 lumber for stringers — after cutting the notches, you need at least 3.5 inches of solid wood remaining for structural integrity.
Frequently Asked Questions
Is this stair calculator free to use?
Yes, the stair calculator is completely free with no limits or signup required. You can calculate dimensions for as many staircase projects as you need. All calculations run locally in your browser — nothing is sent to any server.
Is my data private when using this tool?
Absolutely. All calculations happen entirely in your browser using client-side JavaScript. Your measurements and project details are never transmitted to a server or stored anywhere. Your data stays on your device.
What is the maximum riser height allowed by building code?
The IRC (International Residential Code) 2021 sets the maximum riser height at 7.75 inches (196 mm). The ideal riser height for comfortable stairs is between 7 and 7.5 inches. Risers must also be uniform — the difference between the tallest and shortest riser cannot exceed 3/8 inch.
What is the minimum tread depth for residential stairs?
The IRC requires a minimum tread depth of 10 inches (254 mm), measured from the front edge (nosing) to the back of the tread. The ideal tread depth for comfort and safety is between 10 and 11 inches. Deeper treads make stairs easier to descend safely.
How do I calculate stringer length?
Stringer length is calculated using the Pythagorean theorem: stringer = square root of (total rise squared + total run squared). For example, if the total rise is 108 inches and the total run is 140 inches, the stringer length is approximately 177 inches, or about 14 feet 9 inches.
What is the riser plus tread rule?
The riser-plus-tread rule states that the riser height plus tread depth should equal 17 to 18 inches for comfortable stairs. For example, a 7.5-inch riser with a 10.5-inch tread equals 18 inches, which falls within the ideal range. This rule ensures a natural and safe stride on the staircase.
How many stringers do I need for a staircase?
Most residential stairs use 3 stringers — one on each side and one in the center. For stairs wider than 36 inches, add an additional center stringer. The calculator recommends stringers based on your stair width: 2 for narrow stairs under 30 inches, 3 for standard widths, and 4 for stairs wider than 48 inches.
What is the ideal stair angle for residential stairs?
The ideal stair angle for residential stairs is between 30 and 37 degrees. Angles steeper than 37 degrees feel uncomfortable and may not meet building code. Angles below 30 degrees create long, shallow runs that waste space. The IRC maximum is effectively about 37 degrees based on the riser and tread limits.