
How to Run Electricity to a Detached Garage: The Complete Planning Guide
How to run electricity to a detached garage. Load calculations, subpanel sizing, underground vs overhead, wire gauge, permits, and what requires a licensed electrician.
The Garage Guide
Updated Apr 2026 · 15 min read
TL;DR
Running electricity to a detached garage costs $1,200 to $4,500 professionally installed for a typical 50 to 100-foot run with a subpanel. The single most important decision you make is calculating your actual load before sizing the panel, not the other way around. Most homeowners undersize and regret it. A 60-amp subpanel handles lighting, outlets, and a few power tools. A 100-amp subpanel handles all of that plus an EV charger, a heater, and an air compressor running simultaneously. The price difference between 60-amp and 100-amp is small. Choose 100-amp. Always hire a licensed electrician for the subpanel connection and permit work.
The garage is done. The floor is sealed, the workbench is in, the storage system is up. There is just one problem: a single 15-amp circuit from 1987 that trips every time you run the table saw and the shop vac at the same time. Or worse: no power at all because the detached garage was never wired.
Getting electricity right in a detached garage is the infrastructure decision that determines how usable the space is for the next 20 years. Do it once, do it correctly, and you never think about it again. Cut corners on panel size, skip the permit, or use the wrong wire for the run length, and you spend years managing an electrical system that does not meet your needs and may not be safe.
This guide covers the full planning process in the right order, starting with load calculation before touching anything else.
The Load-First Rule
Before discussing subpanel size, wire gauge, or run method, calculate what you will actually run in this garage. This sounds obvious. Almost nobody does it. The typical pattern is: choose a 60-amp subpanel because it sounds like plenty, install it, add an EV charger two years later, and discover the panel is full.
The Load-First Rule: Size your electrical system for what you will run at peak load in five years, not what you are running today. The incremental cost difference between a 60-amp and 100-amp subpanel is $50 to $150 in materials. The cost of retrofitting an undersized system is $800 to $2,500. Do the calculation first.
How to Calculate Your Load
List every electrical device you plan to run in the garage and find its amperage from the nameplate on the device or its manual. Then identify which devices will run simultaneously at peak use.
| Device | Typical Amperage | Notes |
|---|---|---|
| LED shop lights (4 fixtures) | 2 to 4A at 120V | Negligible load |
| Garage door opener | 6A at 120V | Brief startup surge only |
| Cordless tool chargers (4 at once) | 4 to 8A at 120V | Light continuous load |
| Shop vacuum | 6 to 9A at 120V | Often runs with tools |
| Circular saw or jigsaw | 8 to 15A at 120V | Short duration |
| Table saw (standard) | 13 to 18A at 120V or 8 to 10A at 240V | Heaviest single tool load |
| Air compressor (1.5 to 2 HP) | 15 to 20A at 120V or 8 to 10A at 240V | Runs simultaneously with tools |
| Dust collector (1 HP) | 8 to 12A at 120V or 5 to 7A at 240V | Runs simultaneously with tools |
| Electric space heater (5000W) | 20A at 240V | Continuous load in winter |
| Mini-split heat pump (18,000 BTU) | 15 to 20A at 240V | Continuous load year-round |
| Level 2 EV charger (40A) | 40A at 240V | Long duration, often overnight |
| Welder (small MIG) | 20 to 30A at 240V | Occasional, high current |
Peak load example for a workshop garage:
Table saw (10A at 240V) + dust collector (6A at 240V) + shop vac (9A at 120V) + lights (3A at 120V) + heater (20A at 240V) = approximately 36A at 240V peak during a winter work session. A 60-amp subpanel handles this comfortably.
Add an EV charger (40A at 240V) and the same scenario exceeds 60 amps. You need 100 amps.
The safe approach: Add up your realistic peak load, multiply by 1.25 (the 80% continuous load rule from NEC 210.19), and size the subpanel to that number or the next standard size up.
Critical First Step: Check Your Main Panel
Critical First Step
Before planning anything, open your main electrical panel and check two things: (1) how many open breaker slots are available, and (2) whether your main breaker is rated for the additional load. A 200-amp main service can support a 100-amp garage subpanel if the total household load does not exceed 80 percent of 200 amps (160 amps). If your main panel is a 100-amp service or is already heavily loaded, you may need a service upgrade before adding a garage subpanel. This is the one step that can change the entire cost picture of the project. Find out before you hire anyone.
Subpanel or Single Circuit?
The right answer depends entirely on what you need to run.
Single branch circuit (up to 20A at 120V or 30A at 240V): Appropriate only for the most minimal garage use: basic lighting and a single outlet for a small tool or battery charger. NEC 210.11(C)(4) requires at least one dedicated 20-amp 120V circuit for garage receptacles in any powered detached garage. A single circuit cannot power multiple 240V tools or an EV charger. If you need more than one circuit, you need a subpanel.
Subpanel (60A, 100A, or larger): The right choice for any garage used as a workspace, for EV charging, or for any heating or cooling. A subpanel gives you a distribution point for multiple circuits in the garage, a local disconnect (required by NEC 225.31 for detached structures), and the capacity to add circuits later without re-running the feeder.
60-amp vs 100-amp subpanel:
| 60-Amp Subpanel | 100-Amp Subpanel | |
|---|---|---|
| Panel cost | $40 to $80 | $60 to $120 |
| Feeder wire (copper, 60-foot run) | #6 AWG ($80 to $120) | #4 AWG ($120 to $180) |
| Breaker in main panel | 60A double-pole ($15 to $30) | 100A double-pole ($25 to $50) |
| Handles EV charger (40A) | No (only 48A usable capacity) | Yes (80A usable capacity) |
| Handles heater + tools simultaneously | Marginal | Comfortable |
| Future-proof | Requires upgrade for EV or HVAC | Handles most residential needs |
| Total material cost difference | Baseline | $50 to $150 more |
The recommendation is always 100-amp. The material cost difference is $50 to $150. The labor cost is identical. A 100-amp subpanel with a 24-space panel gives you room for every circuit you need now and for the next 20 years.
Underground vs Overhead: Which Run Method Is Right?
This is the decision most homeowners agonize over unnecessarily. The right answer is usually underground, and here is why.
Underground Run
How it works: A trench is dug from the main panel to the garage. PVC conduit is laid in the trench and wire is pulled through it. The trench is backfilled.
NEC depth requirements:
- PVC conduit: 18 inches minimum depth
- Direct-burial cable (UF-B, without conduit): 24 inches minimum depth
- Under a driveway or vehicle path: 24 inches minimum for conduit, deeper is better
Advantages:
- No visible wires above ground
- Protected from storm damage and wind
- No height clearance concerns near structures or trees
- Required by many municipalities (overhead not permitted in residential areas in many jurisdictions)
- Easier to add low-voltage lines (ethernet, security camera) in the same trench
Disadvantages:
- Higher upfront cost due to trenching ($5 to $12 per linear foot for trenching labor)
- Harder to repair if a problem develops underground
- Must call 811 (Dig Safe) before digging. Hitting a utility line is dangerous and expensive
Total underground run cost (professional, 60-foot run, 100-amp subpanel): $1,500 to $3,000
Overhead Run
How it works: Wire is run overhead on a mast from the house to the garage, either on a weatherhead or strapped to a messenger cable between structures.
NEC clearance requirements:
- Above driveways and areas accessible to vehicles: 12 feet minimum
- Above pedestrian walkways: 10 feet minimum
- Above the roof of the garage: 3 feet minimum clearance from the roof surface
Advantages:
- Less expensive upfront (no trenching)
- Easier to inspect and repair
- Faster installation
Disadvantages:
- Visible wires affect curb appeal
- Vulnerable to storm damage, ice loading, and falling branches
- Clearance requirements can be difficult to meet over driveways
- Many municipalities prohibit overhead runs in residential areas. Check local codes before planning
Total overhead run cost (professional, 60-foot span, 100-amp subpanel): $800 to $2,000
The practical recommendation: Go underground. The incremental cost over overhead is typically $300 to $600 for a standard residential run. The permanence, appearance, and code compliance advantages are worth it on any property you plan to own for more than a few years.
Wire Gauge and Voltage Drop
The longer the run from your main panel to the garage subpanel, the more important wire gauge becomes. Undersized wire causes voltage drop. The actual voltage at the garage is lower than at the main panel, which causes tool motors to run hot, trip breakers, and wear out faster.
NEC standard: Keep voltage drop below 3 percent on the feeder run.
| Subpanel Size | Run Length | Minimum Wire Gauge (Copper) | Notes |
|---|---|---|---|
| 60A | Up to 75 feet | #6 AWG | Standard for most residential runs |
| 60A | 75 to 150 feet | #4 AWG | Upsize to manage voltage drop |
| 100A | Up to 100 feet | #4 AWG | Standard for 100A residential runs |
| 100A | 100 to 200 feet | #2 AWG | Required to stay under 3% drop |
| 100A | Over 200 feet | #1/0 AWG or larger | Consult electrician for load analysis |
Aluminum wire consideration: For runs over 100 feet, aluminum feeder wire is a legitimate cost-saving option. Modern aluminum conductors (THHN/THWN-2 rated) are code-compliant for feeder runs when properly sized (one gauge larger than copper equivalent) and terminated correctly. Aluminum feeder for a 100-amp subpanel typically runs #2/0 AWG. The material cost savings over copper on a long run can be $200 to $400. Aluminum is not appropriate for branch circuit wiring inside the garage.
NEC Requirements for Detached Garage Electrical
These are the key National Electrical Code requirements that apply to any powered detached garage. Your local jurisdiction may have additional requirements or amendments.
Disconnect (NEC 225.31): Every detached structure supplied with electricity must have a disconnecting means at a readily accessible location either outside or immediately inside the building. If you install a subpanel with a main breaker, the main breaker serves as the disconnect.
Grounding electrode system (NEC 250.32): Any detached structure supplied by a feeder (more than a single 20-amp branch circuit) must have its own grounding electrode system, typically two ground rods driven into the earth at least 6 feet apart, connected to the subpanel's ground bus with #6 bare copper wire. Do not bond the neutral and ground bus bars in the subpanel (they are bonded only at the main service panel).
Four-wire feeder: The feeder run from the main panel to the garage subpanel must be four conductors: two hot wires, one neutral, and one ground. The neutral and ground must remain separate in the subpanel. Three-wire feeders (without a separate ground conductor) are not permitted for new installations under the current NEC.
GFCI protection (NEC 210.8): All 125V through 250V receptacles in a garage must be GFCI protected. This applies to every outlet, not just those near water sources.
Dedicated garage circuit (NEC 210.11(C)(4)): At least one dedicated 20-amp 120V circuit must supply the garage receptacles. This circuit cannot supply other outlets (with the exception of readily accessible outdoor outlets).
Lighting circuit: At least one wall-switched lighting outlet is required (NEC 210.70). It is best practice to put lighting on a separate circuit from receptacles so that a tripped breaker on the tool circuit does not leave you in the dark.
What Requires a Licensed Electrician vs. What You Can Do Yourself
This is the most practically useful section in the guide, and it is the section most articles either skip entirely or get wrong by being too restrictive in one direction or too permissive in the other.
Always requires a licensed electrician:
- Connecting the feeder to your main panel (working in the main panel with live conductors is dangerous and typically requires a permit pulled by a licensed electrician)
- Connecting the feeder to the subpanel main lugs
- Any work on the utility meter or service entrance equipment
- Final inspection sign-off in jurisdictions that require licensed work
A competent homeowner can typically do:
- Digging the trench (or hiring a landscaper to do it)
- Laying and gluing PVC conduit in the trench
- Pulling wire through the conduit
- Mounting the subpanel box on the wall
- Running branch circuit wiring inside the garage (after the subpanel is energized by the electrician)
- Installing outlets, switches, and light fixtures
The smart approach: Pull the permit yourself (or have the electrician pull it). Do the trench, conduit, and wire pull. Have the electrician make the connections at both ends, inspect your work, and sign off. This hybrid approach can save $400 to $800 in labor while keeping the dangerous work in professional hands.
Always pull a permit. An unpermitted electrical installation in a detached structure is a liability when you sell the property, may void your homeowner's insurance for any fire or damage related to the electrical system, and requires a retroactive permit (which may require tearing out and redoing work) if discovered during a future inspection. The permit fee is $50 to $200. It is not optional.
What a Complete Installation Includes
A properly completed detached garage electrical installation includes all of the following:
At the main panel:
- New double-pole breaker sized for the subpanel (60A or 100A)
- Four-wire feeder conductors connected to the breaker
The feeder run:
- PVC conduit (schedule 40 minimum) buried at 18-inch depth
- Four-wire feeder (two hots, neutral, ground) pulled through conduit
- Weatherproof conduit fittings where conduit enters both structures
At the garage subpanel:
- Subpanel with main breaker (the main breaker serves as the building disconnect)
- Neutral and ground bus bars kept separate (not bonded)
- Two ground rods driven 6 feet apart outside the garage, connected to ground bus
- All circuits properly labeled
Minimum garage circuits (for a workshop setup):
- One dedicated 20A 120V circuit for receptacles (required by NEC)
- One 20A 120V circuit for lighting (separate from receptacles)
- One or two 20A 240V circuits for stationary tools
- One dedicated 240V circuit for EV charger if planned (40A or 50A)
- One 240V circuit for heater if planned (20A to 30A)
What It All Costs
| Scenario | DIY Materials | Professional Total |
|---|---|---|
| Single 20A circuit, overhead run, 50 feet | $150 to $300 | $500 to $900 |
| 60A subpanel, underground run, 60 feet | $400 to $700 | $1,500 to $2,500 |
| 100A subpanel, underground run, 60 feet | $500 to $900 | $1,800 to $3,200 |
| 100A subpanel, underground run, 100 feet | $700 to $1,200 | $2,200 to $4,000 |
| 100A subpanel, underground run, 150 feet | $900 to $1,500 | $2,800 to $5,000 |
Permit cost: $50 to $200 depending on jurisdiction
Ground rods and wire: $40 to $80 (two 8-foot copper-clad rods plus #6 wire)
Trenching (if hiring out): $5 to $12 per linear foot
Seasonal Considerations
Summer: If you plan to cool the garage with a window AC or mini-split, include that circuit in your load calculation before sizing the subpanel. A mini-split requires a dedicated 240V circuit (15A to 20A). Sizing the subpanel without accounting for cooling is one of the most common garage electrical planning mistakes in warm climates.
Winter: A garage heater is a continuous 240V load, the most demanding type. A 5,000W electric heater draws 20A continuously. Add that to your peak workshop load to confirm your subpanel can handle both simultaneously. If heating is a priority, the 100-amp subpanel is even more essential. See our best garage heaters guide for circuit requirements by heater type.
Frequently Asked Questions
How much does it cost to run electricity to a detached garage?
Professional installation of a 100-amp subpanel with a 60-foot underground run costs $1,800 to $3,200 on average, including the subpanel, feeder wire, conduit, trenching, grounding system, and panel connection. A minimal single-circuit overhead run costs $500 to $900. The largest cost variables are run distance, whether underground or overhead, and local labor rates. Always get at least two quotes.
Do I need a subpanel for a detached garage?
You need a subpanel if you want more than one circuit in the garage. NEC 210.11(C)(4) requires at least one dedicated 20-amp circuit for garage receptacles. That single circuit can run overhead without a subpanel. But any garage used as a workspace, for EV charging, or with a heater needs multiple circuits, which requires a subpanel. For almost any practical use, a 100-amp subpanel is the right answer.
How deep does the electrical conduit need to be buried?
PVC conduit must be buried at least 18 inches deep under NEC requirements. Direct-burial cable without conduit requires 24 inches. Under a driveway or vehicle travel area, deeper burial is required: 24 inches for conduit, 30 inches for direct-burial cable. Always call 811 (the national Dig Safe number) before digging to have underground utilities marked. This is free and legally required in most states.
Can I wire my detached garage myself?
Partially. A competent homeowner can dig the trench, lay conduit, pull wire, mount the subpanel box, and run branch circuit wiring inside the garage. What requires a licensed electrician is connecting the feeder to your main panel and making the final subpanel connections. You must also pull a permit. Unpermitted electrical work in a detached structure creates insurance and resale liability that is not worth the permit fee saved.
What size subpanel do I need for a detached garage?
Calculate your actual peak load using the device amperage table in this guide before choosing a panel size. For a basic workshop (lighting, outlets, a table saw, and a dust collector), 60 amps is sufficient. Add an EV charger, a heater, or an air compressor and you need 100 amps. The material cost difference between 60-amp and 100-amp is $50 to $150. Choose 100-amp unless your load calculation clearly indicates 60 amps is enough with room to spare.
Do I need a ground rod for a detached garage subpanel?
Yes. NEC 250.32 requires a grounding electrode system at any detached structure fed by a feeder (more than a single 20-amp branch circuit). The standard residential solution is two copper-clad ground rods driven 6 feet apart outside the garage, connected with #6 bare copper wire to the subpanel's ground bus. Do not bond the neutral and ground bus bars in the subpanel. That bond belongs only at the main service panel.
Can I use aluminum wire for the feeder run?
Yes, for feeder runs. Modern aluminum THHN/THWN-2 conductors are code-compliant for feeder use when sized one gauge larger than the copper equivalent and terminated correctly. Aluminum #2/0 AWG is appropriate for a 100-amp feeder run. The cost savings over copper on runs over 100 feet can be $200 to $400. Do not use aluminum for branch circuit wiring inside the garage.
Do I need a permit to run electricity to a detached garage?
Yes, in virtually every jurisdiction. Any new electrical service to a detached structure requires a permit and inspection. An unpermitted installation is a liability when you sell the property, may void your homeowner's insurance for electrical-related claims, and can require costly retroactive permitting if discovered. Permit fees run $50 to $200. The inspection process also catches errors before they become fire hazards.
Related Guides
Garage Workshop Setup
How to plan the full workshop including electrical zones and circuit requirements.
GuideEV Charger Installation
Level 2 EV charger circuit requirements and installation planning.
ReviewBest Garage Heaters
Circuit requirements for each heater type.
GuideGarage Maintenance Checklist
Seasonal electrical inspection tasks.
Cost GuideGarage Addition Cost
If you are building the detached garage from scratch.
Glossary
Subpanel
A secondary electrical panel installed in the detached garage, fed from the main house panel by a feeder circuit. The subpanel distributes power to individual branch circuits in the garage and provides the required building disconnect. A 100-amp subpanel with a main breaker and 24 spaces is the standard recommendation for a residential detached garage workshop.
Feeder
The set of conductors (typically four wires: two hots, a neutral, and a ground) that run from the main panel to the subpanel in the detached garage. The feeder is sized for the full ampacity of the subpanel breaker it feeds, derated for voltage drop over the run distance. Must be four conductors for all modern detached garage installations.
Load calculation
The process of adding up the electrical demand of all devices that will run simultaneously in the garage to determine the minimum panel size needed. Required by the NEC before sizing a subpanel. Most homeowners skip this step and undersize the panel. The load calculation should include the peak realistic scenario five years from now, not just current use.
Voltage drop
The reduction in voltage that occurs when current travels through wire over distance due to resistance. NEC recommends keeping voltage drop below 3 percent on feeder runs. Undersized wire on long runs causes tools to run hot, motors to wear faster, and breakers to trip. Corrected by using a larger wire gauge for the run.
Ground rod
A copper-clad steel rod (typically 8 feet long) driven into the earth outside the detached garage and connected to the subpanel's ground bus. Required by NEC 250.32 for any detached structure fed by a feeder. Two rods are required, spaced at least 6 feet apart. Provides a path for fault current to safely dissipate into the earth.
GFCI (Ground Fault Circuit Interrupter)
A safety device that monitors current flow on a circuit and trips within milliseconds if it detects a ground fault (current flowing through an unintended path such as a person). Required on all 125V through 250V receptacles in a garage under NEC 210.8. Can be provided by GFCI receptacles or by a GFCI breaker protecting the entire circuit.
Four-wire feeder
The current NEC-required configuration for any feeder serving a detached structure. Consists of two hot conductors, one neutral conductor, and one separate equipment grounding conductor. The neutral and ground are kept separate in the subpanel and must not be bonded together at the subpanel. The bond occurs only at the main service panel.
Schedule 40 PVC conduit
The standard underground conduit used for residential electrical feeder runs. Rated for burial at 18 inches depth. Available in 1-inch, 1.5-inch, and 2-inch diameters for residential feeder runs. Use 1.5-inch diameter for a 100-amp feeder run. It provides enough space for the four conductors and leaves room for pulling without excessive friction.
Get Expert Garage Help
Connect with qualified garage professionals in your area. Free quotes, no obligation.