Chapter 8 · Part II, Permits, Code, and the Law

Chapter 8: NEC 2023: The Code You're Working Under

Last updated Easy

Quick answer

The National Electrical Code (NEC) is the rulebook for electrical work in the U.S., published by NFPA every three years. Oklahoma adopts it statewide; cities may amend. Don't try to memorize all 700 pages. You'll mostly use Article 210 (branch circuits, where receptacles go, GFCI/AFCI rules), 240 (overcurrent protection, wire/breaker matching), 250 (grounding and bonding), 310 (wire ampacity), 314 (box fill), and 406 (receptacles). Chapter 34 of this book is a quick-reference card with the rules you'll hit most.

The National Electrical Code (NEC) is the rulebook for electrical work in the United States. It's published by the National Fire Protection Association (NFPA), updated every three years, and adopted by states and municipalities as the legal standard for what constitutes safe electrical installation. Oklahoma adopts NEC at the state level, with most jurisdictions following the most recent or near-recent edition.

This edition of the book is written to NEC 2023, which was the adopted code in Oklahoma City and surrounding jurisdictions at first printing. NEC 2026 was published in late 2025 and is being phased in by some states; Oklahoma's adoption cycle may move to NEC 2026 mid-life of this book. The differences for typical residential DIY work are modest, but verify the edition adopted in your jurisdiction before starting any permitted project. Some jurisdictions in OKC metro may still be on NEC 2017 or NEC 2020. Understanding NEC at a general level is enough to do most projects in this book correctly. You don't need to read all 700 pages. You don't need to memorize article numbers. You just need to know how it's organized, which articles you'll actually use, and how to look up specific rules when you need them.

How the NEC is Organized

The NEC is divided into chapters (broad topics), articles (specific subjects within those topics), and sections (the actual rules). Article numbers are the units you'll see referenced most often.

The chapter structure: - Chapter 1: General (definitions, basic requirements) - Chapter 2: Wiring and Protection (overcurrent protection, grounding, branch circuits) - Chapter 3: Wiring Methods and Materials (cable types, conduit, boxes) - Chapter 4: Equipment for General Use (switches, receptacles, lighting fixtures) - Chapter 5: Special Occupancies (commercial spaces, hazardous locations, etc.) - Chapter 6: Special Equipment (signs, swimming pools, EV charging) - Chapter 7: Special Conditions (emergency systems, optional standby) - Chapter 8: Communications Systems (telephone, antenna, network) - Chapter 9: Tables (conduit fill, conductor properties)

For typical residential work, you'll spend most of your time in Chapters 2, 3, and 4.

The Articles You'll Actually Use

Article 100: Definitions. When code talks about "branch circuit" or "feeder" or "premises wiring," this article defines exactly what those terms mean. Worth flipping through once just to align your vocabulary with code's vocabulary.

Article 110: Requirements for Electrical Installations. General rules about how installations must be done: working space requirements, marking, mechanical execution. Section 110.26 (working space at panels) gets cited often.

Article 200: Use and Identification of Grounded Conductors. Rules about neutral wires: when they must be present, how they're identified, when white can be used as a hot.

Article 210: Branch Circuits. This is the one you'll reference most. Covers: - Where receptacles are required - What circuits need GFCI and AFCI protection - How many small-appliance circuits the kitchen needs - Outlet spacing rules in living areas - Bathroom, kitchen, laundry circuit requirements

If you only read one NEC article, read 210.

Article 230: Services. Covers the service entrance, meter, main panel, and disconnect requirements. Mostly for panel and service work.

Article 240: Overcurrent Protection. Rules about breakers, fuses, and how they protect circuits. Section 240.4 covers the wire-size-to-breaker-size matching that we discussed in Chapter 4.

Article 250: Grounding and Bonding. The whole grounding system: ground rods, bonding jumpers, equipment grounding conductors, the relationship between neutral and ground. Important and often confusing. We covered the basics in Chapter 2.

Article 300: General Requirements for Wiring Methods. How cables and conductors are run: support, protection from physical damage, minimum cover for buried wiring, etc.

Article 310: Conductors for General Wiring. Wire ampacity tables (how much current each size can carry), insulation ratings, temperature derating. The tables in this article are referenced constantly.

Article 314: Outlet, Device, Pull, and Junction Boxes. Box fill calculations, support requirements, accessibility rules. Important for any project where you're installing or replacing a box.

Article 334: Nonmetallic-Sheathed Cable (NM, NM-B). Rules specifically for the Romex cable you'll use in most residential work.

Article 404: Switches. Switch installation, dimmer rules, requirements for specific locations.

Article 406: Receptacles, Cord Connectors, and Attachment Plugs. Receptacle installation, tamper-resistance rules, weather-resistant requirements.

Article 408: Switchboards, Switchgear, and Panelboards. Panel installation rules.

Article 410: Luminaires (Lighting Fixtures). Lighting fixture installation, weight limits on boxes, fan-rated box requirements.

That's about 14 articles. Memorizing them isn't necessary; just knowing they exist and what they cover lets you look up specifics when needed.

NEC 2023: What's New

If you're working under an older code edition (NEC 2017 or 2020), here are the most important changes in NEC 2023 that affect residential work:

Expanded GFCI requirements. GFCI protection is now required for additional locations and circuits. Notably, dishwasher circuits (added in NEC 2014), and now expanded for kitchen island and peninsula countertop receptacles (basically any kitchen counter). Outdoor outlets at dwelling units require GFCI protection (NEC 210.8(A)(3)), with no "6 feet from structure" qualifier, every outdoor receptacle, period.

AFCI expansion. AFCI protection was already required on most living-space circuits in NEC 2017 and 2020. NEC 2023 has minor refinements but the core requirement is similar.

Surge protection requirement (Section 230.67). A whole-house surge protective device (SPD) is now required at the service entrance for new dwellings. Most existing homes won't have this, and you're not generally required to retrofit unless you're doing a panel replacement. But for new panel installs, expect this requirement.

EV charging clarifications. NEC 2023 has updated requirements for EV supply equipment (EVSE), including dedicated circuit requirements and load management considerations. We'll cover EV charging in detail in Chapter 24.

Tamper-resistant receptacles. TR receptacles are required in essentially all dwelling unit receptacles. This requirement has been in place since NEC 2008, but enforcement is universal now.

Reconditioning updates. The minimum sizes and types for service entrance conductors have been refined. For 200A service, expect to see 4/0 aluminum or 2/0 copper as the minimum standard.

These are the headline changes. For most projects in this book, the differences between NEC 2017, 2020, and 2023 are small. If you're working to NEC 2020 or 2017 standards (because that's what your local jurisdiction has adopted), you'll be fine for almost everything. Just stay current with your inspector on what code edition your jurisdiction is using.

Where Receptacles Are Required (NEC 210.52)

This is one of the most-referenced sections of the entire NEC for residential work. Worth knowing well:

Living spaces (210.52(A)): receptacles in every wall longer than 24 inches must be placed so no point along the wall is more than 6 feet from a receptacle. In practice, this means receptacles roughly every 12 feet along walls, plus on any wall longer than 2 feet.

Kitchens (210.52(C)): at least two 20A small-appliance branch circuits dedicated to kitchen counter outlets. Receptacles required at least every 4 feet along countertops, with at least one receptacle on every counter section longer than 12 inches. Island and peninsula receptacles also required. Note: under NEC 2023, all kitchen countertop receptacles require GFCI, and the rules around sinks and islands/peninsulas have been expanded. Some dedicated single-appliance receptacles (e.g., refrigerator behind the unit) may have carve-outs depending on the edition and exact location, when in doubt, GFCI doesn't hurt.

Bathrooms (210.52(D)): at least one receptacle on a 20A circuit, located within 36 inches of the outside edge of each basin.

Outdoor (210.52(E)): at least one receptacle accessible from grade at the front and back of the dwelling. GFCI required.

Laundry (210.52(F)): at least one receptacle on a 20A circuit dedicated to the laundry.

Basement and garage (210.52(G)): at least one receptacle in basements and garages. GFCI required.

Hallways (210.52(H)): at least one receptacle in any hallway 10 feet or longer.

Foyers (210.52(I)): receptacles required in foyers larger than 60 sq ft.

For new construction or significant remodels, hitting these requirements is mandatory. For minor work, you're generally only required to bring the part of the house you're modifying up to code.

Where GFCI is Required (NEC 210.8)

GFCI protection is required at: - All bathroom receptacles - All kitchen receptacles serving countertop surfaces (and now under NEC 2023, all kitchen receptacles) - Receptacles within 6 feet of any sink (not just kitchen) - All outdoor receptacles - All garage and accessory building receptacles - Unfinished basement receptacles - Crawlspace receptacles - Laundry area receptacles - Receptacles within 6 feet of a bathtub or shower - Receptacles serving a dishwasher (under NEC 2017+) - Receptacles for boathouses and similar outdoor structures - Receptacles in indoor wet bar areas (within 6 feet of the sink)

The trend across recent code editions has been expanding GFCI requirements. If you're not sure whether a specific location requires GFCI, the safe answer is "probably yes." GFCI receptacles cost only a few dollars more than standard receptacles, and they don't hurt anything in locations where they're not strictly required.

Where AFCI is Required (NEC 210.12)

AFCI protection is required for all 120V, 15A and 20A branch circuits supplying outlets or devices in the following locations of dwelling units:

  • Bedrooms
  • Living rooms, family rooms, dens, parlors, libraries
  • Hallways
  • Closets
  • Recreation rooms
  • Sunrooms
  • Dining rooms
  • Laundry areas
  • Kitchens

Basically every living space. The specific exceptions (like circuits dedicated to refrigerators or smoke alarms in some configurations) are detailed and update with each NEC cycle.

The practical takeaway: for any new circuit feeding a living area, plan to use an AFCI breaker (or AFCI/GFCI dual-function breaker). It's easier to plan for it than to retrofit later.

Box Fill Calculations (NEC 314.16)

This one trips up DIYers. Every device box has a maximum capacity for what can be inside it, measured in cubic inches. Exceed it and you fail inspection.

The calculation:

Each insulated conductor that enters the box and either terminates there or passes through: 1 unit of fill (based on wire size).

Wire size volumes: - 14 AWG: 2.0 in³ - 12 AWG: 2.25 in³ - 10 AWG: 2.5 in³ - 8 AWG: 3.0 in³ - 6 AWG: 5.0 in³

All ground wires combined: 1 unit

Each device (switch, receptacle, GFCI, etc.): 2 units (based on the largest conductor connected to it)

Each cable clamp inside the box: 1 unit

Add up the units, multiply by the volume per unit for the wire size, and that's your required box volume. The box itself has a stamped or marked volume; it must equal or exceed your calculated requirement.

Example: a single-gang box with one 14/2 NM-B cable entering and exiting, with one switch: - 4 insulated conductors (2 hot + 2 neutral) = 4 units - All grounds = 1 unit - 1 switch = 2 units - 1 cable clamp = 1 unit - Total: 8 units × 2.0 in³ = 16 in³ required

A standard 18 in³ device box passes. A "shallow" 14 in³ box does not. This is exactly the kind of thing inspectors look at.

If you're stuffing too many wires into a small box, the solution is usually to upgrade to a deeper box.

Working Space at Panels (NEC 110.26)

Code requires clear working space in front of every electrical panel:

  • 30 inches wide (centered on the panel, or starting from one side)
  • 36 inches deep (3 feet, measured from the panel face)
  • 6.5 feet tall clear height

Within this clear space: - No equipment of any kind (boxes, shelves, water heaters, stored items) - No doors that open into the space and block access - Adequate illumination - Everything must be accessible and unobstructed

This is one of the most commonly violated code requirements in older homes, where basements and utility rooms have accumulated storage in front of panels over decades. If you're doing a panel project, the first step is often clearing out the working space.

Looking Up a Code Citation in 30 Seconds

When you need to verify something in the NEC, here's the fastest way:

Free online resource: NFPA Link. NFPA provides free read-only access to NEC and many other codes through their NFPA Link platform at link.nfpa.org. You'll need a free account, but you can search and read the entire code online without buying the printed book.

Search by article number. If you know it's "in Article 210 somewhere," just search "210" within NFPA Link. The article structure is easy to navigate.

Search by keyword. If you don't know the article, search the topic ("GFCI bathroom," "box fill," "AFCI bedroom"). Code-related searches usually surface the right section.

Mike Holt's free resources. Mike Holt Enterprises (mikeholt.com) is one of the most respected names in NEC training. They publish many free articles, videos, and code interpretations. If you're stuck on a code question, their content is often clearer than the code itself.

Oklahoma-specific resources. The Construction Industries Board (cib.ok.gov) is the state agency that administers the Electrical License Act and publishes current rules, license verification, and forms. The Oklahoma Uniform Building Code Commission (OUBCC, at oklahoma.gov) publishes the building codes adopted statewide. Before any permitted project, it's worth a quick check of both sites to confirm you're working under the current state-adopted code edition.

City building department. When all else fails, call the local inspector's office and ask. They deal with these questions every day. They'd rather you get it right than have to fail you on inspection.

Local Amendments

NEC sets a national baseline, but states and cities can amend it. Oklahoma's adoption of NEC is generally clean (we don't have many state-level amendments that affect typical residential work). City-level amendments are rare in OKC metro but do exist.

Places to check: - Service entrance specifics. Some cities have specific requirements for service entrance conductor and meter base installation that differ from NEC. - Grounding rod specifics. Some require two ground rods minimum, regardless of soil resistance testing. - Working space. Some cities are more stringent about panel access than NEC's baseline.

For most residential work, NEC is the operative code, and the rules in this book apply. If you encounter a local amendment, your inspector will tell you about it. Don't worry about chasing every possible amendment in advance; just be ready to adjust if the inspector flags something.

When to Consult a Pro on Code Questions

There are situations where the code question is complex enough that calling a licensed electrician (or even an electrical engineer for very complex jobs) is the smart move.

Load calculations for adding circuits to existing panels. The math is straightforward in principle, but the details (continuous vs. non-continuous loads, demand factors, connected vs. calculated load) trip up DIYers regularly.

Multi-occupancy or shared system questions. Anything involving a duplex, condo, or shared metering system has more code complexity than typical single-family work.

Service capacity questions. "Can my existing 100A service handle this addition?" is sometimes a quick yes, sometimes a complex calculation.

Solar / battery / EV / generator interconnection. These all have specific code chapters with detailed requirements that change frequently.

For these, even an hour of paid consultation with a licensed electrician (often $100–150) can save you days of research and the risk of a code violation that fails inspection.

What's Next

You now have a working understanding of the NEC: what it is, how it's organized, which parts you'll actually use, and how to look up specific rules. Chapter 9 covers the practical inspection process: what happens when the inspector comes out, what they check for, and how to make sure you pass on the first try.

By the end of Part II, you'll have every conceptual, regulatory, and safety tool you need to execute any of the beginner projects in Part III confidently.

SPARK SHARK SIDE NOTE

NEC isn't a book most homeowners read cover to cover, and you don't need to. But if you're going to do significant electrical work over the years, having access to the code (through NFPA Link or a printed copy) is worth it. The 2023 edition can be looked up section-by-section online for free. When you do a project, look up the specific articles relevant to it, and bookmark the ones that come up repeatedly. After a few projects, you'll know exactly where to find the answer to any common question.

FAQ

Where do I look up the NEC?
NFPA offers free online access to current NEC editions at nfpa.org/codes-and-standards (you have to create a free account). Public libraries often have the printed reference. Mike Holt's videos and the IAEI's training materials explain code rules in plain language.
What's the difference between NEC 2020 and 2023?
For residential DIY, the biggest 2023 change was expanding GFCI requirements to ALL kitchen receptacles (not just countertop), expanding AFCI requirements, and requiring more dwelling-unit receptacles to be tamper-resistant. The differences are modest for typical work but consequential where they apply.
Do I have to follow code if I'm not pulling a permit?
Legally, code applies regardless of permit status. Practically, the inspector only sees permitted work. But code violations show up at sale time (home inspection), at insurance claim time, and at any future contractor's site visit. Do work to code even on small projects.
Back to all chapters