Headroom and floor openingCheck headroom under the floor above, or find the opening you need
Floor thickness: finished floor above to ceiling below. 80 in is the 6 ft 8 in code minimum.
Treads and railing length fill in from the Stair layout tab. A standard staircase takes 8 to 16 hours to install, and stair labor runs $70 to $150 an hour.
See full breakdown
To size a staircase, measure the total rise from finished floor to finished floor, divide it by a target riser of about 7 to 7 1/2 inches and round up to get the number of risers; the rise divided by that count is your exact riser height. A straight stair has one fewer tread than risers, and the total run is treads × tread depth, usually 10 to 11 inches. The IRC allows risers up to 7 3/4 inches, treads of at least 10 inches, 6 ft 8 in of headroom and a handrail 34 to 38 inches above the nosing.
How to calculate stairs: risers, treads and run
How this stair calculator works: it splits the total rise into equal risers no taller than your target, then builds the run, stringer and angle from them. Any stair rise and run calculator follows this order.
| Formula what the calculator does | In plain words what it means on site | |
|---|---|---|
| Risers | Total rise ÷ target riser, rounded up | Every step stays at or below your target |
| Riser height | Total rise ÷ risers | All risers identical, inside the 3/8 in code tolerance |
| Treads and run | Treads = risers minus 1 (flush: = risers); run = treads × depth | On a standard mount the top floor is the last step |
| Stringer and angle | √(rise² + run²); angle = arctan(riser ÷ tread) | Board length to buy, and how steep it feels |
| Price | Treads × per step + railing ft × per ft + hours × rate | Add $500 to $1,000 to remove an old stair |
Worked example: 108 inch floor to floor rise, 7.5 inch target riser, 10 inch treads, standard mount
When to use this stair calculator
Reach for it before a single cut is made, and again whenever a stair price or plan needs checking.
- New construction layout: size the stair while the floor system is still on paper. Knowing the riser count, run and headroom early tells you how long the stairwell opening must be and whether a landing is needed before framing starts.
- Deck stairs: run it as a stair stringer calculator for the cut list.
- Basement stairs: fit a code legal stair into a tight run below an existing floor.
- Remodel or retrofit: an old stair with uneven or steep steps often has to come out entirely. Lay out the new one first, then price new stringers, treads and finish, plus the removal, so you can decide between repairing the stair and replacing it.
- Quote comparison: line up bids against the same treads, railing and labor.
- Material selection: oak, engineered wood, metal and concrete treads sit at very different prices per step. Switching the material in the price tab shows how much the choice moves the total before you commit to it.
- Emergency or temporary access: when a stair has failed or a site needs access fast, the layout gives you a buildable stringer in minutes, and plain wood treads with a simple handrail keep the cost down until the finished stair goes in.
- Pricing a job: carpenters can lay out the stair, then price it in the second tab with their own hours and rate.
What are the building code requirements for stairs?
Most US homes follow the International Residential Code. These are the limits the calculator checks, and the deck stair rules that decide how many stringers you cut.
| Rule | Limit | Where it applies |
|---|---|---|
| Riser height | 7 3/4 in max | Measured between the leading edges of adjacent treads; risers in one flight may differ by no more than 3/8 in |
| Tread depth | 10 in min | Measured nosing to nosing; same 3/8 in limit on variation |
| Nosing | 3/4 to 1 1/4 in | Treads with solid risers; not needed when treads are 11 in or deeper |
| Headroom | 6 ft 8 in min | From the sloped line of the nosings up to the ceiling or floor framing |
| Stair width | 36 in min | Clear width, not counting handrails |
| Handrail | 34 to 38 in | Above the nosing, on at least one side of any flight with four or more risers |
| Rise per flight | 151 in max | Taller rises need a landing between flights |
| Stringer spacing | 18 in max | Deck stairs: a 36 in stair takes three stringers; a cut 2x12 stringer spans up to 6 ft |
| Uncut stringer depth | 5 in min | The solid wood left below the notches on a cut stringer |
Local codes can amend these numbers, so confirm with your building department before you cut.
How many steps do I need for my height?
Find your floor to floor rise to see the step count at a 7.5 inch target riser and 10 inch treads. For any other size, use the stair rise and run calculator above.
| Total rise | Risers | Each riser | Treads | Total run | Stringer length |
|---|---|---|---|---|---|
| 24 in (2 ft) | 4 | 6 in | 3 | 30 in | 3 ft 2 7/16 in |
| 36 in (3 ft) | 5 | 7 3/16 in | 4 | 40 in | 4 ft 5 13/16 in |
| 48 in (4 ft) | 7 | 6 7/8 in | 6 | 60 in | 6 ft 4 13/16 in |
| 60 in (5 ft) | 8 | 7 1/2 in | 7 | 70 in | 7 ft 8 3/16 in |
| 72 in (6 ft) | 10 | 7 3/16 in | 9 | 90 in | 9 ft 7 1/4 in |
| 84 in (7 ft) | 12 | 7 in | 11 | 110 in | 11 ft 6 3/8 in |
| 96 in (8 ft) | 13 | 7 3/8 in | 12 | 120 in | 12 ft 9 11/16 in |
| 108 in (9 ft) | 15 | 7 3/16 in | 14 | 140 in | 14 ft 8 13/16 in |
| 120 in (10 ft) | 16 | 7 1/2 in | 15 | 150 in | 16 ft 1/16 in |
Standard stringer mount. Risers are rounded to the nearest 1/16 inch; lengths run along the slope.
How much does it cost to build stairs?
A main staircase usually costs $2,000 to $5,000 installed, about $3,563 on average. Straight stairs cost least; curved and floating designs reach six figures.
By stair type
| Type | Installed cost |
|---|---|
| Straight | $1,900 to $5,000 |
| Winder | $2,000 to $5,500 |
| L shaped | $2,200 to $5,700 |
| U shaped | $2,500 to $6,000 |
| Spiral | $2,500 to $15,500 |
| Curved or circular | $9,000 to $100,000 |
| Floating | $15,000 to $100,000 |
By location in the home
| Stair | Installed cost |
|---|---|
| Attic ladder | $250 to $1,000 |
| Basement, unfinished | $1,000 to $2,000 |
| Basement, finished | $1,100 to $3,200 |
| Main staircase | $2,000 to $5,000 |
| Open risers | $10,000 to $50,000 |
What do stair treads and railings cost?
Materials only, before labor: treads per step and railing per linear foot, the way the Price the stairs tab adds them up.
Tread material, per step
| Material | Per step |
|---|---|
| Wood | $50 to $150 |
| Stone | $80 to $120 |
| Composite | $80 to $150 |
| Tile | $80 to $150 |
| Metal | $100 to $200 |
| Glass | $150 to $250 |
| Concrete | $200 to $300 |
Railing, per linear foot
| Railing | Per foot |
|---|---|
| Wood railing | $10 to $40 |
| Wall mounted handrail | $25 to $40 |
| Stainless steel | $25 to $60 |
| Integrated handrail | $30 to $100 |
| Wrought iron | $50 to $300 |
| Cable | $60 to $200 |
| Glass | $100 to $500 |
What changes your stair layout and price?
A few measurements decide the shape of the stair, and a few choices decide the bill. Here is what each one moves.
| Factor | What it changes | Typical effect |
|---|---|---|
| Total rise | Every extra riser adds a tread and lengthens the run. | One more tread per 7 to 7 1/2 in of height |
| Floor space | A short run forces taller risers and a steeper stair, which can push past the code limit. | Risers max 7 3/4 in, treads min 10 in |
| Headroom | The floor opening has to be long enough for 6 ft 8 in clear above every nosing. | Opening = (headroom + floor thickness) × tread ÷ riser |
| Stringer mount | Flush mount adds a tread to the stringer and lengthens the run by one tread. | +1 tread depth of run |
| Tread thickness | The bottom of the stringer is cut down so the first step matches the rest. | First cut = riser minus tread thickness |
| Stair width | Wider stairs need more stringers under the treads. | One stringer per 18 in, plus one |
| Stair shape | Turns, winders and landings add framing and finish time. | Straight $1,900 to $5,000; U shaped $2,500 to $6,000 |
| Tread material | Priced per step, so it scales with the riser count. | $50 to $300 per step |
| Replacing a stair | The old stair has to be removed and hauled away first. | +$500 to $1,000 |
How do you lay out a stair stringer?
Every straight stair comes from the same short sequence, whether it climbs to a second floor or a deck:
- Measure the total riseFinished surface to finished surface. On a deck over sloped ground, measure where the stair actually lands, not at the rim.
- Divide it into risersTotal rise ÷ target riser, round up, then divide again for the exact height.
- Pick the tread and check comfortTwice the riser plus the tread should land between 24 and 26 inches.
- Check headroomSize the floor opening so there is 6 ft 8 in above every nosing. If the opening is fixed, a steeper stair or a landing may be the only fix.
- Mark and cut the stringerStep off risers and treads with a framing square, then drop the bottom by one tread thickness so the first step is not taller than the others. Leave at least 5 inches of solid wood below the notches.
- Count stringers and price itOne stringer per 18 inches of width plus one, then treads, railing and labor.
The Stair layout tab runs the first five steps; Price the stairs handles the last.
Building decks and stairs? The next job calls while your hands are full.
Homeowners pricing a deck stair or a basement staircase call two or three carpenters and book the one who picks up. ServiceAgent answers every call while you are cutting stringers, asks the rise, the width and the material, and books the site visit into your calendar.
Book a free demoFrequently asked questions
Quick answers on step counts, stair code, stringers and what a staircase costs.
Book a free demoHow do you calculate the number of stairs needed?
Divide the total rise by the riser height you want and round up. A 108 inch rise at a 7.5 inch target gives 14.4, so you build 15 risers of 7.2 inches each. Rounding up keeps every step at or under your target, and dividing the rise by the final count makes every riser the same height.
What is the standard rise and run for stairs?
Under the IRC a riser can be no taller than 7 3/4 inches and a tread no shallower than 10 inches. Treads under 11 inches with solid risers also need a nosing of 3/4 to 1 1/4 inches. Most builders aim for risers near 7 to 7 1/2 inches and treads of 10 to 11 inches, which is what this stair rise and run calculator starts from.
How accurate is this stair calculator?
The math is exact for a straight stair: risers, treads, run, stringer length and angle all follow from your measurements. The result is only as good as the total rise you enter, so measure from finished floor to finished floor, and check your local code before you cut, since some areas amend the IRC.
What affects stair design the most?
Total rise, the riser height you pick, tread depth and the floor space you have for the run. Headroom under the floor above decides how long the stairwell opening has to be.
Can I use this for spiral or curved stairs?
No. It works for straight runs, including each straight flight of an L or U shaped stair. Spiral stairs are usually bought as a prefabricated kit and run $2,500 to $15,500 installed, and curved stairs start around $9,000, so they are designed by the maker rather than laid out on a framing square.
Does this include railing or landing calculations?
Railing yes, landings no. The Price the stairs tab prices railing by the foot along the slope. For landings, the IRC limits one flight to 151 inches of rise, so anything taller needs a landing between flights, and deck stairs need a solid landing that runs 36 inches out from the bottom nosing.
What is the ideal stair angle for comfort?
Between 30 and 35 degrees feels best, and 30 to 40 degrees is the usable range. A quick comfort check is twice the riser plus the tread: a result of 24 to 26 inches walks naturally, so a 7.5 inch riser with a 10 inch tread gives 25.
How many stringers do I need, and how long are they?
Space stringers no more than 18 inches apart, so a 36 inch wide stair takes three. Length runs along the slope: the square root of total rise squared plus total run squared. The stair stringer calculator above gives both, along with the first step cut at the bottom.
Is this calculator useful for contractors?
Yes. Carpenters and deck builders can lay out the stringer, check it against code, then switch to the Price the stairs tab to put treads, railing, labor and tear out into one number for the customer.
What profit margin do carpentry and stair contractors make?
The closest published benchmarks for carpentry work are remodeling, at a 30% to 42% gross margin and 8% to 18% net, and residential general contracting, at 25% to 35% gross and 8% to 15% net. Gross margin is the job price minus its own labor and lumber. Net margin is what survives once the shop, the truck, insurance and the owner's salary are paid.
How much does it cost to build stairs?
A main staircase usually costs $2,000 to $5,000 installed, with a national average near $3,563. Basement stairs run $1,000 to $2,000 unfinished, and replacing an old staircase adds $500 to $1,000 to remove and dispose of it.
Leads growth and product marketing for ServiceAgent at SaaS Labs, where he has worked in product marketing since 2020. Writes ServiceAgent's coverage of AI call answering, CRM and home services operations.
Published by ServiceAgent, the AI front office for home service teams. Results are for planning only. Stair layouts must meet the code adopted where you build, and prices depend on your materials, your area and what a carpenter finds on site. Always confirm measurements and get a written quote before work starts.