The National Electrical Code (NEC) is NFPA 70, the model code for electrical installations published by the National Fire Protection Association. It isn't law on its own: it applies where a state or local government adopts it, by edition and often with amendments, and inspectors check permitted work against that adopted version.
Also called: NEC, NFPA 70
The NEC sets the rules for how electrical systems are installed: services and panels, feeders and branch circuits, grounding and bonding, wiring methods, overcurrent protection, and where receptacles and protective devices are required. It also covers equipment such as solar PV systems, EV chargers, generators and battery storage.
It isn't only an electrician's book: the circuit for a heat pump or an EV charger and the wiring on a solar array are installed under it too. Which trade may do that work is a separate question for your state's licensing rules.
The NEC governs the installation, not how your crew works on it. Safe work practices around energized equipment are covered by a separate standard, NFPA 70E, Standard for Electrical Safety in the Workplace.
NFPA publishes a new edition of the NEC every three years 1, named for its year, such as the 2023 or 2026 NEC. The code becomes the rule only where a state, county or city adopts it, and each jurisdiction adopts a specific edition on its own schedule, often with amendments. So the code your inspector enforces may not be the newest one, and neighboring jurisdictions can enforce different editions.
What passes is decided by the authority having jurisdiction (AHJ), usually the local electrical inspector or building department. Before you price work in a new town, find out:
Keep the answers in your price book, by jurisdiction. If you're studying for a license exam, ask your board which edition the exam is based on.
Example: You price a basement finish from the edition your home county enforces. The job is across the county line, where a newer edition is in force, and the inspector requires added protection on four circuits you priced with standard breakers. Say each protected breaker costs $50 more and the return trip takes 2 hours at $120 an hour: $440 comes out of your profit, plus any re-inspection fee. Asking which edition applies before you quote puts it in the estimate instead. The numbers are made up for illustration.
A building permit is how the AHJ gets to inspect work against the adopted code. Code-driven items belong in the scope of work and the estimate. When opening a panel or wall turns up something the inspector won't pass once you've touched it, price it as a change order and get approval before you fix it. How to write an electrical estimate shows how to put the load calculation, permit and code-triggered conditions on the page.
Rules and figures change, and many requirements vary by state and city. Check the current version of each source and your local authority before acting, and talk to a licensed professional about your specific situation.