Toolvito

Works on this device

Stair Calculator

Divide the total rise between two floors into equal risers, then get the treads, the total run, the angle and the stringer length. The tool has no building code limits of its own: you type the limits that apply to your stair, and it shows which results are inside or outside them. Stairs must meet the building code of your place, and a wrong stair is a fall hazard. This is arithmetic, not a design.

Enter your values

For an indoor stair, a deck stair or garden steps in one straight flight. Gives the equal riser height, the treads, the total run, the angle and the stringer length.

Your values

Measured straight up from the finished lower floor to the finished upper floor. You can also type feet and inches, such as 8 ft 10 1/2 in, or a fraction, such as 7 1/2.

Example value. The total rise is divided into equal risers near this height. This is your own aim, not a code limit.

The result table shows both ways.

Most stairs end at the floor. A deck stair hung below the deck edge can have a tread at deck level.

Example value. The going is the level distance from the front of one tread to the front of the next. It does not include the nosing overhang.

Example value. Used for the size of the treads and for the plan of a stair with a landing.

Take it from the building code of your place, or ask your building authority. The limit differs by country, by edition of the code and by the kind of stair. The tool has no limit of its own.

Take it from the building code of your place, or ask your building authority. The limit differs by country, by edition of the code and by the kind of stair. The tool has no limit of its own.

Take it from the building code of your place, or ask your building authority. The limit differs by country, by edition of the code and by the kind of stair. The tool has no limit of its own.

More options

A rule of thumb, not a code: twice the riser plus the going is often quoted as about 600 to 650 mm, or 24 to 25 in. Change the range if your code or your own practice gives another one.

How far the front of a tread sticks out over the riser below. It makes the tread board deeper and does not change the going.

Example value. How many stringers a stair needs depends on its width, the tread material and the building rules. The tool does not work that out.

The real depth of the board that the steps are cut into. A nominal 2x12 is 11 1/4 in (286 mm) deep and a nominal 2x10 is 9 1/4 in (235 mm). The tool then shows the wood left under the notches.

Set by your building rules or the engineer of the stair. The tool has no limit of its own.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Measure the total rise: straight up from the finished lower floor to the finished upper floor. You can type millimetres, or feet and inches such as 8 ft 10 1/2 in.
  2. Type the riser height that you aim for, or choose the number of risers yourself. The tool divides the total rise into equal risers.
  3. Type the tread depth (the going), or the total run that the stair must fit.
  4. Type the limits of your building code in the boxes that begin with Your limit. They start empty. Take them from the code of your place or ask your building authority.
  5. Choose Calculate. Read the riser height, the total run, the angle, the stringer length and the lines that say whether each result is inside your limits.
  6. Open More options for the nosing, the number of stringers, the depth of the stringer board and the range of the comfort rule.

What each calculation does

  • Straight stair: equal risers, treads, total run, angle, stringer length, the marks for each tread and a parts list. It shows the stair for the number of risers rounded down and rounded up.
  • Stair with a landing: two flights with a landing between them, straight on, with a quarter turn (L shape) or a half turn (U shape), and the floor space it takes.
  • One step: the angle, the slope and the comfort rule for a riser and a going that you measured.
  • Headroom and the length of the floor opening: plain geometry for a stair that passes through a floor.
  • Balusters (spindles): an even spacing between two posts, with no gap wider than the limit you type.
  • Carpet or a runner for stairs: the length, the area and the cost.
  • Spiral stair: riser height, the turn of each tread and the going on a walking line.

The formulas

  • Riser height = total rise ÷ number of risers. Every riser is the same.
  • Treads = risers − 1 when the upper floor is the top tread. Total run = treads × going.
  • Angle = arctangent of riser ÷ going.
  • Stringer length = square root of (total rise² + total run²).
  • Wood left under a notch of a cut stringer = board depth − riser × going ÷ square root of (riser² + going²).
  • Comfort rule of thumb: twice the riser plus the going, 2R + G.
  • Opening for a headroom = (headroom + thickness of the upper floor) × going ÷ riser.
  • Baluster gap = (distance between the posts − number of balusters × baluster width) ÷ (number of balusters + 1).
  • Spiral stair: turn of one tread = total turn ÷ (risers − 1). Going at a radius = radius × that turn in radians.

Worked examples

In millimetres. The total rise is 2700 mm and you aim for risers of 180 mm. 2700 ÷ 180 = 15, so the stair has 15 risers of 180 mm and 14 treads. With a going of 250 mm the total run is 14 × 250 = 3500 mm. The angle is the arctangent of 180 ÷ 250, which is 35.75°. The stringer length is the square root of (2700² + 3500²) = 4420.41 mm. Twice the riser plus the going is 610 mm.

In inches. The total rise is 8 ft 10 1/2 in, which is 106.5 in, and you aim for 7 1/2 in. 106.5 ÷ 7.5 = 14.2. Rounded up, 15 risers are 7.1 in each, which is 7 1/8 in to the nearest sixteenth. Rounded down, 14 risers are 7.607 in each. With 15 risers and a going of 10 1/2 in, the 14 treads run 147 in, the angle is 34.07° and the stringer length is 181.52 in.

Wood under the notches. For a riser of 180 mm and a going of 250 mm, one step is 308.06 mm long on the slope. A notch is 180 × 250 ÷ 308.06 = 146.08 mm deep, so a board 286 mm deep keeps 139.92 mm of wood under the notches.

Headroom. With a riser of 180 mm, a going of 250 mm and an upper floor 300 mm thick, a headroom of 2000 mm needs an opening of (2000 + 300) × 250 ÷ 180 = 3194.44 mm.

Balusters. Two posts are 2400 mm apart and each baluster is 41 mm wide. If the largest gap you may have is 99 mm, you need 17 balusters. The gap is (2400 − 17 × 41) ÷ 18 = 94.61 mm.

Building codes and your limits

  • The highest riser, the smallest going, the steepest angle, the headroom, the handrail and the gap between balusters are set by building codes. They differ by country, by edition of the code and by the kind of stair: a private stair, a public stair and a stair for a workplace do not have the same limits.
  • This tool has none of these limits built in. The boxes that begin with Your limit start empty. Fill them from the building code of your place, or ask your building authority.
  • The Try an example button fills the limit boxes with example numbers so that you can see how the tool works. They are not the rules of any place.
  • A line that says Inside your limit only compares two numbers. It is not an approval of the stair.
  • The comfort rule, twice the riser plus the going, is a rule of thumb for an easy stride. It is often quoted as about 600 to 650 mm, or 24 to 25 in. You can change the range under More options. Some codes set their own range.

Limits you should know

  • Stairs must meet the building code of your place, and a wrong stair is a fall hazard. This is arithmetic, not a design: have the stair checked before you build it. This is not professional advice.
  • The tool does not size the stringers, the treads, the fixings, the handrail or the landing. It does not say how many stringers a stair needs or how far apart they may be.
  • Every riser must be the same. Measure the total rise where the stair will stand. A floor covering that is added later changes the first or the last riser.
  • The stringer length is the straight line from floor to floor. Buy a longer board for the end cuts.
  • Winders, alternating treads and curved stairs other than a simple spiral are not worked out.
  • The headroom result takes the line of the tread fronts to meet the upper floor at its edge. Beams, nosings and sloping ceilings change it.
  • Riser heights are exact. Slope lengths and angles are shown to 6 digits.

Related tools