National Electrical Code (NEC) Rules for Outdoor Wiring

Lineman working on cable at connection box at a home
Huntstock / Getty Images

The National Electrical Code (NEC) includes many specific requirements for outdoor circuits and equipment. The primary safety concerns with outdoor wiring are shielding against moisture and corrosion, preventing physical damage, and managing issues related to underground burial. With most residential outdoor wiring projects, the relevant code requirements pertain to installing outdoor receptacles and lighting fixtures, and to running wiring above and below ground.

Where the official Code requirements call for "listed" equipment, it means that the products used must be listed for the application by an approved testing agency, such as UL (formerly Underwriters Laboratories). 

Outdoor Receptacles 

  • GFCI (ground-fault circuit-interrupter) protection is required for all outdoor receptacles. Specific exceptions may be made for snow-melting or deicing equipment. GFCI protection can include GFCI receptacles or GFCI circuit breakers.
  • Homes must have at least one outdoor receptacle at the front and rear of the house. They must be readily accessible from the ground and positioned no more than 6 1/2 feet above grade (ground level). 
  • Attached decks and balconies with interior access (including a door to the indoors) must have a receptacle no more than 6 1/2 feet above the deck or balcony walking surface. As a general recommendation, houses also should have a receptacle at each side of a deck or balcony, accessible from the ground. 
  • Receptacles in damp locations (under protective covers, such as a porch roof) must be weather-resistant and have a weatherproof (sometimes called weathertight) cover. 
  • Receptacles in wet locations (exposed to weather) must be weather-resistant and have a weatherproof "in-use" cover. This cover provides sealed weather protection even when cords are plugged into the receptacle. 
  • A permanent swimming pool must have access to an electrical receptacle that is no closer than 6 feet and no further than 20 feet from the closest edge of the pool. The receptacle must be no higher than 6 1/2 feet above the pool deck. The receptacle must have GFCI protection. 
  • Receptacles used to power pump systems on pools and spas must be no closer than 10 feet from the inside walls of a permanent pool, spa, or hot tub if they are not-GFCI protected, and no closer than 6 feet from the inside walls of a permanent pool or spa if they are GFCI protected. These receptacles must be single receptacles that can serve no other devices. 

Outdoor Lighting

  • Light fixtures in wet/exposed areas must be listed for use in wet locations. 
  • Light fixtures in damp areas (protected by an overhanging eave or roof) must be listed for damp locations.
  • Surface-mounted electrical boxes for all electrical fixtures must be raintight/weatherproof. 
  • Exterior light fixtures do not require GFCI protection
  • Low-voltage lighting systems must be listed by an approved testing agency as an entire system or assembled from individual components that are listed. 
  • Low-voltage light fixtures (luminaires) must be no closer than 5 feet away from the outside walls of pools, spas, or hot tubs. 
  • Transformers for low-voltage lighting must be accessible. 
  • Switches controlling pool or spa lights or pumps must be located at least 5 feet from the outside walls of the pool or spa unless they are separated from the pool or spa by a wall. 

Outdoor Wiring

  • Exposed or buried wiring/cable must be listed for its application. Type UF cable is the most commonly used nonmetallic cable for residential outdoor wiring runs.
  • UF cable can be direct-buried (without conduit) with a minimum of 24 inches of cover. 
  • Wiring buried inside rigid metal (RMC) or intermediate metal (IMC) conduit must have at least 6 inches of earth cover; wiring in PVC conduit must have at least 18 inches of cover. 
  • Backfill surrounding conduit or cables must be smooth granular material without rocks. 
  • Low-voltage (no more than 30 volts) wiring must be buried at least 6 inches deep. 
  • Buried wiring runs that transition from underground to above ground must be protected in conduit from the required cover depth or 18 inches (whichever is less) to its termination point above ground, or at least 8 feet above grade. 
  • Electrical service wires overhanging a pool, spa, or hot tub must be at least 22 1/2 feet above the surface of the water or surface of the diving platform. 
  • Data transmission wires (telephone, internet, etc.) must be at least 10 feet above the surface of the water in pools, spas, and hot tubs. 

Call Before You Dig

This is not an NEC requirement, but it could save your life, not to mention prevent considerable trouble with your service providers. Call 811, the national "Call Before You Dig" hotline, at least three days before you plan to dig anywhere on your property. The hotline personnel will notify all utility providers in your area. Those with lines running through your property will send out a representative to mark their line(s) on the ground. You can use power equipment to dig no closer than 24 inches to marked lines, but you must use a hand shovel when digging within 24 inches of either side of a marked line.