Standard US light fixture wire colors follow a strict code: black is hot, white is neutral, and green or bare copper is ground. When connecting a new fixture to a standard ceiling junction box, you will match the fixture's black wire to the ceiling's black (hot) wire, the fixture's white wire to the ceiling's white (neutral) wire, and the fixture's ground wire to the ceiling's bare copper or green ground wire. If your fixture uses a flat 'zip cord' rather than discrete wires, the smooth side is hot (black) and the ribbed or striped side is neutral (white).
While matching colors seems straightforward, older homes, switch loops, and multi-function ceiling fans introduce variations that can lead to tripped breakers or severe shock hazards if misidentified. This guide provides the exact terminal mappings, wire gauge requirements, and testing procedures to wire a hardwired light fixture safely and to code.
Standard Light Fixture Wire Colors and Terminal Mapping
Before making any splices, identify the conductors on both the fixture and the ceiling box. The table below maps standard NEC-compliant wire colors to their termination points. Note that while hardwired splices use wire connectors (wire nuts or lever nuts), fixtures with integrated sockets or terminal blocks will use specific screw colors.
| Fixture Wire Color / Marking | Ceiling Box Wire Color | Termination Point / Screw | Function & Code Notes |
|---|---|---|---|
| Black (or Smooth insulation) | Black (or Red) | Brass / Gold Screw (if keyed socket) | Hot (Line): Carries 120V AC from the switch. NEC requires this to land on the center contact of a socket, never the threaded sleeve. |
| White (or Ribbed/Striped insulation) | White (or Gray) | Silver Screw (if keyed socket) | Neutral: Completes the 120V AC circuit. Must connect to the threaded sleeve of the socket to prevent shock hazards. |
| Green, Bare Copper, or Yellow/Green | Bare Copper or Green | Green Ground Screw / Metal Box | Equipment Ground: Provides a low-impedance fault path. Must bond to the metal canopy and the ceiling box ground pigtail. |
| Blue (Common on ceiling fans) | Red (or Black with wire nut) | Spliced to second switch leg | Switched Hot (Light Kit): Used for independently switched lights on ceiling fans. Connects to the secondary hot wire in a 3-wire (14/3 or 12/3) ceiling drop. |
| White with Black Tape/Paint | White with Black Tape | Brass / Gold Screw | Re-identified Hot (Switch Loop): Used as a hot return from a wall switch. Must be re-identified per NEC 200.7(C)(2). |
Tools, Materials, and Load Specifications
A proper installation requires more than just twisting wires together. The mechanical integrity of your splice and the ampacity of your conductors dictate the safety of the circuit.
Wire Gauge and Device Ratings
- Wire Gauge: Standard lighting circuits are 15 Amps, requiring a minimum of 14 AWG copper (NM-B or THHN). If your lighting circuit is shared with receptacles on a 20 Amp breaker, the branch wiring is 12 AWG. You can splice a 14 AWG fixture pigtail to a 12 AWG ceiling wire, but never put 14 AWG wire on a 20 Amp breaker.
- Device Rating: Check the fixture's maximum wattage rating. Standard incandescent sockets are typically rated for 60W max. Modern LED integrated fixtures draw between 15W and 40W total. A 15A/120V circuit can theoretically handle 1,800W (1,440W for continuous loads), meaning you can daisy-chain dozens of LED fixtures without approaching the ampacity limit.
Required Tools and Materials
- Non-Contact Voltage (NCV) Tester: Fluke 1AC-II or Klein NCVT-2 (Cat III or IV rated).
- Digital Multimeter: For verifying exact AC voltage and continuity (e.g., Fluke 117 or equivalent).
- Wire Strippers: Klein 11055 (calibrated for 14 and 12 AWG solid copper).
- Lineman's Pliers: For twisting solid conductors before capping.
- Wire Connectors: Wago 221-413 lever nuts (highly recommended for mixing 12 AWG branch wire with 18 AWG fixture pigtails) or yellow winged wire nuts (rated for three 14 AWG wires).
The Switch Loop Trap: Identifying Older Home Wiring
The most common reason DIYers fail when matching light fixture wire colors is encountering a legacy 'switch loop.' In homes wired before the 2011 NEC update, electricians often ran 2-wire cable (black and white) from the ceiling box down to the wall switch.
In this configuration, the white wire is actually carrying hot power down to the switch, and the black wire is carrying the switched hot back up to the light. If you blindly connect the fixture's white neutral wire to the ceiling's white wire in this scenario, you will create a dead short the moment you turn on the breaker.
Step-by-Step Ceiling Box Wiring Procedure
- De-energize and Verify Dead: Flip the breaker to OFF. Place your NCV tester against the switch plate and the ceiling fixture. Remove the fixture canopy. Touch the NCV tester tip to the black and white wire insulation. It must remain silent/unlit.
- Prep the Ceiling Wires: Use your wire strippers to ensure the ceiling's black, white, and bare copper wires have exactly 3/4 inch of exposed, clean copper. If the wires are nicked or heavily oxidized, snip them back and re-strip.
- Bond the Equipment Ground (Green/Bare to Bare): Connect the fixture's green or bare ground wire to the ceiling's bare copper ground wire. If the ceiling box is metal, you must also pigtail a ground wire to the box's internal ground screw. Secure with a Wago lever nut or wire nut. Never leave the ground wire capped and floating inside the canopy.
- Splice the Neutral (White to White): Connect the fixture's white wire (or ribbed zip-cord side) to the ceiling's white neutral wire. Push the stripped ends into a Wago 221-412 lever nut and flip the levers down. Give each wire a firm tug to ensure mechanical retention.
- Splice the Hot (Black to Black): Connect the fixture's black wire (or smooth zip-cord side) to the ceiling's black hot wire (or the re-identified white wire in a switch loop). Secure with a lever nut.
- Fold and Mount: Carefully fold the wires into the back of the junction box, pushing the wire nuts into the deepest corners to prevent pinching. Align the fixture canopy with the mounting bracket and secure with the provided machine screws.
Verification, Testing, and the Most Common Botch
Do not skip the verification step. A visual inspection cannot confirm proper polarity or low-impedance grounding.
Expected Meter Readings
Before installing the bulbs and turning the breaker back on, perform a continuity check. Set your multimeter to the Ohms (Ω) / Continuity setting. Place one probe on the metal canopy of the fixture and the other on a known ground (like a metal water pipe or the panel ground bar if accessible). You should read less than 1.0 ohm, confirming the ground path is intact.
After installing the bulbs, turn the breaker ON and the wall switch ON. Set your multimeter to VAC. Measure between the hot slot of a nearby receptacle on the same circuit and the metal canopy of your new fixture. You should read 0V AC. If you read 120V, your ground is floating or broken—turn the breaker off immediately and re-check the ground splice.
The Most Common Botch: Hot/Neutral Reversal
The most frequent and dangerous mistake DIYers make is swapping the hot and neutral wires. Because AC current alternates direction, the light will still turn on and function perfectly if you connect the fixture's black wire to the ceiling's white wire, and vice versa. This creates a false sense of security.
The Symptom and Hazard: If the fixture utilizes a standard Edison screw socket (E26), the socket is 'keyed.' The center tab is designed for the hot wire, and the threaded outer sleeve is designed for the neutral. If you reverse the polarity at the ceiling splice, the threaded metal sleeve becomes energized at 120V. The light works fine, but the moment you reach in to change a burnt-out bulb and your knuckle brushes the metal threads, you will complete the circuit to ground and receive a severe, potentially lethal shock.
Always double-check your color mapping against the table above, and if you are ever in doubt about which ceiling wire is truly the neutral, use a multimeter to measure voltage to ground before making your final splices.
For more on NEC grounding and bonding requirements, refer to the EC&M Code Basics guide. For LED fixture load expectations and efficiency standards, consult the EPA Energy Star Lighting portal. Additional safety guidelines regarding electrical shock prevention can be found via the US Consumer Product Safety Commission.






