Electric Codes: NEC Rules, Permits, and Required Safety Devices

Electrical codes are the safety rules that dictate how wiring, outlets, circuits, and electrical equipment must be installed in buildings, and in the United States they are built on the National Electrical Code (NFPA 70), which every state uses as the baseline for safe electrical work.1National Fire Protection Association. NFPA 70 – National Electrical Code The code itself is written nationally, but it only becomes law when your state, county, or city formally adopts it, which is why the exact rules for your project depend on where you live. For a homeowner, this translates into concrete requirements: certain outlets in certain places, certain wire gauges for certain circuits, certain protective devices, and a permit and inspection for most work beyond swapping a switch.

The National Electrical Code and Why Your Local Edition Matters

The National Electrical Code, or NEC, is published by the National Fire Protection Association and updated every three years to keep pace with new technology and materials.2Electrical Safety Foundation International. The National Electrical Code (NEC) The most recent edition, NEC 2026, was published in October 2025 and takes effect nationally on September 1, 2026, though states adopt it on their own timelines.

The NEC is a model code. On its own, it carries no legal weight. It becomes enforceable only when a state legislature, city council, or county board writes a specific edition into local ordinance. That means the “current” code where you live might be the 2023 edition, the 2020 edition, or something older. As of early 2026, roughly half the states have adopted the 2023 NEC, while others still operate under the 2020 or 2017 editions.3International Association of Electrical Inspectors. NEC Adoption and CEU Requirements by State

Enforcement sits with the local building department, fire marshal, or code enforcement office, which decides which edition to adopt and whether to add local amendments.4National Fire Protection Association. Who Is Responsible for Enforcing NFPA 70E Amendments reflect regional conditions. A coastal jurisdiction may impose stricter rules for outdoor installations; a seismic area may require extra bracing for panels and conduit. Local changes make the code stricter, never looser. Before you start a project, call the local building department and confirm which NEC edition applies and whether any local amendments add requirements.

When Existing Wiring Has to Be Brought Up to Code

A new code edition does not force you to rewire your house. Every state has grandfathering provisions that let existing electrical systems stay as they are, as long as they were compliant when installed and remain safe.

What triggers mandatory upgrades is a renovation or addition that requires a building permit. Pull a permit for a kitchen remodel, a room addition, or a panel replacement, and the inspector will hold the new work to the current adopted code. The scope of the upgrade is usually limited to the area being worked on. A bathroom renovation might require adding GFCI protection to that bathroom’s circuits without forcing you to rewire the rest of the house. A full panel replacement, on the other hand, will likely require a whole-house surge protector along with other modern panel standards. The principle is simple: once you open a wall or touch the electrical system, that work has to meet today’s rules.

Outlet Spacing and Wire Sizing

The NEC is specific about where outlets go and how circuits are wired. Inspectors measure, and work that falls short will not pass.

In general living spaces (bedrooms, living rooms, family rooms), receptacle outlets must be placed so that no point along a wall is more than six feet from an outlet. In practice, that works out to outlets roughly every twelve feet along unbroken wall, with any wall section two feet or wider getting its own outlet. Kitchen countertops are tighter: no point along the counter can be more than 24 inches from an outlet, meaning receptacles roughly every four feet, and every counter space 12 inches or wider needs its own.

Wire gauge has to match circuit capacity so the wire itself does not overheat. Standard 15-amp circuits use 14-gauge copper wire, and 20-amp circuits require thicker 12-gauge. Heavy appliances such as electric ranges, clothes dryers, and water heaters need dedicated circuits with 10-gauge or 8-gauge wiring to handle the load. Running undersized wire on a high-amperage circuit is one of the most dangerous violations because the wire becomes a fire hazard.

Required Safety Devices: GFCI, AFCI, and Surge Protection

Three protective devices dominate residential code, each addressing a different hazard.

Ground Fault Circuit Interrupters (GFCIs) detect tiny current leaks, such as electricity escaping through water or a person’s body, and cut power in milliseconds. The NEC requires GFCI protection in bathrooms, kitchen countertop outlets, garages, outdoor areas, basements, crawl spaces, laundry rooms, and within six feet of any sink or bathtub. The list has grown with each revision; the 2023 edition expanded it further to indoor damp and wet locations generally.

Arc Fault Circuit Interrupters (AFCIs) detect the dangerous arcs caused by damaged wiring, loose connections, or nails driven through cables. They are required on virtually all 120-volt, 15- and 20-amp circuits in living spaces, including bedrooms, kitchens, family rooms, dining rooms, hallways, closets, laundry areas, and recreation rooms. The coverage is broad enough that it is easier to list what is excluded than what is included.

Whole-house surge protective devices (SPDs) have been required since the 2020 NEC. Every service panel supplying a dwelling unit must include a Type 1 or Type 2 surge protector, either built into the panel or mounted immediately next to it. The requirement also applies whenever an existing panel is replaced, so a panel swap during a renovation triggers the SPD requirement even if the rest of the house remains grandfathered.5Electrical License Renewal. 230.67 Surge Protection

EV Charging

Home EV charging has become one of the fastest-growing areas of residential electrical work. Level 2 chargers run on 240 volts, must be permanently installed, and typically need a 40-amp or 50-amp dedicated circuit with appropriately sized wiring.

The NEC 2026 edition tightens the rules. All EV charging circuits now require 5-milliamp Class A GFCI protection, a much more sensitive threshold than the previous 20-milliamp standard. Permanently installed charging equipment must be installed by a qualified person, which most jurisdictions read as requiring a licensed electrician. The 2026 code also expands requirements for energy management systems that balance load between the charger and the rest of the home; those systems must be UL-listed and have restricted access to their settings. Because 2026 adoption will roll out state by state over several years, your local rules may not yet include these updates. Confirm with the building department before you install.

Permits, Inspections, and Who Can Do the Work

Nearly every electrical project beyond swapping a switch or receptacle requires a permit. The permit creates a paper trail and triggers inspections that verify the work meets code.

Applications typically ask for the property address, a scope of work, circuit diagrams for new or modified wiring, and load calculations showing the service panel can handle the added demand. Most jurisdictions accept applications online. Fees vary widely, generally running from around $50 for simple work to $500 or more for a whole-home project.

Permitted work goes through at least two inspections. The rough-in inspection happens after wiring is pulled and junction boxes are installed but before anything is covered by drywall or insulation; the inspector checks routing, box mounting, and connections while everything is visible. The final inspection, after completion, confirms cover plates are installed, circuits are labeled in the panel, devices work, and the installation matches the permit. A passed final inspection becomes a permanent public record that the work was done to code.

Licensing varies by jurisdiction but generally involves two tiers. A journeyman electrician has completed an apprenticeship and can perform installations, repairs, and modifications on their own. A master electrician has additional training and testing, can design systems, pull permits on behalf of clients, and supervise other electricians. Most jurisdictions require one of these licenses for anyone doing electrical work for hire.

Many jurisdictions let homeowners do electrical work on their own primary residence, as long as they pull the required permits and pass the same inspections a contractor would. The work still has to meet code; a homeowner permit does not lower the standard, it just waives the licensing requirement. Some jurisdictions restrict what homeowners can do, and a few prohibit DIY electrical work entirely. Check locally before assuming you can wire your own addition. Whoever does the work, the permit holder is legally responsible for compliance.

What Happens if You Skip the Code

The risks of unpermitted or non-compliant electrical work tend to surface at the worst possible times.

Enforcement comes first. If an inspector finds unpermitted work, the jurisdiction can fine you, order the work torn out and redone under permit, or withhold a certificate of occupancy until it is fixed. Penalties for working without a license or permit range from a few hundred dollars to several thousand, and repeat violations can escalate to criminal charges in some states.

Insurance is where it gets expensive. If a fire or other damage traces back to unpermitted wiring, your homeowner’s insurance may deny the claim entirely, on the reasoning that work never inspected for code compliance was never verified as safe. Insurers who discover unpermitted work during an investigation may cancel your policy or refuse to renew it. Some will exclude coverage for portions of the home with known unpermitted modifications.

Selling a home with unpermitted electrical work creates another layer of trouble. Most states require sellers to disclose known unpermitted work. Buyers who find undisclosed work after closing can pursue claims for misrepresentation or breach of contract. Even when properly disclosed, unpermitted work tends to drop the sale price because buyers price in the cost of bringing it up to code. Lenders may refuse to approve a mortgage on a property with known violations, shrinking the buyer pool and pushing you toward a lower cash offer.

The cheapest electrical permit in the country costs less than a decent dinner out. Set against a denied insurance claim or a lawsuit from a buyer, the permit fee is rounding error.