# How to Build a Retaining Wall (and When You Need an Engineer)

> How a block retaining wall is built, step by step: trench, base, drainage, backfill and geogrid, plus when Ontario's Building Code makes a wall need a permit.

Canonical: https://ernest.shaneheyworth.com/guides/how-to-build-a-retaining-wall
Last updated: 2026-11-30

A block retaining wall stands or falls on what's under and behind it: a compacted base, clean drainage stone and, on taller walls, geogrid. Here's how it's built and when Ontario's Building Code steps in.

Last reviewed November 29, 2026 · Ernest Contracting

A retaining wall holds back soil so the ground on one side can sit higher than the other. In a yard, that usually means turning a slope into a flat patio or lawn, holding a driveway cut, or terracing a bank into planting beds. The face is the part everyone sees. What decides whether the wall is still straight in ten years is the part nobody sees: the base under it, the stone behind it, and how water gets out.

This guide walks through how a segmental block wall is built, using a manufacturer's published installation guide for the numbers, then explains when Ontario's Building Code treats a wall as a structure that needs a permit and an engineer's design.

## Why retaining walls fail

Soil pushes on a wall all the time, and wet soil pushes much harder than dry soil. Most failures come down to one of three things: a base that settles, water that builds up behind the wall, or a wall too tall for its design. In southwestern Ontario the freeze-thaw cycle adds a fourth. Water trapped in the backfill freezes, expands and nudges blocks out of line a little each winter.

## Before you dig

Call for locates. Ontario One Call now operates as **Ontario Dig Authority**, and its homeowner page says requesting a public utility locate before you dig is free and the law. Submit at least 5 business days before a single-address project, or 10 for a multi-address or large one. Public locates don't cover private lines such as a gas line to a barbecue or a septic system, so find those yourself.

Then check the height. If the finished wall will be more than a metre of exposed face near a sidewalk, a driveway or a walkway to your front door, read the Building Code section below before you buy a single block.

## How a block retaining wall is built

These steps and figures come from Allan Block's residential installation guide. Other block systems publish their own guides, and the one for the block you use governs.

1. **Dig the base trench.** Allan Block calls for a trench 24 inches (600 mm) wide along the length of the wall, or 18 inches for walls under 4 feet. The depth is 6 inches (150 mm) plus 1 inch (25 mm) for every foot of wall height, which leaves room for the buried bottom course.
2. **Compact the trench.** Make at least two passes with a walk-behind plate compactor before any stone goes in.
3. **Place the base.** Lay a minimum of 6 inches (150 mm) of wall rock (clean crushed stone), rake it smooth and compact it with at least two passes. The base course of block is levelled on this, and every course above inherits its errors, so this is where the time goes.
4. **Lay the drain pipe if the wall needs one.** Allan Block requires a drain pipe for any reinforced wall, any gravity wall over 4 feet (1.2 m), and any site with poor drainage. It sits at the lowest point toward the back of the trench and vents to daylight every 50 feet (15 m).
5. **Set the first course.** It's partly buried, which keeps the toe of the wall from kicking out.
6. **Fill and backfill.** Fill the hollow cores and at least 12 inches (300 mm) behind the block with wall rock, to the height of the block. Backfill soil goes in behind that in lifts of no more than 8 inches (200 mm), each one compacted.
7. **Stack the courses.** Each course sits back slightly from the one below. That setback, built into most segmental blocks with a lip or pins, leans the wall into the hill.
8. **Cap it and finish the grade.** Fix the caps, then slope the finished grade so surface water runs away from the top of the wall rather than soaking in behind it.

## Geogrid: when a wall needs to be reinforced

Past a certain height, the weight of the blocks alone can't hold the soil. Reinforced walls tie the block to the soil behind it with layers of geogrid, a flat polymer mesh laid between courses and run back into compacted backfill. The block and the soil mass then work as one.

Allan Block's reinforced-wall guide says to excavate behind the wall for the design length of the grid and to refer to the approved plans for the exact length and where each layer goes. Compaction is still in lifts of no more than 8 inches. The point is that a reinforced wall is designed, not eyeballed. Grid length and spacing depend on the wall height, the soil and what sits above the wall.

## When Ontario's Building Code applies

Ontario's 2024 Building Code lists certain retaining walls as **designated structures** (Division A, Article 1.3.3.5). The wording is: a retaining wall exceeding 1,000 mm in exposed height adjacent to public property, access to a building, or private property to which the public is admitted. The same Code applies Part 4, its structural design part, to those walls.

Designating them brings them inside the Building Code Act's definition of a building, and section 8 (1) of the Act says no one shall construct a building without a permit from the chief building official. In plain terms: a wall over a metre of exposed face in one of those spots needs a building permit, and its design has to meet Part 4.

### What "adjacent" means in practice

The Code doesn't define every term here, so municipalities publish their own interpretations. The City of Barrie's September 2024 information sheet, for example, treats a wall as adjacent when the horizontal distance is equal to or less than the wall's height. It counts a front or side yard that mail carriers, couriers or emergency crews would cross to reach the front door as private property to which the public is admitted. Barrie also requires a professional engineer licensed in Ontario to provide the design. That's one city's reading. Ask your own building department in Norfolk, Haldimand, Brant or wherever the wall is going how they apply it.

## Do it yourself, or hire it out?

A low garden wall, two or three courses holding back a planting bed well away from the house and the street, is a reasonable weekend project with the right tools and a borrowed plate compactor. Hire it out when:

- the wall is over about a metre, or sits near a driveway, sidewalk, walkway or property line
- the wall holds up a driveway, a parking area, a pool or a building
- the soil is wet, heavy clay, or there's water coming out of the slope
- the wall needs geogrid, steps, curves or corners you haven't built before
- there's an old timber or block wall to tear out first

Ernest Contracting builds [retaining walls](https://ernest.shaneheyworth.com/services/retaining-walls) in retaining wall block and natural stone as part of its [hardscaping](https://ernest.shaneheyworth.com/services/hardscaping) work, and handles the excavation and removal of old walls. If the wall needs an engineer's design and a permit, we'll say so before anything starts. [Request a quote](https://ernest.shaneheyworth.com/quote) or call or text 226-268-5157.

## Questions people ask

### Do I need a permit for a retaining wall in Ontario?

Ontario's Building Code designates a retaining wall exceeding 1,000 mm in exposed height adjacent to public property, access to a building, or private property to which the public is admitted. Those walls need a building permit. Lower walls, or walls away from those areas, may not, but check with your municipality.

### Does a retaining wall need an engineer?

Designated walls have to meet Part 4 of the Building Code, the structural design part, and municipalities such as Barrie require a professional engineer's design for them. Any wall using geogrid should be built to a design.

### How deep should a retaining wall base be?

Allan Block's guide calls for a trench 6 inches deep plus 1 inch for each foot of wall height, with at least 6 inches of compacted wall rock in the base.

### Does a retaining wall need drainage?

Yes. Clean stone behind the wall lets water drain. Allan Block requires a drain pipe for reinforced walls, gravity walls over 4 feet and sites with poor drainage, vented to daylight every 50 feet.

### How do you build a retaining wall on a slope?

Step the base. The trench is dug as a series of level steps up the slope, each one block high, so every course still sits on a level, compacted base. Taller sections may need geogrid or terracing into two shorter walls.

## Sources

- [Government of Ontario: 2024 Building Code Compendium, Division A, Part 1, Article 1.3.3.5 Designated Structures](https://www.ontario.ca/document/2024-building-code-compendium/part-1-compliance)
- [Ontario e-Laws: Building Code Act, 1992 (section 1 (1) definition of building; section 8 (1) permits), current to November 26, 2026](https://www.ontario.ca/laws/statute/92b23)
- [City of Barrie: Retaining Walls, Building Services Information Sheet (September 2024)](https://www.barrie.ca/media/12009)
- [Allan Block: How to Install a Retaining Wall, Basic Installation (manufacturer's residential installation guide)](https://allanblock.com/installation/residential-installation/basic-installation)
- [Allan Block: Reinforced Retaining Wall Construction (manufacturer's guide)](https://allanblock.com/installation/commercial-installation/reinforced-wall-construction)
- [Ontario Dig Authority (formerly Ontario One Call): Public Utility Locates for homeowners](https://ontariodigauthority.ca/homeowners/)

## Related

- [Retaining Walls](https://ernest.shaneheyworth.com/services/retaining-walls)
- [Hardscaping](https://ernest.shaneheyworth.com/services/hardscaping)
- [What Is Hardscaping? Materials, Choices and Ontario Winters](https://ernest.shaneheyworth.com/guides/what-is-hardscaping)
- [Interlock Patios and Driveways](https://ernest.shaneheyworth.com/services/interlock-patios)
