Slopeify
Built on real engineering, not guesswork

Design a retaining wall that actually stands up.

Enter your wall and get the earth pressure, the minimum base width, the overturning, sliding and bearing factors of safety, a geogrid check, a full materials takeoff with cost, and a permit verdict. Every number traces back to a published code table.

IBC Table 1610.1 soil loadsIBC Table 1806.2 bearingRankine earth pressureNo sign-up
Get the Pro design report for this wall ($29)
This gravity wall works

A 2-ft base passes all three stability checks.

Minimum base width
2 ft
Bury base below grade (frost line)
18 in
Lateral earth pressure (EFP)
30 pcf
Total horizontal push
240 lb/ft
Overturning FS (min 2)
3.00
Sliding FS (min 1.5)
2.20
Bearing: max vs allowable
960 / 2000 psf
Resultant in middle third
Yes, no heel uplift
4′ H2′ base
A permit is likely, check locally
  • At 4 ft with no surcharge, many jurisdictions exempt the wall from a permit, but always confirm with your local building department, as some require one for any retaining wall.

Cost and materials

120 sq ft of face
Estimated installed cost
$4,608 to $9,216
MaterialQtyCostBuy
Retaining wall blocks126 blocks$1,048Home DepotAmazon
Cap blocks32 caps$328Home DepotAmazon
Construction adhesive5 tubes$58Home DepotAmazon
Crushed-stone leveling pad2 cu yd$128Home DepotAmazon
Drainage stone (¾" clean)5 cu yd$352Home DepotAmazon
Perforated drain pipe (4")33 ft$74Home DepotAmazon
Filter fabric180 sq ft$92Home DepotAmazon
DIY materials total$2,080

Estimates only. Installed cost is face area times a typical dollar-per-square-foot range for the chosen material, times a regional cost index. Get exact pricing from a local contractor.

Some product links are affiliate links. If you buy through them we may earn a small commission, at no extra cost to you. It never changes the quantities or prices we calculate.

Next step

Get it priced by local pros

You have the design and a budget range. The next step is a real quote. Compare vetted retaining wall contractors in California against the numbers above, so you know a fair price before anyone starts digging. It is free and there is no obligation.

We may be paid a referral fee by a matched pro. It never affects your price or our estimate.

Recommended next steps

  1. Excavate and compact a 6-inch crushed-stone leveling pad, then bury the base at least 18 in below grade, below the frost line for your state.
  2. Build to a 2-ft base width and batter the wall back into the slope.
  3. Install the drainage system: clean drain rock behind the wall, a perforated pipe at the base daylighted to a low point, and filter fabric.
  4. Backfill and compact in 6 to 8 inch lifts, and finish the grade so surface water runs away from the wall.
  5. Check with your local building department; a permit is likely for a wall this size.

More retaining wall calculators

How Slopeify designs your wall

01
Earth pressure

The soil load comes from IBC Table 1610.1 as an equivalent-fluid pressure, then increased for slope and surcharge with Rankine theory.

02
Stability

We solve for the minimum base width that passes overturning (FS 2.0), sliding (FS 1.5) and bearing against IBC Table 1806.2.

03
Materials and permit

A full takeoff with cost, geogrid when the checks fail, and a permit verdict from the 4-ft code rule.

Read the full methodology and code references

Retaining wall guides

See every guide or browse all calculators.

How Much Does a Retaining Wall Cost in 2026?
Retaining wall costs by material, height, and region, real project example, and how to get your exact price with our free calculator.
Do I Need a Permit for a Retaining Wall?
The 4-ft rule, the surcharge exception, and how height is really measured — check your wall's permit status free with Slopeify.
Retaining Wall Drainage: Why Walls Fail and How to Fix It
Water wrecks most retaining walls. See the drain rock, pipe and fabric system that stops it, plus common mistakes to avoid.
Block vs Concrete vs Timber Retaining Walls: How to Choose
Segmental block, poured concrete, timber and boulder walls compared on cost, lifespan and DIY difficulty — find your best fit.
How to Build a Retaining Wall (Block), Step by Step
Build a segmental block retaining wall that lasts decades: step-by-step instructions, quantities and drainage tips from our free calculator.
When Does a Retaining Wall Need Geogrid Reinforcement?
Find out exactly when your retaining wall needs geogrid reinforcement, how it's sized, and what it costs — check your wall for free.
Retaining Wall Soil and Backfill: What Actually Matters
Backfill pushes, foundation soil holds. See IBC pressure and bearing numbers by soil type, then check your wall free with Slopeify.
How Many Retaining Wall Blocks Do I Need?
Work out your exact block, cap, and base stone quantities with a simple length x height formula and a full worked example.
Gravity vs Cantilever Retaining Walls
Gravity or cantilever retaining wall? Compare cost, height limits, and base width, then size yours with Slopeify's free calculator.
Why Retaining Walls Fail (and How to Avoid It)
The four real reasons retaining walls fail, the warning signs to watch for, and what repairs cost. Check your wall's numbers free.
Terraced Retaining Walls: Two Short Walls vs. One Tall Wall
Learn when terracing beats one tall wall, the spacing rule, drainage, and planting tips. Try Slopeify's free calculator.
Retaining Wall Engineering Basics: The Three Checks
How retaining walls resist tipping, sliding and sinking, with the maths, a worked example and the code checks behind each.
Retaining Wall Cost Per Linear Foot (2026 Guide)
See real cost-per-linear-foot ranges by material and height, why height changes everything, and how to compare quotes fairly.
Retaining Wall Surcharge Explained
Driveways, sheds and parked cars all add surcharge load to a retaining wall. See how it's calculated and when it forces an engineered design.
Retaining Wall Footing Depth: The Right Number
Frost depth or bearing soil, whichever is deeper. See real depth-by-state numbers and check your wall free with our calculator.
Tiered Retaining Wall Spacing: Getting It Right
The 2x-height spacing rule for tiered retaining walls, worked examples by wall height, and surcharge maths. Check your layout free.
Gravity Retaining Wall Sizing Explained
How to size a gravity retaining wall's base width by height, soil type and material density, with worked examples and a free calculator.
Segmental Retaining Wall Blocks: Design Guide
How segmental retaining wall blocks, batter and MSE reinforcement actually work — plus a free calculator to size your wall correctly.
Retaining Wall Permits: A State-by-State Guide
Confused about retaining wall permit rules? See the height thresholds, real costs and state quirks, then check your wall with our free calculator.
CMU Retaining Wall Design: When Blocks Beat SRW
CMU retaining wall design explained: rebar spacing, footing depth, cost per sq ft, and when SRW beats grouted block. Get the numbers right first.
Retaining Wall on a Slope: Key Design Rules
Sloped backfill adds real pressure to a retaining wall. See how much, what it changes, and how to design it right with our free calculator.
Retaining Wall Near a House Foundation: Safe Setbacks
How close can a retaining wall sit to your foundation? The 45-degree rule, lateral load risks, and when you need an engineer.
Railroad Tie Retaining Wall: Pros, Cons & Cost
Railroad tie retaining walls cost $20-40/sq ft but last only 15-25 years. See when timber works, when it doesn't, and how to compare it.
Retaining Wall Maintenance: Annual Inspection Checklist
Free annual retaining wall maintenance checklist: drainage, cracks, warning signs, and when to call an engineer. Check yours today.
Types of Retaining Walls: Five Options Compared
The main types of retaining wall, how each one holds back soil, and the base widths Slopeify's engine gives for block, concrete, boulder and timber at 4 ft and 6 ft.

Frequently asked questions

How tall can a retaining wall be without a permit or engineer?

The common code line is 4 feet. IRC R404.1 and IBC §1807.2 call for an engineered design once a wall retains more than 4 ft of earth, and at ANY height if there is a surcharge (a driveway, slope, or structure pressing on the backfill). Most building departments require a permit at the same 4-ft point, though some require one for any retaining wall. Always confirm with your local building department.

What is the minimum base width for a retaining wall?

For a gravity wall (segmental block, stacked stone, concrete mass) a useful rule of thumb is a base depth of about 0.5-0.7 times the wall height. Our calculator solves for the exact minimum width that gives a factor of safety of at least 2.0 against overturning, 1.5 against sliding, and keeps the bearing pressure under the allowable soil value, so you get a number, not a guess.

When does a retaining wall need geogrid?

When a gravity wall can't pass the stability checks, usually above about 4 ft, on weak or clay soils, or with a surcharge, you reinforce it with geogrid, turning the soil itself into a stable mass (a reinforced SRW). As a rule the geogrid layers extend back into the slope at least 0.6 times the wall height. Our tool flags when reinforcement is needed and estimates the layers and length.

What soil pressure does a retaining wall have to resist?

Soil behaves like a heavy fluid pushing on the wall. IBC Table 1610.1 gives the design lateral load as an equivalent fluid pressure, 30 pcf for clean sand or gravel, up to 60 pcf for clayey soils. The total push is ½ × (that pressure) × height², acting one-third of the way up. Poor drainage adds water pressure on top and can double the load.

Why is drainage the most important part of a retaining wall?

Walls fail far more often from water than from soil. Trapped water adds hydrostatic pressure (62.4 pcf, heavier than most soils) and saturates the backfill so it pushes harder. A drainage system (clean drain rock behind the wall, a perforated pipe at the base daylighted to the surface, and filter fabric) keeps the design loads valid. Every estimate here includes it.

How much does a retaining wall cost?

Installed, most walls run about $30-$60 per square foot of wall face for segmental block, $40-$75 for poured concrete, $20-$40 for timber, and $25-$55 for boulders. Reinforced and engineered walls cost more. Our calculator multiplies the face area by these ranges and a regional cost index, and also lists a DIY materials takeoff.

Is this calculator a substitute for an engineer?

No. It uses real, code-based methods (IBC Tables 1610.1 and 1806.2, Rankine earth pressure, classical stability) to give you a defensible planning estimate and a materials list. Walls over 4 ft, walls with a surcharge, and any wall you're unsure about must be designed and stamped by a licensed engineer and permitted locally.