Straight wooden staircase under construction with cut stringers and treads
Free · IRC R311.7 and IBC checks · stringer layout

Stair Calculator with Diagram: Rise, Run and Stringers

Your staircase
in
in
in
in
in
in
in
in
Steps
16 risers
7 3/8 in each (7.375) · 15 treads at 10 1/2 in
rise 118 inrun 13 ft 1 1/2 in · 15 treads10 1/27 3/835.1° slopeupper floor
Dimensions
Riser height (exact)7 3/8 in (7.375)
Treads × depth15 × 10 1/2 in
Total run13 ft 1 1/2 in (157.5 in)
Stair angle35.1°
2R + T comfort25 1/4 in — comfortable
Stringers and lumber
Stringer length (nosing line)16 ft 4 13/16 in
Stringers needed3 × 2x12 (throat 5 3/16 in)
Board to buy, each18 ft
Tread boards (depth + nosing)15 × 11 1/2 in deep × 36 in
Drop the stringer (first riser cut)6 3/8 in (riser − 1 in tread)
Code check
✓ Riser height ≤ 7 3/4 in7 3/8 in
✓ Tread depth ≥ 10 in10 1/2 in
✓ Stair width ≥ 36 in36 in
✓ Headroom ≥ 6 ft 8 in84 in
✓ Nosing ¾–1¼ in (IRC, treads under 11 in)1 in
✓ Stringer throat ≥ 5 in5 3/16 in
✓ Fits the run available13 ft 1 1/2 in
A 9 ft 10 in rise takes 16 risers of 7 3/8 in and 15 treads of 10 1/2 in: 13 ft 1 1/2 in of run at 35°, cut from 3 18-ft 2x12 stringers. Every dimension passes IRC — lay it out and cut.

Risers = total rise ÷ target riser, rounded to the nearest whole number and increased until each riser is at or under the code maximum; treads = risers − 1. Total run = treads × tread depth (nosing to nosing). Stringer length is the nosing line, √(run² + rise²); the board allows 12 in extra and is rounded up to stock lengths. Stringers at one per 16 in of width (minimum two); throat = board depth − the perpendicular notch. Checks follow IRC 2021 R311.7 or IBC 1011. The drawing is to scale but schematic. Local amendments vary — confirm with your building department before you cut.

Type the total rise from finished floor to finished floor and get the riser count and exact height, the treads and total run, the stringer length and angle, the board to buy, and a side-profile drawing — with a pass/fail check on riser height, tread depth, width, headroom and stringer throat.

Measure the total rise from the finished floor below to the finished floor above — not the ceiling height, which leaves out the joists and subfloor — and enter it in inches. The calculator divides it by your target riser, rounds to a whole number of risers and recalculates the exact height (every riser must be identical within ⅜ in), then lays out the treads, the total run, the stringer length and angle, how many stringers the width needs and what length of 2×12 to buy. The code table turns red where a dimension misses IRC (or IBC, if you pick it), and the drawing redraws every time you change a number. Enter the run available if the stair has to land before a wall: the tool shortens the treads to the code minimum before it tells you it won’t fit.

How many steps for a 9-ft ceiling?

A 9-ft ceiling is about a 118-inch total rise once you add the 10 in of joists, subfloor and flooring above it, and 118 in takes 16 risers of 7 3/8 in (118 ÷ 16 = 7.375) with 15 treads. At a 10½-in tread that is a total run of 13 ft 1 1/2 in, a 35° stair, and stringers 16 ft 4 13/16 in long cut from 18-ft 2×12s. An 8-ft ceiling (about 106 in rise) takes 14 risers of 7 9/16 in; a 10-ft ceiling (about 130 in) takes 18 risers of about 7¼ in (7.22).

The riser count always comes from the total rise, never from the ceiling height alone. A 9-ft ceiling with 2×10 joists, ¾-in subfloor and ¾-in hardwood is 108 + 9¼ + 1½ = 118¾ in; with 11⅞-in I-joists it is 121⅝ in. An inch of error in the rise becomes a 1/16-in error on every riser — which is inside tolerance — but 3 in of error puts one riser out by ⅜ in and fails inspection. Measure at the stairwell with a laser or a plumb line, and if the two floors are not level to each other, measure at the exact point where the top and bottom of the stair will land.

Top-down view of a straight wooden staircase with uniform treads
Sixteen identical risers of 7⅜ in: the code allows ⅜ in of variation across the whole flight, so every riser gets the same layout. Photo: Tahir Osman / Pexels

Rise and run: how to calculate stairs

  1. Measure the total rise finished floor to finished floor, in inches.
  2. Divide by a target riser — 7 to 7½ in for a comfortable house stair, 7¾ in maximum under the IRC. 118 ÷ 7.25 = 16.3, so 16 risers.
  3. Divide the rise by that whole number for the actual riser: 118 ÷ 16 = 7.375 in. If it comes out above 7¾ in, add a riser and divide again (118 ÷ 15 = 7.87 fails; 16 passes).
  4. Treads = risers − 1. The top floor is the last “tread.” 16 risers, 15 treads.
  5. Pick a tread depth measured nosing to nosing — 10 in is the IRC minimum, 10–11 in the usual comfort range. Add the nosing (¾–1¼ in) to get the tread board width: a 10½-in run with a 1-in nosing uses an 11½-in board.
  6. Total run = treads × tread depth. 15 × 10.5 = 157.5 in, or 13 ft 1½ in, plus a landing of at least 36 in at the bottom.
  7. Stringer length = √(run² + rise²): √(157.5² + 118²) = 16 ft 4 13/16 in. Buy the next stock length up with a foot to spare — an 18-ft 2×12.

If the run has to fit a wall, work backward: available run ÷ treads = the tread depth you can afford, and if that is under 10 in (11 in commercial) the stair needs a landing, a turn or a steeper allowance from the building department. The tool does this when you enter a run limit.

Floor-to-floor rise to steps: risers, treads, run and stringer length (target 7¼ in, 10½-in treads, IRC)
Floor to floorRisersRiser heightTreadsTotal runStringer (nosing line) → boardAngle
8 ft (96 in)137 3/8 in1210 ft 6 in13 ft 2 3/8 in → 16 ft board35.1°
8 ft 6 in (102 in)147 5/16 in1311 ft 4 1/2 in14 ft 2 3/8 in → 16 ft board34.8°
9 ft (108 in)157 3/16 in1412 ft 3 in15 ft 2 7/16 in → 18 ft board34.4°
9 ft 4 in (112 in)157 7/16 in1412 ft 3 in15 ft 4 13/16 in → 18 ft board35.4°
9 ft 10 in (118 in)167 3/8 in1513 ft 1 1/2 in16 ft 4 13/16 in → 18 ft board35.1°
10 ft (120 in)177 1/16 in1614 ft 0 in17 ft 2 7/16 in → 20 ft board33.9°
10 ft 6 in (126 in)177 7/16 in1614 ft 0 in17 ft 6 in → 20 ft board35.2°
11 ft (132 in)187 5/16 in1714 ft 10 1/2 in18 ft 6 in → 20 ft board34.9°
12 ft (144 in)207 3/16 in1916 ft 7 1/2 in20 ft 6 1/16 in → null ft board34.4°

Floor-to-floor rise = ceiling height + the floor system above (typically 10–14 in). Board length allows 12 in extra; 18- and 20-ft 2×12s are special-order at many yards, so flights over about 14 risers often get a landing instead.

Two things the table shows. First, every foot of extra rise costs about 1.4 ft of extra run: a 12-ft floor-to-floor stair needs 17 ft of floor plus a landing, which is why tall-ceiling houses have switchback stairs. Second, the riser count changes in jumps: 108 in is 15 risers at 7.2 in, 112 in is also 15 risers but at 7.47 in — same treads, same run, steeper step. When you can choose the floor-to-floor (an addition, a deck), choose a rise that divides to a comfortable riser rather than one that lands just over a breakpoint.

Stair size standards: IRC, IBC and ADA

Houses follow the International Residential Code, section R311.7: risers no more than 7¾ in, treads at least 10 in deep, at least 36 in wide, 6 ft 8 in of headroom and a handrail at 34–38 in. Commercial buildings and apartment common stairs follow the IBC (section 1011), which is stricter: 7-in maximum risers, 11-in treads and 44-in width. Accessible routes under the ADA Standards use the IBC geometry plus handrails on both sides with extensions and closed risers. The table lists the numbers that decide whether a stair passes.

Carpenter measuring a board with a tape at a workbench
Layout happens on the first stringer only: cut it, test-fit it, and trace the other two from it so all three match. Photo: Ono Kosuki / Pexels
Stair dimension limits: IRC residential vs IBC commercial vs ADA accessible
DimensionIRC 2021 (R311.7)IBC 2021 (1011)ADA Standards (504)
Maximum riser height7¾ in7 in (min 4 in)7 in (min 4 in)
Minimum tread depth (nosing to nosing)10 in11 in11 in
Minimum clear width36 in above the handrail (31½ in at one rail)44 in (36 in if serving under 50 people)per IBC (44 in)
Minimum headroom6 ft 8 in6 ft 8 in6 ft 8 in
Handrail height34–38 in above nosings34–38 in34–38 in, both sides, extending 12 in at top
Variation between risers or treads⅜ in max within a flight⅜ in maxuniform
Nosing¾–1¼ in when the tread is under 11 in≤ 1¼ in, no abrupt undersideno abrupt underside, 60° or rounded; open risers not allowed
Maximum rise between landings12 ft 7 in12 ft12 ft
Landing at top and bottom36 in deep (door may swing over the top landing)≥ stair width, 48 in max requiredper IBC; handrails extend 12 in past the top riser

Most states adopt the IRC/IBC with amendments; a few (for example parts of New York, and older local codes) allow 8¼-in risers and 9-in treads on residential stairs. Spiral and winder stairs have their own rules (R311.7.10). Always confirm with the local building department.

The limits that trip people up are headroom and width. Headroom is measured vertically from the nosing line (a line touching every tread nose) to the ceiling or beam above, and a stair that passes everywhere else fails at the header of the floor opening when the opening is too short — the calculator takes your available headroom but cannot see the opening, so measure it: the floor opening must be at least (80 in + the floor thickness) ÷ tan(angle) long past the top riser, about 11 ft for a 35° stair with a 10-in floor system. Width is measured above the handrail height; a 36-in stair with one handrail projecting 4½ in leaves 31½ in clear, which is the minimum.

What makes a stair comfortable: the 2R + T rule

Code limits are maximums, not targets. The old carpenter’s rule is that twice the riser plus the tread should equal 24–25 in (2R + T), which matches an adult stride; the companion rules are R + T = 17–18 in and R × T = 72–75. A 7-in riser with an 11-in tread (2 × 7 + 11 = 25) is the classic comfortable stair and also the commercial standard; a 7¾-in riser with a 10-in tread (25½) is legal and noticeably steeper. Steps that break the rule in either direction cause trips: a short riser with a deep tread makes people shuffle, a tall riser with a shallow tread catches toes.

Riser height and the tread that keeps 2R + T at 25 in
RiserIdeal tread (25 − 2R)Angle2R + T if you use a 10-in treadRun for 15 treads at the ideal tread
6 1/2 in12 in28.4°23 with a 10-in tread15 ft 0 in
6 3/4 in11 1/2 in30.4°23 1/2 with a 10-in tread14 ft 4 1/2 in
7 in11 in32.5°24 with a 10-in tread13 ft 9 in
7 1/4 in10 1/2 in34.6°24 1/2 with a 10-in tread13 ft 1 1/2 in
7 1/2 in10 in36.9°25 with a 10-in tread12 ft 6 in
7 3/4 in9 1/2 in39.2°25 1/2 with a 10-in tread11 ft 10 1/2 in

Stair angles between 30° and 37° are the comfortable band; attic ladders and ship stairs run 50–70° and are not allowed as the only access to a habitable room.

Pick the riser first from the rise (it has to divide evenly) and then choose the tread from this table, not the other way round. If the run is tight, keep the riser comfortable and accept a 10-in tread with a 1¼-in nosing — the nosing adds foot room without adding run. Exterior and deck stairs are usually built shallower (6–7-in risers, 11–12-in treads) because people carry things and the treads get wet.

Cutting stringers: layout, dropping the stringer and the throat

Lay out a stringer with a framing square and stair gauges clamped at the riser height on the tongue and the tread depth on the blade. Starting at one end of a 2×12, trace the triangle, slide the square along and trace the next, until you have the full count of risers; the sawtooth is the nosing line, and the top and bottom cuts are perpendicular (the top plumb cut sits against the header, the bottom level cut on the floor). Cut with a circular saw to the line and finish each inside corner with a handsaw — overcutting the corner weakens the throat.

Drop the stringer

With the stringer sitting on the floor and treads of thickness t added to every cut, the first step would be riser + t high and the last step riser − t. The fix is to cut t off the bottom of the stringer (“dropping” it) — for 1-in treads, the bottom riser cut is 6 3/8 in instead of 7 3/8 in on the 118-in example. If the bottom floor will get a finish floor of thickness f later, subtract (t − f) instead. The calculator’s “drop the stringer” row shows the exact first cut.

Throat depth and stringer count

What is left of the board after the notch — the throat — carries the load, and the usual rule (from the AWC’s deck guide DCA 6 and most inspectors) is at least 5 in of solid wood on a 2×12. A 7⅜ × 10½ step notches 6 in out of 11¼, leaving 5¼ in; a 7¾ × 11 step leaves 4.9 in, which is why 2×10 stringers almost never pass and why steep, deep stairs use LVL stock or an added 2×4 cleat. Space stringers no more than 16 in apart for 1-in to 1½-in wood treads (three stringers for a 36-in stair, four for 48 in) and 12 in apart for composite treads.

Modern oak staircase with open risers in a contemporary interior
Open-riser stairs still need the 4-in sphere rule: a 7⅜-in riser opening must be blocked so a 4-in ball cannot pass. Photo: Anastasiya Badun / Pexels

Deck and exterior stairs

Deck stairs follow the same R311.7 limits plus a few of their own. The total rise is deck surface to grade — and grade is rarely level, so set a landing pad (a 36-in-deep concrete pad or pavers on gravel) first and measure to it. Stringers must bear on the pad, not on dirt, and attach to the deck rim with a hanger or a ledger, not toe-nails; cut stringers of pressure-treated 2×12 are good to about 6 ft of span before they need a mid-span post or a 2×4 nailed along the underside. Treads of two 2×6s (11 in) with a ⅜-in gap suit an 11-in tread with no nosing, which the IRC allows at that depth; composite treads need stringers 12 in apart.

Guards are required on the open sides of any stair with more than 30 in of total rise, 34 in high at the nosing with openings a 4⅜-in sphere cannot pass, and a graspable handrail is required on one side of any flight of four or more risers. Draw the whole thing in the deck builder: it places the stair and landing in plan so the run lands where you want, and the lumber list adds the stringers and treads to the deck order.

When the stair will not fit: landings, winders and cost

A straight flight for a 118-in rise needs about 13 ft of run plus a 3-ft landing at each end — 19 ft of floor. When the plan does not have it, the options in order of cost are: steepen within code (10-in treads, 7¾-in risers cut the run to 12 ft 6 in); add a landing and turn (an L-stair needs a 36 × 36 in landing that counts as one tread and splits the run between two walls; a U-stair needs a 36 × 72 in landing and stacks the two runs); winders (pie-shaped treads allowed by R311.7.5.2.1 with at least 6 in at the narrow end and 10 in at the 12-in walk line) that replace the landing in an L-stair and save about 3 ft; or a spiral (26-in minimum clear width, 9½-in riser maximum, 6¾-in treads at the walk line 12 in from the narrow edge, 6 ft 6 in headroom) for a loft or secondary access only. Stair openings in the floor also drive framing cost: the header carries the cut joists and the opening must be about 11 ft long for a 35° stair with 6 ft 8 in headroom.

Costs in 2026: a site-built straight flight of cut stringers with pine treads and risers runs $1,500–$3,500 installed; oak treads and a finished balustrade $4,000–$10,000; a factory-built hardwood stair or a floating steel-stringer stair $8,000–$25,000; a basic deck stair $600–$1,500. The cost to build a house calculator puts a two-story stair in the context of the whole frame, and standard room sizes lists hallway and landing widths that work with a 36-in stair.

How this stair calculator works and where the numbers come from

Risers = round(total rise ÷ target riser), increased until rise ÷ risers ≤ the code maximum (7¾ in IRC, 7 in IBC); riser height = rise ÷ risers; treads = risers − 1. Tread depth is the nosing-to-nosing run you enter; if a run limit is set and treads × depth exceed it, the depth is reduced to the limit ÷ treads, but not below the code minimum (10 in IRC, 11 in IBC) — below that the stair is reported as not fitting. Total run = treads × depth; stringer length = √(run² + rise²); angle = arctan(riser ÷ depth); board = stringer length + 12 in rounded up to 8–20 ft stock; stringers = width ÷ 16 rounded up, minimum 2; throat = board depth − riser × depth ÷ √(riser² + depth²), checked against 5 in; drop = tread thickness. 2R + T is judged comfortable at 24–25½ in. The diagram is drawn to a common scale from the same numbers.

Last reviewed November 6, 2026. Estimates only — verify local figures before you commit money.

Common questions

Stair Calculator: FAQ

How many steps are there in a staircase for a 9-foot ceiling? +

Usually 16 risers (15 treads). A 9-ft ceiling plus about 10 in of floor structure is a 118-in rise, and 118 ÷ 16 = 7⅜-in risers, under the 7¾-in maximum. With 10½-in treads the flight runs 13 ft 1½ in horizontally.

What is the standard rise and run for stairs? +

Residential stairs run 7 to 7¾ in of rise per step and 10 to 11 in of tread, with the IRC maximum riser at 7¾ in and minimum tread at 10 in. Commercial stairs under the IBC are 7 in maximum rise and 11 in minimum tread. A comfortable combination satisfies 2 × riser + tread = 24–25 in.

How do I calculate the number of risers? +

Divide the total rise in inches (finished floor to finished floor) by your target riser height, usually 7¼ in, and round to the nearest whole number; then divide the rise by that number for the exact riser. If the result exceeds 7¾ in, add one more riser. Treads are always one fewer than risers.

How long should a stair stringer be? +

The stringer’s nosing line is the square root of (total run² + total rise²): for a 118-in rise and 157½-in run, about 16 ft 5 in, so you buy an 18-ft 2×12. A 14-riser stair for an 8-ft ceiling needs about 14 ft 6 in and comes out of a 16-footer.

How many stringers do I need for a 36-inch-wide stair? +

Three: one at each edge and one in the middle, which spaces them 18 in apart, within the 16–18-in limit for 1-in to 1½-in wood treads. A 48-in stair needs four, and composite treads need stringers every 12 in regardless of width.

What is the maximum riser height by code? +

7¾ in for residential stairs under the IRC (R311.7.5.1) and 7 in for commercial stairs under the IBC, with no more than ⅜ in of variation between the tallest and shortest riser in a flight. A few local codes still allow 8¼ in for houses; check with your building department.

What does “drop the stringer” mean? +

Cutting the thickness of one tread off the bottom of the stringer so the first step is the same height as the others once the treads are installed. With 1-in treads on a 7⅜-in riser, the bottom riser is cut at 6⅜ in; if a finished floor is going in later, subtract the tread thickness minus the flooring thickness instead.

How much headroom do stairs need? +

At least 6 ft 8 in (80 in), measured vertically from the nosing line to the ceiling or floor framing above, everywhere along the flight. In practice the floor opening above a 35° stair has to extend about 11 ft past the top riser for a house with a 10-in floor system.