# How Close Can You Build to a Retaining Wall?

> How close can you build to a retaining wall? It depends on the load, the wall and the soil. See the rules of thumb, code setbacks and when an engineer decides.

URL: https://ridgelineoutdoorliving.com/blog/how-close-can-you-build-to-a-retaining-wall/
Last-Modified: 2026-10-14

Guide

# How Close Can You Build to a Retaining Wall?

How close can you build to a retaining wall? It depends on the load, the wall and the soil. See the rules of thumb, code setbacks and when an engineer decides.

7 min read Published October 14, 2026

![How close can you build to a retaining wall beside a house on a hillside with integrated deck and retaining structure](/images/features/composite-deck-wrapping-a-hillside-home-with-integ.webp)

There is no single minimum distance. How close you can build to a retaining wall depends on what you are building, which side of the wall it sits on, the wall’s height and type, the soil, and your local rules. A fence post, a patio, a swimming pool, a second retaining wall and a house all affect a wall differently, and a load placed behind the wall does something very different from excavation in front of it. The useful answer is a set of principles and rules of thumb that tell you when a distance is safe to plan around and when an engineer has to set it.

## The Ground Around a Wall Is Part of the Structure

The reason distance matters at all is that a retaining wall does not interact only with the soil touching it. Behind the wall, engineers assume a wedge of soil, bounded by a failure plane rising back from the base of the wall, is what actually pushes on the structure. The angle of that plane depends on the soil’s internal friction, which is why you will see the zone behind a wall described through the soil’s angle of repose or as the wall’s zone of influence. Any weight placed on the ground inside that zone, whether a footing, a parked car or a stack of pavers, adds load that the wall must carry. In industry design guidance, the engineer’s design envelope extends horizontally from the toe of the wall by at least twice the wall height, and loads inside that envelope are assumed to affect the wall.

In front of the wall, the relationship is reversed. The soil at the base provides the embedment and passive resistance that keep the wall from sliding or kicking out, so excavating too close to the toe, for a patio cut, a utility trench or another footing, removes the very ground that holds the wall in place.

## How Close Can a Building Be to a Retaining Wall?

Houses and other structures with foundations get the most formal treatment, because both directions of risk apply. A building behind and above a wall surcharges it; a building below a wall depends on the ground the wall is holding.

Building codes address this through footing setback and clearance provisions rather than a wall-specific number. The International Residential Code requires buildings on or adjacent to slopes to keep prescribed clearances from ascending slopes and to set footings back from descending slope faces, with the setback measured along an imaginary 45-degree plane projected upward from the toe. Where a retaining wall sits at the toe of a slope, the code measures the slope height from the top of the wall to the top of the slope, effectively treating the wall and the ground above it as one system. The code also allows alternate setbacks where a qualified engineer investigates and demonstrates the design is sound, which is how most close-to-wall construction actually gets approved.

A common planning rule of thumb you will encounter is to keep a structure at least the height of the wall away from it. Treat that as a starting point for thinking, not a standard: the real test is whether the load falls within the wall’s zone of influence, and heavier buildings, poor soils and taller walls all widen the margin an engineer will want. Also note that a wall supporting a structure loses the usual low-wall permit exemptions in model codes, so proximity changes the paperwork as well as the physics.

## Fences, Patios, Driveways and Pools

Lighter structures follow the same logic with smaller loads. A fence on top of a retaining wall concentrates load through its posts, so well-built walls either carry independent fence footings or use sleeve systems that let the railing act separately from the wall; a fence also raises the same combined-height questions as any structure at the wall’s crest.

Patios, driveways and pools are the classic residential surcharges. A patio or driveway near the crest adds weight the wall may not have been designed for, and a swimming pool combines heavy surcharge with thousands of gallons of potential leakage into the backfill. None of these has a universal setback number. The governing question is always the same: does the load sit within the zone of influence of the wall, and if so, was the wall designed for it? When the answer to the second part is unknown, the safe assumption is no.

![Retaining wall beside a patio and landscaped slope with seat wall at the crest](/images/features/custom-belgard-paver-patio-with-stone-seat-wall-an.webp)

## How Far Apart Should Two Retaining Walls Be?

Tiered walls are the one case with a clean industry rule. The Concrete Masonry and Hardscapes Association states it directly: for two segmental walls to act independently, the horizontal distance between them should be at least twice the height of the lower wall. Place the upper wall closer than that and it surcharges the lower one, and the pair must be designed together as a single taller structure. That has two practical consequences. Closely spaced tiers need engineering rather than rules of thumb, and building departments may measure the combined height of close-spaced tiers as one wall when applying permit thresholds.

![Tiered retaining walls on a sloped property with spacing between wall tiers](/images/features/hillside-terracing-with-three-stepped-retaining-wa.webp)

## Trees and Planting Near a Wall

Vegetation interacts with a wall slowly but genuinely. Tree roots seek the loose, drained backfill behind walls, where they can press against the structure, clog drainage and shift soil as they thicken, and the grade change itself can damage a tree whose roots are cut or buried during construction. A widely used planting rule is to keep a new tree at least as far from the wall as its mature height: a tree that will reach 15 feet belongs at least 15 feet away. Shrubs and perennials are appropriate close to walls; large trees are not.

## When an Engineer Sets the Distance

Every rule above resolves to the same boundary condition: when a load falls within the wall’s zone of influence, when tiers sit closer than the two-to-one spacing, when a footing must be nearer to a slope than code clearances allow, or when soil, slope or seismic conditions complicate the site, a qualified engineer determines the actual distance. That is the norm rather than the exception on steep ground, including hillside neighborhoods in Pasadena

[/locations/pasadena/ →](/locations/pasadena/), where walls, slopes and structures routinely sit close together and site-specific design replaces rules of thumb.

Plan with the rules of thumb, build with the engineering. Distance is the cheapest load relief a retaining wall can get.

## Frequently Asked Questions

### How close can a house be built to a retaining wall?

There is no universal number. Building codes regulate structures near slopes through footing setbacks and clearances, measuring from a 45-degree plane at the toe and treating a wall at the toe of a slope as part of that slope. A common planning rule is to stay at least one wall height away, but any foundation within the wall’s zone of influence needs an engineer’s confirmation, and closer setbacks are possible only through engineered design.

### Can I build a patio or park cars above a retaining wall?

Only if the wall was designed for it. Patios, driveways, vehicles and pools are surcharge loads, and if they sit within the zone of influence behind the wall they add force the wall must resist. A wall built without allowance for those loads should not have them added later without an engineer’s review, and pools add leakage risk to the drainage system on top of their weight.

### How far apart do two retaining walls need to be?

Industry guidance sets the independence threshold at a horizontal separation of at least twice the height of the lower wall. Closer than that, the upper wall loads the lower one and the two must be engineered as a single taller structure, with the combined height potentially counting toward permit and engineering thresholds.

### How close can I plant a tree to a retaining wall?

A practical rule is to plant at least the tree’s mature height away from the wall, so a tree that will reach 15 feet is planted 15 feet or more away. Roots are drawn to the loose, moist backfill behind walls, where they can press on the structure and clog drainage. Shrubs and perennials are safe near the face; keep large trees well back.

## Sources

1.  Concrete Masonry and Hardscapes Association (CMHA) - What Height Restrictions Should I be Aware of With Segmental Retaining Wall Construction? (SRW FAQ-001)
    
    [https://www.cmha.org/resource/srw-faq-001/ →](https://www.cmha.org/resource/srw-faq-001/)
2.  National Concrete Masonry Association - Segmental Retaining Walls Best Practices Guide
    
    [https://rochestercp.com/resources/guides/ncma-best-practices.pdf →](https://rochestercp.com/resources/guides/ncma-best-practices.pdf)
3.  International Code Council - 2018 International Residential Code, Section R403.1.7, Footings on or Adjacent to Slopes
    
    [https://codes.iccsafe.org/content/IRC2018/chapter-4-foundations →](https://codes.iccsafe.org/content/IRC2018/chapter-4-foundations)
4.  Davey Tree Expert Company - Building a Retaining Wall Near Trees? Or Planting Near a Wall?
    
    [https://blog.davey.com/building-a-retaining-wall-near-trees-or-planting-near-a-wall/ →](https://blog.davey.com/building-a-retaining-wall-near-trees-or-planting-near-a-wall/)

Previous article Can a Retaining Wall Be Built on the Boundary?

[/blog/can-a-retaining-wall-be-built-on-the-boundary/ →](/blog/can-a-retaining-wall-be-built-on-the-boundary/)Next article When Is a Retaining Wall Necessary?

[/blog/when-is-a-retaining-wall-necessary/ →](/blog/when-is-a-retaining-wall-necessary/)

On this page

*   The Ground Around a Wall Is Part of the Structure
*   How Close Can a Building Be to a Retaining Wall?
*   Fences, Patios, Driveways and Pools
*   How Far Apart Should Two Retaining Walls Be?
*   Trees and Planting Near a Wall
*   When an Engineer Sets the Distance
*   Frequently Asked Questions
*   Sources

Talk to a Designer

Free on-site consultation across Greater Los Angeles. Same-week availability.

Schedule a Consultation

[/contact/ →](/contact/) (626) 469-5822

[tel:+1-626-469-5822 →](tel:+1-626-469-5822)

Talk to a Designer

Free on-site consultation across Greater Los Angeles. Same-week availability.

Schedule a Consultation

[/contact/ →](/contact/) (626) 469-5822

[tel:+1-626-469-5822 →](tel:+1-626-469-5822)

Have questions about a project of your own?

A free on-site consultation, a phased budget tier, and a master plan that fits your property and your goals.

Schedule a Consultation

[/contact/ →](/contact/) Call (626) 469-5822

[tel:+1-626-469-5822 →](tel:+1-626-469-5822)
