A general code requirement is that a handrail is required on at least one side of a continuous run of 4 or more steps. The building code in your area may have different or additional requirements. It is recommended that you check with the local building code office to determine what codes apply to your project.