Home Improvement Stack Exchange is a question and answer site for contractors and serious DIYers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a power source running from the light how do I connect it to a switch?

share|improve this question
Where do you live? The answer will depend on the local standards for wiring. – Niall C. Jul 26 '13 at 20:20

In general, a light switch breaks the hot wire lead when it is off and connects the hot wire lead when it is on. The neutral lead and the ground lead are never broken (that is, they are connected, either continuously, or through a permanent attchment, such as a wire nut).

Power source through switch box - When power comes through a box containing a light switch and continues on to the light, the switch is attached on one terminal to the black (or sometimes red) line from the power source and on the other terminal to the black (or red) line going on to the light. The white neutral from the source and the white neutral to the light are connected directly. The bare or green ground lines are also connected (but are not show).

power through switch

Power source directly to fixture - When you want to add a switch to a light that is "hot" at the fixture, you can run a new 3 wire cable from the fixture to a box containing the new switch. The black caries the "hot" to the switch, the red carries the hot back to the fixture. Both will be "hot" when the switch is on.

Most basic switches do not use or need the neutral line, but one is included for more complex switches that need to be powered. The ground line (green or bare) should be attached to the ground screw on the switch (but is not shown).

power to fixture

At the fixture, you connect the black "hot" coming in from the source to the new black wire running from the switch, and the red switch wire is connected to the black "hot input of the fixture.

These descriptions of wire color are US conventions. In other countries, the color pattern may vary, but the principles are the same.

THIS ANSWER HAS BEEN UPDATED: Thanks to mfarver for the correction about neutrals to switches.

share|improve this answer
Under the 2011 NEC all switch locations require a neutral (for lighting control electronics). Fixture to switch wiring as shown in the second figure is now done with a 3 + ground cable. Black is unswitched hot, red is switched hot and for a standard "dumb" switch the neutral will be capped inside the switch box. (There are exceptions to this rule, but it comes down to either using conduit or having access to the wiring so a neutral can be run in the future. – mfarver Jul 27 '13 at 1:10
@mfarver Thanks much for the correction. See modifications above. – bib Jul 27 '13 at 1:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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