A site retaining wall is a line and a callout on the plans. Behind that line is a calculation: an earth pressure, a set of stability checks that all have to pass at once, a footing that has to fit inside a property line, reinforcement sized to the wall type, and a write-up a plan checker can read once and approve. None of it is exotic. All of it has to be right.
The time goes to the loop. You pick a section, the wall slides, so you widen the footing, and now it won't fit inside the lot, so you change the footing type and rerun everything. Do that for a few heights and a few wall types and an afternoon is gone before the package has a page in it.
At Calichi, the structural design of site walls used to go out to a subconsultant. I built an agent to do it in-house. Here's what the work involves, what the agent does, how it's checked, and what stays with the engineer of record.
What a site retaining wall design actually involves
Start with whether it's a structural problem at all. California's 2025 building code (the CBC, based on the 2024 IBC, in effect since January 1, 2026) exempts a retaining wall from a permit only if it's not over 4 feet high, measured from the bottom of the footing to the top of the wall, and only if it isn't supporting a surcharge or impounding certain liquids (CBC section 105.2). Measured from the bottom of the footing, a wall that retains three feet can already be at the line, and a short wall beside a driveway isn't exempt because it carries a surcharge. Your building department's adopted text governs.
Then the soil, the one input that can sink the design. The best source is the geotechnical report: friction angle, bearing, sliding and lateral pressure values, often a seismic recommendation. Without a report, Table 1806.2 gives presumptive values in five material classes, from crystalline bedrock at 12,000 psf of vertical foundation pressure down to clay, silt and sandy silt at 1,500 psf. Those values are caps unless data are submitted and approved, and mud, organic silt and organic clays, peat and undocumented fill get none without supporting data (CBC section 1806.2). It's a fallback, not a substitute for a boring at your wall. I made the same point about septic fields in the sanitary sewer piece: the soil gets a veto.
Then the loads and the checks. A retaining wall is free to rotate at the top, so the code lets you design it for active pressure, and lateral pressure from fixed or moving surcharge loads gets added on top (CBC section 1610.1). The wall has to resist overturning, sliding, excessive foundation pressure and water uplift (section 1807.2.1), with a minimum safety factor of 1.5 for sliding and overturning, dropping to 1.1 where earthquake loads are included, investigated with one or more variable loads set to zero (section 1807.2.3). That last phrase is where the judgment lives: a vehicle surcharge is a variable load, and the question is what you let it do for you.
Then the geometry. The footing has to stay on your side of the line. A wall at the line with the retained soil on your side gets a heel-only footing, because a toe would land on the neighbor's land. A wall on your side with the retained soil on the neighbor's side gets a toe-only footing, because a heel would.
Then the wall type, which decides what you design to. Cast-in-place cantilever walls are reinforced concrete under ACI 318-19. Concrete masonry walls are reinforced, fully grouted masonry under TMS 402-22. Segmental block walls are gravity or geogrid-reinforced systems designed to the Concrete Masonry & Hardscapes Association (CMHA) segmental retaining wall manual, with units that comply with ASTM C1372 (section 1807.2.4). Gabion walls are stacked wire baskets filled with rock. Water is the fourth item in that 1807.2.1 list, so every type needs a drainage detail.
What it used to take us
The structural design for a site wall went to a subconsultant. That took the production off our engineers' desks and put a subconsultant's fee and schedule on a calculation that, below six feet, repeats from wall to wall.
I haven't measured this one to the hour, so I won't put a number on it. Reading the soil and picking the footing type are judgment and take minutes. The iteration, the arithmetic, the reinforcement schedule and the write-up are production. The honest way to find your firm's number is to measure it on your real walls, which is what the Discovery is for.
How the agent does it now
The engineer briefs the agent the way they'd brief a junior: project and address, civil plans or wall heights, wall types if there's a preference, property line offsets, and the geotechnical report if one exists. From there:
- It reads the wall callouts off the plans (top-of-wall and bottom-of-wall elevations give the height) and sends the engineer a table to confirm before designing anything.
- It resolves the state from the address, looks up the code edition the jurisdiction has adopted, and reads the agency's own published design criteria. If it can't get a document, the delivery note says so. If the adopted edition is one the agent isn't fully built for, it warns the engineer instead of quietly approximating.
- It takes soil from the geotechnical report first. With no report, it looks up the mapped soil unit in USDA's Web Soil Survey and matches it to a Table 1806.2 class. With no address, it uses the most conservative class in the table. Every parameter is cited to its source.
- It asks the surcharge question in plain words: is any wall within 5 feet of pavement that vehicles drive or park on? If yes, it applies 240 psf, the weight of two feet of soil at 120 pcf. If some walls are yes and some no, it designs both versions.
- It sources seismic from the geotechnical report's own recommendation first, then mapped values and site class from the report, then USGS ASCE 7-22 values for the address. California, Oregon, Washington, Nevada, Hawaii and Alaska get the seismic case by default. If it's required and can't be sourced, the agent stops and asks instead of inventing a coefficient.
- It designs geometry first. For each wall type, height and footing in scope, it computes earth pressure (Rankine for static, Mononobe-Okabe for seismic unless the geotechnical engineer gave a number), runs sliding, overturning, bearing and the resultant's location, and resizes the footing until everything passes. Only then does it size the reinforcement. It holds overturning above the code floor: 2.0 static and 1.5 with earthquake loads, against 1.5 and 1.1. Sliding sits at the code's 1.5 and 1.1.
- It keeps the footing inside the lot. If the footprint doesn't fit, it changes the footing configuration, then the depth, then the wall type, and if nothing fits it tells the engineer what would. A wall over six feet, or one no section can satisfy, is declined and referred, not forced.
- It builds the package in the firm's template: the calc report, a live-formula workbook, drafter's notes for each wall type, height and footing, a formal agency-submittal version with a certification and stamp block for the engineer, and a delivery note listing assumptions. A separate QC agent checks it before a person sees it.
Surcharge is where a wall quietly changes. A vehicle's push on the wall counts in every check, but its weight over the heel never helps resist sliding or overturning, because the vehicle might not be there. That's a more conservative reading of the code's variable-loads-set-to-zero instruction, and soil over the toe gets the same treatment, since someone will dig it up for a utility. On one real submittal, the plan checker asked us to consider all surcharge loading, which the geotechnical report had excluded from its pressures. The re-run widened the footing, and the seismic sliding check landed right at its minimum and needed a key.
The QC gate
I wrote a whole piece on why the independent check exists, so here's what it does on walls. A separate recomputation takes the same inputs and reruns sliding, overturning, bearing pressure and eccentricity from first principles, in its own math rather than the agent's. If the two don't reconcile, nothing ships. A review panel then reads the package from different seats, including a structural engineer and a plan checker, and returns a confidence score. Below the bar, the run stops and nothing is declared done. A last gate checks the template, the workbook's live formulas, placeholders, and that package numbers match the workbook. The agency version won't build if a design fails a check.
The first real project we validated on is the best argument for it. The recompute caught the agent using a generic passive-pressure coefficient where the geotechnical report gave its own recommended passive pressure. Without the framework, a package reporting a seismic sliding factor of 1.10 would have shipped when the real number was 1.05, under the code's 1.1 for earthquake loads. The panel's plan-checker seat then flagged thin documentation on the seismic coefficient and some code citations. The calculation error was fixed before any engineer saw a draft, and the concerns the panel left open are written into the internal version of the package for the engineer to check.
What stays human
The engineer of record, and the stamp. The agent doesn't stamp, and the agency version carries a certification and stamp block waiting for the engineer. Specifically, these stay with the engineer:
- Wall heights and property line offsets. The agent doesn't measure the distance from a wall face to the line, so the engineer confirms it.
- The soil basis. The agent cites the geotechnical report and uses its numbers. With no report, whether a presumptive value is acceptable or the wall needs a boring first is the engineer's call.
- Drainage. The details show the subdrain, drainage gravel, filter fabric and weep holes. Sizing, slope and outfall belong to the civil drainage design.
- Everything the agent won't touch: walls over six feet, mechanically stabilized earth (MSE), soldier pile, soil nail, tieback and sheet pile systems, and global slope stability, which goes to the geotechnical engineer first when the natural slope is steeper than 3:1.
- The plan set. The details are drafting instructions, so the engineer integrates them and decides things like whether a guard is needed at the top of the wall (CBC section 1807.2.5 sets the conditions).
- The judgment, the review of whatever the panel left open, and the stamp.
The agent produces the engineering. The engineer owns it. That division is the whole design, and it's why this supplements your engineers instead of taking their place.
Where it applies
Site walls show up on most land development: residential infill, hillside lots, commercial and institutional sites, screen and sound walls, and walls beside roads and driveways. They tend to turn up on the same graded sites where a SWPPP is due, so the two make a natural pair of first workflows.
What this means for your firm
If your site walls go to a structural subconsultant today, find out how many are under six feet, because that's the line the agent works to. It's a scope line I drew, not a code threshold, and the physics shows why taller walls are a different problem. Take the code's active pressure for clean gravel or sand backfill, 30 psf per foot of depth (CBC Table 1610.1). Pressure that grows with depth means thrust grows with the square of height and overturning moment with the cube. With level backfill and no surcharge, a 3 foot wall carries 135 pounds per foot of thrust and a 6 foot wall 540, four times as much. The overturning moment about the base goes from 135 to 1,080 foot-pounds per foot, eight times as much. Past six feet the wall goes to a structural engineer, and the agent says so.
I'm not going to tell you what it'll save your firm. That depends on your walls, your templates and how your engineers work today, and the honest way to find it is to measure it on your real projects.
That's what the first two gates of how I deploy are for: an AI Readiness Audit to find where the highest-value automation sits, then a Strategic AI Discovery that puts my engineers and yours on your actual workflows and produces the hours-saved picture by workflow. Every gate is a stop or go. If you'd rather see a finished package on one of your own walls first, retaining wall design is also available as a standalone deliverable on the pricing page.
If your engineers spend afternoons iterating footings, the first step is the AI Readiness Audit.