Subpanel in a Detached Garage: Feeder, Grounding and Common Mistakes

Subpanel in a detached garage: feeder size, the four wire rule, ground rods, disconnect and burial depth, plus the mistakes inspectors find most.

A subpanel in a detached garage or workshop gives you room for real tools: a compressor, a welder, a heater, an EV charger, and more than one circuit for lights and receptacles. But because the garage is a separate building, the NEC treats it differently from a subpanel in your basement. It needs a four wire feeder, its own grounding electrode, and a way to shut the power off at the building itself. This guide walks through each of those, and the mistakes that show up again and again when these jobs are inspected.

Do you need a subpanel in a detached garage, or just one circuit?

If the garage only needs a few lights and a couple of receptacles, a single circuit may be enough. The NEC allows a detached building to be supplied by one branch circuit (a multiwire branch circuit counts as one) without a subpanel and without a ground rod at that building.

As soon as you want more than one circuit, or anything with a large motor or heating element, you need a feeder: a set of larger wires from a breaker in your main panel to a subpanel in the garage. From that subpanel, the garage gets its own branch circuits.

How to size the feeder

Start with what will run at the same time. A shop with a 240 volt compressor, a space heater and lights needs a very different feeder than a garage with a freezer and a battery charger. Add up the real loads before you pick a breaker size.

Add up what the garage will draw before anyone orders wire with the circuit load calculator.

These are common feeder sizes for a short run, using copper or aluminum wire in conduit and breakers with terminals rated for 75 °C (167 °F):

  • 30 amp feeder: 10 AWG copper, with a 10 AWG copper equipment grounding conductor.
  • 60 amp feeder: 6 AWG copper or 4 AWG aluminum, with a 10 AWG copper equipment grounding conductor.
  • 100 amp feeder: 3 AWG copper or 1 AWG aluminum, with an 8 AWG copper equipment grounding conductor.

Two things can push you to a larger wire. The first is distance: a garage at the back of a deep lot can be 150 feet or more from the main panel, and the voltage drop on that run can make a compressor struggle to start. The second is heat: several circuits sharing one conduit, or a conduit in hot sun, lower what each wire can carry. Our guide to wire ampacity derating explains how that works.

Check the drop over your actual distance with the voltage drop calculator.

For a long run, we worked through a full example in our article on choosing the wire size for a 300 foot run. And do not forget the other end: the feeder breaker takes capacity from your main panel. If you also plan an EV charger, read how that fits on 100 amp service with an EV charger before you size the garage feeder.

Subpanel in a detached garage: why the feeder needs four wires

A feeder to a detached building carries four conductors: two hot wires, a neutral, and an equipment grounding conductor. The neutral carries the normal return current of 120 volt loads. The grounding conductor carries no current in normal use; it is there to give fault current a solid path back to the main panel, so the breaker trips fast.

Older garages were often fed with three wires, with the neutral and ground joined at the garage and connected to a ground rod. That method has not been allowed for new work since the 2008 NEC. With neutral and ground joined at the garage, part of the normal neutral current flows over metal parts, water pipes and the earth, and a broken neutral can put voltage on the metal case of every tool plugged in. An existing three wire feeder may stay in place under limited conditions, but a new or replaced feeder is four wire.

Keep neutral and ground separate in the subpanel

Neutral and ground are joined in one place only: at the service, in your main panel. In the garage subpanel they stay apart. That means:

  • The bonding screw or bonding strap that comes with the panel is removed, so the neutral bar is isolated from the metal enclosure.
  • A separate ground bar is installed and fastened to the enclosure. All bare and green wires land on the ground bar, all white neutral wires on the neutral bar.

A new panel often ships with the bonding screw in place, because the manufacturer does not know if it will be used as a main panel or a subpanel. Leaving it in is one of the easiest mistakes to make and one of the easiest to spot when the cover comes off.

Subpanel in a detached garage: ground rods at the building

Because the garage is a separate building, it needs its own grounding electrode system, usually ground rods driven next to the building and connected with a grounding electrode conductor to the ground bar in the subpanel. In practice most electricians drive two rods, because a single rod is only enough when it measures 25 ohms or less, and few people test it.

The ground rods do not replace the equipment grounding conductor in the feeder. The earth is a poor conductor, far too poor to trip a breaker. The rods limit voltage from lightning and outside sources; the grounding conductor back to the main panel is what clears a fault.

A disconnect at the garage

Anyone working in the garage must be able to shut off all power there without walking back to the house. The NEC requires a disconnecting means at the detached building, readily accessible and located near the point where the feeder enters.

The simplest way is to use a panel with a main breaker as the garage subpanel. The main breaker then serves as the disconnect. It does not need to match the feeder breaker in the house; a 100 amp main breaker panel fed by a 60 amp breaker is fine, because the breaker in the house protects the feeder.

How deep to bury the feeder

For a residential feeder under a lawn, the usual minimum cover, measured to the top of the cable or conduit, is:

  • Rigid metal conduit: 6 inches.
  • PVC conduit: 18 inches.
  • Direct burial cable (UF): 24 inches.

Under a driveway the requirements are deeper. Where the conduit or cable comes up out of the ground, it needs protection against damage up to the panel or the wall.

An underground conduit is a wet location, even when it looks dry. Regular NM cable (often called Romex) is never allowed there, not even inside conduit. Use wires rated for wet locations, such as THWN in conduit, or UF cable. And call 811 a few days before you dig, so buried gas, water and power lines are marked.

GFCI protection in the garage

Receptacles in a garage or accessory building need GFCI protection. You can do that with GFCI breakers in the subpanel or with a GFCI receptacle at the start of each circuit. For a workshop, GFCI breakers are often the better choice: they sit dry and dust free in the panel, and you reset them in one place.

Mistakes inspectors find on a subpanel in a detached garage

I inspected electrical installations in Belgium for fifteen years, under different rules than the NEC. The grounding details differ, but the weak spots of a supply to an outbuilding are the same on both sides of the ocean: a cable buried too shallow, a cable left unprotected where it comes out of the ground, and indoor cable used underground. The trench is out of sight, and it is the part people are most tempted to do cheaply. On a subpanel in a detached garage in the US, these are the defects inspectors look for:

  1. Neutral and ground bonded in the subpanel. The bonding screw was left in, or neutral and ground wires share one bar.
  2. A three wire feeder on new work. No separate grounding conductor between the buildings.
  3. No ground rod at the garage, or a rod with no conductor connected to it.
  4. NM cable buried or run in underground conduit.
  5. A trench that is too shallow, or cable coming out of the ground without protection.
  6. No disconnect at the garage.
  7. A feeder breaker larger than the wire can carry, often after someone upgraded the breaker to stop it from tripping.

Several of these also appear on our list of the 22 findings in almost every electrical inspection report, with a printable checklist.

Permit and inspection

A subpanel in a detached garage needs a permit in practically every city and county. Expect the inspector to look at the open trench before it is backfilled, and at the panels before the covers go on. Code adoption varies: states and cities adopt new NEC editions on their own schedule, and your local inspector (the AHJ, authority having jurisdiction) has the final word on what applies at your address.

This article is general information about residential electrical systems, not a code ruling for your home. Code adoption varies by state and city, and your local electrical inspector has the final word. Have any work done by a licensed electrician.

Rahmouni, author of FIXMIRO

Who writes this

FIXMIRO is written by Rahmouni, an industrial engineer who spent fifteen years inspecting electrical installations and seven inspecting gas. What you read here is what he used to explain to homeowners while standing at their panel, written out properly.

Use the free calculators

Or browse all the guides.