Stair Calculator
Plan your staircase — steps, rise, and run from the total height and desired dimensions.
Reviewed by the ToolNestr Editorial Team — July 2026
How the stair calculator works
The stair calculator designs a safe, comfortable staircase based on the total rise (vertical height between floors) and your desired step dimensions. It calculates the number of steps, the actual rise per step, the total horizontal run, the stair angle, and the stringer length needed for cutting the stair supports.
Building stairs requires balancing several factors. The ideal rise is 7-7.5 inches, and the ideal tread (run) is 10-11 inches. The Blondel formula (2R + T = 24-25 inches) ensures the stairs are comfortable to climb. A total of 2R+T over 25 creates a steep stair that is hard to climb. Under 24 creates a shallow stair that feels unnatural.
Rise, run, headroom, and handrail dimensions follow the International Residential Code (IRC R311.7) for stairways, adopted with local amendments by most U.S. jurisdictions.
Measure total rise
Measure from the finished floor below to the finished floor above in inches.
Set desired dimensions
Enter your desired rise per step and tread depth. The calculator adjusts to meet code.
Build your stringer
Use the step dimensions and stringer length to lay out and cut your stair stringers.
The formula explained
Number of steps
Steps = round(total rise / desired rise). For a 105-inch rise with 7.5-inch desired rise: 105 / 7.5 = 14 steps.
Actual rise per step
Actual rise = total rise / steps. 105 / 14 = 7.5 inches. This is within the ideal range of 7-7.75 inches.
Total run and stringer
Total run = tread depth × (steps - 1). 10 × 13 = 130 inches. Stringer length = sqrt(total run² + total rise²). sqrt(130² + 105²) = 167.2 inches (about 14 ft).
Worked example
A 9-ft floor-to-floor height (108 inches) with desired 7-inch rise and 11-inch tread. Checking the Blondel formula.
Use cases for the stair calculator
Interior staircase
Design the main staircase between floors in a new home or renovation. The calculator ensures code-compliant rise and run dimensions. Adjust the tread depth and rise to match your desired stair angle and available floor space.
Deck steps
Build stairs for your deck or porch. Deck steps often have a slightly shorter rise and use open risers (no vertical board between steps). The calculator works for any exterior stair application.
Basement stairs
Basement stairs often need to fit in a tight space. The calculator helps you find the best compromise between rise and run to fit the available floor area while maintaining safe dimensions.
Accessibility ramp transition
Where a ramp meets a porch or landing, a short set of 2-3 steps provides redundancy and meets accessibility guidelines. Use the calculator for these small but important stair sections.
Tips for building stairs
Layout stringers with a framing square
Use a framing square with stair gauges to mark the rise and run on the stringer. Clamp the gauges at the rise on one leg and the run on the other. Mark along the outer edge of the square, then shift and repeat. This creates the step profile that you cut with a circular saw, finishing with a hand saw at the inside corners.
All stringers must be identical
Use the first stringer as a template for the others — do not measure each one separately. Trace the first stringer onto the second and third. Even small differences between stringers will cause uneven steps and a wobbly staircase. Minimum of three stringers for stairs wider than 36 inches.
Add a nosing for safety
Stair treads should overhang the riser by 3/4 to 1-1/4 inches (the nosing). This gives your foot extra room and makes the stairs feel more secure. The nosing projection is not counted in the tread depth measurement for code purposes — it is added to the nominal tread dimension.
Real-world context
A basement with an 8-ft ceiling and typical floor framing often has a total rise close to 96 inches. Targeting a 7.75-inch rise (the maximum most codes allow) gives 96 ÷ 7.75 = 12.39, which rounds to 12 steps — but 96 ÷ 12 = 8.00 inches of actual rise, over the code maximum. This is a common real-world snag: rounding the step count down produces a rise that fails inspection, so the builder must either go to 13 steps (96 ÷ 13 ≈ 7.38 in, code-compliant) or find a few extra inches of headroom elsewhere.
A 30-inch-rise deck stair (roughly two and a half feet from patio to deck surface) with a 6.5-inch desired rise and an 11-inch tread comes out to 30 ÷ 6.5 ≈ 4.6, rounding to 5 steps, an actual rise of exactly 6.00 inches, and a total run of 11 × 4 = 44 inches. Deck stairs commonly use a shorter rise than interior stairs since they are climbed outdoors, often barefoot, and a shallower step feels safer in wet conditions.
A full interior staircase connecting a 10.5-ft first floor to a second floor (126 inches of total rise) with a 7-inch desired rise and 10.5-inch tread needs 126 ÷ 7 = 18 steps exactly, a total run of 10.5 × 17 = 178.5 inches (about 14.9 ft), and a stringer length near 218.5 inches (just over 18 ft). This is why long interior staircases often need a mid-run landing — both to break up the run length for framing and to give a resting point, which codes typically require after roughly 12 feet of vertical rise.
Common misconceptions
"As long as the total rise divides evenly, any rise-per-step number works." Rounding the step count changes the actual rise. Because the number of steps must be a whole number, the calculator's rounding step can push the actual per-step rise above or below code limits even when your "desired" rise looked fine — always check the actual rise the tool reports, not just your input.
"A steeper staircase just means fewer steps to build — it's not a safety issue." Stair pitch is directly tied to fall risk. Rises above roughly 7.75 inches combined with narrow treads are a leading contributor to residential stair falls. The Blondel formula (2R + T = 24-25 inches) exists specifically to keep the rise-to-run ratio in the range human gait finds natural and safe.
Related calculators
Frequently asked questions
What is the standard rise and run for stairs?
The most comfortable stair dimensions have a rise of 7-7.5 inches and a run (tread depth) of 10-11 inches. The building code typically allows a maximum rise of 7.75 inches and a minimum run of 10 inches for residential stairs.
What is the stair angle formula?
The ideal stair angle is 30-35 degrees. The relationship between rise and run follows the formula: 2R + T = 24-25 inches (where R = rise and T = tread run). This is called the Blondel formula for comfortable stairs.
How many steps can I have before a landing?
Building codes typically require a landing after every 12 feet of vertical rise (about 20 steps). Landings must be at least as wide as the stairway and 3 feet deep. Some codes require landings every 12 steps.
Do I need a handrail?
Yes, stairs with 4 or more risers require a handrail on at least one side. Handrails must be between 34 and 38 inches above the stair nosing. For wider stairs (over 44 inches), a handrail on both sides is recommended.
Sources & references
This tool uses standard formulas and reference values from:
- • American Concrete Institute — ACI 318, Building Code Requirements for Structural Concrete. concrete.org
- • ICC — International Residential Code (IRC), span, footing and framing tables. codes.iccsafe.org
- • APA – The Engineered Wood Association, allowable span and load guidance.
Estimates for planning only. Span, load and code values vary by jurisdiction — verify against your local adopted code and a licensed engineer before building.