Adding electricity to a detached shed transforms it from a dusty storage space into a functional workshop, home office, or hobby room. With power comes lighting, tool outlets, climate control, and the convenience of a second living or working space in your backyard. But getting that power from your home to the shed is not a simple extension cord run across the lawn. It involves careful planning, trenching, underground conduit installation, grounding electrodes, and a properly rated subpanel. The process also demands a solid understanding of local building codes and electrical load calculations. For a deeper look at large-scale underground construction methods that share many principles with this project, see how engineers approach Engineering Miamis Deepest Underground Parking Garage The Una Residences Underground Construction Story, where similar trenching, conduit routing, and structural considerations apply at a much larger scale. While this guide covers the essential steps, running power to a detached structure is best handled by a licensed electrician who can ensure every connection meets the National Electrical Code and your local amendments.
Assessing Your Power Requirements and Electrical Panel Capacity
Before breaking ground, determine exactly how much electricity your shed will consume. This calculation drives every subsequent decision, from the breaker size to the wire gauge and conduit diameter. Start by listing everything you plan to power: basic lighting and a few receptacles have minimal demands, but a shop full of power tools, a space heater, or a small air conditioner changes the load profile significantly. The National Electrical Code treats equipment running for three hours or more as a continuous load, which must be calculated at 125 percent of its rated amperage. This means a 15-amp space heater running continuously counts as 18.75 amps toward your total load.
Once you have a load estimate, inspect your home’s main electrical panel. You need two things: physical space for a new double-pole breaker and enough remaining capacity in the main service to handle the additional demand. Open the panel cover and look for tandem breakers, which occupy a single space but serve two circuits. Master electrician Heath Eastman from This Old House notes that many panels can accept more circuits than the breaker slot count suggests. If your panel uses screw-in or cartridge fuses instead of modern breakers, consider upgrading before adding an outbuilding circuit. A sign that your service is already near its limit is when the lights dim noticeably every time a major appliance kicks on. The structural context of underground work, including how foundations interact with buried utilities, is covered in our article on Underground Basement Wall construction, which explores the intersection of earth pressure, waterproofing, and subsurface access points.
Mapping the Route and Preparing for Excavation
With the electrical plan in hand, map the conduit path between the home and the shed. Mark the path with white marking paint or white flags. Choose the most direct route while avoiding large trees, patios, existing hardscaping, and underground obstacles. Before you dig a single shovelful of earth, call 811 at least two business days in advance to have all underground utilities located and marked on your property. This free service coordinates with local utility companies to flag gas lines, water mains, electrical feeders, and communication cables. Striking any of these during excavation is dangerous, expensive, and potentially illegal. For more information on the risks of buried infrastructure, read about Underground Oil Tanks What To Know, which covers the hazards and regulations surrounding abandoned subsurface fuel storage that can complicate any digging project.
Once utilities are marked, plan where the conduit enters and exits both structures. This usually involves installing LB fittings, which are L-shaped conduit bodies that allow the electrical raceway to transition from a vertical wall penetration to a horizontal underground run. You need four LB fittings in total: one on the exterior and one on the interior wall of the house, and the same arrangement on the shed. Expansion fittings should also be installed wherever the conduit transitions from underground to above ground, because temperature changes cause PVC to expand and contract. A self-adjusting expansion fitting accommodates this movement and prevents stress fractures at critical connection points.
Trenching Depth, Conduit Installation, and Grounding
The trench must meet local code depth requirements. For PVC schedule 40 electrical conduit, the minimum burial depth is typically 18 inches measured from the top of the pipe to the finished grade. Many electricians dig to 24 inches for an extra safety margin and to allow for a sand bedding layer. A mini excavator is the most efficient tool for this job, but a sharp shovel works for shorter runs. The trench should be straight and consistent in depth, with a smooth bottom free of sharp rocks that could damage the conduit over time.
Begin by adding roughly 3 inches of all-purpose sand to the trench floor. This sand cushion protects the conduit from abrasion against buried rocks and allows slight movement during freeze-thaw cycles without transferring stress directly to the PVC. After the sand layer, lay the 1-1/4 inch schedule 40 PVC conduit, ensuring the bell end of each section faces downhill. This orientation lets water flow around the bell connection rather than into it, preventing moisture accumulation inside the conduit. Use PVC caps on the open ends while working to keep dirt and debris out. If the conduit needs a gentle bend to navigate around an obstacle, use a PVC heating blanket to warm the pipe until it becomes pliable, then hold the new shape until it cools. When joining sections, apply PVC cleaner followed by PVC cement to create watertight joints. The precise subsurface mapping used in this work is closely related to the methods described in Underground Surveying, which covers techniques for mapping buried features and maintaining accurate spatial reference during excavation projects.
Detached buildings almost always require their own grounding electrodes. The NEC typically calls for two 8-foot copper-clad grounding rods driven into the earth at least 6 feet apart. Use a rotary hammer with a ground rod driver bit to drive them flush with the trench floor. Connect the rods with a continuous length of bare number 6 copper wire, secured at each rod with an approved ground rod clamp tightened with a ratchet and socket. From the rods, the ground wire runs up into the subpanel in the shed, establishing a separate grounding path that protects against lightning surges and fault currents.
Subpanel Sizing, Wire Pulling, and System Wiring
For the subpanel itself, choose a model rated for more amps than the breaker feeding it. A 125-amp subpanel fed by a 60-amp breaker, for example, provides room for future circuit expansion without needing to replace the panel later. Mount the subpanel near the conduit entry point so the wire run inside the building is as short as possible. The conduit should enter the panel through a knockout, and all conductors must be stripped to the appropriate length before being landed on the bus bars. This part of the installation shares concepts with larger subsurface power distribution systems, as explored in Tunnel Engineering Design Construction Methods And Safety Systems For Underground Transportation Infrastructure, where electrical and grounding systems are designed to operate reliably in buried environments subject to moisture and ground movement.
With the conduit and subpanel in place, pull the conductors. Underground conduit systems require individual THHN conductors rather than standard NM sheathed cable. A typical 240-volt feed uses four wires: black and red for the two hot conductors, white for the neutral, and green for the ground. Use number 6 AWG copper for a 60-amp feeder, though the exact gauge depends on your load calculation and the run length. Feed steel fish tape from the house end of the conduit to the shed end, attach mule tape to the fish tape, and pull it back to the house. Tie the four conductors together with half-hitch knots and tape the ends smoothly so nothing snags inside the conduit. Have a helper at the shed end pull the mule tape steadily while someone at the house end feeds the wires in to prevent kinking.
Once the wires are through, add a second 3-inch layer of sand on top of the conduit, then lay detectable warning tape approximately 6 inches below the finished grade. This tape alerts anyone digging in the future that electrical conductors are buried below. After the tape is in place, backfill the trench completely with the excavated soil, mounding it slightly to account for settling. On the shed side, connect the conductors to the subpanel bus bars: the two hots to the main lugs, the neutral to the isolated neutral bus, and the ground to the ground bus. Keep the neutral and ground buses separate in a subpanel; they are bonded only at the main panel. The shed should have at least one GFCI-protected receptacle and one lighting outlet controlled by a wall switch, as required by code. The equipment and techniques for these utility connections overlap with those covered in Pipe Laying And Underground Utility Installation Equipment Specialized Machinery For Pipeline Construction And Subsurface Infrastructure, which examines the machinery and methods used for laying subsurface services across a range of applications.
Main Panel Connection, Testing, and Finishing Work
Shut off the main breaker to de-energize the entire panel, then land the feeder wires on a new double-pole breaker of the appropriate amperage. Install the breaker in an available space, snap it into place, and torque the terminal screws to the manufacturer’s specification. Restore main power and test every outlet, switch, and light fixture in the shed before closing up the panel. Use a multimeter to verify correct voltage between hot and neutral (120 volts) and between the two hots (240 volts) at the subpanel.
After confirming the electrical system works, seal all exterior openings. Apply exterior-grade window and siding sealant around every LB fitting where the conduit enters the building. This prevents rainwater from tracking into the wall cavity and blocks pest entry points. Allow the sealant to cure according to the manufacturer’s instructions before exposing it to weather. A systematic approach to buried infrastructure, from initial survey through final commissioning, mirrors the methods used in larger subsurface projects described in Tunnel Boring And Underground Construction Equipment Advanced Machines For Subsurface Infrastructure Development, where trenching, conduit management, and structural reinforcement come together to create safe, durable underground systems.
| Wire Gauge (AWG) | Copper THHN Ampacity | Typical Breaker Size | Common Conduit Size (PVC 40) |
|---|---|---|---|
| 10 AWG | 30 amps | 30 amps | 3/4 inch |
| 8 AWG | 50 amps | 40 amps | 1 inch |
| 6 AWG | 65 amps | 60 amps | 1-1/4 inch |
| 4 AWG | 85 amps | 80 amps | 1-1/2 inch |
| 2 AWG | 115 amps | 100 amps | 2 inch |
This table provides general guidelines for copper THHN conductors in underground conduit. Always perform a full load calculation for your specific installation and consult local codes, which may require derating for long runs or high ambient temperatures.
