Clean the surface of the railing with a household degreaser cleaner. Purchase these at hardware, home improvement or grocery stores.
Fill in any nail holes, dents or scratches in the railing with vinyl spackling compound.
Sand lightly any patched areas as well as any high or rough spots on the railing. Use 150- to 200-grit sandpaper. Remove the shine from the wooden railing and sand rough spots only as much as needed to smooth the surface.
Apply at least one coat of a good quality stain-killing primer, available at home improvement stores. The store can tint your primer to match your paint color. This may enable you to apply only one coat of both primer and topcoat.
Apply at least one coat of the final paint color after the primer has dried for the manufacturer's recommended length of time. Use a paintbrush to brush the paint on the railing. Follow the grain of the wood using long strokes.