Shed Wiring Diagram: How to Run Power to a Shed or Outbuilding

Running electrical power to a shed, workshop, or outbuilding is a popular DIY project that dramatically increases the usefulness of the space. Whether you need lights, outlets, or power tools, this guide covers everything from planning to final connections: NEC requirements, underground cable installation, circuit planning, and complete wiring diagrams.

Planning Your Shed Electrical

Determine Your Power Needs

Before digging trenches or buying materials, list what you will power in the shed:

Basic shed (lights and a few outlets):

Workshop shed (power tools):

Heated/cooled shed:

Single Circuit vs Subpanel

Single circuit (simplest option):

Subpanel (recommended for workshops):

NEC Requirements for Outbuilding Wiring

Underground Feeder Cable (NEC 300.5)

Cable from the house to the shed must be buried underground (or run overhead on a pole):

Wiring Method Minimum Burial Depth
UF-B cable (direct burial) 24 inches
Conduit with THWN wire 18 inches (rigid metal) or 18 inches (PVC)
Under driveway 24 inches minimum (all methods)

GFCI Protection

All 120V outlets in a detached shed/outbuilding must be GFCI-protected (NEC 210.8).

Grounding

A detached building with a subpanel requires its own grounding electrode (ground rod). The subpanel must have separate neutral and ground bus bars (not bonded).

If running a single circuit (no subpanel), a ground rod may not be required if the circuit has an equipment ground conductor -- but check local code.

Disconnecting Means

If the shed has a subpanel, it must have a disconnecting means (main breaker or disconnect switch) at the shed.

Underground Cable Installation

Option 1: UF-B Cable (Direct Burial)

UF-B (Underground Feeder) cable is rated for direct burial without conduit:

  1. Dig a trench 24 inches deep (plus a few inches for the cable bed)
  2. Lay 2-3 inches of sand in the bottom of the trench for the cable bed
  3. Lay the UF-B cable in the trench -- do not pull or stretch it
  4. Lay detectable warning tape 12 inches above the cable
  5. Backfill with sand, then native soil
  6. At each end (house and shed), transition to conduit using an LB fitting
  7. Run conduit up the wall to the panel or junction box

UF-B limitations: It cannot be run inside walls or in conduit for long distances (it is designed for direct burial only). At each building, transition to NM (Romex) or THHN in conduit.

Option 2: Conduit with THWN Wire (Recommended)

Running PVC conduit with individual THWN wires is more versatile and allows future upgrades:

  1. Dig a trench 18 inches deep (for Schedule 40 PVC)
  2. Lay Schedule 40 PVC conduit in the trench with proper fittings (elbows, couplings)
  3. Glue all joints with PVC cement
  4. At each end, use a 90-degree sweep to bring the conduit up the wall
  5. Pull THWN wires through the conduit
  6. Backfill the trench

Advantages of conduit:

Conduit Sizing

Feeder Size Minimum Conduit
12 AWG (20A single circuit) 3/4 inch PVC
10 AWG (30A) 3/4 inch PVC
6 AWG (60A subpanel) 1 inch PVC
3 AWG (100A subpanel) 1-1/4 inch PVC

Wiring Diagram: Single 20A Circuit to Shed

Materials

Connections

At the house panel:

  1. Install a 20A GFCI breaker (or standard breaker + GFCI first outlet in shed)
  2. Connect black wire to the breaker
  3. Connect white wire to the neutral bus
  4. Connect ground to the ground bus

At the shed:

  1. Bring the cable into the shed through conduit and an LB fitting
  2. Connect to the first outlet (GFCI if not using a GFCI breaker)
  3. Daisy-chain additional outlets in parallel
  4. Wire lights to a switch from the same circuit

Wiring Diagram: 60A Subpanel to Shed

Materials

Connections

At the house panel:

  1. Install a 60A double-pole breaker
  2. Connect black and red wires to the breaker terminals
  3. Connect white wire to the neutral bus
  4. Connect green/bare wire to the ground bus

In the trench:

  1. Run 1-inch PVC conduit from house to shed (18 inches deep)
  2. Pull four 6 AWG THWN wires: black, red, white, green

At the shed subpanel:

  1. Connect black and red wires to the main lugs (or main breaker)
  2. Connect white wire to the NEUTRAL bus bar
  3. Connect green wire to the GROUND bus bar
  4. Do NOT bond neutral and ground -- they must be on separate bus bars
  5. Drive an 8-foot ground rod outside the shed
  6. Run a #6 bare copper wire from the ground rod to the subpanel ground bar

Branch circuits in the shed:

Overhead Power to a Shed

If trenching is not practical, you can run power overhead:

Common Shed Wiring Mistakes

  1. Not deep enough trench: 24 inches for UF-B, 18 inches for conduit. Measure carefully.
  2. Using indoor cable underground: NM (Romex) is NOT rated for direct burial. Use UF-B or THWN in conduit.
  3. Bonded neutral/ground in subpanel: The subpanel must keep neutral and ground separate.
  4. No ground rod: A detached building with a subpanel needs its own grounding electrode.
  5. Undersized feeder: Plan for future loads, not just current needs. Run a larger feeder now -- it is much cheaper than re-digging later.
  6. No GFCI: All shed outlets need GFCI protection.
  7. No permit: Most jurisdictions require a permit for running power to an outbuilding. Get it inspected.

Creating Shed Wiring Diagrams

Plan your shed electrical system with CircuitDiagramMaker. Draw the complete layout from the house panel through the underground run to the shed subpanel and branch circuits. Label wire gauges, burial depths, and GFCI locations. Export as a PDF for your permit application or for reference during installation.

Try the AI circuit generator -- describe "shed subpanel wiring with underground conduit from main panel" and get a complete diagram.

Conclusion

Running power to a shed transforms it from simple storage into a functional workspace. Whether you choose a single circuit for basic lighting or a full subpanel for workshop use, proper planning, code-compliant installation, and inspection ensure a safe, reliable electrical system that serves you for years.


Plan shed electrical runs with CircuitDiagramMaker -- free online wiring diagram tool with panel, conduit, and grounding symbols.