How to calculate stairs
Every straight staircase is defined by two overall measurements: the total rise, the vertical distance from the lower finished floor to the upper finished floor, and the total run, the horizontal distance the stairs travel. Divide the total rise by the number of risers to get the height of each step, and divide the total run by the number of treads to get the depth of each step. The stringer, the sloped board that carries the treads, is the hypotenuse of the triangle formed by the run and the height it climbs.
Run = total run ÷ number of treads
Stringer length = √(total run² + stringer height²)
Angle = arctan(rise ÷ run)
Basic version
Enter the total rise and either the total run or the depth of one run. The calculator tries every step count and lists those whose riser height lands between 5 and 10 inches, so you can pick the one that best fits the space and your local code. In a standard installation, the top riser ends at the upper floor, so there is one fewer tread than riser.
Worked example
A total rise of 10 ft (120 in) and a total run of 15 ft (180 in) with 15 treads gives 16 risers of 120 ÷ 16 = 7.5 inches and treads of 180 ÷ 15 = 12 inches. The stringer climbs 15 × 7.5 = 112.5 inches over the 180 inch run, so its length is √(180² + 112.5²) = 212.26 inches, or 17 ft 8.26 in. The angle is arctan(7.5 ÷ 12) = 32.01°.
Comprehensive version
The comprehensive version starts from a fixed step height or a fixed number of steps. With a fixed rise, any remainder that does not divide evenly goes into the first step at the bottom, which the results show as the first step height. Building codes usually allow only a small variation (often 3/8 inch) between the tallest and shortest riser, so if the first step is very different, switch to a fixed number of steps to divide the rise evenly.
Standard and flush mounts
With a standard mount, the stringer hangs below the upper floor and the floor itself forms the top step, so there is one fewer tread than riser. With a flush mount, the top of the stringer is level with the upper floor, so the stringer carries a tread for every riser and climbs the full total rise. A flush mount needs one more run of floor space.
Tread thickness and headroom
If the treads are separate boards laid on the stringer, their thickness raises every step. The stringer is cut shorter at the bottom by that thickness so the first step is not taller than the rest. Headroom is the vertical clearance between the tread below the edge of the floor opening and the underside of the floor above. It grows by one rise for every full run the opening extends, so the calculator reports both your headroom and the shortest opening that meets the required clearance.
Stair terminology and common building codes
| Element | Typical US residential guideline |
|---|---|
| Riser height | 7.75 in (19.7 cm) maximum |
| Tread depth (run) | 10 in (25.4 cm) minimum |
| Nosing | 0.75 to 1.25 in (1.9 to 3.2 cm) |
| Headroom | 6 ft 8 in (203.2 cm) minimum |
| Stair width | 36 in (91.44 cm) minimum |
| Handrail height | 34 to 38 in (86.4 to 96.5 cm) above the tread nosing |
| Guards | Required where the total rise is more than 30 in |
- Run or tread: the horizontal part you step on.
- Rise or riser: the vertical height of one step, or the board that closes it.
- Nosing: the front edge of a tread that overhangs the riser below.
- Stringer: the structural board on each side, and sometimes the middle, that supports the treads and risers.
- Headroom: the clear height above the stairs, measured from the nosing line.
Local codes vary and are updated regularly. Treat these numbers as typical values and confirm them with your building department before cutting stringers.
Comfort rules of thumb
Stairs feel natural when the rise plus the run is about 17 to 18 inches, or when two risers plus one run is about 24 to 25 inches. A 7 inch rise with an 11 inch run satisfies both. Steeper stairs save floor space but are harder to climb, while very shallow stairs take more room and can break a person's stride.
Fraction to decimal conversion
| Fraction | Decimal inches | Fraction | Decimal inches |
|---|---|---|---|
| 1/16 | 0.0625 | 9/16 | 0.5625 |
| 1/8 | 0.125 | 5/8 | 0.625 |
| 3/16 | 0.1875 | 11/16 | 0.6875 |
| 1/4 | 0.25 | 3/4 | 0.75 |
| 5/16 | 0.3125 | 13/16 | 0.8125 |
| 3/8 | 0.375 | 7/8 | 0.875 |
| 7/16 | 0.4375 | 15/16 | 0.9375 |
| 1/2 | 0.5 | 1 | 1 |