---
title: "Every Door Is a Switch · Harness Architecture"
description: "A light switched from several doors is a parity circuit: two 3-ways and a 4-way for every door between. On a plan, the doors are the wiring diagram."
source: https://www.testfit.io/harness-architecture/lightswitch-i
last_updated: 2026-11-17T00:00:00Z
---

Essay · September 19, 2024

# Every Door Is a Switch

- **Author**: Clifton Harness
- **Date**: September 19, 2024
- **Address**: /harness-architecture/lightswitch-i

Draw a room with one door and you have drawn one light switch. Draw a second door and you have drawn a pair of three-way switches and a cable between them. Draw a fifth and you have ordered a small logic circuit, which an electrician will build out of copper and nobody on the design side will know they asked for. This post is about that circuit, because once you see how it works you stop reading a plan’s doors as just doors.

Interactive study Every door is a switch

Start with the easy room. The code wants a wall switch that controls a lighting outlet in every habitable room, kitchen and bathroom; that’s NEC 210.70 if you want the number. With one door the switch goes inside the room on the latch side, so your hand finds it as the door opens and not behind the leaf. Electrically it’s a single-pole switch, which is a polite name for a break in the hot wire. Two screws, open or closed. Up is on. On a plan it’s an S.

Now add a door at the other end of the room. You walk in one door and out the other, and you want to turn the light off from where you leave. One switch can’t do that, so the room gets two three-way switches. It’s the worst name in construction: a “three-way” controls a light from two places. It’s named for its three screws. One is the common. The other two are travelers, a pair of wires that run from one switch box to the other. Each switch does exactly one thing: it connects its common to one traveler or the other. At the first switch the common is the hot from the panel. At the second it’s the wire to the light. The light is on when both switches pick the same traveler.

Which means there is no such thing as up-is-on anymore. Two switches have four positions, and two of the four are lit. Flip either switch and the answer changes, whatever the other one is doing. The light is the parity of the switches. If you write software you know this gate: it’s XOR, and it has been in American hallways since long before anyone called it that. In my drawing the light is on when an odd number of switches are up. In your house it might be even, depending on which screw the electrician landed which wire on. It is always one or the other, and that’s the only rule there is. It’s also why every guest in your house reaches for the hallway switch and then stands there trying to remember which way is on.

A third door needs a third kind of switch. The four-way sits in the middle of the traveler run, between the two three-ways, and it has four screws: two travelers in, two out. It also does exactly one thing. It passes the travelers straight through, or it crosses them. Crossing them swaps which traveler is carrying the hot, which flips whether the far three-way is resting on the live one. So flipping the four-way toggles the light, the same as flipping either end. Parity again. Every switch in the chain is one bit, and the light is their sum, odd or even.

The nice part is that it generalizes with no surprises. A light controlled from N places takes two three-ways and N minus two four-ways, every time. Never three three-ways. The two ends of the chain are the three-ways and everything between them is a four-way, which means a switch’s type isn’t a property of its door. It’s a property of the cable route. Watch the kitchen switch in the drawing: it was a three-way when it was the last box on the cable, and it becomes a four-way the moment the patio door shows up after it.

Here is what that costs. Every location is a box cut into a wall, a device, a plate, and a run of three-conductor cable to the next box in line. A four-way is a heavier device than a single-pole and costs several times as much. None of it is expensive on its own. What it is, is invisible. An open-plan great room with five ways in (front door, stair, hall, kitchen, patio) has ordered a five-location circuit, and nobody on the drawings wrote that down. What usually happens is that the builder puts three-ways at the two doors that matter and leaves the other three to fumble in the dark. That’s a design decision too. It just gets made by whoever is holding the drill.

Stairs are the one place the code doesn’t leave it to chance. Where a stair between floors has six risers or more, the NEC wants a switch at each floor level, so the stair light is a three-way pair by law. That’s the original use case and still the best one: you shouldn’t have to climb in the dark to reach the switch for the light you need to climb.

The newer answer throws the parity trick away. A smart switch at one door carries the light, and the switches at the other four doors are remotes that send it a single message: toggle. No travelers, no four-ways, no cable that has to visit every box in order. The code saw this coming. Since the 2011 edition the NEC has wanted a neutral conductor at most switch boxes, because a switch that thinks needs a little power of its own even while the light is off. The circuit got simpler. The plan question didn’t move at all. Five doors are still five switch locations, still on the latch side, still a box in a wall somebody has to frame around and keep clear of the door casing.

So here is the rule I’d want any tool that draws rooms to know. Don’t place switches by room size. [Room Based BIM II](https://www.testfit.io/harness-architecture/room-based-bim-ii.md) charted switch counts against a room’s width and length, and size is only a stand-in. Count the ways in. Each entrance is a switch location. Chain them along one cable, and the two ends are three-ways and the rest are four-ways. The doors were the wiring diagram all along. We just don’t usually read them that way.

End of essay · Clifton Harness · September 19, 2024
