If you’ve ever had to remodel a house that required opening up a wall or replacing built-in lighting fixtures then chances are you’ve noticed a full spectrum of colored wiring inside your walls. Most of the time, when you bring in a professional electrician for a major wiring job, they handle all these various color codes deftly with their training.
Though what if you’re handling a home renovation or repair on your own, and you run into a moment when you need to work with the wires in your walls to do something like move an outlet, take away an outlet or install a last-minute light fixture?
The smart money here is to play it safe and call in a professional electrician. If the wiring job is minor or you’ve got the wherewithal to go it alone, you’ll need to know what the wiring color codes mean and why they’re in place the way they are.
Who Is In Charge of Wiring Color Codes?
Different countries have their own electrical systems and wiring color codes associated with them. In the United States, the National Electrical Code (NEC) is the standard used in homes, office buildings, and commercial properties. To the north, Canada has their own Canadian Electric Code (CEC), which is very similar.
This is done by design to make it easier for travelers and international businesses based in North America to use the same electrical systems and devices. If you were to travel abroad the electrical systems start to vary wildly.
Decoding The Color of Electrical Wiring
For the purposes of this article, we’ll be looking specifically at the United States NEC wiring code for AC electricity. This is by far, the most common type of electrical current used in US homes and businesses. There might be some minor variations in Canada, but by and large, they are nearly identical to the NEC wiring code.
Black Electrical Wires
In the US NEC wiring code, the black wire is a hot or live wire. It brings current from the electrical supply, such as the circuit breaker panel to the various outlets, lighting fixtures, and residential appliances. When tackling a DIY wiring project, you need to keep in mind that live wires always carry a charge and must be disconnected at the breaker box.
Red Electrical Wires
In the US NEC red color coating also indicates a live wire. A lot of residential electrical outlets are single phase which operates at 120 Volts with a single red wire. However, a high-voltage outlet or device that uses 240 Volt current will be powered by multiple hot wires. These two- or three-phase wiring systems often have both a red wire and a black wire together.
Working with 240 Volt electricity is far more dangerous than 120. If you attempt to handle a DIY 240 Volt wiring project on your own, you need to be mindful that both the red and black wires are hot and you absolutely need to disconnect both of them at the circuit breaker before attempting to work with the wires.
Red Wires in Smoke Detectors
In modern-day smoke detectors, you often find red wires being used to interconnect smoke detectors. This is more common in newer commercial properties with hardwired smoke detectors and fire management systems.
Yellow & Blue Electrical Wire
Yellow and blue wires aren’t as common in homes and commercial properties as red and black. However, the NEC uses yellow and blue color codes to also indicate live wires. They are more common in three-phase applications where blue is used to represent the third phase. These are color codes that might also be used for wires that are controlled by a switch.
In the case of yellow wires, you often see them being used in light switches that are connected to light fixtures as well as ceiling fans.
Gray & White Electrical Wires
The NEC assigns gray and white wires to be used for neutral wires. They are responsible for providing electricity with a return path to complete the circuit. Of course, this means that neutral wires are also carrying electrical current and can be just as dangerous as live wires if they aren’t treated with care.
Of the two white is the more common color for neutral connections in residential applications. However, some electrical systems do still use gray wires.
Bare Copper & Green Wires
Ground wire connections can be green or even bare copper wire depending on the application. Most of the time when you are working with an AC electrical system a green wire, green with yellow stripes, or a bare copper wire, indicates a protective ground wire. With bare copper wires being more common in commercial properties.
If you have an older home that was built before 1960, the wiring code of the time didn’t require grounded outlets, and most homes from this era and earlier are dangerously devoid of ground wires.
The fire and electrocution risk in buildings without grounded electrical systems is very high. If you own a property like this, you should strongly consider having a professional electrician upgrade your wiring to meet modern electrical codes.
Conclusion
The NEC wiring code used in the United States is designed to provide property owners and professionals with a unified understanding of each wire’s purpose.
Black and red wires are used to indicate live electrical wires that are coming directly from your circuit panel or fuse box. You might find them being used together in 240 Volt applications. To safely work on these wires they need to be disconnected at the circuit panel.
Yellow and blue wires are also used as live wires. Though you usually find them in three-phase applications or being used in switches that run lights and/or ceiling fans.
Gray and white wires are color coded to indicate neutral wires. Just bear in mind that they are still carrying a live current to complete the circuit and should not be worked on while the circuit breaker or fuse is active.
Bare copper wires, green wires, or green wires with a yellow stripe are used as ground wires. They are more common in modern buildings from the 1960s and newer.
If you have an electrical wiring job, and you aren’t sure what the color-coding system means, the wisest move is to call in a professional electrician. Improper wiring jobs can pose a serious electrocution danger, as well as a fire risk that might not be covered by your insurance.









