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
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 124 in, your pick
- THWN wire in PVC conduitTable 300.5, column 318 in
- THWN wire in rigid metal conduitTable 300.5, column 26 in
- Any of these, GFCI-protectedTable 300.5, column 4: 120 V, 20 A or less12 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).
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.
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.
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.
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.
Outdoor receptacles have to be the tamper-resistant, weather-resistant type, marked TR and WR (NEC 406.9(B)).
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)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.
Where the numbers come from
- Town of Woodbury, CT: 2020 NEC inground pool requirements (300.5 and Table 300.5, read 2026-11-08)
- Jefferson County, CO: Residential Electrical Wiring Guide, 2023 NEC (GFCI 210.8, WR receptacles 406.9(B), permits)
- NC Office of the State Fire Marshal: in-use type receptacle covers in wet locations (406.9(B), 2017)
- Leviton: 1-gang weatherproof receptacle kit 4996-KIT (406.9, WR GFCI)
- Southwire SPEC 10036: UF-B copper cable (direct burial, 60 °C ampacity, 14 to 6 AWG)
- Southwire SPEC 10000: SIMpull THHN/THWN-2 (wet locations, conduit)
At the other end of the trench
Planning the run
More calculators
- Deer fenceHow tall a fence keeps deer out of the garden, and how much mesh and posts?
- FenceHow many vinyl panels, or wood posts and pickets, for my fence line?
- Fence costWhat will my fence cost installed?
- DeckWhat joist size and spacing does my deck span need?
- Deck costWhat will my deck cost to build?
- Deck boardsHow many deck boards and screws?
- Deck stairsHow many steps, and how long are the stringers?
- Board feetHow many board feet, and what will the lumber cost?