Somewhere in your house there's an extension cord running under a rug. It probably went in years ago as a quick fix: the couch moved, the lamp ended up in the wrong corner, and the outlet was a little too far away. You stopped seeing it long ago. The people who write the electrical code never stopped seeing it. One of the most-used rules in residential wiring exists because they decided, decades ago, that you would almost always pick the easy option over the safe one. They were right, so they built the walls around it.
That rule is the receptacle spacing requirement in NEC 210.52(A). Most people know it as "an outlet every 12 feet." That shorthand is close, but it hides the real idea. The rule isn't about outlets at all. It's about the length of a lamp cord.
The rule is really about a 6-foot cord
Here's the actual requirement, in plain terms: in living rooms, bedrooms, dining rooms, dens, family rooms, sunrooms and similar rooms, receptacles have to be placed so that no point along the floor line of any wall space is more than 6 feet from a receptacle.
Six feet is about how long the cord on a typical lamp, clock or small appliance has been for generations. If every spot along the wall is within 6 feet of an outlet, then wherever you push furniture, whatever you plug in can reach a receptacle without help.
The "12 feet" comes from simple geometry. If a point can be no more than 6 feet from an outlet, then two outlets can be up to 12 feet apart, because the midpoint between them is 6 feet from each. The first outlet on a wall can be up to 6 feet from the end of that wall space. After that, outlets can be up to 12 feet apart.
Put it that way and the rule stops feeling arbitrary. It's a cord-reach map drawn on your walls.
Why the code plans for how people actually behave
Behavioral science has a plain name for what the code is working against: the path of least resistance. People reliably pick whatever option takes the least effort right now, even when they know a better option exists. Researchers who study choice architecture, the way the setup of a situation steers decisions, have shown again and again that defaults and friction shape behavior more than good intentions do. Make the right thing easy and people do it. Make it a hassle and they find a workaround.
An extension cord is the classic workaround. It's cheap, quick and already in a drawer. Once it's plugged in, a second bias takes over: habituation. Things that don't change stop registering as things we need to think about. A cord that was meant to be temporary becomes part of the room, then something you never notice, then the thing that hurts you.
The hazards are real and well understood. Cords meant for temporary use are often undersized for what ends up plugged into them. A cord under a rug can't shed heat, and foot traffic can quietly damage the insulation where no one will see it. Cords pinched behind furniture or stapled to baseboards wear down. The NEC itself says flexible cords can't be used as a substitute for permanent wiring. Even so, the code's main defense isn't a ban. It's simply taking away the reason you'd want a cord in the first place.
That's the elegant part. The code doesn't count on you being disciplined. It counts on you being human, and it builds the house so your laziness leads somewhere safe.
What counts as "wall space"
The details are where homeowners and even some installers go wrong. Under 210.52(A), wall space has a specific meaning:
Any wall 2 feet or wider counts. That narrow stretch between two doors still gets measured. If it's 2 feet or more, it's wall space, and the 6-foot rule applies to it.
Measurement wraps around corners. You measure along the floor line, and the distance continues around a corner. One outlet near an inside corner can cover parts of two walls.
Doorways, fireplaces and similar openings break the run. A doorway ends one wall space and starts another, because no one runs a lamp cord across a door opening. That's why a wall with a door in the middle often needs outlets on both sides even when the total length seems short.
Fixed glass panels count as wall. Sliding glass doors don't. A fixed window wall can have furniture pushed against it, so it has to be covered. The sliding panel of a patio door is a doorway.
Fixed room dividers, like freestanding bar counters or railings, count too. If you can put a lamp against it, the code wants an outlet within reach.
A few receptacles don't count toward the requirement: ones mounted more than 5½ feet above the floor, ones built into a light fixture or appliance, and ones inside cabinets. A floor receptacle counts only if it's within 18 inches of the wall. The test is always the same: could a normal 6-foot cord, plugged in at floor level, actually reach it?
Kitchens and hallways use a tighter version of the same idea
The same reasoning shows up elsewhere in 210.52 with different numbers, because the cords are different.
Kitchen countertops (210.52(C)) use a 24-inch rule. No point along the wall line behind a counter can be more than 24 inches from a receptacle, and any counter space 12 inches or wider needs coverage. Countertop appliances like toasters, kettles and mixers have short cords on purpose, so a cord can't dangle off the counter where a child can pull it. Shorter cords mean outlets have to be closer together: up to 4 feet apart instead of 12.
Hallways (210.52(H)) 10 feet or longer need at least one receptacle. The thinking there is a vacuum cleaner, which will get plugged in somewhere whether or not there's an outlet nearby.
In every case the code asks the same question: what will someone plug in here, how long is its cord, and what will they do if it can't reach?
Laying it out the right way
If you're planning a room, whether you're an apprentice laying out a rough-in or a homeowner reviewing a remodel drawing, the most reliable method is to walk the floor line with a 6-foot reach in mind instead of dividing the wall length by twelve.
Start at one end of a wall space, usually right beside a doorway. Your first receptacle has to land within 6 feet of that edge. From there, each next receptacle can be up to 12 feet farther along, continuing around corners, until the wall space ends at the next door or opening. Then start over.
After that, think about furniture. Code-minimum spacing is a floor, not a design goal. If you know the bed goes on a certain wall, put receptacles on both sides of where the headboard will be, not where the 12-foot math happens to land behind it. The code keeps you from needing an extension cord. Good layout keeps you from needing a power strip behind the nightstand.
Your next moves
- Find one extension cord in your home that has turned permanent. Look under rugs, behind the TV stand and along baseboards. If it's been there longer than a month, it isn't temporary. Unplug it and note what it's powering and where the closest outlet is.
- Do the 6-foot test in one room tonight. Use a tape measure or a 6-foot piece of string, start at a doorway, and walk the floor line. Mark any spot that's more than 6 feet from a receptacle. Those are code gaps, and they're also the spots where cords will keep showing up.
- Check any cord running under a rug or furniture. Feel the cord and plug while a load is running. Warmth, discoloration, a flattened jacket or a loose fit at the outlet means take it out of service today.
- If you're remodeling, mark furniture on the floor plan before rough-in. Sketch where the bed, couch, desk and TV will go, then make sure there's a receptacle within reach of each one. Giving that list to your electrician before the walls close costs nothing. Adding an outlet after drywall is hung costs a lot.
- Count the counter outlets in your kitchen. Measure along the backsplash. Any stretch where a point is more than 24 inches from a receptacle is where a cord will someday hang over the edge.
Taking the math to the job
The receptacle spacing rule is one of the friendliest parts of the code once you see the thinking behind it, but on a real job it's one calculation among dozens: box fill for the device you just placed, voltage drop on the long run back to the panel, ampacity for the circuit feeding it all. Voltly puts those calculations and the NEC reference behind them in your pocket, fully offline, so you can check a layout in a basement with no signal as easily as at a desk. If you'd like the rest of your rough-in to be as well thought out as that 6-foot rule, you can find it at voltly.lumenlabs.works.