Stair Calculator

Calculate step count, riser height, tread depth, and stringer length for your staircase, checked against IRC guidance.

Stair Calculator — Rise, Run & Stringer Length

Building or replacing a staircase comes down to one question you have to answer before you cut a single board: how many steps, and how tall and deep should each one be? Get the riser height wrong and you end up with an uneven, trip-hazard staircase; get the tread depth wrong and every step feels cramped or oddly deep. This calculator solves both from a single number — your total rise — plus a target riser height you're aiming for.

The core problem is that you can't just divide total rise by your ideal riser height and call it done, because the result is almost never a whole number. A real staircase needs a whole number of steps, all the same height, so the calculator rounds to the nearest whole step count and then folds the rounding difference back into the actual riser height. That's why the 'actual riser height' this tool gives you is often a few millimetres different from what you typed in — it's the real, buildable number, not just your rough target.

Once the step count and riser height are locked in, the calculator works out tread depth. If you tell it how much horizontal run you actually have available, it divides that space evenly across your treads. If you don't have a fixed run to work within, it falls back on the standard stair-comfort convention (2 x riser + tread ≈ 63-65cm) to suggest a tread depth that will feel natural to walk, rather than either cramped or oversized.

From there it's simple geometry: the stringer — the diagonal board that the treads and risers are fixed to — is the hypotenuse of a right triangle formed by your total rise and total run, solved with the Pythagorean theorem. Add a stringer count, tread board width, and material prices, and you get a full stringer length, incline angle, and materials cost estimate — the cut-list starting point most bare formula-only stair calculators leave out entirely.

How to use the stair calculator

  1. Enter your total rise — the full floor-to-floor (or floor-to-landing) vertical height the staircase needs to climb. Measure this directly rather than estimating; it's the single most important number in the whole calculation.
  2. Enter your target riser height — the riser height you'd ideally like each step to be (a common starting point is around 175-190mm / 7-7.5in). The calculator will round this to the nearest step count that divides evenly into your total rise, then tell you the actual riser height that results.
  3. Optionally enter the total run available (the horizontal floor space you have to work with). If you leave this blank, the calculator derives a comfortable tread depth from the standard stair-comfort rule instead.
  4. Choose your mount type — standard mount treats the top step as the landing itself (so you need one fewer physical tread than the step count), while flush mount builds a full tread at the top, level with the upper floor.
  5. Enter the number of stringers (the diagonal support boards — typically 2 for a narrow stair, 3 for a standard-width stair, more for wider staircases) and your tread board width.
  6. Set a waste allowance and enter your price per stringer and price per tread board to get a full stringer length, incline angle, and materials cost estimate.

The stair calculation formula, explained

Step 1 — step count: divide total rise by your target riser height, then round to the nearest whole number, since a staircase can only have a whole number of steps. Step count = round(total rise / target riser height).

Step 2 — actual riser height: divide total rise by the rounded step count to get the true, buildable riser height. This folds the rounding difference back in evenly across every step, so no single riser ends up an odd height compared to the rest. Actual riser height = total rise / step count.

Step 3 — tread depth: if you supplied a total available run, tread depth = available run / (step count - 1), since the top step is the landing in a standard-mount stair and doesn't need its own tread board. If you didn't supply a run, the calculator solves the stair-comfort rule instead: 2 x riser + tread ≈ 64cm (the midpoint of the commonly cited 63-65cm comfort band), rearranged to tread = 64cm - (2 x actual riser height).

Step 4 — stringer length: the stringer runs diagonally under the full flight, so its length is the hypotenuse of a right triangle with the total rise as one side and the total run (tread depth x number of treads) as the other. Stringer length = √(total rise² + total run²) — the Pythagorean theorem.

Step 5 — incline angle: angle = arctan(total rise / total run), giving you the slope of the staircase in degrees — useful for checking against comfort/safety guidance, since a very steep angle (over roughly 42-45°) starts to feel more like a ladder than a stair.

Worked example: total rise = 2.6m, target riser height = 178mm (7in). Step count = round(2600 / 178) = round(14.6) = 15 steps. Actual riser height = 2600 / 15 = 173.3mm. With no fixed run supplied, tread depth from the comfort rule = 640mm - (2 x 173.3mm) = 293.4mm. Total run = 293.4mm x 14 treads (standard mount, step count - 1) = 4,107.6mm. Stringer length = √(2600² + 4107.6²) = √(6,760,000 + 16,872,363) = √23,632,363 ≈ 4,861mm, or about 4.86m. Incline angle = arctan(2600/4107.6) ≈ 32.3°.

The stair-comfort rule (2 x riser + tread)

When you don't have a fixed run to solve for, the calculator falls back on the most widely cited stair-comfort convention: 2 x riser height + tread depth should land somewhere between about 63cm and 65cm (roughly 24.8-25.6in). This isn't an arbitrary rule of thumb — it reflects the natural rhythm of a walking stride, balancing how far your foot travels forward against how far it lifts on each step.

  • 2R + G = 63-65cm (approx. 24.8-25.6in) — the standard residential stair-comfort range, often attributed to the 19th-century French architect François Blondel and still widely cited today.
  • Steeper stairs (taller risers, shallower treads) fall below this range and feel cramped or tiring to climb; shallower stairs (shorter risers, deeper treads) push above it and can feel awkwardly slow, since your stride doesn't naturally match the step spacing.
  • This comfort figure is a design convention, not a legal maximum — always check it against your local building code's actual riser/tread limits, which take priority where they differ.
  • A comfortable target riser height for most residential stairs sits around 170-190mm (6.7-7.5in); very few codes anywhere permit risers taller than roughly 200mm (7.9in) for a standard means-of-egress stair.

US stair code (International Residential Code)

The International Residential Code (IRC), adopted with local amendments by most US states and municipalities, sets the legal limits for stairs in one- and two-family dwellings. This calculator's comfort-rule reference sits on top of these code minimums/maximums, not in place of them — always check your local building department for the exact edition and any local amendments in force.

  • Maximum riser height: 7.75 inches (196mm).
  • Minimum tread depth (run): 10 inches (254mm).
  • Riser height variation within a single flight: no more than 3/8 inch (9.5mm) difference between the largest and smallest riser.
  • Minimum stair width: 36 inches (914mm).
  • Minimum headroom: 6 feet 8 inches (2,032mm), measured vertically from the tread nosing.
  • Handrail required on at least one side for stairs with 4 or more risers, with a handrail height of 34-38 inches (864-965mm).
  • (Source: 2021 International Residential Code, Section R311.7, International Code Council, codes.iccsafe.org)

Pro tips and common mistakes

The single most common mistake in stair building isn't the maths — it's measuring total rise from the wrong reference points. Always measure from the finished floor level at the bottom to the finished floor level at the top, including the thickness of any flooring material you plan to add later. Forgetting a 20mm flooring build-up at the top can leave your last step noticeably taller or shorter than the rest.

At a typical US material cost of around $35 per stringer or tread board, a straight staircase with 15 steps, 3 stringers, and 14 treads (standard mount) would need roughly 3 stringers ($105) plus 14 tread boards ($490), for a materials estimate of around $595 before waste allowance, fasteners, or a carpenter's labor — get a firm quote from a local contractor for an accurate installed price, since labor for stair-building typically runs well above the material cost alone.

  • Check headroom clearance, not just riser and tread — most codes require a minimum clear headroom (commonly around 2.0-2.1m) measured vertically from the nosing of each tread up to any ceiling, joist, or landing above. A staircase can pass every riser/tread check and still fail on headroom if it runs under a low ceiling or floor opening.
  • Riser height limits vary significantly by country and by building type — always confirm the maximum (and sometimes minimum) riser height and minimum tread depth against your local building code before finalising a design, since this tool's comfort-rule reference is a widely-used convention, not a substitute for your jurisdiction's actual regulations.
  • Keep every riser height in a flight identical to within a few millimetres — even a small inconsistency (5-10mm) between steps is a well-documented trip hazard, since your foot expects every step to behave the same way as the last.
  • For standard mount, remember the top tread is the landing itself — you build one fewer physical tread board than your step count. Get this wrong and you'll either order one tread short or end up with an extra step that doesn't belong.
  • Stringer count matters for more than material cost — wider stairs (over about 900mm-1m) generally need a third (or centre) stringer to stop the treads deflecting or bouncing underfoot, not just two outer stringers.
  • Round up your final board lengths to the next standard stock length your supplier sells, and always add a waste allowance for angled stringer cuts — the diagonal cut on a stringer board wastes noticeably more offcut than a straight cut.