NEC Code Explained

Flexible Cords and Fixture Wires Explained — NEC Articles 400 & 402

A plain-English walkthrough of NEC Articles 400 and 402 -- what flexible cord and fixture wire actually are, when each is permitted, the general prohibition on using cord as a substitute for fixed wiring, and five worked examples.

Updated August 17, 2026

Walk into almost any building and you will see two very different kinds of small, flexible conductors doing two very different jobs: the cord running from a lamp to a wall outlet, and the thin wires tucked inside a light fixture connecting its socket to the branch-circuit wiring in the ceiling box. Both look similar at a glance -- flexible, often stranded, usually smaller than the wiring in the walls -- but the NEC treats them as two distinct categories with two distinct sets of rules. Article 400 covers flexible cords and cables, and Article 402 covers fixture wires. Mixing up what each one is actually allowed to do is a surprisingly common source of both exam mistakes and real-world code violations, so this article walks through what makes each category what it is, when each is permitted, and where people most often get it wrong.

What Flexible Cord Actually Is

Flexible cord is a type of conductor assembly built specifically to bend and flex repeatedly without breaking down -- think lamp cords, extension cords, appliance power cords, and the cord set on a portable tool. What makes it "flexible" isn't just that it can bend once during installation like ordinary building wire can; it is engineered from many fine strands (often far more strands than typical stranded building conductors) specifically so it can be coiled, uncoiled, flexed at a joint, and moved repeatedly throughout its service life without the individual strands fatiguing and breaking. This is a fundamentally different design goal from the conductors run inside your walls, which are installed once and then left in place, undisturbed, for decades.

Flexible cord comes in a range of types intended for different duty levels -- lighter-duty cord meant for low-stress applications like small lamps, and heavier "hard service" or "extra-hard-service" cord meant for tougher environments like a cord reel on a job site or a cord feeding portable equipment outdoors. The exact designations and their specific letter codes are worth looking up in your current code book and cord manufacturer catalogs when you need to select cord for a specific job, since getting the duty rating wrong for the environment (for example, using light-duty cord somewhere it will be dragged across rough concrete or exposed to oil and solvents) leads to premature cord failure and a real safety hazard, not just a code technicality.

The Core Rule: Flexible Cord Is Not a Substitute for Fixed Wiring

The single most important concept in Article 400 is a restriction, not a permission: flexible cord is not meant to take the place of the permanent wiring methods -- conduit, cable assemblies like NM or MC, and similar fixed wiring methods -- that are supposed to be installed inside walls, floors, and ceilings. The reasoning is straightforward once you think about it from a safety and durability standpoint. Fixed wiring is protected: it is enclosed inside a wall cavity, raceway, or cable jacket specifically engineered to be concealed, and it is installed with the expectation that nobody will physically stress it once it is in place. Flexible cord is the opposite -- it is meant to be visible, accessible, and handled, and its entire design philosophy (fine stranding, flexible jacket, portable connectors) exists specifically because it is expected to move. Burying a flexible cord inside a wall reverses that logic: it hides a conductor that was never designed for the isolation, protection, and permanence that concealed wiring requires, while also making it much harder to inspect, service, or replace if it is damaged.

In practical terms, this general restriction plays out as things like: cord generally should not run through walls, floors, ceilings, or similar building surfaces the way fixed wiring does; cord generally should not be substituted for fixed wiring just because it happens to be on hand or convenient to run; and cord is generally meant to remain accessible along its entire length rather than becoming concealed or effectively permanent. There are specific, narrower situations where the code does recognize legitimate uses of cord that come closer to a fixed installation (certain listed appliances designed to be connected by cord specifically to allow them to be moved or interchanged, for example), but those are exceptions carved out for a defined purpose, not a general license to wire a building with extension cords because it is faster.

Permitted Uses of Flexible Cord

Article 400 does recognize a set of legitimate situations where flexible cord is the right tool for the job, generally clustered around a common theme: the equipment being supplied is meant to be portable, moved, or easily interchanged, rather than fixed in one place permanently. Common examples include pendant fixtures designed to be adjusted or repositioned, portable lamps and portable appliances, tools and equipment meant to be carried from place to place, and appliances specifically designed and listed to facilitate their own removal or exchange (a garbage disposal or dishwasher connected with a cord-and-plug arrangement, for example, so it can be pulled out and serviced or swapped without rewiring). The unifying thread is mobility or interchangeability -- if the equipment is genuinely meant to be a fixed, permanent part of the building the way a light switch or a receptacle is, flexible cord generally is not the correct wiring method for supplying it.

What Fixture Wire Actually Is (and How It Differs From Flexible Cord)

Fixture wire, governed by Article 402, is a different animal entirely, even though it is also small, often flexible, and often confused with flexible cord by people newer to the trade. Fixture wire is specifically the small-gauge wiring used inside and immediately around luminaires (light fixtures) -- typically connecting the socket or lamp holder inside the fixture body to the point where the fixture wire meets the building's branch-circuit wiring, generally within an outlet box or similar termination point. It is not intended for general power distribution, and it is not a substitute for either flexible cord or ordinary branch-circuit conductors. Fixture wire tends to be smaller in size than standard branch-circuit conductors because the actual current it carries inside a light fixture is typically very small, and its permitted uses are correspondingly narrow: essentially limited to wiring within luminaires and similarly limited connections between a luminaire and its supply, rather than general-purpose circuit wiring anywhere in the building.

A helpful way to keep flexible cord and fixture wire straight: flexible cord is about mobility -- letting something be moved, unplugged, and relocated. Fixture wire is about internal luminaire wiring -- small conductors doing a small, specific job inside and right around a light fixture, not meant to travel any real distance or to be treated as general circuit wiring.

Ampacity: Cords and Fixture Wires Are Not Sized Like Building Wire

Both flexible cord and fixture wire have their own ampacity considerations that differ somewhat from the ampacity tables used for ordinary building conductors covered elsewhere on this site (see our companion article on wire ampacity for the standard building-conductor tables). Cord and fixture wire ampacity generally reflects their typically lighter-duty construction, smaller conductor sizes, and the fact that they are often installed in free air rather than bundled inside a raceway with other current-carrying conductors -- but the exact figures for a given cord type, fixture wire type, and size should always be confirmed against the current code book's specific tables for those categories rather than assumed to match standard building-wire ampacity at the same AWG size.

Strain Relief — Protecting the Connection Point

Anywhere a flexible cord enters an enclosure, a fixture, or a piece of equipment, that entry point is a mechanical stress concentration -- every time the cord is pulled, tugged, or flexed, the force wants to transmit itself straight to the electrical connections inside. Strain relief (a clamp, bushing, or similar fitting designed to grip the cord jacket and absorb that pulling force before it reaches the actual wire connections) exists specifically to prevent that force from loosening terminals, breaking conductor strands right at the connection point, or pulling the cord entirely out of the enclosure. A cord entering an enclosure with no strain relief at all is a common, easily overlooked violation -- the cord may work fine for a while, but repeated flexing right at the unprotected entry point is exactly the kind of stress that eventually causes a loose connection, an exposed conductor, or a complete failure at the worst possible moment.

Five Worked Examples

Example 1 — Recognizing an Improper Substitution for Fixed Wiring

Problem: An electrician needs to add a receptacle in a room 15 feet from the nearest existing outlet. Instead of running new cable through the wall, they run a heavy-duty extension cord along the baseboard, through a small hole drilled into the adjacent room, and terminate it permanently into a new receptacle box. Is this an acceptable wiring method?

Answer: No. Regardless of how heavy-duty the cord is, this arrangement uses flexible cord as a substitute for fixed wiring -- it is being installed as a permanent connection, run through a building surface, in a location where cord is not meant to serve as the building's wiring method. The correct approach is a fixed wiring method (cable or raceway) run through the wall, exactly the kind of installation flexible cord is not meant to replace.

Example 2 — A Legitimate Cord-and-Plug Application

Problem: A commercial kitchen installs a garbage disposal that is specifically listed by its manufacturer for cord-and-plug connection, with a dedicated receptacle installed inside the cabinet below the sink for that purpose. Is this a permitted use of flexible cord?

Answer: Yes. This is a textbook example of a legitimate cord-and-plug application -- the appliance is specifically designed and listed to facilitate removal and interchange (so it can be unplugged and pulled out for service or replacement), the cord is not concealed inside a building surface, and it remains accessible for inspection and disconnection at the receptacle.

Example 3 — Fixture Wire vs. Branch-Circuit Wiring

Problem: Inside a pendant light fixture, small 18 AWG stranded wire connects the socket to a splice point where it meets the 12 AWG branch-circuit conductors coming from the ceiling outlet box. Is the smaller 18 AWG wire acceptable here, even though it is much smaller than the branch-circuit wiring it connects to?

Answer: Yes, this is a normal and expected arrangement. The smaller conductor is fixture wire, governed by its own rules under Article 402, used specifically for the limited internal wiring of the luminaire -- it is not required to match the size of the branch-circuit conductors supplying the fixture, precisely because it is doing a different, smaller-scale job than the branch circuit itself. Fixture wire's permitted ampacity and use are evaluated under Article 402, separately from the branch-circuit conductor sizing.

Example 4 — Missing Strain Relief

Problem: A portable generator has a power cord entering its control panel enclosure through a plain drilled hole, with no bushing, grommet, or clamp of any kind securing the cord where it passes through the metal panel. What is the concern here?

Answer: Without strain relief, two problems exist at once: the raw metal edge of the drilled hole can abrade and cut into the cord jacket over time as the cord flexes and vibrates, and any pulling force on the cord outside the enclosure transmits directly to the internal wire connections instead of being absorbed by a proper strain-relief fitting. The fix is a listed strain-relief fitting or bushing sized for the cord, installed at the entry point, to protect both the cord jacket and the internal connections.

Example 5 — Selecting Cord for the Environment

Problem: A contractor needs a cord to power a portable saw on an outdoor job site, where the cord will be dragged across gravel and rough surfaces daily and occasionally exposed to light rain. Would a light-duty lamp cord be an appropriate choice?

Answer: No. Light-duty cord is built for low-stress indoor applications, not for being dragged across abrasive surfaces or exposed to the elements. A cord rated for hard or extra-hard service, with a jacket and construction suited to outdoor and rough-use conditions, is the appropriate choice here -- selecting the correct cord duty rating for the actual environment it will face is as much a safety decision as a code-compliance one.

Common Mistakes

Running flexible cord through walls, floors, or ceilings as if it were fixed wiring. Cord is not a substitute for a proper fixed wiring method installed inside building surfaces, as shown in Example 1.
Confusing fixture wire with flexible cord. Fixture wire is a distinct category under Article 402 meant for limited wiring within and around luminaires, not general-purpose flexible cord meant to supply portable equipment.
Assuming any cord-and-plug connection is automatically acceptable. Cord-and-plug connections need to fall within the categories the code actually recognizes as legitimate (portable equipment, listed appliances designed for interchange, and similar) rather than being used as a general shortcut around fixed wiring.
Skipping strain relief where cord enters an enclosure. As shown in Example 4, an unprotected cord entry point is a common source of both mechanical damage to the cord and loosened electrical connections over time.
Using the wrong duty-rated cord for the environment. Light-duty cord in a rough, outdoor, or high-abrasion environment fails prematurely and creates a real safety hazard, as shown in Example 5 -- always match the cord's duty rating to the actual conditions it will face.

Frequently Asked Questions

Can flexible cord ever be run inside a wall?

Generally, no -- concealing flexible cord inside a building surface the way fixed wiring is concealed runs against the core principle that cord is meant to remain accessible and is not a substitute for a proper fixed wiring method. Always use fixed wiring methods (cable assemblies or raceways) for wiring installed inside walls, floors, and ceilings.

Is an extension cord the same thing as the flexible cord covered by Article 400?

A consumer extension cord is one familiar example of flexible cord, but Article 400 covers a broader range of cord types and constructions used throughout the trade, from lamp cords to heavy-duty portable equipment cords -- the key point either way is that all of these are meant for temporary, portable, or interchangeable connections, not as a stand-in for permanent building wiring.

Does fixture wire need to match the ampacity of the branch circuit it connects to?

No -- as shown in Example 3, fixture wire is evaluated under its own rules in Article 402 for its limited role inside and around the luminaire, and is very commonly smaller than the branch-circuit conductors it ultimately connects to, since it is only carrying the modest current needed for that specific luminaire's lamp or lamps.

Why does the NEC care so much about keeping cord accessible?

Accessibility means the cord can be inspected, and any damage -- a nicked jacket, an exposed conductor, a loose plug -- can be seen and corrected before it becomes a shock or fire hazard. Concealing a cord defeats that visibility, and cord was never engineered with the same expectation of decades of undisturbed, unseen service that fixed wiring is designed for.

Are all appliances allowed to be connected by cord and plug?

No -- cord-and-plug connection for a fixed-in-place appliance is generally reserved for situations the code specifically recognizes, such as appliances listed to facilitate removal or interchange. Not every appliance qualifies just because a cord happens to be convenient; always check whether the specific appliance and installation genuinely fall within a permitted use before wiring it that way.

Key Terms

  • Flexible cord: A conductor assembly engineered from fine strands specifically to withstand repeated flexing and movement, covered by NEC Article 400, used for portable and interchangeable equipment rather than as a substitute for fixed wiring.
  • Fixture wire: Small-gauge wiring, covered by NEC Article 402, used for limited connections within and around luminaires -- a distinct category from flexible cord.
  • Fixed wiring: Permanent wiring methods such as cable assemblies (like NM or MC) and raceways, installed inside walls, floors, and ceilings and left undisturbed for the life of the building.
  • Strain relief: A clamp, bushing, or fitting that grips a cord jacket where it enters an enclosure, protecting the internal electrical connections from pulling and flexing forces.
  • Duty rating: A cord's classification (light, hard, extra-hard service, and similar categories) reflecting how much physical abuse and what environmental conditions it is built to withstand.
  • Listed appliance for interchange: An appliance specifically designed and listed by its manufacturer to be connected by cord and plug so it can be readily removed, serviced, or swapped out.

Flexible cord and fixture wire sit right alongside the general wiring methods and box-fill topics covered elsewhere on this site. Continue building this part of your knowledge with our companion articles on wiring methods (NEC 300), box fill calculations, and wire ampacity. Then put it into practice with our flexible cords and fixture wires practice test or general NEC code category.

This article is a study aid meant to help you understand the concepts behind NEC Articles 400 and 402. It is not a substitute for the official NEC and any state or local amendments that apply in your jurisdiction. Always verify exact requirements against the current adopted code edition and your local authority having jurisdiction before performing real electrical work.