Yard & Slab — Home Improvement Material Calculators
How much material do you actually need? Estimate it before you buy it.

Stair Calculator

For deck stairs, porch steps and interior flights: enter the total rise and get the riser count, the exact even riser height, the tread count, the total run and the stringer length — checked against the IRC's limits as it goes.

Quick answer: Risers = total rise ÷ target riser height, rounded up; actual riser = total rise ÷ risers. A 108 in rise at a 7.5 in target gives 15 risers of exactly 7.20 in, 14 treads, and a 147 in run at 10.5 in treads — with a stringer about 182 in long.

Calculate

Advertisement

How to calculate stairs: risers, treads and run — the formula

  1. Measure the total rise. Measure from finished floor to finished floor — not to the subfloor. The worked example is a 108 in (9 ft) rise, a typical deck or storey height.
  2. Divide by a target riser height. Divide the total rise by a comfortable riser height, about 7.5 in, and round up: 108 ÷ 7.5 = 14.4, so 15 risers. Rounding up keeps every riser under the target — and under the 7¾ in code maximum.
  3. Divide back for the actual riser height. The actual riser height is the total rise divided by the riser count: 108 ÷ 15 = 7.20 in. Every riser in the flight is cut to exactly this height — evenness matters more than the number itself.
  4. Count treads and work out the run. There is always one fewer tread than risers, because the top riser lands on the upper floor: 14 treads. At a 10.5 in tread depth the total run is 14 × 10.5 = 147 in, and the stringer works out at about 182 in along the slope.
Stair geometry: risers up, treads across, stringer on the slopeTotal runRiserTreadUpper floor
A flight is risers × treads; the stringer is the hypotenuse of rise and run.

Stair maths has one job: make every step identical. The divide-round-divide-back method on this page is how carpenters have always done it, because it moves the rounding error into the riser count, where it is harmless, instead of leaving it in the last riser, where it trips people. The comfort targets come from long practice: risers of 7–7.5 in and treads of 10–11 in suit most legs, and the old rule that riser + tread should land near 17–18 in is a decent cross-check (the example flight: 7.20 + 10.5 = 17.7). The hard limits are the IRC's — risers no taller than 7¾ in, treads no shallower than 10 in, and no more than ⅜ in of variation inside one flight — and this calculator flags your result against the first two every time. Deck stairs land on the ground rather than a floor, so measure the rise at the exact spot the last step lands; ground that slopes away quietly adds an inch.

Stringers and stock

The stringer is the sawtooth board that carries the treads, and its length is the hypotenuse of the whole flight: √(rise² + run²). Buy stock a size up from that figure — the plumb and level cuts at each end consume length, and a stringer that comes up short is firewood. Most deck flights up to about 4 ft wide use two stringers of 2 × 12 with a third in the middle for wide or bouncy spans; treads spanning more than about 36 in between stringers flex noticeably. If you are pouring a concrete pad for the flight to land on, size it with the concrete calculator once the run tells you where the bottom step falls — the run is also the number that tells you whether the flight fits the space at all, which is worth knowing before anything is cut.

Stair reference tables

Common rises at a 7.5 in target riser

Total riseRisersActual riserTreadsRun at 10.5 in treads
96 in (8 ft)137.38 in12126 in
108 in (9 ft)157.20 in14147 in
120 in (10 ft)167.50 in15157.5 in
36 in (deck)57.20 in442 in

Code limits (IRC R311.7.5)

DimensionLimit
Maximum riser height7¾ in
Minimum tread depth10 in
Max. riser variation in a flight⅜ in
Advertisement

Frequently asked questions

How many steps do I need for a 9 ft rise?

Fifteen risers. A 108 in rise divided by a target riser height of 7.5 in gives 14.4, which rounds up to 15 risers at an actual height of 7.20 in each, with 14 treads. At 10.5 in per tread the flight runs 147 in (12.25 ft) horizontally.

What is the maximum riser height and minimum tread depth?

Under the International Residential Code (IRC R311.7.5), a residential riser may be at most 7¾ in high and a tread at least 10 in deep, and the tallest riser in a flight may not exceed the shortest by more than ⅜ in. Comfortable stairs sit inside those limits: risers around 7–7.5 in and treads of 10–11 in.

Why is there one fewer tread than risers?

Because the last riser is the step up onto the upper floor itself. A flight with 15 risers has 14 treads you build, and the 15th 'tread' is the landing or floor at the top. Forgetting this is the most common stair-layout error — it leaves the run one tread short.

How long a stringer do I need?

The stringer follows the slope: its length is the square root of (total rise² + total run²). For the 108 in rise and 147 in run in the example, that is √(108² + 147²) ≈ 182 in — about 15.2 ft, so you buy 16 ft stock. Real stringers also carry extra length for the top and bottom cuts, so never buy to the exact figure.

What if my risers come out uneven?

They must not. The method on this page — round the count up, then divide the total rise by the count — guarantees identical risers by construction. Uneven risers are a trip hazard and a code failure (the IRC allows only ⅜ in of variation within a flight), because people climb stairs by rhythm, not by sight.

Sources and references

Common mistakes

Measuring the rise to the subfloor instead of the finished floor is the classic — flooring thickness at top and bottom shifts every riser by the difference. Second is the first-step trap: the bottom riser must be shortened by the tread thickness when you mark the stringer, or the first step stands tall by exactly that amount. Third is designing to the code maximum riser (7¾ in) to save run space: legal, but tiring stairs that everyone notices. And measure the rise where the stair actually lands — a deck's ground level at the wall and at the last step routinely differ by an inch or more.

Last updated: December 5, 2026