Set the metal railing in position. Ensure each leg of the railing sits at the same distance from the edge of the floor or edge of the stairs.
Run the tip of a pencil through the mounting holes of each leg of the metal railing to mark each hole on the surface of the floor. Move the railing from its position.
Secure a 1/8-inch drill bit, if installing the railing on a wood floor, or a 3/16-inch masonry drill bit, if installing the railing on a concrete floor. Drill one hole at each marked location to the depth specified by the fastener's manufacturer.
Set the metal railing back in position. Align the mounting holes with the drilled holes.
Place one 3/16-inch lag bolt into each hole drilled in a wood floor or a 1/4-inch concrete screw in each hole drilled in a concrete floor. Tighten each fastener by turning them clockwise with a socket attached to a 3.8-inch ratchet handle.