Skip to content
Woodwork Calculator

Stair Calculator

Enter the total rise and your tread depth. You get the number of risers, the exact riser height to the sixteenth, treads, total run and a code check, drawn to scale.

Your numbers

in

Finished floor to finished floor. Inches, or feet and inches like 9' 1/2.

in

Measured nosing to nosing. Code minimum is 10″.

in

3/4″ to 1 1/4″ when treads are under 11″.

in

7 3/4″ under the IRC. Some local codes use 7 1/2″ or less.

More options

Leave blank for the fewest risers that pass. Set it to force more, shorter steps.

in

Used for the stringer outline. 1″ for 5/4 decking, 1 1/16″ for oak treads.

in

Sets how many stringers you need.

in

Joist plus subfloor. Used for headroom and the stairwell opening.

Risers—
Plate 02Stair in side elevation, drawn to your numbers. The dashed line is the 6′8″ headroom plane.
Riser height—
Treads—
Total run—

Full result

Riser height, exact—
Tread depth—
Stair angle—
Stringer length—
Stringers for this width—
Comfort, 2 × riser + tread—
Stairwell opening, min.—

Code check

    Other riser counts that work

    More risers means gentler steps and a longer run. Pick a row to redraw.

    RisersRiserTreadsTotal runAngle

    How the stair calculator works

    Every stair starts with one measurement: the total rise, from the finished floor at the bottom to the finished floor at the top. The calculator divides that by the tallest riser you're allowed, rounds up to a whole number of risers, then splits the rise evenly between them. That gives you the riser height. You'll have one fewer tread than risers, because the top floor is the last step.

    risers = round up (total rise ÷ max riser)
    riser height = total rise ÷ risers
    treads = risers − 1
    total run = treads × tread depth

    Here's a typical house stair. Total rise is 108″ and the IRC maximum riser is 7 3/4″. 108 ÷ 7.75 = 13.94, so you need 14 risers. 108 ÷ 14 = 7.714″, which is 7 11/16″ on a tape. That's 13 treads, and at 10 1/2″ each the stair needs 136 1/2″ of floor, or 11′ 4 1/2″.

    The plate redraws as you type. Check it against your space: the total run has to fit before the wall or the landing, and the dashed headroom line has to clear the floor framing above.

    Measuring total rise without getting burned

    Most stair mistakes start here.

    • Measure finished to finished. If the subfloor is down but the 3/4″ oak isn't, add it. If the bottom gets tile over a mortar bed, add that too. Otherwise the first or last step comes out a different height from the rest, and that's the step people trip on.
    • For decks, measure where the stairs land. Run a level or a laser out from the deck surface to the spot where the bottom tread will sit. Ground that drops 3 inches over 8 feet adds 3 inches of rise.
    • Measure twice in different spots. Floors aren't flat. If two readings disagree, use the one at the actual stair location.

    What the code requires

    These are the residential limits in the 2021 International Residential Code, section R311.7. The calculator checks the first four automatically.

    RuleIRC limitSection
    Riser height7 3/4″ max.R311.7.5.1
    Tread depth10″ min.R311.7.5.2
    Nosing, treads under 11″3/4″ to 1 1/4″R311.7.5.3
    Stair width36″ min.R311.7.1
    Headroom6′ 8″ min.R311.7.2
    Riser or tread variation in a flight3/8″ max.R311.7.5.1–2
    Handrail4 or more risersR311.7.8
    Guard, open side over 30″ high36″ tall min.R312.1

    The 3/8″ variation rule is the one inspectors catch most. Even risers on paper turn uneven when the bottom landing is poured later or the flooring changes thickness. Lay out the stringer from the finished heights and you avoid it.

    Making a legal stair comfortable

    A stair can pass code and still feel steep. The old rule of thumb is that two risers plus one tread should land between about 24 and 25 inches, which matches a normal stride. A 7 1/2″ riser with a 10″ tread gives 25. A 7 3/4″ riser with a 10″ tread gives 25 1/2, which is legal but steep, the kind of stair you hold the rail on.

    If you have the floor space, adding one riser is often the best upgrade you can make. Use the "other riser counts" table above to see how much extra run it costs.

    Deck stairs and basement stairs

    Outdoor stairs follow the same rules. Deck treads are usually two 5/4×6 boards with a gap, about 11 1/4″ deep, so the nosing is optional. At the bottom, the American Wood Council deck guide (DCA 6) attaches the stringers to guard posts on footings, with the stringers bearing on a 2×4 block. Keep them off bare dirt, and ask your building department before you swap that detail for a concrete pad.

    For basement and interior stairs, headroom is the usual problem. The calculator works out the minimum stairwell opening from your upper floor depth: how far back from the top riser the floor framing has to stop so a 6′ 8″ person clears it. If you can't get that much opening, you need more run, a landing, or a winder.

    Once the numbers work, take them to the stair stringer calculator, which lays out the cuts on a 2×12 and checks the throat.

    Questions people ask

    How many stairs do I need for an 8-foot ceiling?

    Floor to floor in a house with 8-foot ceilings is usually around 105 to 109 inches once you add the floor framing and finished flooring. At 108 inches you need 14 risers of about 7 11/16″, which means 13 treads. Always measure your own rise; a half inch either way can change the riser count.

    How do I use this as a deck stair calculator?

    Measure from the top of the decking straight down to where the bottom of the stairs will land, not to the ground at the house. Yards slope, and the difference can be several inches over the length of the run. Enter that as the total rise. For deck treads made from two 5/4×6 boards with a gap, use a tread depth of 11 1/4″. The stringer calculator takes the same numbers and lays out the cuts.

    What is the difference between rise and run on stairs?

    Rise is vertical: the height of each step (unit rise) or the whole height from floor to floor (total rise). Run is horizontal: the depth of each tread (unit run) or the floor space the whole stair covers (total run). The calculator gives you both, per step and in total.

    Why is there one fewer tread than risers?

    The top "tread" is the upper floor or deck itself, so you never build it. A stair with 14 risers has 13 treads. People who forget this end up a full tread short on the total run.

    Can I make the risers shorter than 7 3/4 inches?

    Yes. 7 3/4″ is the maximum, not a target. Adding a riser gives you shorter, easier steps but a longer total run. Use the "other riser counts" table under the result to compare. Around 7 to 7 1/2 inches with a 10 1/2 to 11 inch tread is where most people find stairs comfortable.

    Does the calculator follow my local code?

    It checks against the 2021 International Residential Code, which most US jurisdictions adopt, sometimes with changes. Your city or county can be stricter, and commercial stairs follow a different code entirely. Call your building department before you cut stringers.

    Put this calculator on your site

    Lumber yards, sawmills and woodworking blogs are welcome to embed it for free. Paste the code into any page; it loads the calculator only, without our header or articles.