Stair Calculator

Last Updated:

Work out the steps, riser height, tread depth, angle and stringer length for any rise, with a diagram, code checks and a step-by-step cut table. Free, no sign-up.

Quick answer: Divide the total rise by a 7 inch riser and round to a whole number. A 108 inch rise gives 15 risers of 7.2 inches, 14 treads of 10 inches, a 140 inch run (11 ft 8 in), a 35.75 degree angle and a 176.8 inch stringer line (14 ft 9 in). The 2021 IRC caps risers at 7 3/4 inches and sets treads at 10 inches minimum. Local code governs.

Stair calculator

Sets every length field
in
Finished floor to finished floor. Required
in
Optional. Blank uses 7 in
Use Available run to fit a fixed space
in
Optional. Blank uses 10 in, the IRC minimum
in
Total horizontal space for the treads. Required
in
Optional. Gives the bottom riser cut
in
Optional. Gives the headroom opening length
Pick My local code to type your own limits
in
From your local code
in
From your local code
in
From your local code

Enter the total rise above to see your stair layout.

Stair layout

—

Risers—
Treads—
Riser height—
Tread depth—
Total run—
Stair angle—
Stringer line—
Bottom riser cut—
Headroom opening—

Code and comfort checks

    Side view of the stairs

    Every step: height above the lower floor and distance from the first riser
    StepHeight (in)Distance (in)

    📐 The stair formulas

    Risers = total rise ÷ target riser, rounded, and never below total rise ÷ maximum riser, rounded up. Riser height = total rise ÷ risers. Treads = risers − 1. Total run = treads × tread depth. Angle = arctan(riser ÷ tread). Stringer line = √(total rise² + total run²). Bottom riser cut = riser − tread thickness.

    How to use the stair calculator

    1

    Measure the total rise

    Measure from the finished lower floor to the finished upper floor, in inches or millimeters. Include the flooring on both levels. This is the number everything else depends on.

    2

    Pick your limits

    Leave the code on US IRC 2021 for the model-code limits, or choose My local code and type the maximum riser, minimum tread and minimum headroom from your own code.

    3

    Set the tread or the run

    Type a tread depth, or switch to Available run if the stairs have to fit a fixed space. Leave the tread blank and the calculator uses the 10 inch IRC minimum.

    4

    Add the optional details

    Enter a target riser height if you want steeper or gentler steps, the tread thickness for the bottom cut, and the floor thickness above if you want the headroom opening.

    5

    Read the layout

    The big figure is the number of risers and the riser height. The tiles give treads, run, angle and stringer length, the checks tell you what passes, and the table lists every step.

    How to calculate stairs: total rise and run

    Every stair starts with one measurement, the total rise. That is the vertical distance from the finished lower floor to the finished upper floor. Divide it by the riser height you want and round to a whole number. That whole number is the count of risers, and the exact riser height is the total rise divided by it.

    The run comes next. A flight always has one fewer tread than risers, because the upper floor is the last step. Multiply the tread depth by the number of treads and you have the total run, the horizontal space the stairs take. If you have a fixed space instead, divide the available run by the treads to get the tread depth, and the calculator's Available run option does exactly that.

    Take 108 inches of rise. At a target riser of 7 inches, 108 ÷ 7 = 15.4, which rounds to 15 risers. Each riser is 108 ÷ 15 = 7.2 inches, or 7 3/16 inches to the nearest sixteenth. With 10 inch treads, the 14 treads give a run of 140 inches, which is 11 ft 8 in of floor.

    Stair rise and run table for common heights

    These figures use the calculator's defaults: a 7 inch target riser, never above the 7 3/4 inch IRC limit, and 10 inch treads. They are our arithmetic, so use them as a quick check, then enter your own measurement for the real answer.

    Risers, riser height and run for common total rises (our arithmetic)
    Total riseRisersRiser height (in)TreadsTotal runAngle
    30 in (2 ft 6 in)47.50 (7 1/2)330 in (2 ft 6 in)36.9°
    36 in (3 ft)57.20 (7 3/16)440 in (3 ft 4 in)35.8°
    48 in (4 ft)76.86 (6 7/8)660 in (5 ft)34.4°
    60 in (5 ft)96.67 (6 11/16)880 in (6 ft 8 in)33.7°
    96 in (8 ft)146.86 (6 7/8)13130 in (10 ft 10 in)34.4°
    108 in (9 ft)157.20 (7 3/16)14140 in (11 ft 8 in)35.8°
    120 in (10 ft)177.06 (7 1/16)16160 in (13 ft 4 in)35.2°

    The 30 inch row is a typical deck. The 96, 108 and 120 inch rows are roughly an 8, 9 and 10 foot floor-to-floor height, but your real rise is the ceiling height plus the floor structure above it, so measure it. Notice that the riser heights change only a little from row to row. The count of steps does the work, and the riser stays near 7 inches.

    Stair code limits: what the IRC says

    The calculator checks every layout against the 2021 International Residential Code, Chapter 3, section R311.7, which we read on November 24, 2026. The IRC is a US model code. Cities and states adopt it with changes, so the number that binds you is the one your building department publishes.

    Stair limits in the 2021 IRC, section R311.7
    ItemLimitSection
    Riser height7 3/4 in (196 mm) maximumR311.7.5.1
    Riser uniformityTallest riser at most 3/8 in (9.5 mm) over the shortest in a flightR311.7.5.1
    Tread depth10 in (254 mm) minimum, same 3/8 in uniformity ruleR311.7.5.2
    Nosing3/4 to 1 1/4 in (19 to 32 mm) projection, not required where the tread is 11 in (279 mm) or deeperR311.7.5.3
    Vertical rise of one flight12 ft 7 in (3,835 mm) maximum between floors or landingsR311.7.3
    Headroom6 ft 8 in (2,032 mm) minimum, measured vertically from the line along the nosingsR311.7.2
    Width36 in (914 mm) clear above the handrail, and 31 1/2 in (787 mm) at and below handrail height with one handrailR311.7.1
    LandingA floor or landing at the top and bottom, as wide as the flight, 36 in (914 mm) deep on a straight run (an interior flight with no door swinging over it needs none at the top)R311.7.6
    HandrailOn at least one side of any flight with four or more risers, 34 to 38 in (864 to 965 mm) highR311.7.8

    The calculator tests the riser, the tread, the flight rise and the headroom, because those come straight from your numbers. Width, landings and handrails depend on the build, so they sit in the table for you to check by hand. Spiral stairs and winders have their own rules in the same section and the calculator does not cover them.

    Other countries write their own rules. The UK has Approved Document K, Australia has the National Construction Code and Canada has the National Building Code, and each can differ from the IRC and from region to region. We have not published their numbers here. Choose My local code in the calculator and type your own limits.

    Stair stringer length and cut layout

    The stringer is the sloped board that carries the treads. Its straight-line length is the square root of the total rise squared plus the total run squared. For the 108 inch example that is √(108² + 140²) = 176.8 inches, about 14 ft 9 in. The board must be longer than that line, because the cuts take wood off both ends, so order the next standard length. Lumber is commonly sold in 2 foot steps (common practice), which makes a 16 foot board the pick for this stair.

    The bottom riser needs a trim. A tread sits on every notch except the floor, so the first step would end up one tread thickness taller than the rest. Cut the bottom riser shorter by the tread thickness: with a 1 inch tread on a 7.2 inch riser, the first cut is 6.2 inches. Enter the tread thickness in the calculator and it gives you this number.

    If you use a flush mount stringer, one that meets the upper floor flush, the top riser is the same height as all the others, which is how this calculator lays out the stair. Check how your stringer attaches at the top before you cut, and mark the cut lines on the board with a framing square set to the riser and tread, stepped along the board.

    Stairs and headroom: how long the floor opening must be

    Where stairs rise under an upper floor, the opening in that floor decides the headroom. The IRC measures 6 ft 8 in vertically from the line along the nosings up to the underside of whatever is above. Enter the floor thickness above the stairs, joists and finish together, and the calculator works out how far back from the top riser the opening has to reach.

    With 108 inches of rise, a 7.2 inch riser, 10 inch treads and a 10 inch floor, the opening has to be 125 inches long, which is 10 ft 5 in measured back from the top riser. A shorter opening leaves you ducking at the top. It is easy to check on paper before the joists are cut and a pain to fix afterwards.

    Comfortable stairs: the 7-11 rule and 2R + T

    Code sets the limits. Comfort sits well inside them. Builders often target a 7 inch riser with an 11 inch tread, the 7-11 rule, and many check that riser plus tread lands between 17 and 18 inches, or that twice the riser plus the tread lands between 24 and 25 inches. These are common practice, not code. The calculator reports them as notes and never as a failure.

    A steeper stair saves floor space and tires the legs. Raise the riser to 7.75 inches with a 10 inch tread and the 2R + T figure climbs to 25.5, past the comfort range. A shallower stair is kinder and takes more room. Try a target riser of 6.5 and see how the run grows.

    Deck stairs, porch steps and stairs with a landing

    Deck stairs follow the same arithmetic. Measure from the ground, or from the top of the pad, to the finished deck surface. A 30 inch deck gives 4 risers of 7.5 inches and 3 treads, so 30 inches of run at 10 inch treads. Put the stringer's foot on a firm base such as a concrete pad, and measure the total rise from the top of that surface, not from the soil. Our concrete calculator sizes the pad.

    Taller stairs need a landing. A flight may not rise more than 12 ft 7 in without one, and a landing also lets a stair turn. Split the rise between the flights and run the calculator once for each. The landing is the floor at the top of the lower flight and the floor at the bottom of the upper flight, so it adds no step. Add its depth to the plan: at least 36 inches in a straight run under the IRC. This calculator handles a stair with a landing one flight at a time. If the foot of the stair sits on bare ground, our gravel calculator sizes the compacted base.

    Stair calculator in millimetres: UK, Australia and Canada

    Switch the units to millimetres and every field relabels itself. Values you have already typed are converted at 25.4 millimetres to the inch. A 2,700 mm rise with a 175 mm target riser gives 15 risers of 180 mm, 14 treads of 254 mm, the IRC minimum, a run of 3,556 mm, a 35.3 degree angle and a stringer line of 4,465 mm.

    The default checks in metric still use the US IRC figures (196 mm riser, 254 mm tread), converted as printed in the code. If your project is in the UK, Australia or Canada, choose My local code and enter the maximum riser, minimum tread and minimum headroom from your own code. The limits vary by building class, region and edition, so we leave the numbers to you.

    Common mistakes with stair layouts

    The most common one is the off-by-one. A flight has one more riser than treads, so 15 risers means 14 treads. Count the treads for the run and the risers for the height, and the stairs come out right.

    Measuring to the unfinished floor is the second. If the lower floor will take tile and the upper floor hardwood, the rise changes by the difference. Measure to finished surfaces on both levels, and re-measure after the flooring decision is made. If the treads will be tiled, our tile calculator counts the tiles. The third is letting the first riser run tall because the tread thickness was ignored, which the 3/8 inch uniformity rule turns into a failed inspection. The fourth is mixing units, typing millimeters into an inch field. Check that the answer looks like a staircase: a riser near 7 inches, or 180 mm.

    Finally, an estimate is not an inspection. The calculator checks the geometry. Your building department checks the stair, and a licensed builder or engineer should check anything structural.

    ⚠️ Disclaimer This calculator checks stair geometry against the 2021 International Residential Code as read on November 24, 2026. Your local code governs and may be stricter or different. It does not design the stringers, check lumber strength or cover spiral stairs, winders, guards or handrails. Confirm every dimension with your building department and, for structural work, a licensed builder or engineer.

    Frequently Asked Questions

    Measure the total rise from finished floor to finished floor, divide it by a riser height near 7 inches, and round to a whole number of risers. Take 96 inches, an 8 foot rise: 96 ÷ 7 = 13.7, so 14 risers of 6 7/8 inches. Check it by multiplying back, 14 × 6.857 = 96. With 11 inch treads the 13 treads give a run of 143 inches, or 11 ft 11 in, and a 31.9 degree angle.
    A rise of 108 inches (9 feet) takes 15 risers of 7.2 inches, with 14 treads between them. That keeps every riser under the 7 3/4 inch IRC maximum and close to the 7 inch target most builders aim for. Remember the rise runs from finished floor to finished floor. A 9 foot ceiling with a 10 inch floor above it is 118 inches of rise, which takes 17 risers.
    The 2021 International Residential Code (R311.7.5) caps risers at 7 3/4 inches (196 mm) and sets treads at 10 inches (254 mm) minimum, with no more than 3/8 inch difference between the tallest and shortest riser in a flight. Put those two limits together and the steepest stair the model code allows is arctan(7.75 ÷ 10), about 37.8 degrees. That is the US model code as read on November 24, 2026. Your city or country may amend it, so check your local code before you cut anything.
    Use Pythagoras: the stringer line is the square root of the total rise squared plus the total run squared. A 30 inch deck rise with 30 inches of run gives √(30² + 30²) = 42.4 inches, about 3 ft 6 in. The board has to be longer than that line to leave wood past the cuts, so allow extra and buy the next standard length up. The calculator gives the line for your own rise and run.
    Two old carpenter rules are common practice, not code. Riser plus tread should come to 17 to 18 inches, and twice the riser plus the tread should come to 24 to 25 inches. Work from the tread you have. An 11 inch tread pairs with a 7 inch riser (2 × 7 + 11 = 25), and a 10 inch tread suits a riser of 7 to 7 1/2 inches. The calculator shows both rules as notes and never fails a stair on them.
    Take the inverse tangent of the riser divided by the tread: angle = arctan(riser ÷ tread). A 7.2 inch riser over a 10 inch tread is arctan(0.72), which is 35.75 degrees. A 7 inch riser with an 11 inch tread is 32.5 degrees, a gentler climb that needs more floor space.
    Treat each flight as its own stair. A 160 inch rise is over the 151 inch limit for one flight, so split it into two flights of 80 inches. Each takes 11 risers of 7 1/4 inches and 10 treads, a run of 100 inches at 10 inch treads. Put the landing at the 80 inch level, as wide as the flight and at least 36 inches deep on a straight run, and add its depth to the plan.
    Yes to both. Measure the deck surface height above the ground or the pad, enter it as the total rise, and subtract the tread thickness from the riser to get the bottom riser cut. A 30 inch deck gives 4 risers of 7.5 inches and 3 treads. Switch the units to millimeters for metric work, then pick My local code and type your own limits if you are outside the United States.

    Sources & Methodology

    The code limits on this page come from this publication, read on November 24, 2026:

    Risers = the larger of the total rise divided by the maximum riser, rounded up, and the total rise divided by the target riser, rounded to the nearest whole number. Riser = total rise ÷ risers. Treads = risers − 1. Run = treads × tread depth. Angle = arctan(riser ÷ tread). Stringer line = √(rise² + run²). The default 7 inch target riser, the riser-plus-tread and 2 × riser-plus-tread comfort ranges and the lumber-length remark are common practice, not code. Imperial answers are shown to the nearest 1/16 inch. Figures are rounded to two decimals.