FLXCode Stair Calculator

FLXCode apps

Appearance

Stair Calculator

Enter the total rise from floor to floor. You get the number of steps, the riser and tread sizes, the run and the stringer length.

Leave empty to let the tool choose.

Example 16 risers, 15 treads

6 13/16 in riser height

Stair layout
Number of risers16
Number of treads15
Riser height6 13/16 in (6.813 in)
Tread depth10 1/2 in (10.5 in)
Total run13 ft 1 1/2 in (157.5 in)
Total rise9 ft 1 in (109 in)
Stringer length (long edge)15 ft 11 9/16 in (191.54 in)
Angle34.7 degrees

Code check (IRC)

  • Pass Riser height: 6.81 in, limit 7.75 in or less
  • Pass Tread depth: 10.5 in, limit 10 in or more
  • Pass Rise of one flight: under 12 ft 7 in, no landing needed on this count
  • Info Headroom: not checked, enter it above (limit 6 ft 8 in)
  • Info 2 x riser + tread: 24.13 in, a comfortable stair is about 24 to 25 in (61 to 64 cm); a rule of thumb, not code

The IRC is the model code most US places start from. Your city or county may change it, and the inspector decides. Check before you cut.

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.

Problem or idea? Email us

Quick start

  1. Measure the total rise from the finished lower floor to the finished upper floor, in feet and inches.
  2. Leave the wanted riser at 7 in, or change it. Set the tread depth, 10 in at least.
  3. Read the layout. The tool picks the number of risers and makes them equal.
  4. Check the list of pass and fail lines, and add your headroom to include that one.

Worked examples

Computed by the same engine as the tool above, with a 7 in wanted riser and 10 1/2 in treads.

StairsRisersRiser heightTotal runStringer
Front porch, 21 in rise37 in1 ft 9 in2 ft 5 11/16 in
Deck, 30 in rise47 1/2 in2 ft 7 1/2 in3 ft 7 1/2 in
Basement, 8 ft 6 in rise156 13/16 in12 ft 3 in14 ft 10 15/16 in
Between floors, 9 ft 1 in rise166 13/16 in13 ft 1 1/2 in15 ft 11 9/16 in
Loft, 10 ft 8 in rise187 1/8 in14 ft 10 1/2 in18 ft 3 5/8 in

How the layout is worked out

  1. Risers: n = round(total rise / wanted riser)
  2. Riser height: total rise / n, so every riser is equal
  3. Treads: n - 1, since the top floor is the last tread
  4. Total run: treads x tread depth
  5. Stringer: square root of (rise squared + run squared)
  6. Angle: arctan(rise / run)

Numbers this uses

These are the limits the code check uses. The IRC is a model code, so your local rules may differ.

  • Riser height is 7 3/4 in at most. IRC R311.7.5.1 for homes; the same flight must not vary by more than 3/8 in.
  • Tread depth is 10 in at least. IRC R311.7.5.2.
  • Headroom is 6 ft 8 in at least. IRC R311.7.2, measured straight up from the nosing line.
  • Rise of one flight is 12 ft 7 in at most. IRC R311.7.3, a landing is needed above that.
  • Wanted riser is 7 in. a comfortable height and under the limit; editable.
  • Comfort rule is 2 x riser + tread = 24 to 25 in. an old carpentry rule of thumb, not a code rule.

Before you cut

  • Measure the rise to the finished floor. A new floor covering at the top or the bottom changes a riser by its thickness.
  • Keep every riser the same. The IRC allows only 3/8 in between the tallest and the shortest riser in a flight.
  • The first and last riser change when you add flooring, so lay the stringer with the thickness of the tread removed from the bottom.
  • Open risers on stairs have a limit on the gap. Check the code for your case.

Metric

Switch to metric and enter the rise and tread in centimetres. The code check still compares against the inch limits, shown as 19.7 cm for the riser, 25.4 cm for the tread and 203 cm for the headroom.

Your sizes stay in this page and are not uploaded. We count events without cookies (details).

FAQ

How do I calculate stairs?

Take the total rise from the finished floor below to the finished floor above. Divide it by a riser height near 7 in and round to a whole number of risers. Then divide the rise by that number. For 9 ft 1 in, that is 16 risers of 6 13/16 in. The tread count is one less than the risers, because the upper floor is the last tread.

What is the maximum riser height?

The IRC allows up to 7 3/4 in for one- and two-family homes. The minimum tread depth is 10 in. Other codes, such as for commercial stairs, are stricter. Your local building department has the final say.

How many steps do I need for a given height?

Divide the height in inches by about 7. A 2 ft 6 in deck needs 4 risers and 3 treads. A 9 ft 1 in floor-to-floor rise needs 16 risers.

How do I find the stringer length?

The long edge of the stringer is the hypotenuse of the total rise and total run. For the 9 ft 1 in example, with 10 1/2 in treads, that is 15 ft 11 9/16 in. The board you buy must be longer, since the cut loses length at the top and bottom. Buy the next standard length up.

What is total run?

It is the horizontal distance the stairs take: treads times tread depth. The 9 ft 1 in example takes 13 ft 1 1/2 in of floor. Plan for the landing at each end on top of that.

What if my riser is over the limit?

The tool flags it. A target of 8 in over 9 ft 1 in gives 15 risers of 7 1/4 in, which fails the 7 3/4 in limit. Raise the number of risers, or enter a lower target riser, and the run grows.

What does the angle mean?

It is the slope of the stringer. Most home stairs fall between 30 and 37 degrees. Below that, they take a lot of floor space. Above that, they feel steep.

Is anything I type uploaded or saved?

No. The sums run in your browser. Your sizes are not put in the address bar, not stored and not counted. Only your choice of US or metric units is remembered in this browser.

More from FLXCode

Share Stair Calculator