If you have to snip wires, take a few pictures first so you can be assured you’ll re-attach everything correctly. Caution: If the power has been on the light, the ballast will likely be very hot.

Make sure your light fixture isn’t using LED bulbs since they do not use ballasts. Check that the bulbs you’re using are compatible with the ballasts you buy. Magnetic ballasts are not sold anymore, so you may need to change the type of bulb.

Cut wires to appropriate length Strip 1⁄2 inch (1. 3 cm) of sheathing from the wires. Group the matching wires from ballast to light according to your ballast’s manual Feed both ends of matching wire (one from the ballast, one from the light) into the wire nut. Twist the nut clockwise to combine the wires, making sure the nut is very tight. Give the nut a slight tug to make sure everything is secure. [5] X Research source

If you have flickering or continued issues, check the sockets or wire connections. A bad or loose connection may be the culprit. If you have electronic ballasts, check the ground wire. Finally, try replacing the light. They are cheap and easy to swap out. [6] X Research source