Running a Subpanel to a Detached Garage
This article may contain affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you. This helps us keep creating free content.
A detached garage 60 feet from the house cannot simply borrow power from an extension cord run under the door, and a feeder that would carry 60 amps comfortably over 30 feet can lose enough voltage over 150 feet to undersize the whole circuit. This is residential electrical work at a scale that touches the main service, so treat the safety line as the first fact, not the last: any work inside an energized panel is a licensed electrician's job, full stop, and everything below describes what gets planned and inspected around that work, not how to do it yourself.
Why a detached garage usually needs its own subpanel
A garage sitting 30, 60, or 150 feet from the main panel needs enough amperage on-site to run an EV charger, lighting, outlets, and often a power tool or 2 at the same time, and running that much capacity as a single long branch circuit back to the main panel wastes wire and increases voltage drop. A subpanel solves this by moving the amperage split closer to where it is used: one feeder circuit runs from the main panel to a smaller panel in the garage, and that garage panel then splits its capacity into individual branch circuits for the charger, the lights, and the outlets.
What a subpanel actually is: feeder versus branch circuit
The feeder is the single circuit, typically 2 hot conductors, a neutral, and a ground, that runs from the main panel to the subpanel and carries the subpanel's full rated capacity, commonly 60, 100, or occasionally 125 amps for a garage serving an EV charger plus general use. The branch circuits are what come out of the subpanel afterward, each sized for its specific load, such as a dedicated 50 amp circuit for the charger and separate 15 or 20 amp circuits for lighting and outlets. Confusing the 2 is a common homeowner mistake: the feeder amperage describes what the whole garage may draw at once, while each branch amperage describes only its own circuit.
Sizing the subpanel: how much capacity the garage needs
Sizing starts with a load calculation that lists every circuit the garage will eventually carry, not just the ones installed on day 1: the EV charger at 32, 40, or 48 amps continuous depending on the breaker chosen, general lighting and outlet circuits typically totaling 15 to 20 amps, and any future addition such as a mini-split heater or an air compressor. A garage subpanel sized at exactly today's needs often runs out of room the moment a second EV or a workshop tool gets added, which is why many electricians recommend sizing the feeder 1 step larger, for example a 100 amp feeder for a garage whose current plan only calls for 60 amps of active load.
Feeder wire gauge as a function of amperage and distance
Wire gauge for a feeder depends on 2 separate factors that do not always point to the same answer: the ampacity needed to carry the rated current safely, and the voltage drop that accumulates over distance. The electrical code's ampacity table sets a minimum gauge for a given breaker size regardless of distance, but a longer run can still force a jump to a thicker conductor than that minimum, because a thinner conductor loses more voltage per foot as current flows through it. This is exactly where a general answer becomes unreliable: whether your specific run needs upsizing past the ampacity-table minimum depends on your run length, your actual load, and sometimes conduit fill and ambient temperature too. Only your electrician's voltage-drop calculation for your site is trustworthy.
| Feeder amperage | Ampacity-table minimum gauge, copper | What can force a larger gauge |
|---|---|---|
| 60 amp | 6 AWG copper | Run length, conduit fill, ambient temperature, or your electrician's voltage-drop calculation for the specific site |
| 100 amp | 2 AWG copper | Same factors, evaluated for your specific run |
| 125 amp | 1 AWG copper | Same factors, evaluated for your specific run |
This table shows only the code's ampacity-table starting point. The distance at which any specific run needs a larger conductor is not a number that transfers from one project to another. It comes out of your electrician's voltage-drop calculation for your actual trench length, load, and conduit.
Voltage drop over long runs, and why distance matters
Many electricians design feeder runs to keep voltage drop under about 3 percent as a practical guideline, even though the electrical code's minimum ampacity tables alone would technically allow a thinner wire on paper. A charger that expects 240 volts but effectively sees 225 or 230 volts at the end of a long, undersized feeder can charge more slowly and run hotter than intended. This is a case where following only the bare minimum wire size, if it happens to pass a basic table lookup, can still leave you with a circuit that underperforms in daily use, even if it is technically permitted.
Trenching, conduit, and direct burial cable
Before a trench date gets set, the free 811 call-before-you-dig locate has to be placed and the marks still inside their validity window, because locators flag utility-owned lines that appear on no drawing you have at home. Our guide to trenching conduit to a garage works through the locate and the cover-depth question in detail.
Getting the feeder from the house to the garage usually means either a trench with rigid or PVC conduit protecting the conductors, or, in jurisdictions that allow it, direct burial cable rated for underground use without conduit. Required trench depth varies by conduit type and by local amendment, so ask your inspector for the specific depth your jurisdiction requires rather than assuming a number from another project. Where the trench crosses a driveway, a paved path, or existing landscaping, expect the crossing itself, not the straight run, to be the most expensive and time-consuming part of the job, sometimes requiring directional boring instead of an open trench.
Grounding and bonding for a detached structure
A subpanel in a detached structure like a garage typically needs its own grounding electrode, often a ground rod driven near the garage, separate from the grounding system at the main house panel. Inside the subpanel itself, the neutral and ground conductors are generally kept on separate bars rather than bonded together the way they are at the main panel, a detail that trips up even some experienced DIYers who assume a subpanel is wired identically to a main panel. This is squarely inside the category of work that stops at your electrician: verifying grounding and bonding correctly is not a task to attempt inside a live or newly energized panel.
Permits: why a subpanel almost always needs one
A new subpanel, a new feeder circuit, and new branch circuits inside a detached structure together represent exactly the kind of project your local authority having jurisdiction expects to see permitted and inspected, not completed quietly and reported later if at all. Some jurisdictions allow an owner-occupant to pull the permit and do qualifying work themselves; many others require a licensed electrician for anything touching the main service or a new panel. Ask your building department directly which category your project falls into before assuming either answer.
Where the main panel's capacity limits the subpanel breaker
The subpanel's feeder breaker, the one installed in the main panel to protect the feeder run, cannot exceed what your main panel's load calculation shows as available capacity after every existing circuit is accounted for. A 100 amp main panel with 70 amps of calculated existing load has roughly 30 amps of headroom, which rules out a 60 amp garage feeder without either reducing other loads, adding load management, or upgrading the main service first. This is the single most common reason a garage subpanel project turns into a main panel conversation nobody budgeted for at the start.
Combining the EV circuit with other garage loads on one subpanel
Once the subpanel is sized, the EV charger becomes just 1 of several branch circuits it needs to support, alongside general lighting, a couple of 20 amp outlet circuits for hand tools, and possibly a dedicated circuit for a compressor or a space heater. A 100 amp subpanel supports a 48 amp EV charger alongside these smaller circuits once the load calculation has been run properly. A 60 amp subpanel is a different case: a 48 amp charger draws that current continuously, and the breaker protecting it has to be rated above that draw, so the charger effectively claims the whole 60 amp feeder rather than leaving a slice of it. Using power tools while the car charges then means either commissioning the charger at a lower current setting, which most units allow, or adding load management that pauses charging while the rest of the garage draws current.
Inspection: what happens before it's energized
Expect at least 2 inspection points: a rough-in inspection after the trench is dug and conduit is placed but before it is covered, confirming depth and conduit type, and a final inspection after the subpanel, feeder, and branch circuits are complete, confirming grounding, bonding, breaker sizing, and labeling. Covering a trench before the rough-in inspection is one of the most common reasons a project gets delayed, since the inspector may require digging it back up to verify what is underneath.
Cost drivers: trenching length, conduit type, and wire gauge
Across most garage subpanel projects, 3 factors drive the bulk of the cost: the trench length in feet, since labor and material both scale with distance; the conduit type, with rigid metal conduit typically costing more per foot than PVC but sometimes required by local code in specific situations; and the wire gauge, since copper conductor cost rises quickly as gauge gets larger to handle either higher amperage or longer voltage-drop-limited runs. A 100 amp subpanel 30 feet from the house can cost meaningfully less than a 60 amp subpanel 150 feet away, because the shorter run needs less copper and less trenching despite the smaller rated capacity.
| Distance from main panel | Primary cost driver |
|---|---|
| Under 50 ft | Panel and breaker cost dominate, trenching is minor |
| 50 to 100 ft | Trenching and conduit become significant |
| Over 100 ft | Wire upsizing for voltage drop adds to material cost |
When a licensed electrician takes over
Planning the load calculation, choosing the subpanel size, mapping the trench route, and scheduling inspections are all things you can research and discuss with confidence. Everything past that, breaking into the main panel to add the feeder breaker, landing conductors inside the subpanel, and connecting the grounding electrode, is where this stops being a homeowner project. A licensed electrician takes it from there, and no amount of research replaces that step for the parts of the job that involve an energized panel.
Source: local authority having jurisdiction (building and electrical permit office), 2026 program year, and standard residential electrical design practice for feeder sizing and voltage drop. For general background on residential electrical safety, see the U.S. Consumer Product Safety Commission at cpsc.gov.
⚡Disclaimer: This article is for informational purposes only. Smart home installations may involve electrical wiring and must comply with local building codes. Electrical work should only be performed by a licensed electrician.
Published by the Smart EV Home Charger editorial team. Published November 25, 2026.
Editorial responsibility: see Imprint.
Spotted an error or have something to add? corrections@smartevhomecharger.com
Explore more
All articles on Smart EV Home Charger →
EV Charging Tips, Delivered
New guides, charger reviews, and cost-saving tips — every week in your inbox.
🎁 Free bonus: EV Home Charging Starter Guide (PDF)
You might also like
NEMA 14-50 Outlet Installation for EV Charging: The Complete Walkthrough
The NEMA 14-50 is the most popular outlet for home EV charging. Here's everything about installation — costs, requirements, and what to tell your electrician.
How to Future-Proof Your Home EV Charging Setup: A Practical Guide
EV technology changes fast. Here's how to set up your home charging so it works for your next car, your partner's EV, and the vehicles of 2030 — without rewiring everything.
EV Charger Noise Levels: How Loud Is Home Charging, Really?
Worried about charger noise bothering your family or neighbors? Here's what EV chargers actually sound like and which ones are quietest.