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
Check these values
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.
Your result
How it was worked out
How to use this calculator
- 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.
- Type the riser height that you aim for, or choose the number of risers yourself. The tool divides the total rise into equal risers.
- Type the tread depth (the going), or the total run that the stair must fit.
- 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.
- 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.
- 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.