Outdoor & Shed-Based Caves

Shed Electrical Hookup

Updated August 11, 2026

A permanent power line from the house to an outbuilding: buried feeder cable, a shed panel, GFCI-protected circuits, and the permit that goes with it. A 20-amp circuit covers most man cave loads.

Also known as: Shed Power Hookup


A shed electrical hookup is the permanent power line that runs from your house panel to an outbuilding, and it is the difference between a backyard storage box and a real man cave. The job breaks into three parts: a feeder cable buried between the buildings, a small panel at the shed end, and the branch circuits inside that feed lights, receptacles, and the occasional appliance. In most homes that means a 10 or 12 AWG underground feeder (UF) cable run from the main panel, a trench dug across the yard, and a small panel mounted on the shed wall. For a typical man cave conversion, a single 20-amp circuit handles LED lighting and a wall of outlets, while a bigger build with a kegerator, heat, and a sound system starts to want a 60-amp subpanel and dedicated circuits.

Getting the hookup right matters because electricity in an outbuilding is where code rules bite hardest, and the failure modes are invisible until they are dangerous. The National Electrical Code is the floor, and local jurisdictions routinely amend it, which is why every figure in this entry is a starting point rather than the last word. The rough budget is the encouraging part: running power 50 to 150 feet typically lands between $500 and $3,800 including materials, or about $10 to $25 per linear foot, with a licensed electrician charging $90 to $150 an hour on top. The permit and inspection are part of that process, not optional extras.

A shed hookup is not the same thing as running an extension cord out the back door. A cord is temporary by design, undersized for a load that runs for hours, and a permanent build that leans on one is both a code violation and a fire hazard. The line between them is drawn by the same documents that govern kitchen wiring: the branch-circuit, grounding, and GFCI rules in the code, all enforced by the local building department.

Sizing the feeder and digging the trench

The numbers start with the load. Add up the lighting, receptacles, and appliances you plan to run; for a cave with a mini fridge, a TV, and a few outlets, a 120-volt 20-amp circuit is usually enough, and it is what most electricians run for a basic shed. Add a kegerator, a heater, or power tools and you move to a 240-volt feeder with a subpanel, where the neutral and grounding conductors stay separate and a ground rod at the shed ties the outbuilding to earth.

Burial depth comes straight from Table 300.5 of the code. A UF cable feeding a 120-volt 20-amp circuit needs 24 inches of cover in most soil, but when that circuit is GFCI-protected the required cover drops to 12 inches. Rigid or PVC conduit protects the cable and lets you run it shallower, and any run that passes under a driveway, parking area, or other vehicle path goes to 24 inches no matter the wiring method. Call 811 at least two working days before you dig so utility lines get marked; that call is free, and the damage it prevents is not.

Every receptacle in the shed needs GFCI protection. Under the code, all 125-volt, 15- and 20-amp receptacles installed in outbuildings must be GFCI-protected, which means either GFCI breakers in the shed panel or GFCI receptacles at each location. The shed also needs a disconnect within sight of the building so someone can kill power without walking back to the house, and that disconnect is usually the main breaker in the shed subpanel. All of this follows the electrical infrastructure pattern the rest of the house obeys, just run to a second building.

One branch circuit or a subpanel?

A single 20-amp branch circuit is the cheapest legitimate hookup, and it covers a surprising amount of man cave. Lights, a few outlet runs, a TV, and a bar fridge fit easily; the limit is roughly 1,920 watts of continuous draw (20 amps times 120 volts at 80 percent), and the moment you plan a second refrigerator or a heater you are over it. A subpanel, fed by a 60-amp 240-volt feeder, is the upgrade path, and it is the right call when the shed is a real cave rather than a storage corner.

The engineering difference shows up in the grounding. On a single branch circuit, the equipment ground comes back to the main panel. A subpanel in a detached building needs its own grounding electrode, typically one or two ground rods at least 6 feet apart driven to at least 8 feet, and the neutral bus must float separately from the grounding bus. Get that wrong and the shed becomes a shock hazard and a failed inspection in one move. That separation is code, and it is exactly the kind of detail a homeowner install misses. Compare this with the dedicated circuit discipline used for heavy loads, and you have the full picture.

Where the requirements come from

The rules are set by the National Electrical Code, published as NFPA 70 and updated on a three-year cycle, with the 2020 and 2023 editions widely adopted by states on their own schedules. The sections that govern a shed hookup are 210 (branch circuits and GFCI), 225 (feeders to outbuildings, which includes the disconnect requirement), 230 (services), and 300 with Table 300.5 (wiring methods and burial depths). GFCI protection itself is recent in code terms: the requirement arrived in the 1970s for outdoor receptacles and has expanded in every cycle since, which is why older homes and unupdated sheds have none.

None of this binds you until your local jurisdiction says it does. The code your inspector enforces is the version your state or municipality adopted, and local amendments routinely change burial depths and even whether a detached shed under 200 square feet needs an electrical permit at all. The practical move is to call the building department before you dig and get the exact table, the edition, and the permit fee in writing.

Common mistakes that cost you twice

The first is burying the cable too shallow, which is an instant inspection failure and a future shovel injury. Check the adopted Table 300.5 for your soil and wiring method, and when in doubt add six inches.

The second is skipping the GFCI because it is just a shed. The requirement is not negotiable for receptacles in outbuildings, and it is cheap insurance in a damp building where tools and extension cords meet concrete floors. Use GFCI breakers or receptacles, not hope.

The third is undersizing the feeder to save $50 on wire. A 15-amp run that later feeds a heater or a second fridge trips constantly, and the fix means digging the trench again. Write the load list before you buy wire, add a future appliance, and size up one conductor if you are on the fence. Hiring an electrician for the trench-to-panel work is worth the hourly rate; the rework costs more than the labor.

Frequently asked questions

How much does it cost to run electricity to a shed?

Running power to a shed typically costs $500 to $3,800 for a 50 to 150 foot run, or about $10 to $25 per linear foot, with a licensed electrician adding $90 to $150 per hour of labor. Materials are the smaller part; the trench, cable, subpanel, and permit are the rest. A basic 20-amp circuit with lights and outlets is the cheapest option, while a 60-amp subpanel with multiple circuits for a kegerator, heater, or power tools pushes the total toward the top of the range. Get a quote before digging.

Do I need a permit to wire a shed?

In most jurisdictions, yes. Electrical work on a detached outbuilding is inspected work, and the permit typically costs $50 to $300 depending on where you live. Some towns exempt very small sheds from a full building permit, but the electrical portion is almost always separate and required. The permit triggers an inspection, which is how you find out whether the trench depth, GFCI protection, and grounding meet the version of the code your state adopted. Call the building department before you dig and ask for the exact requirements.

Can I run an extension cord to my shed instead?

No, not for anything permanent. An extension cord is a temporary device, and using one to power a shed for more than a few hours violates the National Electrical Code, creates a trip hazard and a fire risk, and fails any inspection. Cords are undersized for continuous loads, so a fridge or heater can overheat the wiring. The permanent fix is a properly sized buried feeder with a disconnect, GFCI protection, and a permit. A generator or a cord used briefly for one tool is fine, but a working man cave needs real wiring.

How deep does the trench need to be for shed wiring?

Under Table 300.5 of the National Electrical Code, a direct-buried cable feeding a 120-volt 20-amp circuit needs 24 inches of cover in most soils, but when the circuit is GFCI-protected the requirement drops to 12 inches. Conduit protects the cable and can reduce the required depth, while any run under a driveway or parking area needs 24 inches regardless of wiring method. Local amendments can change these numbers, so confirm the depth with the version of the code your jurisdiction adopted before you dig. Call 811 to locate underground utilities first.

Can I wire my shed myself?

Many states allow a homeowner to pull an electrical permit and do the work themselves, and a shed feeder is one of the more accessible DIY electrical jobs for someone comfortable with wiring. The catch is that the work still has to pass inspection against the adopted code, so you need the trench depth, wire size, GFCI protection, grounding, and disconnect right. If you are not confident in the details, an electrician charges about $90 to $150 per hour, and fixing a failed inspection usually costs more than that. When in doubt, hire the professional for the trench-to-panel portion.

Related terms

Building & Construction

GFCI Outlet (Ground Fault Circuit Interrupter)

A wall receptacle that trips in 25 milliseconds when it senses a 4 to 6 milliamp leak to ground, required by code in bathrooms, kitchens, basements, garages, and any room within six feet of a sink.

Building & Construction

Dedicated Circuit

A branch circuit wired to power only one outlet or appliance, with a breaker sized to that single load and nothing else sharing the line.

Building & Construction

Electrical Panel Upgrade

Replacing a home's main breaker panel with a higher-capacity, safer unit, typically 100A to 200A or more, so it can carry a home theater, kegerator, mini-split, or EV charger without tripping.

Building & Construction

Junction Box

Code-governed enclosure that houses wire splices and connections, sized by NEC Article 314 box-fill rules and required to stay accessible. Burying one behind drywall fails inspection.

Building & Construction

Conduit

Metal or plastic tubing protecting wiring as a mechanical raceway. Exposed conduit on brick or concrete delivers an industrial loft look, but its core job is fire safety and code compliance.

Building & Construction

Building Permit

Official authorisation from the local building department needed before starting most construction work. It triggers plan review and scheduled inspections confirming the work meets code.

Building & Construction

Building Code

Legally adopted rules for residential construction: structural safety, fire protection, egress, electrical, plumbing, and energy performance, primarily the International Residential Code in the U.S.

Building & Construction

In-Wall Wiring

Low-voltage cable inside walls and ceilings for speakers, data and control, governed by NEC Article 725. Must be CL2/CL3 rated, separated from line-voltage, and firestopped at penetrations.