What is the National Electrical Code (NEC)?

Published by
Jeremy Vickerman

Jeremy Vickerman

Content specialist

Reviewed by
Nacho Álvarez
Nacho Álvarez
Nacho Álvarez

Nacho Álvarez

PV project engineer

I am an engineer. I like numbers and techno music. I owned a brewed beer called Drifter Ale.

14 MAR, 24
electrical technician working in a switchboard

Find out what National Electrical Code (NEC) is and how it is used by electrical engineers and electricians to work safely.

Read more!

What is the NEC?

The National Electrical Code (NEC) outlines the guidelines and regulations that inform electricians how to install and use electrical wiring and equipment. It lays out standards and best practices for electrical systems in structures like homes, commercial buildings, and industrial facilities.

Experts and engineers from the National Fire Protection Association (NFPA) update the NEC every three years. Revisions address new technologies and reflect the latest safety research. The rulebook covers everything from the wires inside walls to lighting systems, generators, batteries, and solar panels.

The National Electrical Code specifies the proper size and type of wires electricians should use. It dictates how electricians should install wires, the required clearances around electrical equipment, labeling standards for circuit breakers, and mandatory electrical safety protections.

Most American cities, counties, and states legally enforce the National Electrical Code by including it in their building codes. Following the NEC rules helps reduce fires, shock hazards, and other electrical risks. In turn, it makes things safer for electricians working on systems and residents using electricity in buildings.

Is the National Electrical Code a law?

The National Electrical Code is not a law or set of laws. However, many places around the United States use rules from the National Electrical Code in their local legislation.

The rulebook helps electricians know the right way to operate, even when not enforced by law. 

What are the two basic rule types in the NEC? 

The NEC contains two rule types that electricians need to pay attention to, mandatory and permissive rules. The NEC indicates these by specific wording.

Mandatory rules use terms like "shall" or "shall not." For example, "Electrical panels shall have a clear working space 36 inches wide and 30 inches deep in front of them". Mandatory statements like this describe required actions or prohibited actions. Electricians must follow these rules to be compliant.

Permissive rules use the phrasing "shall be permitted." For example, "In unfinished basements, exposed Romex wiring shall be permitted." Permissive statements indicate options that are allowed but not necessarily required. Electricians can choose to implement these statements, but they don't have to.

The rise of BESS in Australia

Design utility-scale solar at lightning speed

Take a product tour

Here is a list of the sources used to create this article. 

  1. Techtarget
  2. Electrical Safety Foundation

Share this

Related glossary posts

Technology and engineering

Why is bill of quantities (BoQ) important when designing solar plants?

More on the glossary
Man in front of solar panels

Technology and engineering

How maximum power point tracking (MPPT) is used in utility-scale solar design

More on the glossary
String inverters

Technology and engineering

What is power factor and how is it used in solar design?

More on the glossary
grid

Related posts

Technology and engineering

Solar Power Technologies that rocked it in 2022

Solar Power Technologies that rocked it in 2022

Technology and engineering

Learn PV substation engineering and design automation with RatedPower

Do you know why and how a solar farm connects to the grid? RatedPower automatically generates the best solution for an interconnection facility and chooses between a switching and breaking station, a line to transformer substation or a single/double busbar substations.

More on the blog
Learn PV substation engineering and design automation with RatedPower

Technology and engineering

The era of standalone energy yield software is ending

Let's take a look at the foundations of PV system energy yield calculations, the history of standalone EY tools and the benefit from integrating design, engineering and energy yield in one tool
More on the blog
The era of standalone energy yield software is ending