On a flat lot, a retaining wall and a house can ignore each other. On a sloped or terraced lot they may not be able to. The house may sit just above the wall, so its footings push on the soil the wall is holding back. The house may sit below a walled slope, so the wall is part of what keeps soil and water off the back of the building. Or the house’s own foundation wall may be holding back soil, which makes it a retaining structure in practice even though the code treats it differently.
This post is about that interface: how a wall and a foundation load each other, how they share water, and why a problem in one is often worth checking in the other. It doesn’t repeat why walls lean (our post on leaning retaining wall causes covers that) or how drainage behind a wall works (drainage behind retaining walls). For repair options and City permits, see our retaining wall repair page.
The short version: if a house footing, driveway, or fence sits close to the top of a wall, the wall is carrying more than soil. If a wall sits at the toe of a slope behind a house, it changes how the code measures that slope. And if water from one ends up behind or under the other, the two problems are linked.
Three ways a house and a wall end up sharing the job
It helps to figure out which of these you have before reading anything else into a crack or a lean.
- The house is above the wall. The wall holds up the yard or pad the house sits on, and some of the house’s weight reaches the wall through the soil.
- The house is below the wall. The wall sits at the base of a slope that rises behind or beside the house.
- The house’s own foundation holds back soil. A stem wall or basement-style wall on a hillside has soil on one side and a crawl space, garage, or room on the other.
A hillside lot can have more than one of these at once. Walk the property and sketch it: where the house is, where each wall is, which way the ground slopes, and what sits on top of each wall.
When the house is above the wall: footings as surcharge
Engineers use the word surcharge for any load on the retained side of a wall beyond the soil itself. The City of San Diego’s Information Bulletin 220, which covers retaining wall permits, spells out what counts: “Surcharge loads include driveways, walkways, structure footings, fences, etc.” A house footing near the top of a wall is on that list by name.
Two other City and code documents show why that matters.
The City’s standard walls aren’t built for it. Information Bulletin 221 provides the City’s prescriptive designs for masonry cantilevered retaining walls up to 6 feet tall. Its limits section says those designs “may not be used to retain expansive soils, surcharge loads, or to impound flammable liquids.” Its specifications go further and keep loads back from the wall: “Surcharge loads imposed by building foundations, driveways, parking areas, fences, etc., shall not be allowed on the wall’s upper level within a distance equal to the overall difference in finished grade heights.” In plain terms, under the standard design, a house foundation shouldn’t sit closer to the top of the wall than the height difference the wall creates. When it does, the standard design no longer fits.
The residential code asks for engineering at a lower height. The California Residential Code, as adopted in San Diego, requires an engineered design for retaining walls not supported at the top that retain more than 48 inches of unbalanced fill. It also requires one for “retaining walls exceeding 24 inches (610 mm) in height that resist lateral loads in addition to soil.” That design has to show the wall is stable “against overturning, sliding, excessive foundation pressure and water uplift” (Section R404.4).
So a wall that would be ordinary on its own can become an engineered structure because of what’s on top of it. That applies to things added later, too. Putting in a parking pad, a spa, a heavy planter, or a fence line near the top of an existing wall changes what the wall is being asked to do. The New York City Department of Buildings’ training deck on old retaining walls lists loading a slope at its crest among the human causes of slope failure. Ask before you add weight.
What it looks like when the wall gives a little
When a wall below a house tips outward, the ground at the top moves with it, and that’s where the house footings are. The NYC deck describes outward rotation as coming with sinkholes and tension cracks at the top of the wall, and swelling of the soil at the bottom. It notes that bearing failure of the soil under the wall “usually precedes it.” HUD’s Residential Rehabilitation Inspection Guide adds that walls also fail by settling, which can happen “when wet earth caused by poor drainage dries out and soil consolidates at any time in a wall’s service life.”
None of that means a house above a leaning wall is in trouble. It means the area between the wall and the house deserves a close look: cracks in the yard or patio running parallel to the wall, a gap opening between the patio and the house, or new cracks on the side of the house nearest the wall.
When the house is below the wall: slope clearance
The second geometry is a house at the bottom, with a wall holding back a slope behind it.
The residential code has a section for buildings on or near slopes steeper than 1 vertical in 3 horizontal (Section R403.1.7). For buildings below a slope, it says they “shall be set a sufficient distance from the slope to provide protection from slope drainage, erosion and shallow failures.” Then comes a sentence that matters for walled lots: “Where a retaining wall is constructed at the toe of the slope, the height of the slope shall be measured from the top of the wall to the top of the slope.”
In other words, the wall doesn’t make the slope disappear for code purposes. The slope above the wall still counts. The same section covers footings near the top of a descending slope: they must be founded “with an embedment and setback from the slope surface sufficient to provide vertical and lateral support for the footing without detrimental settlement.” When a site can’t meet the standard clearances, the code allows alternatives with the building official’s approval. The official can require “an investigation and recommendation of a qualified engineer” that considers “material, height of slope, slope gradient, load intensity and erosion characteristics of slope material.”
We won’t put numbers on those clearances here. They depend on the slope height and the figure in the code, and where a geotechnical report exists, its recommendations matter more than any rule of thumb. The City’s Guidelines for Geotechnical Reports expect recommendations for shallow foundations to address, among other things, “minimum footing embedment, estimated total and differential settlement, and minimum slope setback.”
For the slope side of hillside lots, including the City’s geologic hazard maps, see our post on Mount Soledad hillside foundation considerations and our hillside foundation repair page.
When the foundation itself holds back soil
On a hillside, the uphill side of a house may have a foundation wall with soil against it. It retains soil, but the code doesn’t treat it as a retaining wall. Section R404.4, the retaining wall section, ends with: “This section shall not apply to foundation walls supporting buildings.” The NYC deck reflects the same split in New York’s code definition: basement and vault walls that are part of buildings “are not considered retaining walls.”
Foundation walls have their own rules. Under Section R404.1.1, concrete or masonry foundation walls need an engineered design when they are “subject to hydrostatic pressure from ground water” or support more than 48 inches of unbalanced backfill without permanent lateral support at the top or bottom. For stem walls under wood-framed houses, Section R404.1.3.2.2 says a stem wall that isn’t braced at the top and retains more than 48 inches of fill “shall be designed in accordance with Sections R404.1.1 and R404.4.” Where a slab braces the top, the connection between the stem wall and slab has to be designed too.
The practical point: a stem wall holding back a lot of soil is doing two jobs, carrying the house and resisting the hill. A crack in it isn’t the same as a crack in a garden wall. Our post on foundation crack direction explains why horizontal cracks in walls with soil against them get attention.
Shared water: the link people miss
Water is the other link. A wall’s drainage and a house’s drainage can be a few feet apart, and they can work against each other.
HUD’s guide says retaining walls more than two feet tall “should be backed with drainage material, such as gravel,” with drains that “discharge water either at the end of the wall or through pipes set in the wall itself.” Where that water goes next is the interface question. The City’s geotechnical guidelines say “Retaining wall discharge points must be protected and clearly shown on grading plans and/or retaining wall plans,” that “Surface drainage systems must not connect to a subdrain,” and that subdrains “must not outlet onto a sidewalk or other area where seepage may cause a nuisance or hazard.” IB-220 asks wall plans to show “Site and wall drainage arranged to discharge to a stormwater collection system and/or a means to prevent stormwater from flowing onto adjoining properties.”
Here’s how the two systems can trip each other up on a real lot:
- Roof water into wall backfill. A downspout that empties at the top of a wall sends roof runoff straight into the soil the wall holds back. The NYC inspection form has a line just for “Downspouts/adj/ Buildings.”
- Wall drainage toward the house. Weeps or a wall drain that empty onto a patio or into a planter against the house move the wall’s water to the foundation.
- Irrigation on the strip between them. A watered planter between a house and a wall wets both. The NYC deck lists irrigation and “water leakage from utilities” among the human causes of slope failure.
- Wet bearing. HUD notes that “water behind a wall can create moist bearing, especially in clay soils, and contribute to sliding.”
If you’re tempted to fix this by re-sloping the yard, check first. California’s geotechnical engineering association advises: “Don’t modify the ground level or surface drainage pattern at your property without consulting a knowledgeable construction or design professional.” For a seasonal routine to keep gutters, area drains, and weeps working, use our exterior drainage maintenance calendar. Drainage corrections themselves are on our foundation drainage page.
Reading symptoms when both are involved
When a wall and a house are close together, look at both before deciding which one has the problem. A few combinations deserve an evaluation that looks at the site and the structure together:
| What you see | Why it points to the interface |
|---|---|
| New cracks in the house on the side closest to a wall | The wall and the footing may share the same soil |
| Cracks in a patio or yard running parallel to the top of a wall | Ground at the top of the wall may be moving with it |
| A gap opening between a patio, steps, or walk and the house | Something between the house and the wall is moving |
| A wall that started leaning after a fence, spa, pad, or addition went in near the top | Added surcharge |
| Damp or muddy soil at a foundation wall downhill of a wall’s drain outlet | The wall’s water may be reaching the foundation |
| A hillside stem wall with a horizontal crack or inward bow | A foundation wall resisting soil pressure |
For a way to record changes over a season, our retaining wall monitoring checklist covers baselines, marks, and a simple log. If you’re deciding whether it’s time for an engineer, our companion post, when walls need structural evaluation, walks through the questions that decide it.
Who looks at what
These questions sit across trades. The City’s geotechnical guidelines expect a geotechnical consultant to provide retaining wall recommendations for “allowable bearing pressures, coefficient of friction against sliding, passive resistance, and lateral pressures,” and say “the lateral pressures must account for potential surcharge loads, hydrostatic pressure, expansive soil, adverse geology, slopes, etc.” Walls that don’t fit the City’s standard designs “shall be designed by a civil engineer, structural engineer, or architect licensed in the State of California” (IB-221). Our structural engineer page explains how that involvement works.
Cost factors, not prices
We don’t publish prices. What shapes the scope of an evaluation or repair where a wall and a foundation interact: wall height and type, what sits on top of the wall (house footings, a driveway, a fence), whether a geotechnical report exists or is needed, whether the house foundation also shows distress, where wall and roof water currently discharge, access for equipment on a slope, whether the wall extends toward a property line, and what permits the work needs.
Where we fit
We look at walls and foundations together on site for homeowners across La Jolla, because on a sloped lot the answer often depends on both. When a wall or a foundation needs engineered design, we coordinate with licensed engineers as needed. This post is general education, not an engineering opinion about any specific property.
Next step
If a wall near your house is moving, or the house is showing new cracks on the side facing a wall, request a Free Quote for an on-site evaluation anywhere in La Jolla, or call (650) 739-6537.
Sources (accessed October 20, 2026)
- San Diego Residential Code 2025 (California Residential Code with City of San Diego amendments), Sections R403.1.7, R404.1.1, R404.1.3.2.2, and R404.4
- City of San Diego Information Bulletin 220, retaining wall permits (October 2024)
- City of San Diego Information Bulletin 221, Standard Cantilevered Retaining Walls (December 2023)
- City of San Diego, Guidelines for Geotechnical Reports (2008), Sections 6.6.1.7, 6.6.2.1, and 6.6.2.4
- U.S. Department of Housing and Urban Development, Residential Rehabilitation Inspection Guide (2000), Section 1.2
- New York City Department of Buildings, “Inspection of Old Retaining Walls,” D. Eschenasy, P.E., Build Safe | Live Safe Conference (2014)
- California Geotechnical Engineering Association (CalGeo), Coexisting with Expansive Soil: An Informational Guide for Homeowners (2013)
