Three-Way and Four-Way Switch Wiring: How to Connect Them
Published on Nov 6, 2026
In a three-way switch circuit, two switches control the same lamp: the line (hot) goes to the common terminal of the first switch, two “traveler” wires connect the two switches to each other, and the common terminal of the second switch carries the switched leg to the lamp. To control the lamp from three or more places, a four-way (intermediate) switch goes in the middle of the travelers. This guide shows which wire goes to which terminal, the most common mistakes and how to test the wiring before opening a wall.
The rule for every wiring: the switch breaks the phase
In any lighting wiring, the neutral goes straight to the lamp and the switch interrupts the phase (line). That way, with the lamp off, the socket has no voltage and changing the bulb is much safer. The wire that leaves the switch toward the lamp is the switched leg (“return”); it only has voltage when the switch closes the path. See also residential lighting (NBR 5410).
How a three-way switch works
A three-way switch has three terminals: one common and two traveler terminals. The toggle connects the common to one of the other two, never both. It doesn’t simply “turn on and off”: it chooses which of two wires the current follows.
With two switches there are two paths between them (the two travelers). The lamp turns on when both switches choose the same path and turns off when they choose different ones. That is why flipping either switch inverts the lamp.
Three-way wiring, step by step
- At the panel, the phase leaves the breaker and reaches the box of the first switch (S1). It connects to the common terminal of S1.
- Two wires (the travelers) connect the traveler terminals of S1 to the traveler terminals of S2, one to one. It doesn’t matter which traveler goes to which terminal, as long as each one links a terminal of S1 to a terminal of S2.
- The common terminal of S2 carries the switched leg to the lamp.
- The neutral goes from the panel straight to the lamp, without passing through any switch.
- The ground (green or green/yellow) goes to the fixture, if it has a ground terminal.
| Wire | From | To |
|---|---|---|
| Phase (line) | Breaker | Common of S1 |
| Traveler 1 | Traveler A of S1 | Traveler A of S2 |
| Traveler 2 | Traveler B of S1 | Traveler B of S2 |
| Switched leg | Common of S2 | Lamp (phase) |
| Neutral | Panel | Lamp (neutral) |
Wire colors depend on the local standard. In Brazil (NBR 5410), light blue is neutral and green or green/yellow is ground; phase and switched-leg colors are chosen by the installer. Keep a consistent pattern in the job and label every wire in the box.
Four-way wiring, for three or more places
A four-way switch has four terminals: two inputs and two outputs. In one position it connects each input to the output on the same side (straight); in the other it crosses the wires (input 1 to output 2 and input 2 to output 1). It goes in the middle of the travelers, between two three-way switches:
- Phase to the common of S1 (three-way), as before.
- The two travelers of S1 go to the two inputs of the four-way (S2).
- The two outputs of the four-way go to the traveler terminals of the last three-way (S3).
- The common of S3 carries the switched leg to the lamp, and the neutral goes straight to the lamp.
For a fourth control point, repeat the idea: put one more four-way between S2 and S3, wired the same way. The three-way switches always sit at the ends, and every four-way sits in the middle.
Common mistakes (and how to avoid them)
- Switching the neutral instead of the phase: the lamp goes off, but the socket stays live. Always run the phase through the switch.
- Connecting the wrong common: if the phase lands on a traveler terminal instead of the common, the lamp only works in certain switch combinations. Identify the common terminal (it usually has a different mark or color) before wiring.
- Mixing a traveler with the switched leg: if the lamp lights with both switches on one side and almost never on the other, check that the switched leg comes from the common of S2.
- Using a four-way at the ends: the ends must be three-way switches. A four-way has no common and can’t be the first or last point.
- Working on a live circuit: turn off the breaker, confirm there is no voltage with a tester or multimeter, and only then touch the wires.
Test the wiring before you wire the wall
On the 4DVolt electrical workbench, under File › Examples, the Three-way switch and Four-way switch examples come ready, with breaker, switches and lamp. Click each switch and watch the lamp turn on and off; then delete a traveler, or swap the common, and see what changes. It is the fastest way to understand the path of the current without risk. If you prefer to build from scratch, the workbench article explains how to drag components and connect wires.
When to choose each one
- Single switch: one control place.
- Three-way: two places, such as both ends of a hallway, the bottom and top of a staircase or two doors of a bedroom.
- Four-way: three or more places, such as a long hallway with several entrances.
The cable and breaker are the same as for any lighting point; sizing is covered in how to size a residential electrical circuit.
Create your free account.
This text is informational and educational. When connecting any circuit to the mains, follow the applicable standards and rely on a qualified professional. Never work on energized installations without proper safety measures.
Frequently asked questions
What is the difference between a three-way and a four-way switch?
A three-way has three terminals and goes at the ends of the circuit; a four-way has four terminals and goes in the middle, between two three-way switches, to control the lamp from three or more places.
How many wires reach a three-way switch?
Three: on the first, the phase and the two travelers; on the second, the two travelers and the switched leg to the lamp. The neutral does not pass through the switches.
Does the switch break the phase or the neutral?
The phase. The neutral goes straight to the lamp, and with the switch off the socket has no voltage.
Can I use a four-way switch at the ends?
No. The ends must be three-way switches; the four-way only works between them.
Read also
Residential lighting: light points and circuits (NBR 5410)
Learn how to plan residential lighting: light points per room, the NBR 5410 minimum load in VA, switches, cable and breaker, with a worked example.
How many outlets per room NBR 5410 requires
See how many outlets and light points NBR 5410 requires in each room, how to count by perimeter and what power to assign to each point.