Extension Cords vs. Permanent Wiring: Where the Line Actually Is
Extension cords are meant for temporary use, but I see them pressed into service as permanent wiring in garages, workshops, and outdoor setups all the time. Here's the actual code reasoning behind that rule and how to tell when it's time for a real outlet or circuit instead.

Written by Steven Rotan
Licensed Journeyman Electrician — Oregon #883LR
⚠️ Before you start
- Never run extension cords through walls, ceilings, or floors as a substitute for permanent wiring
- A cord that feels warm to the touch while in use is likely undersized for the load - stop using it and unplug it
- Avoid running extension cords under rugs or furniture where damage to the cord can go unnoticed
- Don't daisy-chain multiple extension cords together to power equipment for extended periods
The Rule in Plain English
The electrical code treats extension cords as temporary wiring - meant for short-term use, like running a saw for an afternoon project or powering holiday lights for a season. They're not designed or rated to be a permanent substitute for wiring run inside your walls. If a cord has been plugged in and running to the same spot for months, snaking behind furniture, taped along a baseboard, or run through a wall or ceiling to reach a fixture, it's functioning as permanent wiring without being built or installed for that job.
Why the Distinction Actually Matters
This isn't just a technicality electricians care about for its own sake. Extension cords aren't secured the way permanent wiring is - they're not stapled to framing, run through protective conduit, or rated for the wear of being stepped on, pinched under furniture, or exposed to weather over the long haul. A cord's insulation degrades faster than romex or conduit-protected wiring when it's subjected to repeated flexing, sunlight, or moisture, and a damaged cord you can't see (because it's run behind a wall or under a rug) is a real fire risk that's much harder to catch than exposed wiring.
Cords also aren't sized the way circuits are. A cord rated for a lamp isn't necessarily rated to safely carry the load of a space heater or a table saw for hours at a time, and running one warm to the touch for an extended period is a sign it's undersized for what's plugged into it.
Common Situations That Cross the Line
A few patterns I see regularly that have crossed from temporary to permanent use: an extension cord run through a wall or ceiling to reach a garage light or ceiling fan, a cord taped down along a baseboard as a permanent path to an outlet-starved room, a cord powering a window AC unit or space heater all season instead of using a proper outlet, and cords daisy-chained together to reach a shed or detached structure instead of running an actual buried or overhead circuit.
Any of these situations usually means the real answer is adding an outlet or a new circuit where you actually need power, not finding a better extension cord.
When a Cord Is Genuinely Fine
To be clear, extension cords are a normal, safe part of a household when used as intended: running a tool for the length of a project, seasonal decorations, or short-term equipment like a fan on a hot day. The key differences from a code standpoint are duration (temporary, not permanent), and that the cord isn't run through a wall, ceiling, or floor as a substitute for building wiring.
What to Do Instead
If you find yourself relying on the same extension cord in the same spot for more than a season, that's your sign to have an outlet or circuit added there instead. For a detached shed or garage that regularly needs power, a proper buried or overhead feeder circuit, sized and protected correctly, is both safer and, over time, more convenient than managing cords across the yard.
Bottom Line
Extension cords are a great short-term tool and a poor long-term solution. If a cord's been living in the same spot doing the same job for months, treat that as a sign you need real wiring there, not a bigger or heavier-duty cord.
📞 When to call a professional
If you realize a cord has become a permanent fixture powering something in your home, garage, or yard, that's the point to call a licensed electrician about adding a proper outlet or circuit - it's a straightforward job for a pro and it removes a real, ongoing fire risk.
Frequently asked questions
How long is too long for an extension cord to be in one spot?
There's no strict hour count in the code, but if a cord has been running to the same spot for more than a season doing a regular job, that's a strong sign you need a real outlet or circuit there instead.
Is it ever okay to run an extension cord through a wall?
No - running a cord through a wall, ceiling, or floor is treating it as permanent wiring, which it isn't rated or built for, and it's a fire code violation in most jurisdictions.
Can I use a heavy-duty extension cord for a space heater all winter?
I wouldn't recommend it - space heaters draw significant, sustained power, and a proper dedicated outlet is a much safer long-term solution than any extension cord, no matter how heavy-duty.
What's the safest way to power a shed or detached garage?
A properly sized and protected buried or overhead feeder circuit installed by a licensed electrician, rather than running extension cords across the yard, especially if it needs power regularly.
Related guides
Electrical Fire Prevention: The Real Risks in an Average Home
Most home electrical fires trace back to a repeating handful of causes - overloaded outlets, damaged extension cords, space heaters, and aging wiring or panels - not one dramatic failure. This guide breaks down the real risks in an average home and what actually reduces them.
Read the guide →
How Often Should You Have Your Home's Wiring Inspected?
There's no single universal number for how often to inspect your home's wiring, but there are solid guidelines based on age plus specific triggers that should move up your timeline regardless. This guide lays out realistic intervals, the warning signs that mean 'now,' and what a real electrical inspection actually covers.
Read the guide →
How to Shut Off Your Home's Power in an Emergency
In a flood, a fire, or a shock situation, knowing how to cut the power fast can prevent a tragedy. Here's how to kill a single circuit or the whole house — and, just as important, when NOT to touch the panel.
Read the guide →