⚠️ MAINS VOLTAGE HAZARD: This procedure involves 120V AC mains wiring. Before opening any junction box, turn off the circuit breaker at the main panel and apply a lockout/tagout device. Verify the circuit is dead using a CAT III or CAT IV rated non-contact voltage tester and a digital multimeter. If you are not comfortable working with live panels or your local jurisdiction requires it, hire a licensed electrician. NEC-style guidance is provided here; your local AHJ (Authority Having Jurisdiction) has final authority.

The 12/3 Secret: Why This Topology Requires Special Cable

Wiring a circuit where power enters the switch box first, travels to a light fixture, and then continues to an always-hot outlet is a classic residential scenario—often found in bedrooms, hallways, or finished basements. However, it contains a hidden trap for DIYers who only stock standard 2-wire cable.

When power enters the switch box, you have a constant line hot and a line neutral. The switch needs to send a switched hot to the light, but the downstream outlet requires a constant hot. If you use standard 12/2 NM-B (Romex) between the switch and the light, you only have two conductors to carry three distinct electrical paths (constant hot, switched hot, and shared neutral).

The solution is using 12/3 NM-B cable between the switch box and the light box. This gives you the Black wire for the constant hot feed to the outlet, the Red wire for the switched hot to the light, and the White wire for the shared neutral. This configuration also perfectly satisfies the National Electrical Code (NEC) requirement for a neutral conductor to be present at the switch location for future smart switch upgrades.

Circuit Specifications and Cable Mapping

Modern NEC guidelines (specifically Article 210.52) require 20-ampere general-purpose receptacle circuits in most dwelling unit living spaces. Therefore, this guide specifies 12 AWG copper wire on a 20A breaker, rather than the older 14 AWG / 15A standard.

Cable Segment Cable Type Black Wire Function Red Wire Function White Wire Function Bare/Green Wire
Panel to Switch Box 12/2 NM-B Line Hot (120V) N/A Line Neutral Equipment Ground
Switch Box to Light Box 12/3 NM-B Constant Hot (Feed to Outlet) Switched Hot (Load to Light) Shared Neutral Equipment Ground
Light Box to Outlet Box 12/2 NM-B Constant Hot (Feed to Outlet) N/A Shared Neutral Equipment Ground

Tools and Materials Checklist

Do not substitute wire gauges or device ratings. Using a 15A receptacle on a 20A breaker is a direct code violation and a fire hazard.

  • Wire: 12/2 NM-B (Yellow jacket) and 12/3 NM-B (Yellow jacket with Red wire). Southwire or Cerro brand.
  • Breaker: 20A Single-Pole (e.g., Square D HOM120 or Eaton BR120).
  • Switch: 20A Single-Pole Toggle (e.g., Leviton 5262-2W). Note: A 20A switch is used here to match the 20A circuit rating, though 15A switches are permitted if the lighting load is under 15A.
  • Receptacle: 20A Duplex Receptacle (e.g., Leviton 5362-W). Look for the T-shaped neutral slot on the face.
  • Wire Connectors: Ideal 34 Yellow (for 3x 12 AWG) and Ideal 74B Orange (for 4x 12 AWG) wire nuts.
  • Strippers & Cutters: Klein Tools 11055 (strips 10-18 AWG solid wire cleanly without nicking the copper).
  • Torque Screwdriver: Set to 14 in-lbs (standard for most 12 AWG side-wire or back-wire clamp terminations).
  • Tester: Fluke 117 True-RMS Digital Multimeter and a CAT III Non-Contact Voltage Tester (NCVT).

Step-by-Step Termination Guide

Strip all NM-B jackets back to leave at least 1/4 inch of jacket inside the box. Strip individual wire insulation to exactly 3/4 inch for side-wiring or to the strip gauge on the back of the devices. Never leave exposed bare copper outside the terminal screw head.

Step 1: The Switch Box (Line In, 12/3 Out)

  1. Grounds: Bundle the bare copper from the 12/2 Line, the 12/3 Load, and a 6-inch 12 AWG pigtail. Secure with a Yellow wire nut. Terminate the other end of the pigtail to the Green ground screw on the switch.
  2. Neutrals: Connect the White wire from the 12/2 Line directly to the White wire of the 12/3 Load using a Yellow wire nut. Do not land a neutral on the standard single-pole switch. Cap the spare neutral pigtail if your switch has a neutral terminal (for smart switches).
  3. Line Hot: Connect the Black wire from the 12/2 Line to a 6-inch 12 AWG black pigtail. Land the other end of this pigtail on the Bottom Brass screw (Line/Hot) of the switch.
  4. Constant Hot Feed: Take the Black wire from the 12/3 Load and connect it to the same bundle as the Line Hot (using an Orange wire nut for 4 wires: 12/2 Black, pigtail, 12/3 Black, and the spare pigtail if needed). This ensures the downstream outlet gets constant, unswitched power.
  5. Switched Hot: Land the Red wire from the 12/3 Load on the Top Brass screw (Load) of the switch.

Step 2: The Light Box (12/3 In, 12/2 Out, Fixture)

  1. Grounds: Bundle all bare copper wires (12/3 in, 12/2 out, and fixture ground). Secure with a wire nut and attach a pigtail to the metal box (if metal) or the fixture canopy ground screw.
  2. Constant Hot Pass-Through: Connect the Black wire from the incoming 12/3 directly to the Black wire of the outgoing 12/2 using a Yellow wire nut. Do not connect this to the light fixture.
  3. Switched Hot to Light: Connect the Red wire from the incoming 12/3 to the Black (or Blue) lead of the light fixture using a Yellow wire nut.
  4. Shared Neutral Bundle: Connect the White wire from the 12/3, the White wire from the 12/2, and the White lead from the light fixture together using an Orange wire nut (3 wires).

Step 3: The Outlet Box (12/2 In)

  1. Ground: Terminate the bare copper wire to the Green screw on the 20A receptacle.
  2. Neutral: Terminate the White wire to the Silver screw (Neutral) on the receptacle. Ensure the wire is tucked neatly behind the device, not under the yoke.
  3. Hot: Terminate the Black wire to the Brass screw (Hot) on the receptacle. The T-shaped slot on the face will correspond to this side.

The Most Common Botch and How to Avoid It

The 'Switched Outlet' Mistake: The most frequent error in this topology is attempting to use 12/2 NM-B between the switch and the light because 12/3 was not purchased. If you do this, you are forced to send the switched hot out on the black wire and the neutral on the white wire. When that cable reaches the light box, you have no constant hot left to feed the downstream outlet. If you daisy-chain the outlet from the light, the outlet will turn on and off with the light switch. If you try to re-route to fix it, you will inevitably create a 'switch loop' that lacks a neutral at the switch box, violating NEC 404.2(C).

Always pull 12/3 from the switch to the first light when an always-hot receptacle follows the light on the same circuit. The extra cost of the red wire saves hours of troubleshooting and ensures code compliance.

Verify and Test Before Energizing

Before pushing the devices into the boxes and screwing on the cover plates, perform a continuity and short-circuit check with your multimeter set to the Ohms (Ω) setting. OSHA electrical safety guidelines emphasize verifying dead circuits and checking for faults before re-energizing.

  1. Short Circuit Check: Place one probe on the bundled grounds and the other on the bundled neutrals at the panel. The reading must be infinite (OL). If it reads near 0 Ω, you have a ground-to-neutral fault somewhere in the boxes.
  2. Hot-to-Ground Check: Place one probe on the main breaker's load terminal (Hot) and the other on the ground bar. Reading must be infinite (OL).

Once verified, tuck the wires neatly (grounds in the back, neutrals on the left, hots on the right), mount the devices, and turn on the 20A breaker. Perform the live voltage tests:

  • At the Outlet (Switch OFF): Measure Hot (Brass) to Neutral (Silver). Expected: 114V - 126V. Measure Hot to Ground. Expected: 114V - 126V.
  • At the Light Socket (Switch OFF): Measure center tab to shell. Expected: 0V.
  • At the Light Socket (Switch ON): Measure center tab to shell. Expected: 114V - 126V.
  • At the Switch Box (Cover off, extreme caution): Measure Line Hot to Neutral. Expected: 120V. Measure Load (Red) to Neutral. Expected: 120V (only when switch is ON).

If the outlet reads 0V but the light works, you likely failed to splice the 12/3 Black wire to the 12/2 Black wire at the switch box, leaving the outlet without a constant hot feed. If the light never turns on but the outlet works, check that the Red wire is securely landed on the switch's Load terminal and the light fixture's hot lead.