Use this free stair calculator to plan a staircase. Enter total rise, target riser height and tread depth to get riser count, actual riser height, total run, stringer length and the 2R+T comfort check.

Stair Calculator

Size a flight properly: equal risers at or below code height, total run, stringer length and a comfort check.

Free to use Code-max riser respected Stringer length included Save PDF · PNG · Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

in

Enter a valid value for total rise (floor to floor).

Vertical distance between finished floors, inches.

in

Enter a valid value for target riser height.

US IRC max riser is 7.75 in; 7-7.75 in is comfortable.

in

Enter a valid value for tread run per step.

IRC minimum tread depth is 10 in.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Stair Calculator tinyexe.comFree online calculators

TinyExe · Stair Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Total rise (floor to floor)

—

Target riser height

—

Tread run per step

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Stair Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      To size stairs, divide the total rise by the target riser height and round up: a 108-inch rise at 7.75 inches needs 14 risers, making each riser 7.71 inches. With 13 treads of 10.5 inches the total run is 136.5 inches and the straight stringer length is about 174.1 inches.

      • Risers = ceil(total rise / target riser); all risers must be equal
      • Treads = risers - 1; total run = treads x tread depth
      • Comfort rule: 2 x riser + tread ≈ 24-25 inches

      Stair comfort and code guide (US IRC, residential)

      Reference values for this calculator.

      ItemValueNote
      Max riser7.75 inIRC R311.7.5.1
      Min tread10 inIRC R311.7.5.2
      2R + T comfort24-25 inBlondel's formula
      Typical total rise96-120 inFloor to floor

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      Risers = ceil(total rise / target riser); actual riser = total rise / risers; treads = risers - 1; total run = treads x tread; stringer = sqrt(rise^2 + run^2); comfort 2R + T ≈ 24-25 in

      Rounds the riser count UP so the actual riser never exceeds the target (code) height, then derives run, stringer hypotenuse and the Blondel 2R+T comfort value. Enhancement: includes the comfort check most simple stair tools omit.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Standard 9 ft floor-to-floor

      Total rise 108 in, target riser 7.75 in, tread 10.5 in

      CalculationSteps
      Risers = ceil(108/7.75) = ceil(13.94) = 14. Actual riser = 108/14 = 7.714 in. Run = 13 x 10.5 = 136.5 in. Stringer = sqrt(108^2+136.5^2) = 174.06 in.14 risers at 7.71 in, run 136.5 in, stringer 174.06 in, 2R+T = 25.93 in.

      Result

      Example 2

      8 ft rise, deeper treads

      Total rise 96 in, target 7.5 in, tread 11 in

      CalculationSteps
      Risers = ceil(96/7.5) = 13. Actual riser = 96/13 = 7.385 in. Run = 12 x 11 = 132 in. Stringer = sqrt(96^2+132^2) = 163.22 in.13 risers at 7.38 in, 2R+T = 25.77 in.

      Result

      Example 3

      Short basement flight

      Total rise 30 in, target 7.75 in, tread 10 in

      CalculationSteps
      Risers = ceil(30/7.75) = 4. Actual riser = 7.5 in. Run = 3 x 10 = 30 in. Stringer = sqrt(30^2+30^2) = 42.43 in.4 risers at 7.5 in, stringer 42.43 in.

      Result

      How to use this calculator

      Step 1

      Measure the total rise from finished floor to finished floor, in inches.

      Step 2

      Enter a target riser height — 7.75 in is the US residential maximum.

      Step 3

      Enter the tread run per step — 10 in is the residential minimum, 10.5-11 in is comfortable.

      Step 4

      Press Calculate for the riser count, actual riser height, total run and stringer length.

      Step 5

      Check 2R+T lands near 24-25 in for a comfortable stair.

      In short: A stair calculator divides a floor-to-floor rise into equal code-compliant risers and derives tread count, total run and stringer length.

      Frequently asked questions

      Why is the actual riser different from my target?

      Stairs must divide the total rise into a whole number of equal risers. The count is rounded up so the actual riser is at or below your target, and every riser is identical — uneven risers are a trip hazard and a code failure.

      Why are there fewer treads than risers?

      The top riser lands on the upper floor itself, so a flight needs one fewer tread board than it has risers.

      What is 2R + T?

      Blondel's formula: twice the riser plus the tread should be about 24-25 inches (roughly a natural stride). Values far outside that band feel steep or shallow.

      Is the stringer length the board I should buy?

      It is the straight-line hypotenuse minimum. Buy longer stock: you need extra for the plumb and level cuts at both ends, and this tool does not subtract tread thickness or nosing.

      Does this replace local building code?

      No. It applies common US IRC residential limits as reference values; local amendments, commercial rules and headroom (minimum 6 ft 8 in) must be checked separately.

      About this calculator

      The Stair Calculator turns a floor-to-floor height into a buildable flight: how many risers you need, the exact (equal) height of each, how many treads, the total horizontal run, the minimum stringer length, and a comfort score from Blondel's 2R+T rule.

      The core problem is division with a constraint: the total rise rarely divides evenly by a comfortable riser height, and risers must all be identical. The calculator therefore rounds the riser count up — never down — so the actual riser ends up at or below the target maximum, then re-divides the rise equally among that count.

      Geometry finishes the job: with risers minus one treads of a chosen depth, the flight's total run is fixed, and the stringer is the hypotenuse of the rise-run triangle. Blondel's 2R+T rule, dating to the 17th century, then predicts comfort: a stride-matched stair lands near 24-25 inches.

      Use it when framing a new staircase, replacing a stringer, checking a contractor's layout, or planning a deck or basement stair — anywhere a total rise must be divided into safe, equal steps.

      How to calculate it yourself

      Step 1

      Measure total rise finished-floor to finished-floor.

      Step 2

      Divide by the target riser and round UP to a whole riser count.

      Step 3

      Divide total rise by that count for the true riser height.

      Step 4

      Multiply (risers - 1) by the tread depth for total run.

      Step 5

      Stringer length = sqrt(rise^2 + run^2); check 2R + T is near 24-25 in.

      Real-life examples

      Deck stair planning

      A homeowner's deck floor sits 96 inches above the lower landing after a regrade, so she re-runs the layout with an 11-inch tread for outdoor comfort.

      Risers = 13 at 7.385 in each; total run 132 in; stringer at least 163.22 in, so she orders 16 ft stringer stock to allow end cuts.

      The layout fits the yard's 11 ft run allowance (132 in) with inches to spare.

      Checking a contractor's quote

      A quote proposes 15 risers for a 108-inch rise. The owner checks: 108/15 = 7.2-inch risers — legal, but with the quoted 10-inch treads 2R+T = 24.4 in versus the calculator's 25.93 in at 14 risers with 10.5-inch treads.

      Both are code-legal; the calculator's version sits closer to the comfort band for the owner's tread choice.

      The owner asks for the 14-riser, 10.5-inch-tread layout and a longer run allowance in the contract.

      Ideas & use cases

      • Try two tread depths and compare 2R+T — deeper treads can rescue comfort when the riser count is forced by headroom.
      • Use the stringer length to price lumber: round up to the next stock length (12, 14 or 16 ft) before costing.
      • Reverse-check an existing stair: measure rise and riser count, then see whether equal risers match what was actually built.

      Limitations & sources

      • Straight single flight in inches only; no winders, landings, headroom, nosing or stringer cut deductions. Reference limits are US IRC residential — verify local code before building.

      Sources: US IRC R311.7.5 stair dimensions (max riser 7.75 in, min tread 10 in); Blondel's formula 2R+T for stair comfort

      Stair Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results