Free Stair Calculator Online
Calculate stair amounts for your project. Get material quantities and cost estimates.
Ad space
Ad space
How to use the Stair Calculator
- 1
Open the Stair Calculator tool
- 2
Enter your data or upload your file
- 3
Adjust settings if needed
- 4
Get instant results
- 5
Download or copy your output
Frequently asked questions
Is the Stair Calculator free?
Yes, our stair calculator is 100% free with no limits, no signup, and no watermarks.
Do I need to create an account?
No. You can use the stair calculator without any registration. Just open it and start using it.
Is my data safe?
Yes. Any files you upload are automatically deleted after 5 minutes. We never store, share, or access your data.
Does this work on mobile?
Yes. The stair calculator is fully responsive and works on phones, tablets, and desktops.
Is there an API for this?
Yes. All our tools are available as API endpoints for developers. Check our API documentation for details.
Stair Calculator: Work Out Rise, Run, and Stringer Length Before You Cut Lumber
A stair calculator starts from one measurement everyone can get with a tape measure and a level — the total vertical rise from the lower floor to the upper one — and works out everything a stair-building layout needs from there: how many steps fit that rise, how tall each individual riser ends up being once the total is divided evenly, how deep each tread's run is, and how long the diagonal stringer board needs to be cut. The whole computation happens in your browser as you type, so changing the target riser height or the tread depth instantly redraws every downstream number.
Stairs are less forgiving than most home-improvement math, because the numbers here interact with each other and with building code all at once. A riser height chosen without checking the resulting step count can leave you with a top step that's a different height than the rest, which is both a building-code violation in most places and a genuine trip hazard. Running the numbers before cutting a single stringer board catches that mismatch on screen instead of on the job site.
How to Lay Out a Staircase With This Calculator
The tool asks for three inputs, all in inches, since stair layout in the U.S. residential context is conventionally worked in inches rather than feet or metric units:
- Measure the total rise — the exact vertical distance from the finished floor at the bottom to the finished floor at the top — and enter it in the "Total Rise" field.
- Enter a target riser height, the riser you'd ideally like each step to be. The field starts at 7.5 inches, a commonly used comfortable target, but any value between 4 and 8.5 inches can be entered.
- Enter a tread run — how deep, front to back, you want each step's tread to be. The default is 10 inches.
- Read the number of steps the calculator lands on, which it gets by dividing the total rise by your target riser and rounding to the nearest whole step.
- Check the actual riser height reported below the step count — because the total rise rarely divides evenly by the target riser, this is the true, evenly-divided riser height every step in the run will actually have.
- Review the total run and the stringer length, both derived from the tread run and step count, which together tell you how much horizontal floor space the staircase needs and how long a stringer board to buy.
- Watch the status message under the results: it confirms whether the actual riser height lands inside the commonly used building-code range, or warns you if it doesn't.
Because the actual riser is recalculated from whatever step count the rounding produces — not simply copied from your target — adjusting the target riser by even a quarter inch can shift the step count by one and change every number below it, which is exactly the kind of interaction this tool exists to sort out before lumber gets cut.
Why Getting Riser and Run Right Matters More Here Than Elsewhere
- Consistency between steps is a code requirement, not a preference. Most residential building codes cap the allowed variation between the tallest and shortest riser in a single flight to a fraction of an inch — a staircase with one riser noticeably different from the rest can fail inspection even if every individual riser is technically within range.
- A too-tall or too-shallow riser is a fall hazard. People develop a rhythm walking a staircase within the first two or three steps, and a riser that breaks that rhythm — especially the last step, which is easy to miscalculate by hand — is a well-documented cause of stair falls.
- The stringer board has to be cut once, correctly. Stringers are typically cut from a single long board with notches for each tread and riser; getting the geometry wrong after the board is already notched means starting over with new lumber.
- Total run determines whether the staircase even fits. A shallower target riser produces more steps and a longer total run — worth checking against the available floor space before committing to a riser height that looks comfortable on paper but doesn't physically fit the stairwell opening.
- Retrofits and additions often have a fixed rise to work with. When you're adding stairs to an existing structure, the floor-to-floor height is already set by the building, so the calculator's job shifts from "pick a rise" to "find the riser and step count that best fits this fixed rise" — exactly the reverse-engineering this tool is built for.
The Geometry: From Total Rise to a Cut List
| Step | Formula | Anchor example (45in total rise, defaults) |
|---|---|---|
| Number of steps | round(total rise / target riser) | round(45 / 7.5) = 6 steps |
| Actual riser height | total rise / number of steps | 45 / 6 = 7.5 in |
| Number of treads | number of steps - 1 | 6 - 1 = 5 treads |
| Total run | number of treads x tread run | 5 x 10 = 50 in |
| Stringer length | sqrt(total rise^2 + total run^2) | sqrt(45^2 + 50^2) = sqrt(4525) = 67.27 in |
The tread-count-versus-step-count distinction in that table trips people up the first time: a staircase with 6 steps has 6 risers but only 5 treads, because the top step lands you on the upper floor itself rather than needing its own tread board — the upper floor is the sixth "step." Miscounting treads as equal to risers is a common source of ordering the wrong number of tread boards.
The stringer length comes straight from the Pythagorean theorem, treating the total rise and total run as the two legs of a right triangle and the stringer as the hypotenuse connecting the bottom of the staircase to the top. That figure is the straight-line diagonal distance a stringer board has to span — actual lumber purchases should add a bit beyond that raw number to leave material for the notch cuts at both ends, which this calculator doesn't add automatically since notch allowance varies with the specific stringer design and tool being used. Treat every number this tool returns — step count, riser, run, and stringer length alike — as a planning estimate to verify against your own layout and local code, not a final cut list ready for the saw.
The Comfortable Range vs. the Code Minimum — and Why Local Code Wins
Most U.S. residential building codes set a riser height boundary somewhere between about 4 and 8 inches, with the calculator's warning threshold set at that commonly cited range. Within that legal range, though, comfort narrows things further: a riser in roughly the 7 to 7.75 inch band, paired with a tread run around 10 to 11 inches, is widely considered the most comfortable combination for an average adult stride, which is why the tool's default target riser sits at 7.5 inches rather than at either extreme of the legal range. A riser toward the shorter end of the legal range produces a gentler, longer staircase; one toward the taller end produces a steeper, more compact one that some people find noticeably more tiring to climb.
None of that changes the fact that local building code is what actually governs any staircase you build, and code specifics vary by jurisdiction — some municipalities tighten the riser range further, add minimum tread depth requirements, mandate a specific total-rise-to-run ratio, or impose different rules for interior versus exterior stairs. This calculator's warning is a useful sanity check against a commonly cited range, not a substitute for pulling your local code or, for anything load-bearing or safety-critical, having a contractor or structural professional review the layout before construction begins.
Where Hand-Calculated Stair Layouts Go Wrong
- Picking a riser height first and never checking whether it divides the rise evenly. A flat "I want 7-inch risers" decision, applied without recalculating the actual riser from the resulting step count, is how a staircase ends up with one oddball step at the top or bottom.
- Forgetting that the top riser is the floor itself. Some DIY stair layouts add an extra riser at the top because the builder counted the transition onto the upper floor as its own step, producing one too many risers in the cut list.
- Cutting the stringer to the raw hypotenuse length with no allowance. The calculated stringer length is the theoretical diagonal; the physical board needs extra length at both ends to accommodate the notches cut for the bottom and top of the run.
- Ignoring headroom. This calculator handles rise, run, and riser geometry, but building code separately regulates the minimum headroom clearance above each tread — a geometry-correct staircase can still fail inspection if a ceiling, beam, or upper-floor opening doesn't leave enough vertical clearance.
Calculating Stairs by Hand vs. Using This Tool
- Framing square and a story pole. The traditional carpenter's method — marking rise and run directly on a framing square and stepping it off on a story pole — works, but it takes practice to get consistent and doesn't give you a number to double-check on paper first.
- Pocket calculator with the Pythagorean theorem. Doable for the stringer length alone, but you still have to work out the step count and actual riser by hand first, and a small arithmetic slip early in the sequence throws off every number that follows it.
- Stair-stringer layout apps. Some carpentry apps go further and generate a full notch-by-notch cut diagram; this calculator focuses on the underlying numbers — step count, riser, run, stringer length — rather than a cut diagram, so treat it as the planning step before you reach for a more specialized layout tool if you need one.
- This calculator's API. A construction-estimating app or a permit-drawing tool that needs stair geometry computed programmatically, rather than typed into a browser form by hand, can call the same rise-to-stringer formula through a metered API endpoint; the API documentation lays out the exact fields it expects and returns.
Why does the actual riser height sometimes differ from the target I typed in?
Because the total rise almost never divides evenly by an arbitrary target riser. The calculator rounds to a whole number of steps first, then divides the total rise by that whole number to get the actual riser — a process that keeps every step in the run identical, at the cost of the actual riser landing slightly above or below whatever target you originally typed.
What happens if my calculated riser falls outside the 4 to 8 inch range?
The tool displays a warning message rather than blocking the calculation, since the 4-to-8-inch band is a commonly cited range and not a universal legal ceiling in every jurisdiction. Treat the warning as a prompt to re-check your local building code and, if needed, adjust the target riser or work with a different total rise before finalizing a design.
Does this tool account for headroom or handrail requirements?
No — it calculates rise, riser, run, and stringer geometry only. Headroom clearance, handrail height, baluster spacing, and similar code requirements are separate rules that this calculator doesn't check, so they need to be verified independently against your local code.
Can I use this for exterior or deck stairs, not just interior ones?
The rise-to-stringer geometry is the same regardless of whether the stairs are indoors or outdoors, but exterior and deck stairs are sometimes governed by a different section of the local code than interior stairs, with different riser and tread requirements — worth confirming which code section applies before treating the interior-oriented default range as the final word.
Related Calculators
Before framing a staircase, it often helps to nail down the floor space it will occupy. The square footage calculator works out the footprint area a staircase and its landing will take up out of a room. If the project also includes a concrete stair or a landing pad, the concrete calculator handles the volume and bag-count math for that separately from the stringer geometry here. And once the stairs are framed, the tile calculator can help figure material for tread coverings or a landing finish.
Ad space
Related tools
Square Footage Calculator
Calculate square footage amounts for your project. Get material quantities and cost estimates....
Concrete Calculator
Calculate concrete amounts for your project. Get material quantities and cost estimates....
Tile Calculator
Calculate tile amounts for your project. Get material quantities and cost estimates....
Ad space