Stair Calculator

Enter your total rise and get a complete straight-stair layout: number of risers and treads, exact riser height, total run, stringer pitch line, angle and floor footprint — drawn to scale and checked against the code you build to.

By the Stair-Math TeamUpdated How we check this calculator

What are you building?

Your measurements

in

Finished floor to finished floor. Not sure, or the ground slopes? Work out your total rise.

in

7 to 7½ in feels best indoors. It is adjusted so every riser is equal.

in

Riser face to riser face, without the nosing.

Quick picks — measure your actual total rise:

Top step
Units

Your stair layout

— risers
Side view of your stair drawn to scale, with a tape showing every riser mark
Drag the yellow handles to change the rise or tread — the numbers follow. The tape is your story pole: each mark is a riser height from the lower floor.

Code check

    Solved with your numbers

      Assumptions: all risers are equal; total rise is finished floor to finished floor (or deck surface to finished landing surface); nosing projects past the riser and does not add to the run; the stringer figure is the pitch line, not the board to buy. All risers must match within 3/8 in, including the top and bottom step after flooring is installed.

      Limits from the IRC (R311.7), IBC (1011), Approved Document K, the National Building Code of Canada and the NCC. Tested against 8 worked cases, including a landing, a no-fit and two deck stairs. See the method · Sources

      How many stairs do I need?

      Divide your total rise by your target riser height and round to the nearest whole number — that is your riser count. A typical 8 ft ceiling (about 105¾ in floor to floor) needs 15 risers, a 9 ft ceiling (about 117¾ in) needs 16 risers, and a 10 ft ceiling (about 129¾ in) needs 18 risers, each just over 7 in. On a standard stair there is one fewer tread than risers.

      Ceiling height is not the same as total rise: the floor framing and finished flooring above add roughly 9–12 in. Always measure from finished floor to finished floor before you cut anything.

      Stair riser chart for common floor-to-floor heights (7¼ in target, IRC limits, 10½ in treads)
      Floor to floorRisersRiser heightTreadsTotal run
      8' 0" (96 in · 2438 mm)137.38 in (7-3/8") · 187.6 mm1210' 6" (126 in)
      8' 6" (102 in · 2591 mm)147.29 in (7-5/16") · 185.1 mm1311' 4-1/2" (136.5 in)
      9' 0" (108 in · 2743 mm)157.20 in (7-3/16") · 182.9 mm1412' 3" (147 in)
      9' 6" (114 in · 2896 mm)167.13 in (7-1/8") · 181.0 mm1513' 1-1/2" (157.5 in)
      10' 0" (120 in · 3048 mm)177.06 in (7-1/16") · 179.3 mm1614' 0" (168 in)
      10' 6" (126 in · 3200 mm)177.41 in (7-7/16") · 188.3 mm1614' 0" (168 in)
      11' 0" (132 in · 3353 mm)187.33 in (7-5/16") · 186.3 mm1714' 10-1/2" (178.5 in)

      The calculator above shows the same chart for your own target riser, tread depth and code, and highlights the row closest to your rise. For basement stairs, use the Basement quick pick (96 in) as a starting point, then enter your measured rise.

      How the stair calculator works

      The calculator splits your total rise into equal risers, checks the riser against the limits of the code you picked, then builds the run from the tread depth. Every figure — including the code check — updates as you type.

      risers n = round(total rise ÷ target riser) — raised to ceil(total rise ÷ max riser) if a riser would exceed the code maximum, and lowered if it would fall below a code minimum.

      riser R = total rise ÷ n

      treads = n − 1 for a standard stair, n for a flush top tread

      total run = treads × tread depth

      pitch line = √(total rise² + total run²) · angle = atan(R ÷ tread depth)

      comfort = 2R + T · footprint = (total run + nosing) × width

      Standard or flush top step — why treads are one fewer than risers

      On a standard stair the upper floor is the last step, so you walk up n risers but only land on n − 1 treads. Multiplying the tread depth by the riser count overstates the run by one full tread. If the top tread sits level with the upper floor (flush), the stair has as many treads as risers and the run grows by one tread.

      What to measure: total rise from finished floor to finished floor, riser height, tread depth, nosing and total run TOTAL RISEfinished floor to finished floor Total run = treads × tread depth RiserTread Nosing
      Measure total rise with a level and tape from the finished lower floor to the finished upper floor. Tread depth is riser face to riser face; nosing overhangs it.

      Units

      Pick inches, feet-inches, millimetres, centimetres or metres. You can also type any unit into any field — 9', 8' 6", 7 1/4, 184mm or 2.7m — and the calculator shows how it read your value. Conversions use 1 in = 25.4 mm exactly. Code limits are converted the same way, so a metric stair is checked against the same rule as an imperial one.

      Worked example: a 9 ft floor-to-floor stair

      A homeowner measures 108 in from finished floor to finished floor, wants risers near 7¼ in and 10½ in treads with a 1 in nosing, on a 36 in wide stair built to the IRC with a standard top step.

      1. InputsTotal rise 108 in · target riser 7.25 in · tread 10.5 in · nosing 1 in · width 36 in · US — IRC · standard top step.
      2. Risersn = round(108 ÷ 7.25) = round(14.90) = 15. A 7.20 in riser is under the 7¾ in maximum, so 15 stays.
      3. Riser heightR = 108 ÷ 15 = 7.20 in, which is 7-3/16" to the nearest sixteenth.
      4. Treads and runTreads = 15 − 1 = 14. Total run = 14 × 10.5 = 147.00 in (12' 3").
      5. Pitch line and angle√(108² + 147²) = 182.41 in (15.20 ft). Angle = atan(7.20 ÷ 10.5) = 34.4°.
      6. Comfort and footprint2R + T = 2 × 7.20 + 10.5 = 24.90 in (good). Footprint = (147 + 1) × 36 ÷ 144 = 37.0 ft².
      7. Result15 risers of 7-3/16" and 14 treads of 10-1/2", a 147 in run at 34.4° — passes the IRC riser, tread, nosing and flight checks.

      How to read your result

      The tape scales in the code check show where each value sits against its limits. Here is what the ranges mean and what to do next.

      Result ranges and next steps (US — IRC unless noted)
      ValueGoodBorderline or failingWhat to do
      Riser height7–7½ in feels most comfortable; up to 7¾ in passesOver 7¾ in failsAdd a riser — use the + button on the result
      Tread depth11 in or more (nosing optional)10–11 in needs a ¾–1¼ in nosing; under 10 in failsDeepen the tread or add nosing; check the run still fits
      2R + T24–25 in indoors; 25–27 in for garden steps23–24 in feels short-stepped, 25–26 in long-stepped; outside 23–26 in is poorTrade riser height against tread depth
      Angle30–37.8° is typical for homesOver 37.8° exceeds IRC rectangular-stair geometrySee the stair angle calculator for comfort detail
      FlightOne flight within 151 in (IRC) or 144 in (IBC)Over the limit: a landing is neededThe result splits the flights and sizes the landing

      Metric regions use a 2R + G (going) rule instead: 550–700 mm is the code range in the UK and Australia, and 600–650 mm is the comfortable band. Once the layout passes, cut the stringers with the stair stringer calculator and confirm headroom with the stairwell opening calculator.

      Stair code limits by region

      Choose your region in the calculator and the riser, tread and flight checks switch to these values. Labels change to “going” for the UK and Australia. Local amendments can be stricter, so confirm with your building department.

      Limits applied by this calculator
      RegionRiser heightTread / goingPer flight
      US — IRC (homes)7¾ in max10 in min; ¾–1¼ in nosing when under 11 in151 in of rise
      US — IBC (commercial)4–7 in11 in min144 in of rise
      UK — Approved Document K220 mm maxNot checked here — see the Approved DocumentNot checked here
      Canada125–200 mm255 mm minNot checked here
      Australia — NCC115–190 mm240–355 mm18 risers

      The IRC also requires a minimum 36 in stair width, and the calculator warns when your width is narrower. For a full check of an existing stair against every requirement, use the stair code checker.

      When a stair needs a landing

      A single flight may climb no more than 151 in under the IRC or 144 in under the IBC; in Australia a flight is limited to 18 risers. When your rise is over the limit, the calculator says “this stair needs a landing”, divides the risers as evenly as possible between flights, and sizes the landing at least as deep as the stair is wide and never less than 36 in.

      Example: a 160 in rise at a 7¼ in target gives 22 risers of 7-1/4" in two flights of 11. With a 36 in landing replacing one tread, the run with landing is 246 in. If a straight run with a landing will not fit, an L-shaped stair or U-shaped stair turns at the landing instead.

      Fitting a stair into limited space

      Choose Fit my space when the floor length is fixed. The calculator tests every legal riser count, sets the tread depth to use exactly the space you have, and keeps the layout whose 2R + T is closest to 25 in (26 in for garden steps). Treads below the code minimum are skipped.

      If nothing fits, you get the minimum run instead. For a 108 in rise under the IRC, 14 risers at the 7¾ in maximum need 13 treads of 10 in — at least 130 in of run. Below that, a straight stair cannot be legal: consider a turn, winder treads or a spiral staircase.

      Garden steps on a gentle slope work the same way: pick “Garden / outdoor steps”, enter the rise and the length of the slope, and expect low risers with deep treads — for example 7 risers of about 5-1/8" with 16 in treads over 96 in for a 36 in rise.

      Deck and porch stairs

      Deck mode measures from the deck surface to the finished landing surface, uses the IRC limits, and builds the tread from boards: two 2x6 boards give an 11¼ in tread (two 5½ in boards plus a ¼ in gap), two 5/4x6 boards 11 in, and three 5/4x6 composite boards 16½ in.

      • Stringers: width ÷ spacing, rounded up, plus one — never fewer than two. A 48 in stair at 16 in on center needs 4.
      • Spacing: cut stringers are commonly limited to 18 in on center under prescriptive deck rules; many composite and PVC deck boards need 12 in — check the product's installation guide.
      • Landing pad: at least as wide as the stair and 36 in deep at the bottom.
      • Handrail: required on at least one side once the stair has four or more risers.

      Example: a 40 in deck with 7¼ in target risers and two 2x6 treads gives 6 risers of 6-11/16" and 5 treads, a 56¼ in run at 30.7°, 4 stringers for a 48 in stair, a 48 × 36 in landing pad and a required handrail. If the ground at the foot of the stair slopes, get the true rise from the total rise calculator first.

      Mistakes that throw a stair off

      Measuring to the subfloorTotal rise is finished floor to finished floor. If flooring goes on later, the first and last risers end up different from the rest. All risers must match within 3/8 in once flooring is installed.

      Run = risers × treadOn a standard stair the upper floor is the top step, so there is one tread fewer than risers. Counting every riser as a tread adds a full tread to the run.

      Forgetting the nosingUnder the IRC, treads under 11 in need a ¾–1¼ in nosing. Nosing does not change the run, but it does add to the footprint the stair takes up on the lower floor.

      Treating ceiling height as total riseAn 8 ft ceiling is not a 96 in rise: the joists and subfloor above add to it. The quick picks show typical values, but only your own measurement counts.

      What this calculator does not cover

      This page lays out straight stairs and checks the dimensions that govern them. Some decisions need another tool or a professional:

      • Turning stairs: use the L-shaped, U-shaped, winder or spiral calculators.
      • Headroom and the stairwell opening: check them with the stairwell opening calculator.
      • Structure: stringer size and span are not checked here — see the stair span calculator.
      • Commercial exits: required egress width depends on occupant load — use the egress stair width calculator.
      • Local rules: cities and states amend the model codes. Before you build, confirm the limits with your building department; for commercial or unusual stairs, have a licensed design professional review the layout.

      Stair calculator FAQs

      What is the standard rise and run for stairs?

      For homes in the US, the IRC allows a riser of up to 7¾ in and a tread of at least 10 in. Most comfortable house stairs use risers of 7–7½ in with treads of 10½–11 in. Commercial stairs under the IBC use risers of 4–7 in and treads of at least 11 in.

      What is the 7-11 rule for stairs?

      The 7-11 rule means a riser of no more than 7 in and a tread of at least 11 in. It matches the IBC limits for commercial buildings and is a comfortable target for any stair; US homes built to the IRC may go up to a 7¾ in riser with a 10 in tread.

      Why does a stair have one less tread than risers?

      Because on a standard stair the upper floor acts as the top step. You climb every riser but land on the floor instead of a final tread. Only a flush top tread, set level with the upper floor, gives the same number of treads as risers.

      How much nosing does a stair need?

      Under the IRC, a nosing of ¾ to 1¼ in is required when the tread is less than 11 in deep, and is optional on deeper treads. The nosing projects past the riser, so it does not change the total run, but it adds to the stair's footprint.

      How wide should stairs be?

      At least 36 in of clear width for a home stair under the IRC; the calculator warns when your width is narrower. Wider stairs feel easier and help when moving furniture, and on decks the width sets how many stringers you need.

      What proportions work for garden and outdoor steps?

      Outdoor steps feel best with lower risers and deeper treads — a 2R + T of about 26 in (25–27 in) and treads up to 18 in. Use Fit my space with “Garden / outdoor steps” to fit them to the length of your slope.

      How do I measure total rise correctly?

      Measure plumb from the finished surface of the lower floor to the finished surface of the upper floor, allowing for flooring not yet installed. If the ground slopes where the stair lands, use the total rise calculator.

      How many stringers does a deck stair need?

      Divide the stair width by the stringer spacing, round up and add one, with a minimum of two. A 36 in stair at 16 in on center needs 4 stringers; a 48 in stair at 16 in also needs 4; at 12 in spacing for composite treads a 36 in stair needs 4.

      Sources

      1. International Residential Code 2021, Chapter 3, Section R311.7 — Stairways (opens in a new tab)International Code Council. Riser, tread, nosing, width and handrail limits for homes; flight height limit at R311.7.3.
      2. International Building Code 2021, Chapter 10, Section 1011 — Stairways (opens in a new tab)International Code Council. Riser, tread and flight limits for commercial buildings.
      3. Approved Document K: Protection from falling, collision and impact (opens in a new tab)UK Government (statutory guidance for England). Maximum riser and 2R + G range.
      4. National Building Code of Canada 2020 (opens in a new tab)National Research Council Canada. Riser and run limits for stairs.
      5. National Construction Code (opens in a new tab)Australian Building Codes Board. Riser, going and risers-per-flight limits.
      6. Wisconsin Administrative Code, chapter SPS 325 — deck constructionWisconsin Department of Safety and Professional Services. Source of the 18 in maximum spacing for cut deck stringers. Cited by name; read it on the Wisconsin Legislature's administrative code site.
      7. Decking manufacturers' installation guidesStringer spacing for composite and PVC decking is product-specific — use the guide for the boards you buy.
      8. The 2R + T step formula (Blondel-type rule)Common building practice for stair comfort. No single governing standard; the comfort bands on this page are shop practice, not code.

      Code text is the final word. Editions and local amendments differ — check the edition your building department enforces.

      Stair layout calculatorsAll 6 tools for planning a straight stair — layout, stringers, total rise, angle, stairwell opening and footprint.View all 6

      Other stair calculator categories