I bought a timer switch for the porch light the way you buy anything from a shelf, which is to say with no research at all. It sat in its box for two weeks until the electrician who was already here putting a fan in the bathroom looked at the packaging, then at the switch on the wall, and asked what year the back half of the house was wired. Nineteen sixty-something. He said the switch would probably not work there, took the cover plate off to check, and was right. There was no white wire in the box for it to connect to. That sent me down a rabbit hole about a wire that, for most of the history of household wiring, had no reason to be at a light switch at all.
Two wires at the switch, and what that means
A plain toggle switch does one job: it breaks the hot conductor on its way to the fixture and lets it back through. It needs the circuit to pass through it, not to complete inside it. So for decades the cheapest correct way to wire a ceiling light was to run the cable from the panel up to the fixture box first, then drop a two-conductor cable down the wall to the switch. The black went down, the white came back up carrying switched power, and the neutral for the light stayed up at the ceiling where the light actually needed it.
That arrangement is called a switch loop, and it is the reason so many older boxes have exactly two conductors plus a ground. The white in that drop was never a neutral, which is why the modern Code expects it to be re-identified with black tape or paint so nobody mistakes it later. That particular trap is worth reading about in what the colors of electrical wires actually mean, because an unmarked white wire in an old switch box is one of the few places where the color convention lies to you.
The year the Code started asking for a third wire
The 2011 edition of the National Electrical Code added Section 404.2(C), and it changed the default. Where a switch controls a lighting load on a grounded general-purpose branch circuit serving a bathroom, hallway, stairway, or habitable room, the grounded conductor — the neutral — now has to be brought to the switch location. The 2017 language goes a step further and says the neutral is to be connected to switching devices that need line-to-neutral voltage to run their electronics in standby, with that connection requirement taking effect on January 1, 2020.
NFPA publishes the code itself and a plain summary of what NFPA 70 covers and how it gets adopted, which is the part people skip: the NEC is not law until a state or city adopts an edition of it. Whether a given house got the neutral depends on the year it was wired and on which edition the jurisdiction had adopted by then, not on the year the rule was published.
Five places the rule does not reach
The section carries a list of conditions under which the neutral does not have to be run, and they explain most of the exceptions a homeowner actually runs into:
- Where the conductors reach the switch box through a raceway large enough to hold a neutral later, since one can be pulled in when it is wanted.
- Where the box is accessible for another cable without tearing out finish materials — an unfinished basement ceiling or an open attic above.
- Where the switch has an integral enclosure of the type the Code recognizes.
- Where the lighting in that area is controlled automatically rather than by a person at the wall.
- Where the switch controls a receptacle rather than a lighting load.
There is also a relief valve for existing houses. A replacement or retrofit switch in a location wired before the rule was adopted locally is exempt where the neutral cannot be extended without removing finish materials, subject to limits on how many electronic switches can share a circuit — no more than five on a branch circuit, and no more than twenty-five downstream on a feeder.
What the electronics were doing before the neutral showed up
That last limit is a clue to why the rule exists. An occupancy sensor or timer has a small circuit board inside that has to stay awake while the light is off, and staying awake takes a trickle of current. Before the neutral was required, a common way to get it was to return that trickle on the equipment grounding conductor, the wire that is supposed to carry nothing at all until something goes wrong.
One device leaking a fraction of a milliamp is harmless. Ten of them on the same circuit add up, and the threshold they start bumping into is the one built into ground-fault protection: a Class A device is required to trip at six milliamps and required not to trip below four. Enough electronic switches sharing a circuit could put a ground-fault breaker or receptacle into nuisance-tripping territory using nothing but their standby current, while quietly turning the safety path into a working conductor. Requiring the neutral gives that current the wire it was always supposed to use.
The workaround, and the little box that makes it work
Manufacturers did not wait for every house to be rewired. A whole category of no-neutral switches gets its standby power by passing a small current through the load itself, which works beautifully with an incandescent bulb and can get strange with a modern one. An LED lamp draws so little that the trickle is enough to make it glow faintly, flicker, or refuse to go fully dark.
The usual answer is a bypass, a small capacitor module an electrician installs up at the fixture to give that current somewhere to go. It is an extra part, an extra box, and an extra reason to read the switch's instruction sheet before buying rather than after. This is the same compatibility territory covered in dimmer switch compatibility, and it is not hand-waving: UL's testing program for wall-box dimmers and controllers evaluates them against the specific lamp types they are meant to drive, LED lamps among them, which is why a control rated for one kind of load misbehaves on another.
Figuring out what you have before you buy
You can narrow this down without taking a single cover plate off. Houses wired or substantially rewired after your jurisdiction adopted the 2011 Code or later very likely have the neutral. Houses older than that are a coin flip that depends on which way the cable was pulled, and a single house can be inconsistent room to room where work was done piecemeal.
Three things are worth doing before the purchase. Read the switch's listing for the words "neutral required" and for any minimum load, which is usually printed on the box and always in the instructions. Check whether the switch you want exists in a no-neutral version, since many product lines sell both. And if you already have an electrician coming for something else, ask them to glance in the box while the power is off — it takes them a minute and it settles the question for that room.
The broader lesson is the one I keep relearning in this house: a smart-home product is a wiring question wearing an app. If you want to think about which layer to buy into at all, smart switches versus smart bulbs is the honest comparison, and the bulb route sidesteps this entire problem by never touching the box.