Stair Calculator

Enter the floor to floor height and get the number of steps, the exact riser height, total run and stringer length for a straight stair, with each result held up to IRC stair limits.

Carpenters and deck builders: use it as a stair stringer calculator, then price the treads, railing and labor.

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.

Risers and treads
0

See full breakdown
    Quick answer

    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.

    Stair calculation formula

    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 doesIn plain words what it means on site
    RisersTotal rise ÷ target riser, rounded upEvery step stays at or below your target
    Riser heightTotal rise ÷ risersAll risers identical, inside the 3/8 in code tolerance
    Treads and runTreads = risers minus 1 (flush: = risers); run = treads × depthOn 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
    PriceTreads × per step + railing ft × per ft + hours × rateAdd $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

    Total rise108 in9 ft floor to floor
    ÷
    Risers15108 ÷ 7.5 = 14.4, round up
    =
    Each riser7.2 inabout 7 3/16 in
    Treads1415 risers minus 1
    ×
    Tread depth10 inrun per step
    =
    Total run140 instringer about 176.8 in, 35.8°
    Use cases

    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.
    Building code

    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.

    RuleLimitWhere it applies
    Riser height7 3/4 in maxMeasured between the leading edges of adjacent treads; risers in one flight may differ by no more than 3/8 in
    Tread depth10 in minMeasured nosing to nosing; same 3/8 in limit on variation
    Nosing3/4 to 1 1/4 inTreads with solid risers; not needed when treads are 11 in or deeper
    Headroom6 ft 8 in minFrom the sloped line of the nosings up to the ceiling or floor framing
    Stair width36 in minClear width, not counting handrails
    Handrail34 to 38 inAbove the nosing, on at least one side of any flight with four or more risers
    Rise per flight151 in maxTaller rises need a landing between flights
    Stringer spacing18 in maxDeck stairs: a 36 in stair takes three stringers; a cut 2x12 stringer spans up to 6 ft
    Uncut stringer depth5 in minThe 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.

    Step chart

    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 riseRisersEach riserTreadsTotal runStringer length
    24 in (2 ft)46 in330 in3 ft 2 7/16 in
    36 in (3 ft)57 3/16 in440 in4 ft 5 13/16 in
    48 in (4 ft)76 7/8 in660 in6 ft 4 13/16 in
    60 in (5 ft)87 1/2 in770 in7 ft 8 3/16 in
    72 in (6 ft)107 3/16 in990 in9 ft 7 1/4 in
    84 in (7 ft)127 in11110 in11 ft 6 3/8 in
    96 in (8 ft)137 3/8 in12120 in12 ft 9 11/16 in
    108 in (9 ft)157 3/16 in14140 in14 ft 8 13/16 in
    120 in (10 ft)167 1/2 in15150 in16 ft 1/16 in

    Standard stringer mount. Risers are rounded to the nearest 1/16 inch; lengths run along the slope.

    Stair cost

    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

    TypeInstalled 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

    StairInstalled 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
    $70 to $150
    An hour for stair labor. A standard stair takes 8 to 16 hours, so labor is usually $1,100 to $3,500 of the total. Median carpenter pay is $29.12 an hour (Bureau of Labor Statistics, 2025); the billed rate also covers tools, insurance and profit.
    $500 to $1,000
    Extra to tear out and haul away an old staircase. Otherwise a replacement costs about the same as a new stair.
    Materials

    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

    MaterialPer 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

    RailingPer 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
    $100 to $200
    Per step, materials and labor, to swap carpeted treads for wood on an existing stair, after $100 to $300 to pull up the carpet. A typical 12 or 13 step stair lands at $1,500 to $3,000 all in.
    Layout and price drivers

    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.

    FactorWhat it changesTypical effect
    Total riseEvery extra riser adds a tread and lengthens the run.One more tread per 7 to 7 1/2 in of height
    Floor spaceA 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
    HeadroomThe floor opening has to be long enough for 6 ft 8 in clear above every nosing.Opening = (headroom + floor thickness) × tread ÷ riser
    Stringer mountFlush mount adds a tread to the stringer and lengthens the run by one tread.+1 tread depth of run
    Tread thicknessThe bottom of the stringer is cut down so the first step matches the rest.First cut = riser minus tread thickness
    Stair widthWider stairs need more stringers under the treads.One stringer per 18 in, plus one
    Stair shapeTurns, winders and landings add framing and finish time.Straight $1,900 to $5,000; U shaped $2,500 to $6,000
    Tread materialPriced per step, so it scales with the riser count.$50 to $300 per step
    Replacing a stairThe old stair has to be removed and hauled away first.+$500 to $1,000
    For carpenters and deck builders

    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:

    1. Measure the total riseFinished surface to finished surface. On a deck over sloped ground, measure where the stair actually lands, not at the rim.
    2. Divide it into risersTotal rise ÷ target riser, round up, then divide again for the exact height.
    3. Pick the tread and check comfortTwice the riser plus the tread should land between 24 and 26 inches.
    4. 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.
    5. 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.
    6. 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 demo
    7,600+businesses use ServiceAgent to answer and book their calls, as reported by ServiceAgent
    FAQ

    Frequently asked questions

    Quick answers on step counts, stair code, stringers and what a staircase costs.

    Book a free demo
    How 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.

    Who worked on this
    Headshot of Shaambhav Shankar
    Written byShaambhav ShankarGrowth and Product Marketing, ServiceAgent

    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.