Calculators / Fences and decks

Underground wire to an outdoor outlet: depth and size

Put in how far it is, what it powers and how you’ll run it. You’ll get the minimum burial depth for that wiring method, the wire gauge for the run, and what the outlet at the end needs.

Updated · How we check our numbers

These are example numbers. Put in yours.

What it powers

ft

One way, from the panel to the outlet or light, along the trench and up the walls.

What it powers
Voltage
Circuit
W

Sets the voltage drop. Blank sizes it for the full breaker.

The trench

Wiring method
Where the trench runs
GFCI-protected from the house end?

Dig this deep, run this wire

24 in deep, 12 AWG UF-B

85 ft for a 20 A outlet: 12 AWG UF-B at 24 in, or 12 in if the circuit is GFCI-protected; or 18 in in PVC conduit. It drops 2.3% at 1,000 W (8.3 A).

Cover
24 inUF-B
Wire
12 AWGcopper, UF-B
Breaker
20 A120 V
Run
85 ft one way

Estimate for planning only, not professional advice. Check the manufacturer’s instructions, your local code and a licensed professional before you buy, build or install. Use at your own risk. Terms.

Measure the trenchTrace the route on the aerial photo to get its length.

Wire size on Spec My Garage8.3 A at 120 V, 85 ft

cover = Table 300.5, all locations not specified below, UF-B cable, direct burial = 24 in

smallest copper that carries 20 A at 60 °C = 12 AWG

drop = 2 × 85 ft × 1.98 Ω/1,000 ft × 8.3 A = 2.8 V = 2.3% of 120 V

Depth for each way to run it

Under lawn or a garden bed
  • UF-B cable, direct burialTable 300.5, column 1
    24 in, your pick
  • THWN wire in PVC conduitTable 300.5, column 3
    18 in
  • THWN wire in rigid metal conduitTable 300.5, column 2
    6 in
  • Any of these, GFCI-protectedTable 300.5, column 4: 120 V, 20 A or less
    12 in

NEC Table 300.5, 2020 edition. Where a cable or conduit column and the GFCI column both apply, the shallower one is allowed (Note 4).

Measured how

Cover is measured from the top of the cable or conduit up to finished grade (Table 300.5, Note 1), so dig deeper than the number by the conduit or cable itself.

Permit

A new outdoor circuit usually takes a permit and an inspection, and your town can ask for more than the code minimum. Some places require a licensed electrician to do the work. Use this to plan the trench and price the wire, then check with your building department.

Hit rock?

Where solid rock stops you reaching the depth, Table 300.5 Note 5 has the run go in metal conduit, or nonmetallic conduit listed for direct burial, under at least 2 in of concrete down to the rock.

GFCI

Every outdoor receptacle needs GFCI protection (NEC 210.8, as Jefferson County, CO lists it).

See weather-resistant GFCI outlets on Amazon (opens Amazon in a new tab)

As an Amazon Associate we earn from qualifying purchases.

Weather-resistant

Outdoor receptacles have to be the tamper-resistant, weather-resistant type, marked TR and WR (NEC 406.9(B)).

In-use cover

A 15 or 20 A outlet outdoors in a wet location needs a cover that stays weatherproof with a cord plugged in (NC State Fire Marshal on NEC 406.9(B)). Makers sell these as in-use or extra-duty covers: Leviton’s IUM1H is one.

See in-use outlet covers on Amazon (opens Amazon in a new tab)
Shallower trench

With GFCI protection on the circuit, Table 300.5's column 4 lets a 120 V, 20 A run go in at 12 in.

How we work it out

Depth. NEC Table 300.5 sets the minimum cover by wiring method and where the trench runs. Under lawn it's 24 in for direct-burial cable like UF-B, 18 in for PVC conduit and 6 in for rigid metal conduit. A 120 V circuit on a 20 A breaker or less, with GFCI protection, can go at 12 in, whichever of those you use: the table's Note 4 allows the shallower figure. Low-voltage landscape lighting, 30 V or less, is 6 in. Under a house driveway every method is 18 in, or 12 in for the GFCI circuit; under a 4 in patio slab with no cars on it, less.

depth = the shallower of your method's column and, if it applies, the GFCI column

Cover runs from the top of the cable or conduit up to finished grade. NFPA's free copy of the code needs an account, so we read the table as the Town of Woodbury, CT building department reprints it from the 2020 NEC, footnotes and notes included.

Wire size. The same engine as our wire size and voltage drop calculator: the smallest copper wire that carries the breaker, at 60 °C for UF-B (Southwire limits UF-B to the 60 °C ampacity) and 75 °C for THWN in conduit, and that keeps the voltage drop at 3% or less for what you'll run. Leave the load blank and it sizes for the full breaker, which on a long run is a size or two bigger.

drop = 2 × run length × ohms per foot × amps

The outlet. Outdoor receptacles need GFCI protection and have to be the weather-resistant, tamper-resistant type (NEC 210.8 and 406.9(B), as Jefferson County, CO's wiring guide lists them). A 15 or 20 A outlet in a wet location needs a cover that stays weatherproof with a cord plugged in, an in-use or extra-duty cover (North Carolina's State Fire Marshal on 406.9(B)).

Or skip the deep trench. For lights, 12 V low-voltage cable goes in at 6 in under lawn. The landscape lighting planner sizes the transformer and cable. A hot tub gets its trench depth here, and its breaker, wire and disconnect from the hot tub calculator.

A new outdoor circuit usually takes a permit and an inspection, your town can ask for more than the code minimum, and some places require a licensed electrician. Not covered: feeders to a subpanel, pools, and circuits over 30 A.

Get the new ones by email

We're adding more. Put your email in and we'll send one short note each time there's a new yard calculator.

No spam. Unsubscribe any time.