◢ Rise · Run · Layout · Code check

Stair Stringer CalculatorDeck Stair & Stringer Layout Calculator with Building-Code Check

Enter your total rise and get the exact riser height, tread run, stringer length, board to buy, throat depth and every layout mark — drawn to scale in a live stair diagram, checked against six building codes, and split into landings when the code requires it.

IRC R311.7 AWC DCA 6 OSHA 1910.25 UK Approved Doc K NBC Canada · NCC Australia
Manzoor AhmadBuilt by Manzoor Ahmad · 13+ years of web development and SEO experience · Updated October 2026
Your stair layout — Enter a total rise to begin. —
0Comfort
—

Stringer drawn to scale

Side view of one stringer (the longest flight). Orange dots are the layout marks along the board’s top edge.

Cut stringerWaste from boardTreadsNosing lineThroat

Building-code check

Every rule below is tested against your numbers. Amber items are best-practice limits from the AWC deck guide rather than hard code text.

    Compare riser counts

    One more or one fewer step changes everything. Tap Use to lock a different count.

    RisersRiserTread runTotal runAngleComfortCode

    Layout marks for your framing square

    Set stair gauges on your square, then step off each mark along the top edge of the board.

    MarkFrom bottom end of boardSpacing on edgeFinished heightHorizontal run

    Shopping & cut list

      Smart insights

        What is a stair stringer calculator?

        A stair stringer calculator turns one measurement — the total rise — into a complete stair layout: the number of risers and treads, the exact riser height, total run, stair angle, stringer length and the cut marks for each notch. Good ones also check the result against building code, because a stair that is a fraction of an inch off can fail inspection.

        The stringer is the sloped, saw-toothed board that carries the treads. Every other part of the stair depends on it, which is why framers say a staircase is built twice: once on paper and once with the saw. Most free tools stop at the hypotenuse. This one goes further. It measures the real footprint of the cut board so you buy the right length, calculates the throat (the solid wood left under each notch), applies the bottom drop for tread thickness, counts stringers from your stair width, sizes the stairwell opening for headroom, and splits tall stairs into equal flights with a landing.

        It works for deck stairs, basement stairs, porch steps, loft stairs and workplace stairs, in inches with fractions or in millimetres for the UK, Canada and Australia.

        How to use the stair stringer calculator

        1. Pick your code. IRC covers most US homes and decks. Choose IBC for commercial buildings, OSHA for workplace stairs, or the UK, Canadian or Australian rules.
        2. Measure total rise accurately. Measure from the finished surface at the bottom — concrete pad, paver landing or finished floor — to the finished surface at the top. On sloped ground, measure where the bottom step will actually land, not at the deck post.
        3. Choose a layout method. “Use my tread run” keeps your preferred tread (10 to 11 inches is common). “Fit available run” works backwards when a wall, driveway or property line limits how far the stair can project.
        4. Enter lumber details. Pick 2×12 for most cut stringers, enter tread thickness (about 1 in for 5/4 decking, 1 1/2 in for 2×6) and the nosing overhang.
        5. Read the verdict and the drawing. The scale drawing shows the waste, the throat and each mark. Red items in the code check need fixing before you cut.
        6. Compare riser counts. If the stair feels steep or runs too long, tap a neighbouring riser count to see the trade-off, then copy the cut sheet to your phone.

        Stair risers calculator: find the exact riser height

        If you only need the risers, this works as a dedicated stair risers calculator. The riser is the vertical height of each step, and getting it right matters more than any other number because people notice uneven risers with their feet before their eyes. The calculator divides your total rise by a target riser (7 1/4 in by default), rounds to a whole number of risers, then recalculates the exact height so every step is identical.

        • 30 in rise → 4 risers at 7 1/2 in
        • 44 in rise → 6 risers at 7 5/16 in
        • 96 in rise (8 ft) → 13 risers at 7 3/8 in

        It then tests the riser height against your selected code (7 3/4 in maximum under the IRC, 7 in under the IBC, 220 mm under UK Part K), shows the first-riser cut after the tread drop, counts the riser boards you need for closed risers, and lets you compare one more or one fewer riser in the “Compare riser counts” table. To calculate stair risers by hand, use: risers = total rise ÷ 7.25, rounded; riser height = total rise ÷ risers.

        Stair calculator with diagram: see your stringer before you cut

        Most tools give you a list of numbers. This stair calculator with diagram draws your actual stringer to scale and redraws it every time you change an input. The stair stringer diagram shows:

        • The cut stringer sitting on the uncut board, so you can see how much of the 2×12 becomes waste.
        • Every riser and tread with its dimension, the treads with their nosing overhang, and the deck at the top.
        • The throat line in green when it passes 5 in and red when it fails.
        • The stair angle at the seat cut, plus total rise and total run dimension lines.
        • Numbered orange dots for each framing-square mark, which match the layout-marks table.

        Switch to millimetres and the diagram relabels in metric. For a stair with a landing, it draws the longest flight, and the landing plan lists each flight’s risers, rise, run and board length.

        One tool for every stair calculation

        Builders search for stair math under many names. This calculator covers all of them from the same inputs, so you never have to re-enter a measurement:

        Stair rise and run calculator

        Enter total rise and the tool returns riser height (rise) and tread run, plus total run — the horizontal footprint you need on the ground. Use “Fit available run” when space is fixed and you want the calculator to work out the best rise and run for that space.

        Stair step calculator

        Wondering how many steps your stair needs? The step count equals the number of risers; the number of treads is one fewer, because the top step is the deck or floor itself.

        Stair tread calculator

        Tread run, nosing, tread count, and the number of 5 1/2-in deck boards per step all appear in the results and shopping list. Treads deeper than 11 in skip the IRC nosing requirement.

        Stair angle and stair length calculator

        The stair angle is arctan(rise ÷ run). Most comfortable stairs land between 30° and 37°. Stair length is shown two ways: the stringer diagonal and the actual board footprint you must buy.

        Deck stair calculator and basement stair calculator

        For a deck stair calculator, measure to the finished pad and keep the default 2×12 and AWC throat and span checks. For a basement stair calculator or loft stair, enter the upper floor depth to get the minimum stairwell opening for 6 ft 8 in of headroom.

        Stair stringer formulas (the math behind every result)

        Risers (n) = round(Total rise ÷ Target riser), then adjusted so each riser stays within the code limits

        Riser height (R) = Total rise ÷ n

        Treads = n − 1  ·  Total run = Treads × Tread run (T)

        Step diagonal = √(R² + T²)  ·  Stair angle = arctan(R ÷ T)

        Stringer diagonal = √(Total rise² + Total run²)

        Throat = Board width − (R × T) ÷ √(R² + T²)

        First riser cut = R − Tread thickness  (the “drop”)

        Comfort rule: 2R + T ≈ 24–25 in  (2R + G = 550–700 mm)

        Stairwell opening ≥ (Headroom + Floor depth) × T ÷ R

        The throat formula is the one most people never see. A notch cuts into the board perpendicular to its edge by R × T ÷ √(R² + T²), so steeper or deeper steps eat more wood. The board-length figure is measured from the actual cut polygon — seat cut, every notch and the top plumb cut — and the calculator then adds 6 inches of trim allowance before rounding up to a standard lumber length.

        Worked example: stair stringers for a 44-inch-high deck

        1. Total rise is 44 in. 44 ÷ 7 1/4 = 6.07, so we use 6 risers.
        2. Riser height = 44 ÷ 6 = 7 5/16 in (7.33 in) — under the IRC 7 3/4-in maximum.
        3. Treads = 6 − 1 = 5 treads at 10 1/2 in, so total run = 52 1/2 in.
        4. Stair angle = arctan(7.33 ÷ 10.5) = 34.9°. Comfort check: 2(7.33) + 10.5 = 25.2 in — right in the sweet spot.
        5. Stringer diagonal = √(44² + 52.5²) = 68 1/2 in. Measured board footprint = 67 11/16 in, so one 8-foot 2×12 per stringer is enough.
        6. Throat = 11.25 − (7.33 × 10.5 ÷ 12.81) = 5 1/4 in, which clears the 5-in DCA 6 minimum.
        7. With 1-in treads, cut the first riser at 6 5/16 in so every finished step is equal.
        8. A 36-in stair at 16-in maximum spacing needs 4 stringers at 11 1/2 in on centre.

        Those are the calculator’s default inputs, so the tool above shows the same numbers you see here — a quick way to confirm everything is working before you enter your own measurement.

        How many stairs do I need? Quick reference by rise

        This table uses IRC limits, a 7 1/4-in target riser, 10 1/2-in treads, 1-in tread thickness and a 2×12. It is generated by the same engine as the calculator.

        Total riseRisersRiser heightTreadsTotal runBoard neededBuy
        18 in (1′ 6″)36″21′ 9″2′ 2 11/16″8 ft
        30 in (2′ 6″)47 1/2″32′ 7 1/2″3′ 6 1/2″8 ft
        36 in (3′)57 3/16″43′ 6″4′ 6 7/16″8 ft
        48 in (4′)76 7/8″65′ 3″6′ 6 7/16″8 ft
        60 in (5′)87 1/2″76′ 1 1/2″7′ 10 1/8″10 ft
        72 in (6′)107 3/16″97′ 10 1/2″9′ 10 1/16″12 ft
        84 in (7′)127″119′ 7 1/2″11′ 10 1/8″14 ft
        96 in (8′)137 3/8″1210′ 6″13′ 1 11/16″14 ft
        108 in (9′)157 3/16″1412′ 3″15′ 1 3/4″16 ft
        120 in (10′)177 1/16″1614′ 0″17′ 1 13/16″18 ft

        Any cut deck stringer with a horizontal span over 6 ft (roughly every rise above 4 ft here) needs mid-span support or an engineered design under AWC DCA 6.

        Stair building codes compared: US, UK, Canada and Australia

        The calculator switches its limits when you change the code. Here are the headline numbers it checks. Local amendments are common, so confirm with your building department before you cut.

        CodeRiserTread / goingMin widthHeadroomFlight limit & extras
        IRC R311.7 (US homes, decks)7 3/4 in max10 in min; 3/4–1 1/4 in nosing if under 11 in36 in6 ft 8 in151 in (12 ft 7 in) rise; 3/8 in max variation
        IBC 1011 (US commercial)4–7 in11 in min44 in (36 in if under 50 occupants)80 in12 ft rise per flight
        OSHA 1910.25 (workplace)6–9 1/2 in9 1/2 in min22 in6 ft 8 in30°–50° angle
        UK Approved Doc K (private stair)150–220 mm220–300 mm goingNo set minimum2.0 m42° max pitch; 2R+G 550–700 mm; 16 risers
        NBC Canada (dwellings)125–200 mm255–355 mm run860 mm1.95 m3.7 m rise per flight
        NCC Australia (Class 1 houses)115–190 mm240–355 mm going—2.0 m2R+G 550–700 mm; 18 risers per flight

        2×10 vs 2×12 stair stringer: the throat test

        A 2×12 is the default for cut stringers for one reason: throat. AWC’s DCA 6 deck guide asks for at least 5 inches of solid wood under the notches. Here is what remains after cutting common riser and run combinations:

        Riser × Run2×10 throat2×12 throatVerdict
        7 3/4 × 10 in3 1/8″5 1/8″2×12 only, barely
        7 1/2 × 10 1/2 in3 1/8″5 1/8″2×12
        7 1/4 × 10 1/2 in3 5/16″5 5/16″2×12
        7 × 11 in3 3/8″5 3/8″2×12
        6 1/2 × 12 in3 9/16″5 9/16″2×12

        A 2×10 never reaches 5 inches at code-legal step sizes, so use it only as a solid (uncut) stringer with tread cleats or metal tread brackets. If your cuts overrun the inside corners, you lose throat too — finish each notch with a handsaw instead of running the circular saw past the line.

        How to lay out and cut stair stringers

        1. Sight the crown. Put the board’s crown (the high side of any bow) on top so load straightens it.
        2. Clamp stair gauges on a framing square: riser height on the tongue (short arm), tread run on the blade (long arm).
        3. Step off each notch. Start near the bottom end at the first mark distance shown in the layout table, trace the riser and tread, slide the square to the next mark and repeat.
        4. Mark the drop. Shorten the bottom seat cut by the tread thickness so the first finished step matches the rest.
        5. Draw the top plumb cut where the stringer meets the rim joist or hanger board, and the seat cut at the bottom.
        6. Cut one, test it, then trace it. Set the first stringer in place, check level on a tread and confirm the top and bottom fit. Use it as the pattern for the rest.

        How many stringers do I need for deck stairs?

        Stringer count depends on stair width and how far your treads can span. The calculator measures the space between the outside faces, divides by your maximum spacing, rounds up and adds one. AWC DCA 6 shows a 36-inch stair with three cut stringers no more than 18 inches apart. Many 5/4 wood and composite tread products need tighter support, often 12 to 16 inches, so the calculator defaults to 16 inches and gives four stringers for a 36-inch stair. Always check the tread maker’s stair-specific spacing — it is usually tighter than its deck joist spacing.

        Stair stringer calculator with landing

        Tall stairs need a break. The IRC allows one flight to rise up to 151 inches (12 ft 7 in); the IBC caps it at 12 ft; UK Approved Document K and Australia’s NCC limit the number of risers instead. When your stair passes the limit — or you choose “Add one landing” — the calculator splits the risers into equal flights, keeps the same riser height in every flight, and adds your landing depth to the total run. Each flight gets its own stringer length, and each landing needs to be at least as deep as the stair is wide, with 36 inches as the IRC minimum.

        Landings also solve layout problems: an L-shaped or switchback stair can fit where a straight 13-step run would hit a fence or driveway.

        Seven costly stair stringer mistakes (and how this tool prevents them)

        • Measuring rise at the wrong spot. On sloped yards the ground at the deck is not the ground where the stair lands. Measure at the landing point, or set a level board out to it.
        • Forgetting the drop. Skipping the tread-thickness drop leaves the bottom step taller than the rest — the classic trip step. The tool calculates it for you.
        • Ignoring the 3/8-inch rule. Inspectors measure risers. A finished bottom slab that is out of level can push you past the variation limit even if the stringer is perfect.
        • Buying by the hypotenuse. The rise-and-run diagonal does not include trimming and defects; the measured footprint plus allowance does.
        • Notching 2x10s. See the throat table above — a cut 2×10 is short on wood at every code-legal step.
        • Long unsupported spans. A cut deck stringer past 6 ft horizontal needs a mid-span post and beam or an engineered design.
        • No landing pad. Stringers should bear on a stable pad, not bare soil. Plan the pad at least as wide as the stair and 36 inches deep.

        Related calculators for your deck and home project

        Stair stringer calculator FAQs

        Divide the total rise by a target riser height of about 7 1/4 inches and round to the nearest whole number. That is your riser count. Then divide the total rise by the riser count to get the exact riser height, for example a 44-inch rise gives 6 risers at 7 5/16 inches. Under the IRC each riser must be 7 3/4 inches or less, and all risers in a flight must be within 3/8 inch of each other.

        Yes. This calculator draws your stringer to scale and redraws it as you type. The diagram shows the cut stringer on the uncut board, each riser and tread dimension, the throat, the stair angle, total rise and run, and numbered layout marks that match the framing-square table.

        Measure total rise from the finished lower surface to the finished upper surface, divide it by a target riser height of about 7 to 7 1/2 inches, and round to a whole number of risers. Divide the total rise by that number to get the exact riser height. Treads are one fewer than risers, so total run equals treads times your tread run. Lay out the stringer by stepping off that riser and run with a framing square, and shorten the first riser by the tread thickness.

        A 96-inch rise works out to 13 risers at about 7 3/8 inches each, with 12 treads. At a 10 1/2-inch tread run the stair needs about 10 feet 6 inches of horizontal space and stringers cut from 14-foot boards. Because that horizontal span passes 6 feet, a cut deck stringer this long needs an intermediate support or an engineered design.

        The diagonal is the square root of total rise squared plus total run squared, but the board you buy must also cover the seat cut and the top plumb cut. For a 44-inch deck with six 7 5/16-inch risers and 10 1/2-inch treads, the calculator measures 67 11/16 inches of board, so an 8-foot 2×12 per stringer is enough with trim allowance.

        AWC's DCA 6 deck guide shows three cut stringers spaced no more than 18 inches apart on a 36-inch stair. If your treads are 5/4 decking or composite, the manufacturer often requires 12 to 16 inches, which means four stringers. The calculator divides the width by your maximum spacing, rounds up and adds one.

        Usually not for a cut stringer. After notching a 7 1/4-inch riser and a 10 1/2-inch run, a 2×10 keeps only about 3 5/16 inches of solid wood, below the 5-inch minimum in DCA 6, while a 2×12 keeps about 5 5/16 inches. A 2×10 can still work as a solid, uncut stringer with tread cleats or metal tread brackets.

        AWC DCA 6 calls for at least 5 inches of remaining width on cut deck stringers. The throat equals board width minus riser times run divided by the step diagonal. Over-cutting notches with a circular saw also eats into the throat, so finish the inside corners with a handsaw.

        Every tread adds its thickness on top of the stringer, but the ground or floor at the bottom does not. If you cut all risers equal, the first finished step would be taller by one tread thickness. Dropping the stringer, which means trimming the bottom seat cut by the tread thickness, keeps every finished riser equal.

        Under the International Residential Code, section R311.7.5, residential risers may be up to 7 3/4 inches and treads must be at least 10 inches, with a 3/4 to 1 1/4-inch nosing when the tread is under 11 inches. The tallest and shortest riser in a flight may differ by no more than 3/8 inch. Commercial stairs under the IBC are stricter, with 4 to 7-inch risers and 11-inch treads.

        AWC DCA 6 limits cut deck stringers to a 6-foot horizontal span between supports. Longer runs need a post-and-beam support at mid-span, solid stringers, or an engineered design. Interior stairs fastened to wall framing are evaluated differently, so confirm with your inspector.

        The IRC allows a single flight to rise up to 12 feet 7 inches, or 151 inches, before a landing is required, and every landing must be at least 36 inches deep in the direction of travel. The calculator splits the stair into equal flights automatically when your rise or riser count passes the limit for the code you select.

        Twice the riser plus the tread should land near 24 to 25 inches, which matches a natural walking stride. A 7-inch riser with an 11-inch tread totals 25, which is why carpenters call it the 7-11 rule. UK and Australian codes express the same idea as 2R + G between 550 and 700 mm.

        Yes. Switch the units to millimetres, then choose UK Approved Document K, Canada NBC or Australia NCC to check your layout against those limits. Imperial entries accept fractions and feet-and-inch formats such as 3' 8 1/2" as well as plain decimals.

        Manzoor Ahmad, creator of DexoCalc

        Manzoor Ahmad

        13+ years of web development and SEO experience

        Manzoor builds and maintains every calculator on DexoCalc. For this tool he coded the stringer geometry from first principles, then checked each rule against the published code text — IRC R311.7, the AWC DCA 6 deck guide, OSHA 1910.25 and the UK, Canadian and Australian building rules — and tested the results against hand calculations with a framing square.

        More about Manzoor →

        Sources

        1. International Code Council — 2021 International Residential Code, Section R311.7 Stairways
        2. American Wood Council — DCA 6: Prescriptive Residential Wood Deck Construction Guide
        3. OSHA — 29 CFR 1910.25 Stairways
        4. UK Government — Approved Document K: Protection from falling, collision and impact
        5. National Research Council Canada — National Building Code of Canada
        6. Australian Building Codes Board — National Construction Code
        Disclaimer: This stair stringer calculator is a planning tool. Building codes are adopted and amended locally, lumber grades and species vary, and site conditions matter. Confirm requirements with your building department, follow your decking manufacturer’s instructions, and use a licensed engineer for long spans or unusual loads.