House Electrical Wiring Colors

If you live in the United States and your home was built after the 1940s (or your outdated wiring has since been updated), you can expect the electrical wires behind your walls to follow certain color standards. Specific colors identify each wire’s function in a circuit. Learning these residential electrical color codes before attempting any type of do-it-yourself (DIY) electrical system repair is critical.


Just remember, all electrical wires could carry a current at some point, so treat every color wire with equal caution. If you have any hesitations, leave electrical installation and upgrades or electrical repairs to one of our qualified professionals.

Home Electrical Wiring Codes

Person working on home electrical wiring


Black Electrical Wires

This color of wire is used to transfer power to switches and outlets in all types of circuits. Also, black wires are often used as switch legs in circuits, which is the connection linking a switch to the electrical load. Consider all black wires to be live at all times.

Red Electrical Wires

In 220-volt circuits, red wires are the secondary live wires. Like black wires, they can also be used in switch legs. In addition, red wires are used to connect hardwired smoke detectors to the home’s power system. It’s possible to link two red wires together or a red wire to a black wire.

Blue and Yellow Electrical Wires

While wires in these colors carry power, they are not used in typical outlet wiring. Instead, blue and yellow wires are used as the live wires pulled through a conduit. For example, you might see yellow wires as switch legs to ceiling fans, structural lights, and outlets paired with light switches. Then, blue wires are most often used by travelers for three- or four-way switches (for instance, if you have switches at the top and bottom of a staircase that control the same light, that’s a three-way switch).

White and Gray Electrical Wires

If you find wires in either of these colors, you’ve located the neutral wires. White is most commonly used, but gray wires serve the same function. The purpose of a neutral wire is to connect to the neutral bus bar, a conductive piece of metal within an electrical panel that attracts the electric current for distribution throughout the house. White and gray electrical wires can only be connected. While they’re called “neutral” wires, they may still carry a current, especially if the current load in the circuit is unbalanced, so handle these wires cautiously.

Green Electrical Wires

The purpose of green wires is to ground an electrical circuit. They connect to the grounding terminal in an outlet box and run to the ground bus bar in an electrical panel. In this way, green wires act as a failsafe, giving electricity a place to escape into the ground if a live wire within the circuit touches metal or something else conductive. Green wires can only connect to other green wires. Remember, if there’s a fault somewhere in your circuit, green wires could be live, so treat them with caution.

Trust Mr. Electric for Home Electrical Wiring Installations and Upgrades

With this house electrical wire colors guide, you hopefully have a better idea of what wires accomplish which tasks. You may feel comfortable completing simple electrical upgrades yourself, but you can trust the service professionals at Mr. Electric® to handle the job for you.

To get a quote from your local Mr. Electric for your upcoming wiring project, you can schedule an appointment online or call us at (844) 866-1367.

This blog is made available by Mr. Electric for educational purposes only to give the reader general information and a general understanding of the specific subject above. The blog should not be used as a substitute for a licensed electrical professional in your state or region. Check with city and state laws before performing any household project.