Advertising The building code stipulates the length of the handrail must match the length of the stairs. This makes sense, as you want to be able to grasp it at the top and bottom steps.