Wiring – electrical wiring concern

wiring

Want to replace outdoor ceiling light fixture.
When I removed the old fixture I pulled down all the wires from the junction box . I did not pay attention as to how the wires were connected.

Came to find out, there were 2 feeds from the box. I now am looking at 2 sets of white, black, and ground wires.

My new fixture has 1 white, 1 black and 1 ground.

One wall switch controls this light.

Unsure of how to reconnect the wires. Please help

Best Answer

This answer is for North America, with U. S. wiring colors.

Do not attempt this unless you are confident you can learn the path and purpose of every wire. You should use both a continuity tester and a voltage detector, such as a small light bulb, that draws some actual power from the circuit under test.

You are looking at a ceiling junction box with three cables, each with a ground (bare, green, or green/yellow), white, and black wire. Most likely BUT TEST TO MAKE SURE one cable is the power source, one goes to the switch, and one continues on to deliver to another junction box.

You need to figure out which cable is which.

ceiling junction box with all the wires pulled out and not labeled

First -- with the power on, carefully test each black & white pair for the presence of line voltage. One of these pairs will light your lamp; the other two will not. If you get any other result, stop and call an electrician. Remember which pair has power. Turn off the circuit breaker again.

Next -- use your continuity tester to find which cable goes to the switch. You don't need to disconnect the switch for this, but it's easier if you turn it off.

The remaining cable continues to the next junction box and provides power to another part of your house. You should have noticed by now that some of your outlets and lights stopped working when you ripped these wires apart. If you do not see this condition, stop and call an electrician. Use your continuity checker to prove that this cable is connected to the dead outlets and lights.

When you are very confident that you know what loads are powered by this cable, connect it to the power cable, white to white and black to black, and flip on the circuit breaker. Check that the dead outlets and lights are now working. If you get any other result, stop and call an electrician.

Turn off the circuit breaker.

Now connect all the grounds together. I like to include a connection to the junction box, if it is metal.

Connect the white wire from the switch to the black wire from the fixture. Mark both ends of this white wire with colored paint or tape.

Connect all the remaining white wires together.

Connect all the remaining black wires together.

You should end up wired like this:

typical feed through ceiling fixture circuit