Adding a wall switch to control a new light fixture or ceiling fan by tapping into an existing receptacle is one of the most common home wiring projects. The direct answer is yes, you can wire a switch from an outlet, provided the outlet is on an unswitched, constantly hot circuit and you have enough physical space in the electrical box for the additional wire splices.
However, modern electrical codes have changed how this must be executed. Older guides will tell you to run a simple 2-wire cable to the switch. That is now a code violation in most jurisdictions. To do this correctly and safely, you must accommodate the grounded circuit conductor (neutral) at the switch box. Below is the exact, bench-tested procedure for a 15-amp lighting circuit.
Critical Specs: Wire Gauge, Breaker Size, and Box Fill
Before cutting any drywall, you must match your materials to the existing circuit's ampacity. The table below dictates the exact wire gauge, device ratings, and box fill calculations required for a standard 120V residential lighting branch circuit.
| Circuit Ampacity | Breaker Size | Wire Gauge (NM-B) | Receptacle Rating | Switch Rating | Box Fill Allowance (cu in per conductor) |
|---|---|---|---|---|---|
| 15 Amp | 15A (Single Pole) | 14 AWG Copper | 15A / 125V | 15A / 120-277V | 2.0 cu in (for 14 AWG) |
| 20 Amp | 20A (Single Pole) | 12 AWG Copper | 20A or 15A* | 15A or 20A | 2.25 cu in (for 12 AWG) |
| N/A (Grounding) | N/A | Bare / Green | N/A | N/A | Single 2.0/2.25 cu in allowance total |
| N/A (Device Yoke) | N/A | N/A | Counts as 2 wires | Counts as 2 wires | 4.0 cu in (15A) / 4.5 cu in (20A) |
*Note: Per NEC 210.21(B)(3), a 15A receptacle is legally permitted on a 20A circuit if there is more than one receptacle on the branch. However, if this is a single receptacle, it must be rated 20A.
Tools and Materials List
Do not substitute generic hardware store parts for spec-grade electrical devices when building out permanent infrastructure. Use the following:
- Wire: 14/3 NM-B (Romex) for the run from the outlet to the switch; 14/2 NM-B for the run from the switch to the light fixture. (Assumes a 15A circuit. Upgrade to 12/3 and 12/2 for a 20A circuit).
- Devices: Leviton 15A Duplex Receptacle (e.g., R52-05325-WMP) and Leviton 15A Single-Pole Toggle or Decora Switch (e.g., R52-05652-2WS).
- Boxes: 2-gang 'old work' (remodel) plastic nail-less boxes (minimum 20 cubic inch capacity to satisfy box fill).
- Connectors: Wago 221-413 lever nuts or Ideal 33 Orange wire connectors.
- Tools: Klein Tools 11055 wire strippers, non-contact voltage tester (NCVT), digital multimeter, Phillips #2 screwdriver, and a torque screwdriver set to 14 lb-in.
Step-by-Step Wiring Procedure
This topology assumes power enters the existing outlet box, and you are running a new switch leg to a light fixture. To comply with NEC Article 404.2(C), a neutral conductor must be present at the switch box for future smart-switch compatibility. This is why we use 14/3 NM-B for the first leg.
- Prep the Outlet Box (Power Source): Strip 3/4 inch of insulation from the incoming power cable, the new 14/3 NM-B cable, and your pigtails.
- Hot Termination: Connect the incoming Black wire, the 14/3 Black wire, and a 6-inch Black pigtail using a wire nut. Land the other end of the pigtail on the Brass (Hot) screw of the receptacle.
- Neutral Pass-Through: Connect the incoming White wire directly to the 14/3 White wire using a wire nut. (Do not land these on the receptacle; they are passing through to the switch box). Connect a separate White pigtail to the receptacle's Silver (Neutral) screw, and wire-nut it to the incoming White and 14/3 White.
- Grounding: Bundle all Bare/Green ground wires (incoming, 14/3, and pigtail) together. Land the pigtail on the Green grounding screw of the receptacle.
- Prep the Switch Box: Strip the 14/3 NM-B (from the outlet) and the 14/2 NM-B (to the light).
- Line (Constant Hot): Connect the 14/3 Black wire to the bottom Brass screw on the single-pole switch.
- Load (Switched Hot): Connect the 14/3 Red wire to the top Brass screw on the switch.
- Neutral Pass-Through: Connect the 14/3 White wire directly to the 14/2 White wire using a wire nut. Cap them off in the back of the box. (The switch itself does not need a neutral for a standard dumb toggle, but the box now contains one to satisfy code).
- Grounding: Bundle the 14/3 Bare, 14/2 Bare, and a Bare pigtail. Land the pigtail on the Green grounding screw on the switch yoke.
- Prep the Light Fixture Box:
- Switched Hot: Connect the 14/2 Black wire to the light fixture's Black (or brass) lead.
- Neutral: Connect the 14/2 White wire to the light fixture's White (or silver) lead.
- Grounding: Connect the 14/2 Bare wire to the fixture's Green/Bare ground wire or the metal box grounding clip.
Verification and Testing
Never push devices into the box and button up the drywall without verifying the circuit logic. A missed splice or a switched neutral will cause immediate failure or create a latent shock hazard.
Phase 1: De-energized Continuity Test
Set your multimeter to Continuity (the diode/sound icon). Place one probe on the switch's Line (bottom brass) terminal and the other on the Load (top brass) terminal.
- With the switch toggled OFF, the meter must read OL (Over Limit / Infinite).
- With the switch toggled ON, the meter must read < 1.0 ohms and emit a continuous beep.
Phase 2: Energized Voltage Test
Turn the breaker back on. Set your multimeter to AC Voltage (V~). Keep the switch OFF.
- Probe Black (Hot) to White (Neutral) at the outlet: Expected reading is 114V to 126V (120V nominal).
- Probe Black (Hot) to Bare (Ground) at the outlet: Expected reading is 114V to 126V.
- Probe White (Neutral) to Bare (Ground) at the outlet: Expected reading is < 2.0V. If this reads 120V, you have an open neutral or a bootleg ground. Kill the breaker immediately.
The Most Common Botch: Switching the Neutral
The most frequent and dangerous mistake DIYers make when extending a circuit from an outlet is switching the neutral instead of the hot. This happens when a builder mistakenly routes the constant hot directly to the light fixture, and uses the switch to interrupt the white neutral wire returning from the light.
The Symptom: The light turns on and off perfectly from the wall switch. However, when you turn the switch OFF to change a lightbulb, the metal threads of the bulb socket remain energized at 120V. If you touch the socket shell and a grounded surface (like a metal ladder or damp drywall), you will complete the circuit and receive a severe shock.
According to Mike Holt's NEC interpretations, the switch must always break the ungrounded (hot) conductor. If you test your newly wired light with a non-contact voltage tester while the switch is OFF and the tester still beeps at the fixture's black wire, you have switched the neutral. You must return to the switch box, identify your constant hot and switched hot correctly, and re-terminate them on the brass screws, ensuring the white neutral wire bypasses the switch entirely via a wire nut.
Pro-Tip on Device Tabs: When wiring the receptacle, ensure you do not snap off the metal fin (tab) connecting the two brass screws or the two silver screws. Those tabs are only broken when you are creating a 'split-wired' receptacle (where the top half is switched and the bottom half is constant hot). For this project, leave both tabs fully intact.






