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.

Updated 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

Examining Operating Expense (OPEX) in Solar Systems

More on the glossary
Man with laptop in front of panels

Technology and engineering

What are the benefits of a Power Purchase Agreement (PPA) for solar plants

More on the glossary

Technology and engineering

What is a solar combiner box and why is it used in photovoltaic designs?

More on the glossary
Combiner box on the end of a string of solar panels

Related posts

Technology and engineering

Innovation in renewable energy: Developments expected in 2025

We look at the 10 biggest renewable industry developments that are making a green future possible, including perovskite solar cells, green hydrogen, and more.

More on the blog
Solar Power Technologies that rocked it in 2022

Technology and engineering

What the future holds for the longevity and efficiency of solar panels

Tests done by the French photovoltaics group Hespul showed that the panels, installed in 1992, are still operating at an astonishing 79.5% efficiency. Read on to find out more.

More on the blog

Technology and engineering

Concentrated solar: An unlikely comeback?

More on the blog
concentrated solar