📚 What's in This Guide
Building a set of stairs starts with one number: the total rise, the full vertical height from one floor to the next. Everything else, the number of steps, how deep each tread needs to be, and how long a board you need for the stringer, follows from that one measurement.
This stair calculator solves all of it at once, checks the result against common building-code limits and a comfort guideline as you type, and draws a simple diagram so you can see what you are building. It also handles something most stair calculators skip: a staircase tall enough to need a landing, split into two flights with the landing depth included in the total footprint.
1. How the Stair Calculator Works
You enter the total rise in feet and inches, then choose whether to solve using a target riser height or a target number of steps. From there, the calculator finds the number of steps that divides the rise evenly, then works out the actual riser height, the total run, the stringer length, and the incline angle. When solving from a target riser height, the calculator always rounds the step count up rather than to the nearest whole number, so the actual riser you end up with never comes out taller than the target you set, which keeps you further from accidentally exceeding a code maximum.
Mount type changes how the last step is counted. In a standard mount, the top tread is the floor itself, so the stringer carries one fewer physical tread than the number of steps. In a flush mount, the top tread sits at floor level as part of the stringer, so the stringer carries a tread for every step.
If you turn on the landing option, Flight 1's rise is the only number you enter directly. Flight 2's rise is always calculated as the total rise minus Flight 1, so the two flights can never silently disagree with the total rise you measured on site. The calculator also checks your available headroom, if you provide it, and flags whether a handrail is commonly required based on your total step count.
This calculator covers a straight flight of stairs, or two straight flights joined by one landing. Curved, winding, and spiral stairs follow different geometry and are not covered here. Code thresholds shown are common residential figures and can vary by jurisdiction and code edition, so always confirm against your local building code.
2. How to Use the Stair Calculator
- Enter your total rise in feet and inches.
- Choose whether to solve by target riser height or by a target number of steps.
- Choose Standard or Flush mount.
- If your total rise is tall enough to need a landing, or you simply want one, turn on the landing option and enter Flight 1's rise and the landing depth; Flight 2's rise is calculated automatically.
- Enter your tread depth, tread thickness, and stairway width.
- Review the live code and comfort notes, and the diagram, then check the results below.
3. Stair Calculator Formula
Number of steps = Total rise / Target riser height (rounded to the nearest whole number)
Actual riser height = Total rise / Number of steps
Number of treads on the stringer = Standard mount: steps - 1, Flush mount: steps
The stringer itself is the hypotenuse of a right triangle formed by the total run and the stringer height, so its length follows the Pythagorean theorem:
Total run = Number of treads x Tread depth
Stringer height = Standard mount: Total rise - Actual riser, Flush mount: Total rise
Stringer length = sqrt(Total run² + Stringer height²)
Angle = arcsin(Stringer height / Stringer length)
4. Worked Example
Using the calculator's defaults: a 12 ft 6 in total rise (150 inches), split into two equal 75 inch flights with a 36 inch landing, a 7.5 inch target riser, a 10 inch tread depth, and a standard mount.
| Flight | Steps | Actual Riser | Total Run | Stringer Length | Angle |
|---|---|---|---|---|---|
| Flight 1 (75 in rise) | 10 | 7.5 in | 90 in | 112.5 in | 36.87° |
| Flight 2 (75 in rise) | 10 | 7.5 in | 90 in | 112.5 in | 36.87° |
Each flight uses 75 / 7.5 = 10 steps, so the actual riser lands exactly on the 7.5 inch target. With a standard mount, that is 9 physical treads per stringer, so total run = 9 x 10 = 90 inches, and stringer height = 75 - 7.5 = 67.5 inches. Stringer length = sqrt(90² + 67.5²) = sqrt(8,100 + 4,556.25) = sqrt(12,656.25) ≈ 112.5 inches, and angle = arcsin(67.5 / 112.5) ≈ 36.87 degrees.
Combined footprint: 90 + 36 (landing) + 90 = 216 inches of total horizontal space, across 20 steps total.
5. Understanding Your Result
The number of steps and actual riser height are your primary building numbers, since every riser in a flight needs to be the same height. A small mismatch here, even an eighth of an inch, is a common trip hazard, which is why the calculator always shows the actual, evenly divided riser rather than your raw target.
The stringer length is the minimum length of stringer material you need, measured tip to tip along the cut line, not the straight-line floor distance. The angle is a planning number for comfort and headroom checks, not a precise cut angle on its own, since the actual bevel cuts depend on your specific stringer layout method.
6. Units and Terminology
- Rise/riser: the vertical height of one step, measured top of tread to top of tread.
- Run/tread: the horizontal depth of one step, the part you actually step on.
- Total rise: the full vertical height being climbed, floor to floor.
- Total run: the full horizontal footprint of one flight's stringer.
- Stringer: the structural board the treads and risers are built onto, usually three per stairway.
- Standard vs. flush mount: whether the top tread is one step below floor level (standard) or level with the floor (flush).
7. Headroom and Handrail Requirements
Headroom is the clear vertical space measured above the front edge (the nosing) of each tread, running the full length of the staircase. A code-compliant rise and run can still fail in practice if a ceiling, floor opening, or beam sits too close overhead, which is why the calculator includes an optional headroom field, checked against a common 80 inch (6 ft 8 in) minimum.
Handrails are commonly required once a staircase reaches four or more risers, on at least one side of the stairway. The calculator flags this automatically based on your total step count. Guards, the barrier along the open side of a stairway or landing, are a separate requirement that typically applies once a walking surface is more than 30 inches above the grade or floor below, and are not covered by this calculator.
8. Practical Tips
- Keep every riser in a flight within about 3/8 inch of the others. Building codes generally require this, and it is also what makes stairs feel safe to walk.
- A riser around 7 to 7.5 inches with a tread around 10 to 11 inches is a comfortable, widely used starting point.
- If your total rise comes out tall, check the landing option rather than forcing one long flight, both for comfort and for code.
- Measure your actual floor-to-floor height on site before finalizing numbers. A few site conditions, like finished flooring thickness, commonly get missed.
- Account for tread thickness when planning how the top step meets the upper landing, especially on a standard mount.
9. Common Mistakes
- Rounding the riser height before dividing evenly: always divide the total rise by the final whole number of steps, not by a rounded target riser.
- Confusing number of steps with number of treads: the two only match on a flush mount; a standard mount has one fewer tread than steps.
- Forgetting the landing depth in the total footprint: a landing adds real floor space between flights, not just a pause in the rise.
- Ignoring headroom: a technically code-compliant rise and run can still leave too little headroom if there is a ceiling, floor opening, or beam above the stairs.
- Treating the comfort guideline as a code requirement: the 2×riser + tread rule is a comfort recommendation, not a legal minimum, even though it is worth following.
10. Related Calculations and Use Cases
Stair projects often continue past the stairs themselves. If your stairs lead down to a gravel path or patio, our Gravel Calculator can help estimate the base material for that area using the same kind of straightforward inputs.
Common real-world use cases include a deck or porch staircase, basement stairs, an exterior staircase down to a yard or driveway, and a two-flight interior staircase with a mid-level landing.
11. Frequently Asked Questions
Divide your total rise by your target riser height and round to the nearest whole number, then divide the total rise by that number of steps to get the actual, even riser height. The calculator above does this automatically and lets you adjust the target riser height until the result feels right.
A common comfortable range is a riser around 7 to 7.5 inches with a tread depth around 10 to 11 inches. Building codes typically cap riser height at about 7.75 inches and require a tread depth of at least 10 inches, and a widely used comfort guideline suggests keeping twice the riser plus the tread close to 24 to 25 inches.
Stringer length follows the Pythagorean theorem: stringer length equals the square root of the total run squared plus the stringer height squared, since the run, the stringer height, and the stringer itself form a right triangle. The calculator above computes this automatically once you have entered your rise, run, and mount type.
Building codes commonly limit the vertical rise between landings to somewhere around 147 to 151 inches depending on the code edition, so a single flight taller than that generally needs to be broken into two flights with a landing in between. The calculator above can split your total rise into two flights with a landing automatically.
Most comfortable residential stairs work out to an incline of roughly 30 to 35 degrees. Steeper stairs, common on tight spiral or attic access stairs, feel more like a ladder, while shallower stairs need a lot more floor space than most homes have to spare.
Conclusion
A staircase comes down to one measurement, the total rise, divided into a set of steps that are safe, even, and comfortable to climb. This stair calculator handles that division automatically, rounds up rather than down so no riser quietly exceeds your target, and checks the result against common code and comfort guidelines as you type. Accurate inputs matter here more than almost any other home project, since even an eighth-inch difference between risers is a real trip hazard. Whether you are building a single flight or a taller staircase that needs a landing, this stair calculator gives you the rise, run, stringer length, and angle you need before you cut a single board.
This calculator is for planning purposes only. Building codes vary by location and code edition; confirm your local requirements before construction. For the current residential code text, see the 2024 International Residential Code, Section R318, Means of Egress, published by the International Code Council.