If you have an outlet you want to be able to turn on and off, you can create a switched outlet with a basic electrical toggle switch and a receptacle outlet. Switched outlets are often used in garages, bathrooms and even kitchens. Once a switched outlet is wired, the toggle switch that runs to the outlet can shut off the electricity running to the outlet and anything plugged into the outlet, saving you energy and preventing electrical hazards.
Turn off all power to both the switch and the electrical socket. Use a circuit tester to double-check that no power is running to the circuit.
Unscrew the face plate and the switch from the wall. Pull the switch out of the wall, so you can see the wires.
Unscrew the face plate and the outlet from the wall. Remove the outlet from the wall, so you can see the wires.
Detach the wires running to the outlet and the switch. Unscrew each of the screws a little to enable removal of the wires.
Run a piece of 14-2 romex cable from the switch to the outlet. Remove the old wire that was running to the outlet.
Wrap the black, hot wire around the top black screw on the outlet. Do not break the tab between the two black screws.
Wrap the white, neutral wire around the silver screw on the left side of the outlet.
Wrap the copper or green grounding wire to the green grounding screw at the bottom of the outlet.
Fold the wires back into the receptacle box, and screw the outlet back into the wall. Screw the face plate over the outlet.
Go to the switch. Attach the black hot wire running from your main electrical source to the bottom screw on the switch.
Wrap the black hot wire from the outlet around the top screw on the switch.
Connect the white neutral wire running from your main electrical source to the white neutral wire running from the outlet, using an electrical nut.
Connect the green or copper grounding wires from the outlet, the switch and the main electrical source together using an electrical nut.
Fold the wires back into the switch box. Screw the switch back into place. Screw on the switch face plate.
If the outlet you're turning into a switched outlet was part of a larger circuit before, you'll need to rewire the last outlet before the switched outlet, so it is the last one in the series and creates a complete circuit. If you need to remove wire insulation before you can wrap the wires around the screws, use a pair of wire cutters to peel the plastic back from the wire.
Always turn off the electricity before working with any household electrical elements.