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):
- 2-4 LED light fixtures (50W total)
- 2-4 duplex outlets for chargers, radio, small tools
- Total load: approximately 500W
- Circuit needed: One 20A circuit (sufficient)
Workshop shed (power tools):
- LED lighting (100W)
- Multiple outlets for power tools
- Air compressor, table saw, or welder
- Total load: 2,000-5,000W
- Circuits needed: Multiple circuits via a subpanel
Heated/cooled shed:
- All of the above plus space heater or mini-split AC
- Total load: 5,000-10,000W+
- Circuits needed: Subpanel with 60-100A service
Single Circuit vs Subpanel
Single circuit (simplest option):
- One 20A circuit from the house panel
- Provides 2,400W at 120V
- Enough for lights and small tool outlets
- Uses one cable from house to shed
Subpanel (recommended for workshops):
- Multiple circuits in the shed on their own breakers
- Can support 240V tools, EV charging, heating/cooling
- Uses a larger feeder cable from house to shed
- More flexible and expandable
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:
- Dig a trench 24 inches deep (plus a few inches for the cable bed)
- Lay 2-3 inches of sand in the bottom of the trench for the cable bed
- Lay the UF-B cable in the trench -- do not pull or stretch it
- Lay detectable warning tape 12 inches above the cable
- Backfill with sand, then native soil
- At each end (house and shed), transition to conduit using an LB fitting
- 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:
- Dig a trench 18 inches deep (for Schedule 40 PVC)
- Lay Schedule 40 PVC conduit in the trench with proper fittings (elbows, couplings)
- Glue all joints with PVC cement
- At each end, use a 90-degree sweep to bring the conduit up the wall
- Pull THWN wires through the conduit
- Backfill the trench
Advantages of conduit:
- Shallower trench (18 inches vs 24 inches)
- Can upgrade wire gauge later without re-digging
- Protects wire from physical damage
- Can add circuits by pulling additional wires
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
- UF-B 12/2 with ground (or 12 AWG THWN in conduit)
- 20A GFCI breaker at the house panel (or GFCI outlet in the shed)
- Junction box at each end (or panel at house, first outlet at shed)
- PVC conduit and fittings for wall transitions
Connections
At the house panel:
- Install a 20A GFCI breaker (or standard breaker + GFCI first outlet in shed)
- Connect black wire to the breaker
- Connect white wire to the neutral bus
- Connect ground to the ground bus
At the shed:
- Bring the cable into the shed through conduit and an LB fitting
- Connect to the first outlet (GFCI if not using a GFCI breaker)
- Daisy-chain additional outlets in parallel
- Wire lights to a switch from the same circuit
Wiring Diagram: 60A Subpanel to Shed
Materials
- 6 AWG THWN wire (4 conductors: 2 hot, 1 neutral, 1 ground) in conduit
- 60A double-pole breaker at the house panel
- 60A subpanel in the shed (with main breaker as disconnect)
- 8-foot ground rod with #6 ground wire at the shed
- PVC conduit (1 inch minimum)
Connections
At the house panel:
- Install a 60A double-pole breaker
- Connect black and red wires to the breaker terminals
- Connect white wire to the neutral bus
- Connect green/bare wire to the ground bus
In the trench:
- Run 1-inch PVC conduit from house to shed (18 inches deep)
- Pull four 6 AWG THWN wires: black, red, white, green
At the shed subpanel:
- Connect black and red wires to the main lugs (or main breaker)
- Connect white wire to the NEUTRAL bus bar
- Connect green wire to the GROUND bus bar
- Do NOT bond neutral and ground -- they must be on separate bus bars
- Drive an 8-foot ground rod outside the shed
- Run a #6 bare copper wire from the ground rod to the subpanel ground bar
Branch circuits in the shed:
- 20A lighting circuit (14/2 or 12/2 NM)
- 20A outlet circuit (12/2 NM, GFCI-protected)
- 240V circuit for tools if needed
Overhead Power to a Shed
If trenching is not practical, you can run power overhead:
- Minimum height: 10 feet over walkways, 12 feet over driveways, 18 feet over roads
- Use service entrance cable (SE cable) or overhead triplex cable
- Attach to a mast or post at each building
- Drip loops at each attachment point to prevent water entry
- Check local code -- some jurisdictions do not allow overhead residential runs
Common Shed Wiring Mistakes
- Not deep enough trench: 24 inches for UF-B, 18 inches for conduit. Measure carefully.
- Using indoor cable underground: NM (Romex) is NOT rated for direct burial. Use UF-B or THWN in conduit.
- Bonded neutral/ground in subpanel: The subpanel must keep neutral and ground separate.
- No ground rod: A detached building with a subpanel needs its own grounding electrode.
- Undersized feeder: Plan for future loads, not just current needs. Run a larger feeder now -- it is much cheaper than re-digging later.
- No GFCI: All shed outlets need GFCI protection.
- 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.
Originally published at https://circuitdiagrammaker.app/blog/shed-wiring-diagram-guide.
Top comments (0)