AC plug wire colors are the standardized insulation hues applied to conductors inside a power cord or branch circuit to instantly identify their electrical role—hot, neutral, or ground. While the copper inside the wire doesn't care what color the plastic insulation is, the color coding dictates safety, National Electrical Code (NEC) compliance, and whether the threaded metal shell of a lamp socket becomes a lethal shock hazard. In a real circuit, swapping the hot and neutral wires won't stop an appliance from turning on, but it completely changes the safety profile of the installation by leaving internal components energized even when the device's power switch is turned off.
The most common mistake makers and DIYers make is confusing AC mains colors with DC electronics colors. In a 12V DC Arduino or automotive circuit, red is positive (hot) and black is negative (ground). In a standard US 120V AC circuit, black is hot, white is neutral, and green or bare copper is ground. Assuming black is "ground" in an AC plug because of your DC bench habits is a fast track to a severe shock.
The Core Standard: US (NEC) vs International (IEC) Colors
Before you strip a cord, you must identify the regional standard governing the plug. The US follows the National Fire Protection Association (NFPA) NEC guidelines, while Europe, the UK, and many other regions follow IEC 60446. Mixing these up when repairing an imported appliance or wiring an international power supply will result in a dead short or a tripped GFCI.
| Region / Standard | Hot / Line (Unearthed) | Neutral (Earthed) | Ground / Earth |
|---|---|---|---|
| US / Canada (NEC) 120V | Black | White | Green or Bare |
| US / Canada (NEC) 240V Split | Black & Red | White | Green or Bare |
| EU / UK / AU (IEC) | Brown | Blue | Green/Yellow Stripe |
What Reversing Colors Actually Changes in Your Circuit
Think of the hot and neutral wires as the supply and return pipes in a closed-loop heating system, while the ground wire is the emergency pressure relief valve that only opens during a fault. If you swap the supply and return (hot and neutral), the water still flows. Similarly, if you wire the Black (Hot) wire to the silver neutral terminal and the White (Neutral) wire to the brass hot terminal on a NEMA 5-15P plug, your 120V appliance will still operate perfectly.
So what changes? The polarity of the socket and the internal switching logic. In a standard table lamp, the physical switch is wired to interrupt the hot wire. If the plug is reversed, the switch now interrupts the neutral wire. The lamp turns off, but the entire socket—including the exposed metal threads where you screw in the bulb—remains energized at 120V AC. If you touch the threads while changing a bulb, your body becomes the path to ground. Correct AC plug wire colors ensure that the "wide" blade of the plug (neutral) always mates with the threaded shell of the socket, keeping it at 0V relative to ground.
Where You Meet This in Practice: Numeric Wiring Example
Let’s look at a real-world bench scenario: replacing a melted molded plug on a 120V, 12-amp bench grinder using a standard 14 AWG SJT (hard service) cord and a replacement NEMA 5-15P plug.
- Verify Ampacity: The grinder draws 12A. According to NEC Table 310.16 (60°C column for flexible cords), 14 AWG copper is rated for 15A. This is sufficient. If the grinder were a 16A continuous load, we would need to step up to 12 AWG (rated 20A) and use a NEMA 5-20P plug.
- Strip the Jacket: Carefully strip exactly 2 inches of the outer SJT jacket. Do not nick the inner insulation. Strip exactly 3/8 inch of insulation from the tips of the black, white, and green wires.
- The Yank-Test Length Trick: Cut the green (ground) wire slightly longer than the black and white wires. If the cord is violently yanked from the plug, the hot and neutral wires will pull out of their terminals first, but the ground will remain connected, ensuring the chassis stays grounded during a fault.
- Terminate:
- Black (Hot): Wrap clockwise around the Brass screw. Tighten until the lock washer is completely flat (approx. 12-14 in-lbs of torque).
- White (Neutral): Wrap clockwise around the Silver screw.
- Green (Ground): Wrap clockwise around the Green screw.
- Secure the Strain Relief: The cord clamp inside the plug must grip the outer SJT jacket, never the individual colored wires. Tighten the clamp screws evenly.
Decision Tree: Which Color Goes to Which Terminal?
Use this decision path to map your wires to the correct terminals based on the specific plug and cord standard you are holding.
| IF your plug/cord is... | THEN map these colors... | TO these terminals... |
|---|---|---|
| Standard US 120V (NEMA 5-15P or 5-20P) | Black, White, Green | Brass (Hot), Silver (Neutral), Green (Ground) |
| US 240V No Neutral (NEMA 6-15P or 6-20P) | Black, Red, Green | Brass (Hot 1), Brass (Hot 2), Green (Ground) |
| IEC C13 / C14 (Computer / Kettle Lead) | Brown, Blue, Green/Yellow | L (Live), N (Neutral), E (Earth) |
| Imported EU Cord (Schuko / CEE 7/7) | Brown, Blue, Green/Yellow | Line Pin, Neutral Pin, Earth Clip (Side) |
Default Recommendation: If you are wiring a standard US 120V replacement plug and want to eliminate terminal guesswork, buy the Leviton 5266-C (15A) or Leviton 5366-C (20A) industrial-grade plugs. These specific models physically stamp "BRASS", "SILVER", and "GRN" directly into the plastic next to the terminal screws, and feature deep funnel-shaped wire guides that prevent stray copper strands from causing short circuits.
Common Confusions and Troubleshooting Mistakes
Even experienced hobbyists trip over edge cases when dealing with AC plug wire colors. Here is how to troubleshoot the most frequent errors.
Why is my GFCI outlet tripping immediately when I plug in my custom-wired tool?
A GFCI measures the current difference between the hot and neutral wires. If it sees a variance of just 4 to 6 milliamps, it trips. If you accidentally pinched the green ground wire against the hot brass terminal inside the plug housing, or if a stray strand of the black wire is touching the ground screw, current is leaking to ground. Open the plug, trim the wire ends cleanly, and ensure no stray strands are escaping the terminal screws.
Can I use a 3-wire DC cable (Red, Black, Yellow) for an AC plug?
Electrically, copper is copper, and the electrons will flow. Legally and safely, absolutely not. NEC Article 200 requires the grounded (neutral) conductor to be white or gray, and Article 250 requires the equipment grounding conductor to be green, green with yellow stripes, or bare. Using DC colors for an AC mains plug will fail inspection, confuse the next person who works on it, and creates a severe shock risk if someone assumes the black wire is ground.
What do I do if the white neutral wire in an old cord has turned brown or yellow?
UV exposure, heat, and age can cause white SJT insulation to yellow or brown, making it look like a hot wire or an IEC line wire. Do not guess. Before cutting the old plug off, use a multimeter in continuity mode. Probe the wide neutral blade of the old plug and the wire in question. If it beeps, that is your neutral, regardless of its faded color. Mark it with a piece of white electrical tape or heat shrink before attaching it to the new silver terminal.






