Running power from your house to a shed gives you lights, tools, and charging outlets without extension cords snaking across the yard. The most common and code-compliant approach is to bury underground feeder (UF-B) cable or conduit between the house panel and a small subpanel or outlet box in the shed. Before anything else: this job involves working inside your electrical panel, so check local permit requirements, and hire a licensed electrician for the panel connection if you're not fully confident. Also call your local utility locating service before you dig.
What You'll Need
- Permit (if required by your local authority)
- 12/2 or 10/2 UF-B cable, or THHN wires in PVC conduit
- Circuit breaker matching the wire gauge (20 amp for 12/2, 30 amp for 10/2)
- Weatherproof outdoor-rated outlet boxes or a small subpanel
- GFCI breaker or GFCI receptacles
- PVC conduit, fittings, and conduit glue (if using conduit)
- Wire strippers, screwdrivers, voltage tester
- Shovel or trencher
- Electrical tape, cable clamps, silicone caulk
Step-by-Step
- Plan the circuit. Decide what the shed will power: lights and a few tools usually need one 20-amp circuit; heavier equipment may justify a 30-amp circuit with a subpanel. Measure the distance from the house panel to the shed, and add about 10% extra for routing. Long runs over roughly 100 feet may need thicker wire to prevent voltage drop.
- Check codes and get a permit. Contact your local building department. Most jurisdictions require a permit and inspection for a new circuit, and rules on burial depth and GFCI protection vary by location.
- Call before you dig. Arrange a utility locate visit (in the US, call 811; elsewhere, contact your local service). Wait for markings before trenching. Hit a gas or power line and the project becomes very expensive, very fast.
- Choose your burial method. Direct-burial UF-B cable is simplest and typically must be buried at least 24 inches deep. Wiring in PVC conduit is usually allowed at 18 inches deep, and conduit protects better in rocky soil or areas where you might dig later. Confirm depths with your local code.
- Turn off the main power. Shut off the main breaker at the house panel and verify with a voltage tester that the bus bars are dead. This is the most dangerous part of the job. If you have any doubt, have an electrician make the panel connections.
- Run cable from the panel. Mount a weatherproof disconnect or junction point on the exterior wall near the panel, drill through with a masonry bit if needed, and route the cable from the panel through conduit or clamp-protected holes to the outside.
- Dig the trench. Cut a straight trench from the house to the shed at the required depth. Keep the path as direct as possible and mark it so you don't re-dig over it later.
- Lay the cable or conduit. For direct burial, lay UF-B cable flat in the trench. For conduit, glue sections together, let them set, then pull wire through with fish tape. Leave some slack at both ends.
- Make the shed penetration. Drill into the shed wall or floor and bring the cable up through conduit into a weatherproof box. Seal the entry point with silicone caulk to keep moisture and bugs out.
- Install shed outlets or subpanel. For a simple circuit, install a GFCI receptacle first in the line, then any downstream outlets. For a subpanel, mount it, connect the feeder wires, and drive two ground rods if required by local code.
- Connect at the house panel. Attach the hot wire to the new breaker, the neutral to the neutral bar, and the ground to the ground bar. Snap the breaker into place and replace the panel cover.
- Backfill the trench. In many areas you must lay a warning tape a few inches above buried cable before backfilling. Fill and compact the soil.
- Test everything. Restore power, then test each outlet with a receptacle tester. Press the GFCI test and reset buttons to confirm protection works. If anything fails, kill the breaker and recheck connections.
- Schedule inspection. If you pulled a permit, have the work inspected before you close up walls or finish the trench if your inspector wants to see the wire depth.
Common Mistakes
- Digging without a utility locate, risking strikes on gas, water, or communication lines.
- Burying cable too shallow, which violates code and risks accidental cuts later.
- Using indoor-rated NM-B (romex) cable underground instead of UF-B or conduit; it is not rated for wet soil.
- Skippping the GFCI protection. Outdoor circuits essentially always require it.
- Undersizing wire for the run length, causing voltage drop that makes tools run hot or poorly.
- Leaving penetrations unsealed, letting water wick along the cable into boxes and the shed.
Tips
- Oversize slightly: running conduit, even for direct-burial-rated wire, makes future upgrades or replacement far easier.
- Spare capacity pays off. A 30-amp feed to a small subpanel costs little more than a single circuit and gives room to grow.
- Take photos of the open trench with a tape measure showing depth, useful for inspections and future digging.
- Use weatherproof in-use outlet covers on any exterior receptacle.
- LED shop lights draw very little power, letting you do more on a modest circuit.
Troubleshooting
If the breaker trips immediately, switch it off and look for a short: a pinched cable, a ground wire touching a hot terminal, or water inside a box. If outlets are dead but the breaker holds, check for a tripped GFCI upstream and verify the connections at each box. If the GFCI won't reset, there is likely a ground fault or moisture intrusion; open the boxes and inspect. If tools run weakly or lights dim under load, the run may be too long for the wire gauge; upgrading one wire size usually fixes it. For anything involving the panel interior that you can't confidently diagnose, stop and call a licensed electrician.
Frequently Asked Questions
How deep does the cable need to be buried?
Typical requirements are 24 inches for direct-burial UF-B cable and 18 inches for wiring in PVC conduit, but confirm with your local code office as rules vary.
Can I just use an extension cord instead?
Extension cords are for temporary use only. Permanent outdoor power must be properly rated cable or conduit installed to code.
Do I need a subpanel in the shed?
Not for light loads; a single GFCI circuit handles lights and small tools. A subpanel makes sense if you want multiple circuits, 240-volt equipment, or room to expand.
Is a permit really necessary?
In most jurisdictions, yes. New circuits generally require a permit and inspection, and unpermitted work can cause problems when selling your home.
How far can I run power to a shed?
Practically as far as needed, but voltage drop becomes an issue on long runs. Over roughly 100 feet, step up one wire size to keep performance acceptable.
Should I do this myself or hire an electrician?
A handy homeowner can often handle the trenching and shed-end wiring, but the live panel work is the risky part. Many people do the labor and pay an electrician for the panel connection and final hookup.