When DIYers search for "how to wire a plug with a switch," they are usually referring to wiring a wall switch to control a standard wall outlet (technically called a receptacle). In North American residential wiring, this is known as a "switched outlet" or "half-hot" receptacle. This setup is incredibly common in living rooms and bedrooms where a lamp is plugged into the bottom half of the outlet and controlled by a wall switch, while the top half remains always-on for vacuum cleaners or phone chargers.

This guide walks you through the modern, NEC-compliant method for wiring a switched receptacle using a 3-wire switch loop. We will cover the exact terminal placements, wire color assignments, and the physical tab-breaking technique that separates a successful installation from a tripped breaker.

Tools, Materials, and Device Ratings

Before opening any electrical boxes, gather the correct materials. The most critical decision here is matching your wire gauge to your circuit breaker. The table below assumes a standard 15-amp lighting/receptacle branch circuit, which is the most common configuration for this setup.

Category Item Specification Notes & Ratings
Receptacle 15A Duplex TR Receptacle (e.g., Leviton 5262) Must be Tamper-Resistant (TR) per NEC 406.12
Switch 15A Single-Pole Toggle/Rocker (e.g., Leviton 1451) Standard single-pole; two brass terminals, one green
Power Feed Cable 14/2 NM-B (Romex) with Ground Use 12/2 NM-B if the circuit breaker is rated 20A
Switch Loop Cable 14/3 NM-B (Romex) with Ground Required for modern NEC switch loops to carry neutral
Connectors WAGO 221 Lever-Nuts or Ideal Wire-Nuts Rated for 600V; lever-nuts preferred for solid copper
Testing Tools NCVT (Fluke 1AC-II) & Digital Multimeter CAT III or CAT IV rated for residential mains

Mains Safety Protocol

⚠️ WARNING: LETHAL VOLTAGE PRESENT

Working on 120V AC mains circuits carries a risk of fatal electrocution and arc flash. You must follow a strict de-energize-and-verify protocol. Never assume a wire is dead based on wall switch position or breaker labeling.

  1. Turn off the branch circuit breaker at the main service panel.
  2. Apply a lockout/tagout device to the breaker if you are not the only person in the home.
  3. Test your Non-Contact Voltage Tester (NCVT) on a known live circuit (like an extension cord) to verify the tester's battery is functional.
  4. Test all wires in both the switch box and receptacle box with the NCVT.
  5. Verify dead with a multimeter set to AC Volts (V~) by measuring between the black hot wire and the bare ground wire. It must read 0.0V.

Note: Local AHJ (Authority Having Jurisdiction) rules may require a licensed electrician for new circuit runs or panel work. This guide reflects NEC-style guidance for device replacement and standard switch loops.

Step-by-Step: Wiring a Switched Receptacle (Half-Hot)

This procedure assumes power enters the switch box first via 14/2 NM-B, and a 14/3 NM-B cable runs from the switch box to the receptacle box. This is the modern NEC-compliant method that ensures a neutral wire is present in the switch box (required for smart switches).

  1. Prepare the Cables: Strip 3/4 inch of insulation from all individual conductors. Ensure the NM-B sheathing extends at least 1/4 inch into the electrical box.
  2. Land the Grounds: In the switch box, connect the bare copper ground from the 14/2 feed, the bare copper ground from the 14/3 switch loop, and a 6-inch bare copper pigtail together using a WAGO lever-nut. Connect the other end of the pigtail to the green grounding screw on the switch. Repeat this grounding process in the receptacle box, landing the pigtail on the green grounding screw at the bottom of the receptacle.
  3. Wire the Switch Box Neutrals: Connect the white neutral wire from the 14/2 power feed directly to the white neutral wire of the 14/3 switch loop using a WAGO lever-nut. Do not connect these to the switch. Push this bundle neatly into the back of the box.
  4. Wire the Switch Hot Terminals: Connect the black (always-hot) wire from the 14/2 power feed to the bottom brass screw on the single-pole switch. Connect the red (switched-hot) wire from the 14/3 switch loop to the top brass screw on the switch. (Note: On standard single-pole switches, the two brass screws are interchangeable; line/load orientation does not matter).
  5. Break the Receptacle Tab: Take your 15A duplex receptacle and locate the small metal connecting fin (tab) on the side with the brass screws. Using needle-nose pliers, grip the tab and wiggle it back and forth until it snaps off. This physically isolates the top outlet from the bottom outlet. Leave the silver-side tab completely intact.
  6. Wire the Receptacle Neutrals and Switched Hots: In the receptacle box, connect the white neutral wire from the 14/3 cable to either of the silver screws on the receptacle. Connect the black (always-hot) wire from the 14/3 cable to the top brass screw. Connect the red (switched-hot) wire from the 14/3 cable to the bottom brass screw.
  7. Secure and Close: Carefully fold the wires into the boxes using a clockwise loop pattern to prevent pushing wires off terminals. Mount the devices with the provided 6-32 machine screws, ensuring the yoke sits flush against the drywall or plaster ear.

Verify and Test Sequence

Do not plug in any expensive electronics until you have verified the wiring with a meter. Restore power at the breaker panel.

  1. Set your digital multimeter to AC Volts (V~ or the 'V' with a wavy line).
  2. Insert the black probe into the top slot (hot) of the receptacle and the white probe into the bottom slot (neutral) of the top outlet. Expected reading: 114V to 126V AC. This confirms the always-hot half is functioning.
  3. Move the black probe to the bottom outlet's hot slot (with the wall switch in the OFF position). Expected reading: 0.0V to 0.5V AC (phantom voltage is normal).
  4. Toggle the wall switch to the ON position while keeping the probes in the bottom outlet. Expected reading: 114V to 126V AC. The meter should register voltage within 0.5 seconds of the switch click.
  5. Test the ground path by measuring from the top hot slot to the bare ground wire or the metal cover plate screw (if using a metal box). It must read line voltage (~120V).

The Most Common Botch (And Its Symptom)

The single most frequent mistake when wiring a switched plug is failing to break the brass hot-side tab on the receptacle.

The Symptom: You wire everything perfectly, turn on the breaker, and find that both the top and bottom outlets are constantly powered. When you flip the wall switch, it clicks, but absolutely nothing changes. The lamp plugged into the bottom outlet stays on regardless of the switch position.

The Physics: The brass tab is a continuous strip of conductive metal linking the top and bottom brass screws. If you leave it intact, the always-hot black wire feeds the top screw, travels across the unbroken brass tab, and back-feeds the bottom screw. The red switched-hot wire from the switch is essentially fighting a losing battle against the direct always-hot feed. To fix this, turn the breaker back off, pull the receptacle out, and snap off the brass tab.

A Worse Botch: Accidentally breaking the silver (neutral) tab. If you break the silver tab but only attach one white neutral wire, the outlet half without the neutral connection will simply be dead (an open circuit). While not a fire hazard in this specific 14/3 topology, it will cause confusion and require pulling the device back out to re-seat the wire or jumper the neutral side.

Frequently Asked Questions

Can I Wire a Switch and an Always-On Outlet on the Same Circuit?

Yes, and this is exactly what the half-hot configuration achieves. The 14/3 cable carries both an unswitched hot (black) and a switched hot (red) to the same duplex receptacle yoke. Both halves share the same 15A or 20A branch circuit breaker. Just ensure the total continuous load on the entire circuit (lights, switched lamps, and always-on devices) does not exceed 80% of the breaker rating (12A for a 15A breaker, 16A for a 20A breaker).

What If I Actually Need to Wire a Switch to a Male Cord Plug?

If your search intent was literal—wiring an inline switch to a male cord cap (plug top) for a DIY lamp or tool—you are working with flexible cord (like SJOOW or SVT), not NM-B Romex. For a 120V inline switch, you must use a 3-prong plug to maintain the equipment grounding path. The hot wire (usually black or smooth insulation) routes through the inline switch, while the neutral (white or ribbed insulation) and ground (green/bare) bypass the switch and terminate directly at the plug prongs. Never switch the neutral leg, as this leaves the appliance energized even when turned off, posing a severe shock hazard during bulb changes or repairs.

Does the 120V Switched Outlet Require a Special Breaker?

Standard 15A or 20A thermal-magnetic breakers are perfectly fine for this setup. However, depending on your local jurisdiction and the room where the outlet is installed, you may need an AFCI (Arc Fault Circuit Interrupter) breaker. Under recent NEC articles (210.12), AFCI protection is required for almost all 120V, 15A and 20A branch circuits supplying outlets in dwelling unit bedrooms, living rooms, and hallways. If you are upgrading an older home, check with your local inspector regarding AFCI retrofit requirements.

Why Does My Smart Switch Need a Neutral Wire in the Box?

Traditional mechanical toggle switches simply break the physical connection of the hot wire; they require zero standby power. Smart switches (like the Lutron Caséta or Kasa KS200) contain internal Wi-Fi radios, relays, and microcontrollers that must remain powered 24/7 to listen for app commands or voice assistant triggers. To complete this low-power internal circuit, the smart switch needs a constant line (hot) and a constant neutral. This is precisely why the modern 14/3 switch loop method detailed in this guide is superior to the old-school 14/2 "white-as-hot" method, which leaves the switch box without a true neutral wire.