Skip to content
Home Circuitry HQ
SHEET 01 · Reference index35 guides · NEC-aware
Search

Search Home Circuitry HQ

Interactive 4-Way Switch Wiring Diagram

By Published on

A 4-way switch sits between two 3-way switches and lets you control one light from three or more places. It has no COM terminal: two IN terminals take the travelers from the first 3-way and two OUT terminals send them on toward the last 3-way. In one position it passes the travelers straight through, in the other it swaps them. Pick 3, 4 or 5 locations below and flip the switches to see the energized wires.

Choose the number of locations and flip the switches

Places that can switch the light
Switch 1 (3-way, hot in)
Switch 2 (4-way)
Switch 3 (3-way, to light)

The light is on: the hot reaches the traveler the last switch has chosen.

3-location switch diagramTwo 3-way switches at the ends and 1 4-way switch between them. The hot feed enters the first 3-way COM terminal, two travelers run through each 4-way, and the last 3-way COM terminal feeds the light. The same information is listed in the table below the diagram.Switch 13-way, hot inSwitch 24-waySwitch 33-way, to lightHot feed from the breakerCOMTraveler 1Traveler 2ININOUTOUTTraveler 1Traveler 2COMLight

An amber glow marks a conductor that is carrying power in the current switch positions. Terminal markers: dark = COM, gold = traveler or IN/OUT. Neutral and ground conductors are not drawn here; see the 3-way diagram for a full layout with neutral and ground. Colours are conventions: identify real conductors by testing, never by colour alone.

Every switch combination as a table

The diagram is also available as text. Each table lists every combination of positions and whether the light is on. Position A and B are the two 3-way positions; a 4-way is either straight or crossed.

3 locations (8 combinations)
Light state for 3 switch locations
Switch 1 (3-way)Switch 2 (4-way)Switch 3 (3-way)Light
A StraightAOn
A StraightBOff
A CrossedAOff
A CrossedBOn
B StraightAOff
B StraightBOn
B CrossedAOn
B CrossedBOff
4 locations (16 combinations)
Light state for 4 switch locations
Switch 1 (3-way)Switch 2 (4-way)Switch 3 (4-way)Switch 4 (3-way)Light
A StraightStraightAOn
A StraightStraightBOff
A StraightCrossedAOff
A StraightCrossedBOn
A CrossedStraightAOff
A CrossedStraightBOn
A CrossedCrossedAOn
A CrossedCrossedBOff
B StraightStraightAOff
B StraightStraightBOn
B StraightCrossedAOn
B StraightCrossedBOff
B CrossedStraightAOn
B CrossedStraightBOff
B CrossedCrossedAOff
B CrossedCrossedBOn
5 locations (32 combinations)
Light state for 5 switch locations
Switch 1 (3-way)Switch 2 (4-way)Switch 3 (4-way)Switch 4 (4-way)Switch 5 (3-way)Light
A StraightStraightStraightAOn
A StraightStraightStraightBOff
A StraightStraightCrossedAOff
A StraightStraightCrossedBOn
A StraightCrossedStraightAOff
A StraightCrossedStraightBOn
A StraightCrossedCrossedAOn
A StraightCrossedCrossedBOff
A CrossedStraightStraightAOff
A CrossedStraightStraightBOn
A CrossedStraightCrossedAOn
A CrossedStraightCrossedBOff
A CrossedCrossedStraightAOn
A CrossedCrossedStraightBOff
A CrossedCrossedCrossedAOff
A CrossedCrossedCrossedBOn
B StraightStraightStraightAOff
B StraightStraightStraightBOn
B StraightStraightCrossedAOn
B StraightStraightCrossedBOff
B StraightCrossedStraightAOn
B StraightCrossedStraightBOff
B StraightCrossedCrossedAOff
B StraightCrossedCrossedBOn
B CrossedStraightStraightAOn
B CrossedStraightStraightBOff
B CrossedStraightCrossedAOff
B CrossedStraightCrossedBOn
B CrossedCrossedStraightAOff
B CrossedCrossedStraightBOn
B CrossedCrossedCrossedAOn
B CrossedCrossedCrossedBOff

How the switching works

The hot enters the first 3-way on its COM terminal and leaves it on one of the two travelers. Each 4-way either passes the travelers straight through or swaps them, and the last 3-way connects its COM terminal to one traveler. The light is on when the hot is on the traveler the last switch has chosen.

When is the light on?
hot traveler after switch 1:        h = entry position (0 for A, 1 for B)
after each crossed 4-way:           h = 1 − h  (straight 4-way: h unchanged)
light is ON when:                   h = exit position
closed form:                        ON when (entry + exit + number of crossed 4-ways) is even
entry
position of the 3-way whose COM takes the hot feed (A = 0, B = 1)
exit
position of the 3-way whose COM goes to the light (A = 0, B = 1)
crossed 4-ways
how many of the 4-way switches are currently in their swapped position

Example with two 4-ways: entry A (0), both 4-ways straight (0 crossed), exit A (0): the sum is 0, which is even, so the light is on. Flip any one 4-way to crossed and the sum is 1, so the light goes off. Flip a second one and it comes back on.

What this diagram does not cover

  • Neutral and ground conductors, cable types and the power-at-light layout. See the 3-way diagram and the full 3-way wiring guide.
  • Box fill. Each yoke counts double under NEC 314.16(B)(4); the 4-way wiring guide works through an example.
  • Dimmers and smart switches, which have their own wiring rules. Follow the maker's instructions and see the dimmer guide.
  • Boxes with different cable, conduit work, older conductors or a mix of circuits. If your box does not match, stop and call a licensed electrician.

Answers to common questions

How many 4-way switches can I use in one circuit?

Each 4-way switch adds one more place that can switch the light, so one 4-way gives three locations, two give four and so on. The diagram above shows up to three 4-way switches (five locations). The switching rule does not change with the number: the 4-ways all sit in the traveler run between the same two 3-way switches. Practical limits are box fill, cable length and voltage drop, not the switch logic.

What is the difference between a 3-way and a 4-way switch?

A 3-way switch has a COM terminal and two traveler terminals and chooses one traveler. A 4-way switch has no COM terminal: it has two IN and two OUT traveler terminals and either passes the travelers straight through or swaps them. You always need two 3-way switches at the ends of the run, and a 4-way cannot do the job of a 3-way.

Which terminals pair up on a 4-way switch?

The two travelers from one side connect to the IN pair and the two travelers going to the other side connect to the OUT pair. Leviton's 5604 sheet marks the terminals IN and OUT in its wiring diagram. Terminal positions differ between models, so use the legend printed on your device, and identify the pairs before you remove an old switch.

Why do my lights act backwards or only work from some switches?

Usually a pair of travelers is crossed or landed on the wrong terminals: for example the IN pair and OUT pair are mixed up, or a traveler sits on the COM terminal of a 3-way. The symptom is a light that is on when you expect it off from some positions. Turn the breaker off, test that the circuit is dead and re-check the connections, or call a licensed electrician.

Do I need a neutral wire for a 4-way circuit?

A standard mechanical 4-way switch does not use a neutral to operate. A neutral in the switch boxes is needed for most smart switches and dimmers, and the NEC generally requires one at switch locations in new work. Check the maker's instructions and the code your local authority has adopted, and ask a licensed electrician if you are unsure about your boxes.

Can I wire a 4-way switch myself?

Many homeowners replace a switch like for like, but this page is a teaching schematic, not instructions for your house. Your boxes may hold different cable or older conductors. ESFI strongly recommends hiring a qualified, licensed electrician for electrical work, and your local authority decides whether a permit is needed. Stop and call an electrician if anything in the box does not match the diagram.

Evidence and sources

  1. Leviton, 4-Way Switches Cat. No. 5604 installation instructions (PK-93029): travelers between switches, IN and OUT terminals, identify IN and OUT before replacing, turn off power and test (leviton.com) Accessed 2026-11-14.
  2. NFPA 70 (NEC) 2020 text as reproduced in the 2022 California Electrical Code: Table 314.16(A), Table 314.16(B) and 314.16(B)(4) device fill (law.resource.org) Accessed 2026-11-14. Check the edition your local authority has adopted.
  3. ESFI, Do-It-Yourself (DIY) Electrical Safety: breaker off, test the wires, hire a licensed electrician (esfi.org) Accessed 2026-11-14.
  4. CPSC, Plug into Safety! (NSN 18-07): hire a licensed electrician for electrical work in the home (cpsc.gov) Accessed 2026-11-14.

More on this topic