We are trying to install a ceiling light in a new build home. The wires are all there and connected to a single pole switch, but the ceiling box has 4 wires(black, white, red and ground) and the switch only has red, black and ground attached. What wires do I use for the light fixture itself? Usually it’s white to white, black to black and ground to screw, but the red wire is throwing me off since there is only one switch for this light. Any help would be great!

  • Can you post a photo of the inside of the light fixture box? – ThreePhaseEel Apr 1 '18 at 18:16
  • Sounds like it’s set up for ceiling fan/light combo. Post pics of the inside of both boxes (ceiling and switch). – Tyson Apr 1 '18 at 19:27
  • Also, which room are you installing this light in? – ThreePhaseEel Apr 1 '18 at 19:33
  • (1) Do you want to install a standard mechanical switch or one of the new switches which requires a neutral connection? (2) Does the line power cable enter the circuit in the light fixture box or in the switch box? – Jim Stewart Apr 1 '18 at 22:45

TLDR: Because NEC 404.2 requires a neutral be brought to all "switch loops" for future smartswitch use.

Color codes are pretty weak in North American wiring. You can go by color somewhat, but you're going to have to know what you're looking at.

I don't like that system because you have to open up 3 boxes and stare at them for 5 minutes to figure out what you're looking at. I like a much simpler system, and that's why I own 10 colors of tape. I'm not stupid, it's just too much workload.

Grounds all just connect in a big web. They are the only wires that do. Neutrals do not. Ignoring grounds, wires have functions, I give the functions names, and I have an "ideal" color I like to make them, either direct or with tape tagging. Certain functions are in certain places depending on where you are.

Unfortunately most house wiring is done with multiconductor cable, which comes in fixed colors: black/white... black/white/red... whether you like it or not. Hence the tape.

Here are the color codes I prefer:

  • hot (works much better if you choose black)
  • neutral (Code absolutely requires neutral be white*)
  • switched-hot (in a perfect world: red but not common)

Incoming supply has two wires: hot and neutral.

A lamp needs two wires: switched-hot and neutral. (assuming you want it switchable). If it isn't that way, mark the wire with tape. When a wire has two ends, mark both ends the same.

A switch needs three wires: always-hot because hot has to come from somewhere. Switched-hot so the switch can switch it! Neutral (white) which must be present per NEC 404.2. Old style mechanical switches don't need it, but smart switches do, hence the requirement.

Old style switch loops did weird things, like make the white (taped black) the always-hot and black the switched-hot. That's no longer legal per 404.2.

Your lamp may come with a black hot cable. Since you want the lamp on some of the time, I would wrap the wire with red tape to mark it as a switched-hot.

See what I've done? Everything is properly color-coded by function and you just go red to red, white to white etc.

* White can also be gray, if you're willing to pay a fortune for custom Romex. Don't laugh, one Nevada builder uses pink Romex and has an understanding with every scrapyard and building inspectors to BOLO; any pink Romex not at one of his houses is stolen.


Thats sounds against code. You should have red or black, white ground in the switch box. The red or black wire are for your fan/light combo. You should have another switch close by that allows for switching the red wire.

Since its a new home you should call you contractor in to fix that, that should not have passed inspection.

See point 3: http://homeguides.sfgate.com/wire-fan-light-black-white-blue-wires-38126.html

  • 1
    Many times I will throw in a 12-3 to provide a spare for a fan or other future wiring , this is totally code compliant. What is needed at a minimum a green or bare ground wire unless conduit, a neutral can be grey or white, last the hot or hots, any other color than green, white ,gray. I have run up to 5 switches in a single room on a single circuit, in some cases all the hotts were black others I had enough different colors to for each switch to have a specific color. – Ed Beal Apr 1 '18 at 19:03
  • 1
    This actually sounds like it's a new-style loop for a single switch, as per NEC 404.2(C)... – ThreePhaseEel Apr 1 '18 at 19:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.