Stairs & Railings

    Stair Handrail Calculator

    A stair handrail runs parallel to the line of the tread nosings, so its length is the hypotenuse of a triangle whose sides are the total tread run and the total rise between the top and bottom nosings. This works that out from your riser count, riser height and tread depth, adds the top and bottom extensions if you build to the ADA Standards, and picks the stock length that does it in one piece.

    Inputs

    IRC R311.7.5.1: 7¾ in maximum.

    IRC R311.7.5.2: 10 in minimum.

    The handrail is the hypotenuse

    A stair handrail follows the line of the tread nosings. Between the top nosing and the bottom one there are one fewer treads than risers, so the rail spans (risers − 1) treads across and (risers − 1) risers up. Square both, add them and take the square root.

    Worked example: nine risers at 7½ in, 10 in treads

    StepWorkingResult
    Treads along the rail9 − 18
    Horizontal8 × 10 in80 in
    Vertical8 × 7.5 in60 in
    Handrail√(80² + 60²)100 in = 8 ft 4 in
    Anglearctan(7.5 ÷ 10)36.9°
    With ADA extensions100 + 12 + 10122 in = 10 ft 2 in

    An 8 ft stock rail is 4 in short, so buy a 10 ft length and cut it. Nine risers is a deck about 67½ in high — the height where a stair reaches past a single 8 ft length and the extra is worth checking before you shop.

    The rules for deck stair handrails

    • When: any flight with four or more risers needs a handrail on at least one side (IRC R311.7.8).
    • Height: 34 to 38 in, measured straight up from the nosing line (R311.7.8.1).
    • Continuity: the rail runs the full flight, from above the top riser to above the bottom one.
    • Grip: round rails 1¼ to 2 in across, or a profiled rail with finger recesses (R311.7.8.5). A flat 2x6 cap is a guard, not a handrail.
    • Clearance: at least 1½ in between the rail and the wall or post behind it.

    Laying out the stair itself? The stair stringer calculator sets the riser and tread, and the deck stairs calculator counts the treads and stringers. A ramp instead of steps is sized in the deck ramp calculator.

    Get the Smart Decking Calculator app for Android

    Estimate decks on the go, save projects, and share them with contractors.

    Building something else? Try our sister calculators

    Frequently asked questions

    How do you calculate handrail length for stairs?
    Treat it as a right triangle. The horizontal side is the number of treads times the tread depth, the vertical side is the number of treads times the riser height, and the handrail is the hypotenuse. Nine risers at 7.5 in with 10 in treads is eight treads: 80 in across and 60 in up, so the rail is exactly 100 in, or 8 ft 4 in.
    What height should a stair handrail be?
    Between 34 and 38 in, measured straight up from the line of the tread nosings. That range is in both the IRC (R311.7.8.1) and the ADA Standards (505.4). Deck guards are a different thing: an open side more than 30 in above the ground needs a 36 in guard at a house.
    How many steps before you need a handrail?
    Under the IRC, any flight with four or more risers needs a handrail on at least one side. Three risers or fewer need none by code, though a rail still helps anyone unsteady on their feet. Public and commercial stairs follow the IBC and ADA, which want rails on both sides.
    Do handrails need to extend past the stairs?
    At a house under the IRC, no: the rail must run the full length of the flight, from above the top riser to above the bottom one. The ADA Standards (505.10) add a 12 in horizontal extension at the top and a sloped extension one tread deep at the bottom, which the calculator includes when you choose ADA.
    What angle is a stair handrail?
    The same as the stair's pitch: the arctangent of riser height divided by tread depth. A 7.5 in riser on a 10 in tread gives 36.9°. A 7¾ in riser on a 10 in tread, the steepest the IRC allows, gives 37.8°.

    Related calculators

    All calculators →