Skip to main content
See the latest posts from tradesmen around the country
DIY AnswersEarthmover

How to Safely Dig a Trench Along a Boundary Fence Line Yourself

Digging a boundary trench is doable as a DIY project, but safe planning, utility checks, and correct technique are essential before you break ground.

How to Safely Dig a Trench Along a Boundary Fence Line Yourself

Digging a trench along a boundary fence line is a manageable DIY task for many NZ homeowners — whether you're laying drainage, irrigation, or a conduit for cabling. However, it carries real risks if you don't plan carefully. Underground services, unstable soil, and proximity to your neighbour's property all need to be considered before you pick up a spade.

Step 1: Locate Underground Services Before You Dig

This is the single most important step. Striking a buried power cable, gas line, or water main can be fatal or cause serious damage. In New Zealand, you can contact Before U Dig (BUD) — a free national service that notifies utility companies so they can mark out their assets near your work area. Allow several working days for responses.

Even after BUD notifications, treat any marks as approximate. Hand-dig carefully within 500 mm of any marked service. Check with your local council for stormwater and wastewater pipe locations, as these may not always be captured by BUD.

WorkSafe NZ has clear guidance on excavation hazards — it's worth reading before you start.

Step 2: Check Consent and Boundary Rules

Most shallow trenches for drainage or irrigation on your own property don't require a building consent, but there are exceptions. Under Schedule 1 of the Building Act 2004, certain drainage and earthworks may be exempt — but always confirm with your local council before starting. If your trench connects to the public stormwater or wastewater network, that work is restricted to a licensed drainlayer under the Plumbers Gasfitters & Drainlayers Board.

Also check your title and any easements — there may be legal restrictions on digging near the boundary, particularly if services belonging to neighbours or the council run through your property.

Step 3: Plan Your Trench Dimensions

For most residential purposes, a trench along a fence line will be:

  • Width: 300–600 mm depending on what you're installing
  • Depth: 300–900 mm for irrigation or conduit; deeper for drainage (check relevant standards and manufacturer specs)
  • Offset from fence posts: At least 300–500 mm to avoid undermining post footings

Be aware that digging too close to fence posts can destabilise them, potentially damaging your neighbour's fence — which could make you liable for repairs.

PurposeTypical DepthNotes
Irrigation pipe300–450 mmProtect from frost in southern NZ
Electrical conduit500–600 mmMust be installed by a licensed electrician
Drainage (ag pipe)450–900 mmSlope minimum 1:100 toward outlet
Wastewater/stormwater600 mm+Restricted work — licensed drainlayer required

Step 4: Choose the Right Tools

For short runs (under 10 m), a long-handled spade and mattock may be sufficient. For longer trenches or harder ground, consider hiring a trenching machine (trencher) or mini excavator from a local hire company. These are available from many NZ hire centres and can save hours of hard labour.

Always wear:

  • Steel-capped boots
  • Safety glasses
  • Gloves
  • Hi-vis vest if working near a road or driveway

Step 5: Manage Spoil and Trench Safety

Pile excavated soil (spoil) at least 500 mm back from the trench edge on the opposite side from where you're working. This prevents it from collapsing back in — or worse, onto you.

For trenches deeper than 1.5 metres, WorkSafe NZ requires shoring, benching, or battering the sides to prevent collapse. This is a serious risk — trench collapses can be fatal. If your trench needs to go this deep, strongly consider hiring a professional earthmover.

Never enter a trench deeper than 1.5 m without proper shoring in place.

Step 6: Protect the Fence and Your Neighbour's Property

Talk to your neighbour before you start — it's good practice and legally sensible. If your digging undermines their fence posts or causes soil movement onto their property, you may be responsible for the cost of repairs. Keep a clear working margin from the fence line and backfill and compact the trench properly once work is complete.

Step 7: Backfilling and Compaction

Once your pipe, conduit, or drain is laid:

  1. Bed the pipe in clean sand or fine gravel (check manufacturer specs)
  2. Backfill in 150–200 mm layers, compacting each layer with a hand tamper or plate compactor
  3. Restore topsoil and re-grass or reinstate paving as needed

Poor compaction leads to ground settlement, which can crack paths, shift fence posts, and cause drainage problems down the track.

When to Call a Professional

Call a licensed earthmover or drainlayer if:

  • Your trench needs to be deeper than 1.5 m
  • You're connecting to the public stormwater or wastewater system (legally required)
  • You've struck an unknown pipe or cable
  • Ground conditions are unstable, waterlogged, or rocky
  • You're unsure about the location of underground services
  • The job is longer than 20–30 m and time or effort is a concern

For electrical conduit installation, always use a registered electrician — this is restricted work under the Electrical Workers Registration Board.

You can find qualified local earthmovers, drainlayers, and electricians on tradedirectory.co.nz.

Frequently Asked Questions

Do I need a building consent to dig a trench on my property in NZ?+

Most shallow trenches for irrigation or conduit are exempt under Schedule 1 of the Building Act 2004, but it depends on the purpose and depth. Always check with your local council before starting, as rules vary. Connecting to the public stormwater or wastewater network always requires a licensed drainlayer and may require consent.

How do I find out what's buried along my boundary before I dig?+

Contact Before U Dig (BUD), a free NZ service that notifies utility companies to mark out underground assets near your work area. Also check with your local council for stormwater and wastewater pipe locations. Allow several working days for responses and always hand-dig carefully within 500 mm of any marked service.

How close to a fence post can I safely dig?+

As a general guide, stay at least 300–500 mm away from fence posts to avoid undermining their concrete footings. Digging too close can destabilise the fence, and if it falls or is damaged, you may be liable for repair costs. Talk to your neighbour before starting work near a shared boundary.

What depth does a trench become dangerous without shoring?+

WorkSafe NZ requires that any trench deeper than 1.5 metres must have shoring, benching, or battered sides to prevent collapse. Trench collapses can be fatal — never enter an unshored trench deeper than 1.5 m. For trenches this deep, it's strongly recommended to hire a professional earthmover.

Can I lay electrical conduit in a trench myself?+

You can dig the trench yourself, but the actual installation of electrical conduit and any wiring connections is restricted work in NZ and must be carried out by a registered electrician under the Electrical Workers Registration Board (EWRB). Doing this work yourself without a licence is illegal and dangerous.

Need a Earthmover?

Find qualified earthmovers near you in our directory.

Find a Earthmover →

Earthmovers Near You

Shapeshifter Earthworks Ltd logo

Earthmover

5.0(8)

Kerikeri, Northland

Shapeshifter Earthworks Ltd is an earthmoving company based in Kerikeri, Northland. They specialise in preparing building sites, access-ways, and landscapes using environmentally friendly equipment and practices. The business is locally owned and operated.

ARC Retaining & Contracting Ltd logo

Earthmover

5.0(7)

Waitoki, Auckland

ARC Retaining & Contracting Ltd is an earthmover business based in Waitoki, Auckland. They specialise in retaining walls, site excavations, pole foundations, and landscaping for residential and commercial projects across the greater Auckland area.

  • Site Safe
Compton Civil Ltd logo

Earthmover

Wellington, Wellington

Compton Civil Ltd is a Wellington-based earthmoving and general contracting company with over 75 years of experience. They specialise in excavation, site works, auguring, drilling, demolition, driveways, small car parks, and offer truck hire in the greater Wellington region.

Miniveyor NZ Ltd logo

Earthmover

Auckland, Auckland

Miniveyor NZ Ltd, based in Auckland, specialises in earthmoving with a focus on material shifting. They offer hire, purchase, and leasing options, supported by a team of trained operators to assist with conveying tasks.

Active Contracting Ltd logo

Earthmover

3.2(10)

Auckland, Auckland

Active Contracting manages full site works including Earthmoving, Landscape, House Cuts, Driveways, Demolition, Roading and Subdivisions.

Excav8 Ltd logo
Excav8 Ltd Verified

Earthmover

Dunedin, Otago

Excav8 Ltd is a Dunedin-based earthmoving contractor offering services including site excavation, road construction, driveway reshaping, and drainage management. They operate machinery such as excavators, graders, rollers, and water carts with experienced operators.

Earth worksDriveway maintenance
Last updated: Last reviewed:

The information on this page is provided as a general guide only. Kiwi Trade Directory makes no representations or warranties regarding the accuracy, completeness, or suitability of this information for your specific situation. Costs, timeframes, and recommendations vary significantly depending on your location, property, and individual circumstances. Always obtain multiple quotes from qualified tradespeople and seek independent professional advice before undertaking any home improvement or building work. Kiwi Trade Directory accepts no liability for any loss or damage arising from reliance on the information provided on this site.