Switch – How to connect the two cables entering a switch box for a light

switch

I removed the original light fixture from the side wall which was not connected to a light switch but had a button that turned the light on and off on the fixture itself. I took the original wire in the wall and extended it further down the wall where I had made a new box for a light switch. From that new box I took a second cable and wired up the wall over the ceiling into a brand new light fixture. Now I have two separate cables at the swtich box to connect into a single light swtich. Since the single light switch has only two screws, how do I connect the double white and black cables to it?

Best Answer

Short answer: in the switch box, the blacks go to the switch terminals (not the green one - that's for the bare ground) and the whites are spliced together with a wire nut or other connector.