enter image description here

I'm dealing with a junction box for an outdoor patio wall sconce that has three separate sets of black/white/ground. House was just painted, and the old sconce was already taken off, so I had nothing to reverse-engineer. The junction box to the left of this one was "normal". This junction box looks like a "flux capacitor". 2 of the wire triplets are at the top left and right, and one at the bottom.

Any help figuring out how to appropriately wire a new sconce to this traffic jam of a junction box would be very appreciated. Thanks in advance!

  • Was there a light fixture at this box? Is there a nearby switch that controls the light? Is there another light fixture controlled by the same switch which controls this light? Are there two switches which control this light? Aug 28, 2017 at 21:30
  • 1
    With the wires separated as you have them in the picture, turn the breaker on and test each of the wires for voltage. What do you get? If there was a light there, then there was a switch that controlled this light, be sure to test the wires for voltage with the switch in both positions. Aug 28, 2017 at 21:44
  • Thanks Jim. I tested the wires separately with a basic voltage detector, you know, the pen one with the red and green light.
    – J. Russell
    Aug 30, 2017 at 1:44

2 Answers 2


Divide and conquer

First, tie all the grounds together with an additional 6" pigtail of ground (your next lamp will use this) and push all that into the back of the box.

Next, stick a wire-nut cap, and tape, each of the wires. You will need at least black and possibly red electrical tape.

You will also need a non-contact voltage tester, unless you want to get fancy with splicing wires to a lamp socket one at a time.

Hunt for the supply cable

Turn on the switch which controls this light. Now use the non-contact tester to sense for voltage on each of the wires. You should find it on one black wire. If two black wires are energized, or a white wire, that is trouble.

Now turn off the switch for this light. Does the power go away? We need to know that.

Now turn the switch back on. Has anything else in the house lost power?

Also is there another lamp meant to be switched by this same switch?

Black wire switches on/off with the switch

This one is easy. The black is a switched-hot. Mark it with 3-4 wraps of red tape. Since there's no other source of power, all the other blacks must also be switched-hots. Mark them with red tape also.

On your new lamp, mark the black (or brown) wire with red tape. If the lamp has a light blue wire, mark that white (in your mind if you don't have any white tape).

Nut all the white wires together. Nut all the red wires together. DONE!

Black wire is hot regardless of switch position

First, wrap black tape around the pair of wires as far back as you can, this is to mark them as the always-hot supply cable.

This will need a little more detective work. One of the two remaining pairs is actually a switch loop. The two wires are shorted out when the switch is on. It would have been neat if the last guy had marked it with tape, like he's supposed to, so look for that. Or if you have an ohmmeter, you can switch the power off, then test which white/black pair has infinity ohms with the switch off, and near zero ohms with the switch on.

If you have the new lamp, you can first tape its black (or brown) wire red, then attach the lamp's white to the supply's white (these are neutral), then pick a cable and connect its black to supply black and its white to lamp red, making a triangle of wires (with one set still dangling). Re-energize.

If working the switch causes this lamp to switch from off to full power, you have found your switch loop. De-energize and unhook it. Mark the switch loop's black wire with red tape (switched hot), and its white wire with black tape (always-hot). Pull the switch and mark the wires on that end the same way.

If it doesn't work, try the other cable. If neither one works, I am stumped, it's electrician time.

Now the question of the third cable

If it goes to another lamp that is meant to be switched with this one, then mark its black wire with red tape.

If it goes to supply continuous power to something else that is now dead, then leave the black wire black (or tape it black to reflect that you have identified it).

It has to be one of these two things.


Get some wire nuts and nut all the white wires together. Nut all the black wires together. Nut all the red wires together. DONE!

  • Thanks Harper! This is good stuff. This house was built in 1982, it's been extended on etc., and there is all kinds of eccentric wiring decisions that someone else made that I'm now trying to solve. A sconce was removed prior to me adding a new one, so I couldn't reverse engineer the connection. So I found myself flipping switches (there's a lot), trips back and forth across the house to the panel and of course testing wire back at the junction box. I'm now going to get a more advanced voltage meter, and get a friend over to help. Thanks for the advice Harper!
    – J. Russell
    Aug 30, 2017 at 2:32
  • Harper, I'm curious why you recommend a NC voltage tester (as opposed to the kind with two metal probes). Is this simply because the NC tester is safer/easier for a novice to use? Or is it better suited to this task since you don't need a path back to ground? I have tended to stop using my NC tester once I have open wires because I found it unreliable in various scenarios (i.e., when there is more than one live wire or a toggle wire on a three-way switch).
    – Stanwood
    Aug 30, 2017 at 2:35
  • @Stanwood lesser evil. I normally wouldn't recommend one but I'm out of options. I can't recommend leaving wires bare energized, and re-capping and re-taping throught seveal rounds of testing would be a bear. Aug 30, 2017 at 16:20

Was there a light fixture located at this box? If so, one of these cables is probably the incoming power, one is a cable which carries power further on and one is a "switch loop" to a switch which controls this light.

If there was a duplex receptacle in this box, and you have the duplex receptacle you removed from this box, examine it to see if the metal tabs which connect the two receptacles are intact on both sides. Report here what you see. Were there any short pieces of wire in the box or were all three cables connected to the duplex receptacle.

Assume that one of these cables (associated B, W, Gnd) is the line power in. With a volt meter or non-contact voltage tester determine which is hot. The black in that cable will be always hot when the breaker is on.

There are different possibilities for the other two cables. Probably when you test them for power you will find no power on either one. (If one of the other ones is also powered, report that and we can go from there.) One of the other two will probably go to another receptacle. The other one may go to a receptacle but probably would go to a light switch.


You have a non-contact voltage tester but not a volt-ohm-meter, right?

You determine which of the non hot wires goes to the switch as follows: With breaker off use a wire nut to connect the always hot black to either one of the other two black wires. Turn the breaker on and test the white wire that is in the same cable as the black you connected to. Flip the switch back and forth to see if the switch controls power at that white.

If it does, you have found the switch loop for the sconce fixture, and the other cable probably goes to a receptacle. If the switch does not control power to that white, then the black you connected to probably goes to a receptacle nearby either outside or inside. (Take your non-contact voltage tester and check the hot side of nearby receptacles, and confirm hot. This won't tell you anything at that point but will later.)

If the switch does not control the power at the first white, disconnect and reconnect the always on black to the other black, and test it's white for power with and without the switch on.

  • The pre-existing sconce was already pulled out by the contractors (per my request) who just Painted our house. The sconce just to the left of this one tied in easily, as it's junction box only had the necessary 3 wires. After testing all wires while flipping the same switch (and then all the other switches) that controls the neighboring sconce, none of the wires in the junction box we are discussing responded. One black wire stays hot all the time, one of them never got hot, and the third black is still in question. I'm probably going to seek out a pro, so I don't burn this place down.
    – J. Russell
    Aug 30, 2017 at 2:43
  • See edit to my answer. But I think it is a good idea for you at this point to call in a competent electrician. Aug 30, 2017 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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