Wattplate

Switch Wiring Diagram

Pick a layout and where power comes in to see every wire, screw and splice.

By Ali (not a licensed electrician) Updated

Rule of thumbA 3-way switch has a dark common screw (power in at one switch, out to the light at the other) and 2 brass traveler screws.

Caution

Breaker off. Test wires dead. Unsure? Call an electrician.

Power comes in at
3-way switch wiring, power at the switch 3-way switch wiring diagram with power at the switch: 14/2 to switch 1, 14/3 between the switches, 14/2 to the light. Every switch position is tested. PANEL SWITCH 1 BOX SWITCH 2 BOX LIGHT BOX C1 14/2 C2 14/3 C3 14/2 GROUNDBREAKERNEUTRAL UPDOWN UPDOWN LIGHT ONLIGHT OFF COM COM BBBBRRBBWWWWWWGGGGGGGGGG KEYBhotRhot, 2nd wireWneutralGground (bare)splice (wire nut)COMcommontravelerground

This is one common way to wire this layout in a US home. Old wiring, odd colours, aluminum wire, no ground wire or a smart switch can change it. If your box doesn't match, stop and call a licensed electrician.

Many towns need a permit for wiring work, and some don't let homeowners do it. Check with your building department.

LIGHT ON

Switch 1
Switch 2

Tested: all 4 switch positions

Either traveler can go on either brass screw. The dark screw is the common.

The wires in words

  • Cable C1 (14/2 with ground), panel to switch 1 box: black is the constant hot, from the breaker to switch 1's dark common (COM) screw; white is the neutral, from the neutral bar to the neutral splice in the switch 1 box; bare is the ground, from the ground bar to the ground splice in the switch 1 box.
  • Cable C2 (14/3 with ground), switch 1 box to switch 2 box: black is a traveler, from switch 1's brass traveler screw to switch 2's brass traveler screw; red is a traveler, from switch 1's brass traveler screw to switch 2's brass traveler screw; white is the neutral, from the neutral splice in the switch 1 box to the neutral splice in the switch 2 box; bare is the ground, from the ground splice in the switch 1 box to the ground splice in the switch 2 box.
  • Cable C3 (14/2 with ground), switch 2 box to light box: black is the switched hot, from switch 2's dark common (COM) screw to the light's hot lead; white is the neutral, from the neutral splice in the switch 2 box to the light's neutral lead; bare is the ground, from the ground splice in the switch 2 box to the light's ground.
  • Neutral splice, switch 1 box: white from cable C1 and white from cable C2.
  • Ground splice, switch 1 box: bare from cable C1, a bare pigtail to switch 1's green ground screw and bare from cable C2.
  • Neutral splice, switch 2 box: white from cable C2 and white from cable C3.
  • Ground splice, switch 2 box: bare from cable C2, a bare pigtail to switch 2's green ground screw and bare from cable C3.

Sources for this layout

3-way switch wiring: what goes on each screw

Two 3-way switches run one light: each joins its common screw to one of 2 travelers (the wires between them), so the light is on when both pick the same traveler and flipping either one changes it. Each has 3 screws plus a green ground. The dark common takes the power at one switch and feeds the light at the other. The travelers, black and red in 14/3 cable (three 14 AWG wires plus a bare ground), go on either brass screw. The white neutral (the return wire) is spliced, never on a switch: 3-way and 4-way switches only switch the hot (NEC 404.2(A)). Use 14/2 and 14/3 on a 15 A circuit, 12/2 and 12/3 on 20 A (wire size calculator). Outside North America the same switch is usually called a 2-way switch.

Power at the switch or the light?

Find the box the panel’s cable enters first: a switch box means power at the switch, the light box power at the light. Confirm it with a tester.

3-way switch with power at the light

With power at the light, the cables run light box, switch 1, switch 2. The 14/3 from the light carries the hot down on black and the switched hot back on red. Between the switches the white, taped black at both ends, brings power to switch 2’s common; a taped white may only be the supply to a switch, never the return to the light (NEC 200.7(C)(1)). Only switch 1’s box has a neutral, capped. This is one common way: your cable runs may differ.

4-way switch wiring for three or more switches

To run one light from 3 switches, put a 4-way switch between two 3-way switches on the 2 travelers. It passes them straight through or crosses them, so any switch flips the light. Leviton’s 4-way sheet marks one screw pair IN and one OUT: travelers from switch 1 on one pair, to switch 2 on the other. Follow your switch’s markings; more 4-ways in the traveler run add more places.

Light switch wiring: single-pole and the switch loop

A single-pole light switch has 2 brass screws and a ground. Power at the switch: the panel’s black goes on one screw, the light’s black on the other, and the whites are spliced. Power at the light: 14/3 runs down, black brings the hot, red takes it back, and the white is capped. Older houses may have a 2-wire loop with a taped white (drawn below). Newer editions of the NEC generally want a neutral in the switch box for room lighting (NEC 404.2(C); section 406.30 in the 2026 edition). For several lights on one switch, the recessed lighting calculator adds up their watts.

Electrical wire color code for switch wiring

In US home cable, black and red are hots, white or gray is the neutral, and bare or green is the ground. A colour is a clue, not proof: test it.

Wire colours in US home cable
ColourJobRule
BlackHotMain hot
RedSecond hotTraveler or switched wire
White or grayNeutralNEC 200.6(A)
White taped black or redHotNEC 200.7(C)(1): marked at both ends
Bare or greenGroundNEC 250.119
BlueExtra hot4-wire cable, or a fan’s light kit lead

Ceiling fan wiring with a light: one switch or two

Fan leads are usually black (motor), blue (light), white and green. On one switch, the fan’s black and blue join the switched hot. On two switches, run 14/3: black to the motor, red to the blue light lead. Hang a fan only from a box marked for fan support. A light dimmer is not a fan speed control (Hunter). Colours vary by maker: the fan’s manual wins. Some towns, Bend in Oregon among them, need a permit to swap a light for a fan.

Dimmer switch wiring

A dimmer takes the same wires as the switch it replaces, often on leads instead of screws: its sheet says which lead goes where. Some devices, such as Leviton’s 5246 lighted switch, need a neutral; Lutron’s DVCL-153P does not. On a 3-way, Lutron’s Diva sheets allow one dimmer; the other place keeps a 3-way switch. Tag the wire on the old switch’s dark screw first.

When to stop and call an electrician

Stop and call a licensed electrician if:

  • there is no bare or green ground wire;
  • the wire is aluminum (some homes built about 1965 to the mid-1970s): the CPSC says not to repair it yourself, and ordinary switches take copper only;
  • the wire is cloth-covered or knob-and-tube;
  • colours or taped whites don’t match the drawing;
  • the box holds more cables than the drawing;
  • the light box sits between the two switches (not drawn: there are several versions, one with 4-wire cable);
  • the switch is warm, buzzing or scorched;
  • the box is crowded (check the box fill calculator).

How to read a wiring diagram

Each line is one wire in its real colour, tagged at both ends. A black dot is a splice (wire nut); black bands on a white line mean tape. Grey outlines are boxes; “C2 14/3” names a cable; COM, IN and OUT name screws.

How these diagrams are drawn and tested

Every drawing here is this site’s own, made by code from a list of every wire. A test runs every switch position of every layout: the light does what the drawing says, no position joins the hot to the neutral or ground, every switch and fixture is grounded, and each cable carries its current out and back. The wiring follows the maker sheets and Purdue Extension guide listed per layout. Found a mistake? Email [email protected] and I’ll fix it.

Questions people ask

What is the red wire in a switch box?

The red wire is the second hot in 3-wire (14/3) cable: one of the 2 travelers between 3-way switches, or the switched wire to the light. It is never a neutral.

How many wires does a ceiling fan have?

Most ceiling fans with a light have 4 wires: black for the motor, blue for the light, white neutral and green ground. Colours vary by maker, so read the fan's manual.

Can I put a dimmer on a 3-way switch?

Yes, 1 dimmer per 3-way circuit for a standard dimmer such as Lutron's Diva; the other place keeps a 3-way switch. The dimmer's sheet says which switch it replaces and which lead is the common.

Do I need a neutral wire at the light switch?

NEC 404.2(C) generally wants a neutral in switch boxes for room lighting. A plain switch never connects to it (the whites are spliced or capped); smart switches and some dimmers do.

What size wire does a light switch need?

14 AWG copper on a 15 A breaker and 12 AWG on a 20 A breaker (NEC 240.4(D)). Match the cable already on the circuit.

Related calculators

Sources

Checked: Page updated

Built and checked by Ali, who is not a licensed electrician.

This page is general information, not engineering, design or code advice, and it does not replace an inspection. Mains wiring can kill and can start fires: unless you are trained for it, hire a licensed electrician, and get a permit where your town requires one.