The switch comes first in the new part of the circuit and new 2 wire cable is run to it from the outlet. If not youll have to wire a longer wire from the light fixture to the switch or from the switch to the power source.
Wiring Diagrams To Add A New Light Fixture Do It Yourself
How to add a light switch to an existing outlet. The neutral for the new light is taken from the receptacle and spliced to the new white wire and to a pigtail that connects back to the receptacle. Holes must be drilled inside the stud bay either through the floor into the crawl space or through the top plate into the attic at both the existing outlet and the new switch. After identifying the line and load terminals on the switch remove the wire going to the light fixture twist it together with the wire going to the outlet add a jumper wire cap them and attach the jumper wire back to the switchs load terminal. Twist and cap the white wires connect all the ground wires to the ground screw and youre done. Wire must then be fed through the hole across the space and into the wall with the switch. Disconnect the wiring from the light fixture and outlet.
Install the new light fixture and fish the wires down to the switch box. From the switch new 2 wire cable is run to the new light location. To add an outlet to a light switch you start by making a pigtail using the hot wire the wire going to the fixture controlled by the switch and a third length of wire. You then splice all the white wires and all the ground wires in the switch box together. Hook up the outlet as you normally would. Wire must be run from the outlet to the new switch and that isnt always easy.
If your wiring is long enough you can use it to run to the switch.