How to use this stair calculator
This free stair calculator takes one measurement you can get with a tape, the floor-to-floor height, and turns it into a full stair layout: how many steps you need, the exact riser height, the tread depth, the total run, the stair angle and the length of stringer board to buy. It checks every number against the residential building code while you type and draws the stair to scale from the side, from above, in 3D and as a stringer you can mark out.
It works in feet, inches and fractions or in millimetres, so you can type 8' 10 3/4" the way it reads on your tape, or 2710 mm if you work metric. There's no sign-up and no Calculate button. Change any box and the drawing, the results and the code check update at once.
Step 1: Measure the total rise
Total rise is the vertical distance from the top of the lower finished floor to the top of the upper finished floor. It is not the ceiling height. An 8-foot ceiling usually means a total rise of around 105 to 106 inches once you add the floor joists, subfloor and flooring above it.
Measure at the spot where the stair will actually land, and measure plumb. Floors are rarely flat, and a quarter inch of slope over the length of a room can turn into a bottom step that trips people. If either floor isn't finished yet, set Measured between to subfloors and enter the thickness of the flooring still to come. The calculator adds the top flooring, takes off the bottom flooring and works out the real finished rise for you.
Step 2: Choose a target riser height and tread depth
Start with a 7 1/2" riser target and a 10" tread. That's a comfortable, code-friendly stair for most houses. The calculator divides your total rise by the target, rounds to a whole number of steps and then splits the rise evenly, so every riser comes out identical to the 1/16". If the nearest count would push a riser over the 7 3/4" limit, it adds a step instead.
If you're short on floor space, switch the run mode to Total run and enter the length you have. The tool then works out the tread depth that fits and tells you if the result breaks the code. The Short on space? panel goes further and suggests layouts that do fit: a steeper legal stair, a landing, an L-turn or a U-turn.
Step 3: Set the top step, flooring and width
Most stairs stop one riser below the upper floor, with the floor itself acting as the last step. A few designs have the top tread flush with the upper floor instead, which adds one tread to the run. Pick the one you're building, because it changes the tread count and the stringer.
Open Flooring, stringers and opening to enter tread thickness, the stringer board (2x12 is the usual choice) and the upper floor depth. With those, the calculator gives you the bottom cut that keeps the first step the same height as the rest, the throat left on the stringer, how many stringers your stair width needs, and the length of opening the upper floor needs for headroom.
Step 4: Read the results and the drawing
The result bar shows the riser count, riser height, treads and total run. Below it, the code check lists each rule with a pass or a fail and, when something fails, a one-line fix. Use the view tabs to switch between the side elevation, the top view with the walking direction, a 3D model you can turn with a finger or mouse, and the stringer layout with every cut marked.
When the numbers look right, use Copy link to send the exact design to a client or your crew, Print / PDFfor a job-site sheet, or Save to keep it in your browser for later. Nothing leaves your device unless you share the link.
Why use a stair calculator instead of a rule of thumb?
Plenty of good carpenters lay out stairs with a pencil, a framing square and a story pole, and that still works. The trouble starts with the small things. A rise of 106 3/4" divided by 14 is 7.625", which is a clean 7 5/8". Change the floor-to-floor height by half an inch and you're dividing 107.25 by 14, which is 7.661", somewhere between 5/8 and 11/16. Round that on every step and the error stacks up on the last riser, which is exactly where the code's 3/8" rule catches people out.
A stair calculator does the division once, keeps the full precision and only rounds the marks you actually measure. It also catches the problems that a quick rise and run calculation misses: a stringer with too little wood left under the notches, a stairwell opening that's six inches too short, or a top step that ends up an inch taller because the new hardwood upstairs wasn't counted. Those are expensive mistakes to find after the stringers are cut, and they take a few seconds to see on screen.
It's also a good way to compare options before you commit. Try an 11" tread instead of 10", flip the top step to flush, or see how many steps you'd save with a landing. The drawing redraws as you type, so you can see the stair change shape instead of reading numbers off a table.
Stair terms in plain English
- Total rise
- Finished floor to finished floor, measured plumb. Everything else is worked out from this.
- Riser (unit rise)
- The height of one step. All risers in a flight should match to within 3/8".
- Tread (unit run)
- The depth of one step, measured from the face of one riser to the face of the next, not counting the nosing.
- Total run
- The horizontal length of the stair: the number of treads times the tread depth.
- Nosing
- The edge of a tread that sticks out past the riser below it, usually 3/4" to 1 1/4".
- Stringer
- The sloped board, usually a 2x12, that carries the treads. Cut stringers are notched into a saw-tooth shape.
- Throat
- The solid wood left on a cut stringer between the notches and its bottom edge.
- Headroom
- Clear height measured straight up from the line that joins the tread nosings to the ceiling or beam above.
- Flight
- An unbroken run of steps between floors or landings.
The stair formula: how to calculate stairs by hand
You don't need the calculator to lay out a straight stair. It just saves the arithmetic and catches the mistakes. Here is the same method it uses, worked through for a common floor-to-floor height of 8' 10 3/4", which is 106 3/4 inches.
- Count the risers. Divide the total rise by your target riser: 106.75 ÷ 7.5 = 14.23. Round to the nearest whole number, 14. If that gave a riser over 7 3/4", you'd round up instead.
- Find the exact riser height. Divide the total rise by the riser count: 106.75 ÷ 14 = 7.625", which is 7 5/8". Every step gets this height.
- Count the treads. With the top step one riser below the floor, there's one fewer tread than risers: 14 − 1 = 13 treads.
- Work out the total run. Multiply treads by tread depth: 13 × 10" = 130", or 10' 10".
- Check the angle. The stair angle is the arctangent of rise over run: atan(7.625 ÷ 10) = 37.3°. Comfortable house stairs sit between about 30° and 37°; the code maximum with a 7 3/4" riser and 10" tread is about 37.8°.
- Size the stringer. The stringer runs along the slope, so use Pythagoras on the run and rise, then allow for the board extending past the last notch and the cut at the floor. For this stair the calculator gives a stringer of 13' 11 1/2", so you'd buy 16-foot 2x12s.
That's the whole stair formula: risers = total rise ÷ target riser (rounded), riser height = total rise ÷ risers, treads = risers − 1 and total run = treads × tread depth. The traps are in the details: rounding a riser to the nearest 1/8" and letting the error pile up at the top step, forgetting tread thickness at the bottom, and measuring the rise from subfloor to finished floor.
How many steps for an 8, 9 or 10 foot ceiling?
These are typical results with a 7 1/2" riser target, a 10" tread and the top step one riser below the floor. Floor structure varies, so measure your own total rise and enter it above for the exact answer.
| Situation (total rise) | Risers | Riser height | Treads | Total run | Angle |
|---|---|---|---|---|---|
| Deck, 24" | 4 | 6" | 3 | 2' 6" | 31.0° |
| Deck, 36" | 5 | 7 3/16" | 4 | 3' 4" | 35.8° |
| Deck, 48" | 7 | 6 7/8" | 6 | 5' 0" | 34.4° |
| Basement, 96" | 13 | 7 3/8" | 12 | 10' 0" | 36.4° |
| 8' ceiling, about 105" | 14 | 7 1/2" | 13 | 10' 10" | 36.9° |
| 9' ceiling, about 117" | 16 | 7 5/16" | 15 | 12' 6" | 36.2° |
| 10' ceiling, about 129" | 17 | 7 9/16" | 16 | 13' 4" | 37.2° |
So the short answer to "how many stairs for an 8 foot ceiling" is usually 14 risers and 13 treads, and a 9 foot ceiling usually needs 15 or 16 risers. For deck stairs where the ground slopes away, the landing point moves as the stair gets longer; the deck stair calculator solves that for you.
Standard stair dimensions and the building code
Most US houses are built to the International Residential Code (IRC). The stair rules are in section R318.7 of the 2024 edition (R311.7 in 2021 and earlier). Your city or county may amend them, so treat these as the usual limits, not a substitute for your local inspector.
- Maximum riser height: 7 3/4" (197 mm).
- Minimum tread depth: 10" (254 mm), measured nosing to nosing.
- Uniformity: the tallest and shortest riser, and the deepest and shallowest tread, in a flight may differ by no more than 3/8" (9.5 mm).
- Nosing: 3/4" to 1 1/4" where the tread is less than 11" deep.
- Headroom: at least 6' 8" (2032 mm), measured plumb from the nosing line.
- Width: at least 36" clear above the handrail.
- Handrail: required on at least one side once there are four or more risers, 34" to 38" above the nosings.
- Flight height: no more than 151" (12' 7") of rise between floors or landings.
- Landings: at the top and bottom of each stair, at least as wide as the stair and 36" deep in the direction of travel.
Commercial buildings follow the International Building Code instead, which is stricter: risers between 4" and 7" and treads at least 11". If you're building outside the US, use the UK Part K,Australian NCC, Canadian NBC ormetric stair calculator, each set to that country's rules. For a finished stair you want to check, the stair code compliance checker takes the measurements as built.
Metric stair calculations
Outside the US most stairs are laid out in millimetres, and the method is exactly the same. Switch the units tomm at the top of the form, or just type a value with its unit, such as 2710 mm,271 cm or 2.71 m. A floor-to-floor height of 2710 mm with a 190 mm target gives 14 risers of about 194 mm each. European designers usually check comfort with the step formula, twice the riser plus the going, aiming for roughly 600 to 650 mm.
Limits differ from country to country. England's Approved Document K allows private stair risers up to 220 mm with a going of at least 220 mm and a pitch no steeper than 42°, while Australia's NCC allows 115 to 190 mm risers with 240 to 355 mm goings. Rather than remembering each set, open the matching country page from the code section above; each one starts in metric and checks against its own rules.
What makes a stair comfortable to climb
A stair can meet the code and still feel wrong. Comfort comes from how the rise and run work together with a normal walking stride, and carpenters have used a few rules of thumb for centuries:
- 2 risers + 1 tread = 24" to 25" (about 610 to 635 mm). This is the step comfort figure the calculator shows. 7 1/2" and 10" gives exactly 25".
- Riser + tread = 17" to 18". A quick check that the step isn't too steep or too shallow.
- Riser × tread = 70 to 75. An older rule that lands in the same place.
Outdoor steps feel better a little lower and deeper, around 6" to 7" risers with 11" to 14" treads, because people carry things and walk them in all weather. If the angle bothers you, the stair angle calculator shows where any rise and run sit in the comfort range.
Stair stringers: board size, throat and spacing
Cut stringers are usually 2x12 lumber, which is 11 1/4" deep. Every notch takes wood out, and the part left below the notches, the throat, is what actually carries the load. Deck building guides call for at least 5" of throat on a cut 2x12; the calculator shows yours and warns when a steep stair or deep tread leaves too little.
Spacing depends on the tread material. Thick wood treads can span farther than composite decking, which often needs stringers 12" apart. Enter your stair width and the maximum span your tread maker allows in thestringer spacing calculator to get the count and where each one goes.
The first riser on the stringer is cut shorter than the rest by the thickness of a tread, because the first tread sits on top and adds height. If the floor at the bottom gets new flooring after the stair goes in, that changes again. Thestair stringer calculator works all of this out and prints a full-size layout template you can trace onto the board, plus the framing square settings if you'd rather step it off with a square and stair gauges.
Headroom and the stairwell opening
The hole in the upper floor has to be long enough that nobody hits their head on the way down. Headroom is measured straight up from the sloped line that touches the front of every tread, so the opening has to start far enough back that the edge of the floor, including the joist depth, stays at least 6' 8" above that line.
For the 106 3/4" example with an 11" floor depth, the opening needs to be about 9' 11" long. A deeper floor or a steeper stair changes it quickly. The stair headroom calculator shows the clearance at every tread, and the stairwell opening calculator lays out the headers, trimmers and tail joists around the hole.
Landings, L-shaped and U-shaped stairs
A straight stair needs a long, clear floor. When you don't have one, turning the stair is usually the answer. An L-shaped stair turns 90° at a landing; a U-shaped stair turns back on itself and fits in roughly half the length. A landing is one step up but not a tread, so a 14-riser stair with a landing has 12 treads plus the landing.
The stair calculator with landing places the landing at a whole riser so both flights match, and draws the top view of each flight. For tight spaces you can also look at winder stairs, which replace the landing with tapered steps, or a spiral staircase. Not sure which fits? Thestair space planner tries every layout against your room size.
Deck stairs and outdoor steps
Deck stairs follow the same rise and run rules, but the ground rarely cooperates. If the yard slopes away from the deck, every extra step reaches further out and lands lower, which changes the total rise you started with. Builders often guess, cut, and then add a block or dig a trench to make the bottom step work. Thedeck stair calculator takes a few ground readings instead and finds where the stair really lands, along with the concrete pad at the bottom.
For poured concrete, the concrete steps calculator works out the volume, the number of bags and the form boards. Steps cut into a slope, with long treads and a pace or two on each, are a different job again, and the garden steps calculator handles those. Outdoors, keep risers on the low side and treads a little deeper: wet leaves and work boots are less forgiving than socks on carpet.
What to buy: a stair material list
Once the layout is settled, the stair calculator's cut list gives you the stringer count and lengths. A typical 36"-wide interior stair with 14 risers needs three or four 2x12 stringers, 13 treads, 14 riser boards if the risers are closed, and a handrail. From there, the more specialised tools help with the rest of the shopping:
- Stair tread and riser material calculator: retread kits, hardwood planks or vinyl plank and the nosing pieces.
- Handrail length calculator: rail length with extensions and returns, brackets and stock lengths.
- Stair carpet calculator and stair runner calculator: roll length, square yards, pad and rods.
- Stair paint and stain calculator: area per surface, coats and cans.
- Stair cost estimator: materials and labour with your own local prices.
Buy stringer stock a size longer than the calculator says if your lumber yard's boards tend to have checks or crown at the ends. A 16-foot board that's straight is worth more than a 14-footer you have to fight.
Common stair building mistakes
- Measuring the ceiling instead of the total rise. Always measure floor to floor, finished to finished, at the stair location.
- Forgetting tread thickness or new flooring. This is the usual reason the bottom or top step comes out taller than the rest. The new flooring riser checker shows what new treads or flooring do to an existing stair.
- Rounding each riser. Lay out from the exact total rise ÷ risers and let the tool round only the final marks.
- Counting treads wrong. There is one fewer tread than risers when the floor is the top step.
- Ignoring headroom. A stair that fits the floor can still fail at the opening above.
- Skipping the railing. Four or more risers need a handrail, and open sides more than 30" above the floor need a guard. The baluster spacing calculator keeps every gap under the 4" sphere rule.
Frequently asked questions
How do I calculate stairs?
Measure the total rise from finished floor to finished floor. Divide it by about 7 1/2" and round to get the number of risers, then divide the total rise by that number for the exact riser height. Treads are one fewer than risers, and the total run is treads times tread depth. The stair calculator above does all of this and checks it against the code.
How many steps do I need for an 8 foot ceiling?
An 8 foot ceiling usually gives a total rise of about 105 to 106 inches once the floor above is included. That works out to 14 risers of about 7 1/2" and 13 treads, with a total run of about 10' 10" using 10" treads.
What is the standard rise and run for stairs?
A typical house stair has risers of about 7" to 7 3/4" and treads of 10" to 11". Under the IRC the riser can be no more than 7 3/4" and the tread no less than 10". A 7 1/2" rise with a 10" run is a comfortable, common choice.
What is the maximum riser height?
Under the 2024 IRC a riser can be at most 7 3/4" (197 mm) and a tread at least 10" (254 mm), with no more than 3/8" (9.5 mm) difference between the tallest and shortest step in a flight. Commercial stairs under the IBC are limited to 7" risers and 11" treads.
How long should a stair stringer be?
Roughly the square root of the total run squared plus the total rise squared, plus a little for the board extending past the last cut. For a 106 3/4" rise with 10" treads the stringer is about 13' 11 1/2", so you would buy 16-foot 2x12s.
Does the landing count as a step?
The landing counts as one step up but not as a tread: it replaces one tread. A 14-riser stair with a landing has 12 treads plus the landing.
Why is my bottom step taller than the others?
Usually the tread thickness or new flooring was not allowed for. Cut the bottom of the stringer by the tread thickness minus the bottom flooring thickness; the calculator gives the exact amount.
Is this stair calculator free?
Yes. It is free with no sign-up, works in feet and inches or metric, and runs in your browser on a phone or computer. You can share a design by link, print it to PDF or save it in your browser.
How much space does a staircase need?
A straight stair for an 8-foot ceiling is about 10 feet 10 inches long and at least 36 inches wide, plus a 36-inch clear landing at the top and bottom. Turning the stair with a landing shortens it.
What is the best angle for a staircase?
Between about 30 and 37 degrees feels comfortable. A 7 1/2-inch rise with a 10-inch tread is 36.9 degrees; the steepest the IRC allows for a standard stair is about 37.8 degrees.
How wide should stairs be?
At least 36 inches of clear width above the handrail under the IRC. 42 to 48 inches is more comfortable and makes it far easier to move furniture.
How do I calculate stairs with a landing?
Calculate the risers for the full height first, then split them between the flights at a whole riser. The landing replaces one tread. The stair calculator with landing does this and draws both flights from above.
This calculator gives layout figures based on the model building codes. Local codes can differ, and structural details such as stringer support and fastening are up to your local building department. Always confirm with your inspector before you cut.