Wiring a switch to an outlet—commonly called a switched receptacle—allows you to control a lamp or appliance directly from a wall switch. The direct answer for the most reliable, NEC-compliant method is to route power from the breaker panel to the switch box first, then run a 2-wire cable from the switch to the outlet. This ensures a neutral wire is present at the switch location, satisfying modern code requirements for smart switches and eliminating dangerous 'switched neutral' configurations.

⚠️ Mains Safety Callout: De-Energize and Verify

Working with 120V AC mains voltage is lethal. Before opening any junction box, turn off the corresponding breaker at the main panel and apply a lockout/tagout device if possible. Never trust a breaker label. Verify the circuit is dead using a Non-Contact Voltage Tester (NCVT) and confirm with a Digital Multimeter (DMM) set to AC Volts across hot-to-neutral and hot-to-ground. If you are unsure about your panel's capacity or local AHJ (Authority Having Jurisdiction) permits, hire a licensed electrician.

Circuit Sizing, Materials, and Device Ratings

Before stripping any wire, you must match your breaker size, wire gauge, and device ratings. The most common botch in DIY electrical work is mixing 15A and 20A components or undersizing the wire for the breaker. The table below assumes standard copper conductors in NM-B (Romex) cable, rated for 60°C/75°C in a 30°C ambient environment, per NFPA 70 (NEC) Article 334.

Breaker Size Wire Gauge (NM-B) Switch Rating Outlet Rating Max Continuous Load
15 Amp 14 AWG (or 12 AWG) 15A Single-Pole 15A Duplex 1,440 Watts (12A)
20 Amp 12 AWG (Minimum) 20A Single-Pole 20A Duplex 1,920 Watts (16A)

Tools & Materials List:

  • NM-B Cable (14/2 or 12/2 depending on breaker)
  • 15A or 20A Single-Pole Toggle or Decora Switch
  • 15A or 20A Duplex Receptacle (Outlet)
  • Wire strippers (calibrated for 14 and 12 AWG)
  • Lineman's pliers and needle-nose pliers
  • Non-Contact Voltage Tester (NCVT) and Digital Multimeter (DMM)
  • Wire nuts (yellow or red for 14/12 AWG pigtails) and green grounding pigtails

Step-by-Step: Wiring the Switch to the Outlet

This procedure uses the 'Power-to-Switch-First' method. Power from the panel enters the switch box, and a separate cable runs from the switch to the outlet. This guarantees a neutral is available at the switch.

  1. Prepare the Cables: Strip back 3/4 inch of the outer NM-B jacket to expose the conductors. Strip 3/4 inch of insulation from the black, white, and bare copper wires. Ensure no nicked copper remains; if you scored the wire, cut it and re-strip.
  2. Bond the Grounds in the Switch Box: In the switch box, twist the bare copper ground from the panel cable together with the bare copper ground from the outlet cable. Add a 6-inch bare copper pigtail, secure with a wire nut, and connect the pigtail to the green grounding screw on the metal or plastic switch box (if required by local code) and the green screw on the switch.
  3. Connect the Neutrals in the Switch Box: Connect the white (neutral) wire from the panel to the white (neutral) wire heading to the outlet using a wire nut. Note: Standard single-pole switches do not use the neutral, but tying them together passes the neutral to the outlet and leaves it available in the box for future smart switch upgrades.
  4. Terminate the Line Hot at the Switch: Connect the black (hot) wire coming from the breaker panel to the bottom brass or black terminal screw on the single-pole switch. Loop the wire clockwise around the screw so tightening the screw pulls the loop closed. Torque firmly until the insulation touches the metal washer, but do not overtighten to the point of stripping the screw head.
  5. Terminate the Load Hot at the Switch: Connect the black wire from the cable heading to the outlet to the top brass or black terminal screw on the switch. This wire will carry the switched hot to the receptacle.
  6. Terminate the Outlet (Receptacle): Move to the outlet box. Connect the bare copper ground to the green grounding screw on the receptacle. Connect the white (neutral) wire to one of the silver terminal screws on the receptacle. Finally, connect the black (switched hot) wire to one of the brass terminal screws on the receptacle.
  7. Final Box Dressing: Carefully fold the wires into the boxes in a Z-pattern (grounds in back, neutrals in middle, hots in front). Mount the devices using the provided machine screws, ensuring the yoke sits flush against the drywall or plaster ring.

Verify and Test: Meter Readings and the 'Common Botch'

Do not skip the testing phase. Before installing the wall plates, turn the breaker back on and perform these measurements with your DMM set to AC Volts (200V or 600V range).

  • Switch OFF: Measure across the outlet's brass screw (hot) and silver screw (neutral). Expected reading: 0V. Measure across the white wire and bare ground in the outlet box. Expected reading: 0V.
  • Switch ON: Measure across the outlet's brass screw and silver screw. Expected reading: ~120V (acceptable range 114V–126V). Measure hot-to-ground. Expected reading: ~120V.

The Most Common Botch: The Switched Neutral

If your outlet works, but your NCVT detects voltage at the lamp socket even when the switch is OFF, you have wired a switched neutral. This happens when the hot wire is tied directly to the outlet, and the switch interrupts the white (neutral) wire instead of the black (hot) wire. While the lamp turns off, the internal wiring of the lamp remains energized at 120V. If you touch the internal contacts while changing a bulb, you will complete the circuit to ground and receive a severe shock. Always verify the switch interrupts the black (hot) conductor.

Frequently Asked Questions

Can I wire a switch to an outlet without a neutral wire at the switch?

Prior to the 2011 NEC update, 'switch loops' were commonly wired by sending power to the outlet first, then using a 2-wire cable to the switch, where the white wire was re-identified as a hot. This left the switch box with no neutral. However, NEC Article 404.2(A) now mandates that a neutral conductor must be present at the switch location to accommodate electronic timers, occupancy sensors, and smart switches. If you are upgrading an old switch loop, you must either pull a new 3-wire (14/3 or 12/3) cable or re-route power to the switch box first.

How do I wire a switch to control only half of an outlet?

This is known as a 'split-wired' or 'half-switched' receptacle, common in living rooms where one half powers a switched lamp and the other half provides always-on power for a vacuum or TV. To do this: 1. Remove the brass connecting fin (tab) on the hot side of the receptacle using needle-nose pliers. Wiggle it until it snaps off cleanly. 2. Do not remove the silver fin on the neutral side; doing so will isolate the neutral for the top and bottom receptacles, requiring two separate neutral wires. 3. Wire the always-on hot to one brass screw, and the switched hot to the other brass screw. Tie the neutral to the silver screw.

What gauge and device rating do I need for a switched lamp circuit?

Lighting and lamp circuits rarely exceed 10 amps. A 15-amp breaker with 14 AWG NM-B copper wire, paired with 15A-rated switches and receptacles, is the standard and most cost-effective choice. You can legally install 15A receptacles on a 20A breaker circuit (per NEC 210.21(B)(3)), but you cannot install a 20A receptacle on a 15A breaker. If your circuit breaker is 20A, your switch must be rated for 20A, even if the receptacles are 15A.

Why does my breaker trip immediately when I turn on the switched outlet?

An immediate trip (a hard magnetic trip, not a slow thermal trip) indicates a dead short. The most likely cause is that the bare copper ground wire is touching the brass hot terminal or the black hot wire inside the crowded outlet box. Another possibility is that the hot and neutral wires are crossed at the receptacle. Turn the breaker off, remove the receptacle from the box, and inspect the wire routing. Ensure no bare copper is making contact with the side-terminal screws, and use electrical tape to wrap the sides of the receptacle (a practice known as 'boxing') to insulate the terminals from the metal box or ground wires.

Is it safe to use the backstab (push-in) terminals on the outlet?

While UL-listed and technically legal, backstab terminals rely on a small internal spring clip that grips the wire. Over time, thermal expansion and contraction from high loads can loosen this grip, leading to arcing, melted plastic, and fire. For a switched outlet, especially if it will run high-draw appliances like space heaters, always use the side-binding plate screws or wrap the wire clockwise around the terminal screw. If you prefer push-in convenience for speed, upgrade to 'back-wire' (screw-clamp) receptacles, which use a screw to tighten a plate over the wire insertion hole, providing a much more secure, high-pressure connection.