Everybody knows a retaining wall over four feet needs an engineer. R404.4 has a second threshold at two feet, and it catches any wall holding back more than soil. A driveway behind the wall is enough.
Retaining wall takeoff
ft
in
in
in
in
in
in
in
in
%
Block dimensions are yours, measured. The R404.4 thresholds are quoted from the 2018 Seattle Residential Code. Nothing on this page is a design, and above either threshold the code requires one.
Specification summary
Generated from on .
Reopen that address to reproduce these figures exactly.
Entered
Result
One wall, two thresholds
Worked example
Forty feet of block wall, 24 in exposed with a 6 in buried course, 18 by 8 by 12 in blocks.
The wall is 30 inches tall in total, once the buried course is counted, and the buried course counts because R404.4 measures the fill being retained rather than the part you can see.
With a lawn behind it, that wall is below both thresholds. Thirty inches is well under the 48 in unbalanced fill trigger and the 24 in trigger does not apply, because there is nothing but soil.
Put a driveway behind the same wall and it becomes an engineered wall. Identical dimensions, identical blocks. The 24 in threshold catches it, because a driveway is a lateral load in addition to soil.
The quantities do not change either way. Four courses, 27 blocks a course, 108 blocks, 114 with waste, plus a cap course. What changes is whether anyone is allowed to build it off a calculator.
And the drainage is the biggest line here. Twelve inches of stone the full height of a 40 ft wall is 3.70 cubic yards, more than twice the levelling base, plus 40 ft of pipe and somewhere for it to come out.
The block count is the easy part and every calculator gets it right. The question worth asking first is which side of R404.4 your wall is on, and the answer depends on what is behind it rather than how tall it is.
The formula
The block count is two divisions. The threshold is a pair of comparisons:
courses = ⌈(H + embed) / h⌉ engineered if (H + embed) > 48, or > 24 with any other lateral load
H + embed
the total retained height, which includes the buried course
h
the block height, measured, because manufacturers differ
48
R404.4's unbalanced fill threshold, for a wall not laterally supported at the top
24
R404.4's other threshold, which most people have never read
The buried course is in the height on purpose. R404.4 talks about the fill being retained, not the part of the wall you can see, so a wall that looks two feet tall from the garden can be two and a half feet of retained soil. On a rule with a threshold, six inches of burial decides the answer.
What this page is not
It is not a design, and above either threshold the code requires one. R404.4 asks for stability against overturning, sliding, excessive foundation pressure and water uplift, each demonstrated with a safety factor of 1.5. Four separate checks, and no calculator does any of them.
The quantities are still arithmetic and still useful. Knowing the block count, the base and the drainage volume before you talk to an engineer makes the conversation shorter and the quote more comparable. What the page will not do is imply that having the quantities is the same as having a design.
Block dimensions are yours because manufacturers differ. Segmental retaining wall units are proprietary, their setback is built into the unit geometry, and the standards that govern them are not free to read. Measure one, or read the pallet.
And soil is not on this page at all. The IRC's presumptive bearing values cover what a footing sits on, not what a retaining wall holds back, and the pressure a soil exerts sideways is a different property from the pressure it will carry downwards. A clay that carries a house happily can push a garden wall over.
Prices for masonry units and mortar
The published figures for masonry units and mortar are on the block calculator, with the byline, the publication date and the caveats that go with them. They are not repeated here, because the same table on two pages is worth less than one table you can find.
Two thresholds, and the low one is the one nobody knows
Everybody has heard that a retaining wall over four feet needs an engineer. That is half of what R404.4 says, and the other half is the half that catches people:
Retaining walls that are not laterally supported at the top and that retain in excess of 48 inches (1219 mm) of unbalanced fill, or retaining walls exceeding 24 inches (610 mm) in height that resist lateral loads in addition to soil, shall be designed in accordance with accepted engineering practice to ensure stability against overturning, sliding, excessive foundation pressure and water uplift. Retaining walls shall be designed for a safety factor of 1.5 against lateral sliding and overturning. This section shall not apply to foundation walls supporting buildings.
Read it as two separate triggers. The first is 48 inches of unbalanced fill on a wall not laterally supported at the top, which is the one everybody quotes. The second is 24 inches, and it applies to any wall that resists lateral loads in addition to soil.
In addition to soil covers most of what people put behind a retaining wall. A driveway or a parking area. A slope that keeps rising behind the wall rather than levelling off. A fence on top catching wind. A building footing anywhere near the wedge of soil the wall is holding. Any of those is a lateral load the wall is resisting on top of the earth itself, and the threshold drops by half.
So a 30 inch wall holding back a driveway is an engineered wall, and a 48 inch wall holding back a lawn that levels off behind it is not. Height alone does not tell you which side of the line you are on.
And the safety factor is stated, which is unusual. 1.5 against sliding and overturning, both. That is the code telling you what the design has to demonstrate, not a recommendation, and it is why an engineered retaining wall costs what it does: two separate stability checks with a margin on each.
The last sentence matters too. This section does not apply to foundation walls supporting buildings, which are covered by the R404.1 tables instead. A basement wall and a garden wall holding the same four feet of soil are governed by different rules.
Drainage is the failure mode, and it is most of the excavation
Retaining walls do not usually fail because the blocks were wrong. They fail wet.
Saturated soil is a different material from the soil the wall was sized for. It weighs more, and more importantly it pushes harder, because water in the soil adds its own pressure on top of the earth pressure. A wall holding back drained soil and the same wall holding back the same soil after a week of rain are carrying different loads.
Which is why the drainage stone is the biggest single quantity on this page. Twelve inches of stone behind a 40 ft wall 30 in tall is 3.70 cubic yards, against 1.48 for the levelling base. It is not a detail, it is a third of the material.
And it has to go somewhere. A drainage layer with no outlet is a reservoir. The pipe at the bottom needs a fall and an exit to daylight, and the exit is the part that gets left off drawings and forgotten on site.
R404.4 lists water uplift as one of the four things an engineered wall has to demonstrate stability against. That is the code naming the same problem.
The setback is measured from the wrong end
Segmental blocks lean back into the slope, a fixed amount per course, built into the shape of the unit. That lean is what makes the wall stable without mortar, and it is also what makes walls not fit.
An inch a course over four courses is four inches at the top. Which sounds trivial until the wall is eight courses, where it is eight inches, or twelve, where the top of the wall is a foot behind where the bottom started.
The problem is which end you measured from. If the line you pegged out is where you want the top of the wall, the base course goes in front of it by the full setback, and the excavation moves with it. If it is where you want the base, the finished wall retreats from your line as it rises and the bed above gets larger than planned.
On a tight site this is the dimension that stops the job. A wall running alongside a path or a boundary has to fit the setback in somewhere, and the somewhere is decided before the first course goes down.
The calculator prints the total setback for exactly this reason. It is arithmetic on the number your block manufacturer publishes, and it is worth having on the drawing rather than discovering at course six.
Where R404.4 came from, and what it does not cover
Read 2026-09-09. 2018 Seattle Residential Code, Chapter 4 Foundations, Seattle Department of Construction and Inspections, which prints IRC Chapter 4 in full because codes.iccsafe.org returns HTTP 403 to any automated request.
R404.4 explicitly excludes foundation walls supporting buildings. Those are governed by the R404.1 tables instead, which the foundation calculator reads, along with the presumptive soil bearing values in Table R401.4.1. So a basement wall and a garden wall holding back the same four feet of earth are two different problems with two different rules.
Lateral soil pressure is not in the IRC at all for this purpose. Table R401.4.1 gives what a soil will carry downwards, which is a different property from what it pushes sideways, and R404.4 does not tabulate the second one. That is part of why it hands the job to an engineer rather than to a table: there is no table.
Your jurisdiction may set a lower threshold than either of R404.4's, and many do, because retaining walls fail in ways that reach the neighbours. Ask before you dig.
Frequently asked questions
When does a retaining wall need an engineer?
Two triggers, and most people know only one. IRC R404.4 requires engineered design for a wall not laterally supported at the top retaining more than 48 inches of unbalanced fill, and separately for any wall over 24 inches that resists lateral loads in addition to soil. A driveway, a slope that keeps rising, a fence on top or a nearby footing all count as that second thing.
Does the buried course count towards the height?
Yes. R404.4 talks about the fill being retained, not the visible part of the wall, so a wall showing 24 inches with a 6 inch buried course is retaining 30. On a rule with a threshold that is the difference between two answers.
What safety factor does the code require for a retaining wall?
1.5, against lateral sliding and against overturning, both stated explicitly in R404.4. The same section also requires stability against excessive foundation pressure and water uplift. Four checks in total, which is why an engineered retaining wall is a real piece of design work rather than a form.
How many blocks for a retaining wall?
Courses are the total retained height divided by the block height, rounded up, and blocks per course are the length divided by the block length. A 40 ft wall 30 in tall in 18 by 8 in blocks is 4 courses of 27, so 108 blocks plus a cap course. Measure your own block: segmental units are proprietary and sizes vary.
How much drainage stone does a retaining wall need?
More than most people budget. Twelve inches of stone the full height behind a 40 ft, 30 in wall is 3.70 cubic yards, which is more than twice the levelling base under it. It also needs a pipe at the bottom with a fall and an outlet to daylight, and the outlet is the part most often missing.
What is block setback and why does it matter?
The amount each course leans back into the slope, built into the block's shape. An inch per course over four courses is four inches at the top. It matters because it decides where the base course goes relative to the line you pegged out, and on a tight site it is the dimension that stops the wall fitting.
Does this calculator design the wall?
No, and above either R404.4 threshold nothing can. It gives you the quantities, which are useful to have before you talk to an engineer, and it tells you which side of the code's two thresholds your wall falls on. The design itself is four stability checks with a safety factor on each.
Check these numbers yourself
2018 Seattle Residential Code, Chapter 4 FoundationsSeattle Department of Construction and Inspections. Read 2026-09-09. Source of Section R404.4, both thresholds, the 1.5 safety factor and the four stability checks, and of Table R401.4.1.
How every figure here is verified: Sources & Method. Who builds this: About. Found something wrong? Tell us and it gets fixed or removed.
Figures on this page last checked against the source documents on 2026-09-09. Codes are amended locally; confirm against the edition your jurisdiction enforces.
This is a takeoff, not a design. Above either R404.4 threshold the code requires engineered design demonstrating stability against overturning, sliding, excessive foundation pressure and water uplift, each with a safety factor of 1.5, and no calculator does any of those. Block dimensions are yours because segmental units are proprietary. Lateral soil pressure is a different property from bearing capacity and is not on this page.