Contact your local building department for the codes that govern the installation of banisters.

Use a miter box to do so and follow the instructions that apply to the brand that you choose.