Jake Morrison, Licensed General Contractor · Last reviewed May 7, 2026

Retaining Wall Calculator

Plan the full build — blocks, caps, base aggregate, drainage stone, drain pipe, filter fabric, adhesive, geogrid, and total delivery weight. Multi-segment for L-walls and step-downs. The 4-ft engineer-required threshold is built in so you don't accidentally over-promise yourself.

Retaining wall calculator: enter wall dimensions and block profile

Wall segment 1

ft
ft

Allan Block AB Classic / Versa-Lok-style large face block. Property-line walls, taller garden walls, anything 3 ft and up.

Continuous run along the long edge of a slope. Cuts only at the corners and end pieces. Industry-standard 5% waste.

Enter wall length and height to see the full BOM — blocks, caps, base aggregate, drainage stone, pipe, fabric, adhesive, and delivery weight.

Estimates only. Walls over 4 ft typically require a stamped engineer's drawing under the IBC + most state residential codes — talk to your local building department before you order. Soils, surcharges (driveways above the wall, drainage from above), frost depth, and seismic zone all affect the engineering load. This calculator is a strong budgetary starting point for the BOM and delivery, not a permit-ready spec.

How to use this calculator

  1. Measure each wall segment. Length and height in feet. An L-shaped wall is two segments. A step-down along a slope is one segment with the average height (or two segments if the step-down is more than half the wall height). The calculator supports up to five segments and adds them up — same way the brick and fence calcs work.
  2. Pick your block profile. The five presets cover roughly 95% of the US segmental retaining wall (SRW) market — small-landscape edging, medium 12×6 stone, Allan Block Junior, Allan Block Classic / Versa-Lok-style 18×8, and Belgard Anchor Highland. The actual face dimensions are shown under each label. Match what's on your supplier's pallet.
  3. Pick the layout. Straight runs are 5% waste — that's almost all garden walls and property-line walls. Stepped (down a slope) is 8% — extra cuts at every step transition. Curved is 10% — every course needs trim cuts to maintain the radius.
  4. Watch for the engineer banner. If your wall is 4 ft or taller (or supports more than 24″ of unbalanced backfill), the calculator surfaces an orange banner: engineer-stamped drawing required under IBC R404.5. The math still runs so you have a budgetary number, but the calculator refuses to look like a green light. That's by design — too many DIYers eat code violations and wall failures because the calculator they used didn't tell them.
  5. Check the geogrid prompt. Walls 3 ft and taller in any soil that isn't compacted clay or rock need geogrid lifts (every other course, per NCMA TEK 15-8B). The calculator shows lifts and total roll feet so you can order it as part of the same delivery.
  6. Read the BOM. Eight line items: blocks, caps, base aggregate (tons of #57 or 3/4″ minus), drainage gravel (tons of 3/4″ clean), 4″ perforated drain pipe (linear feet), non-woven filter fabric (sq ft), construction adhesive (28-oz tubes), and geogrid lifts when triggered. Plus total delivery weight in pounds and tons — that's what tells you whether it's a one-trip flatbed delivery or two trips with surcharge.
  7. Print or copy the build list. The PDF is branded, dated, and includes engineer-required stamping when applicable. Hand it to your engineer, your local building department, or your hardscape supplier. The shareable link reproduces the full configuration if you want to revisit later.

Why this retaining-wall calculator is different

After running the top-10 SERP through the same project (30 ft × 3 ft Allan Block Classic wall, straight run), here's what's typical online versus what this calculator adds:

  • Most calculators stop at the block count. Lowes, Omnicalculator, Unilock, Rock Yard, vCalc, and Q&A Landscaping all give you a block count and stop. The actual order needs caps + base aggregate (tons) + drainage gravel (tons) + 4″ perforated drain pipe + filter fabric + construction adhesive + (above 3 ft) geogrid. Every online result ships 10–30% of the actual order — you'll be making a second supplier trip you didn't plan for.
  • None of them surfaces the 4-ft engineer threshold. The 2024 IBC Section R404.5 requires a stamped engineer drawing for walls supporting more than 24″ of unbalanced backfill — most jurisdictions interpret that as the 4-ft threshold. Three of the four People Also Ask questions on this SERP are about that threshold ("How deep should a 4-ft retaining wall be?"). Not a single result in the SERP top 10 enforces it in the UI. This calculator surfaces an orange banner the moment height crosses 4 ft.
  • None handles multi-segment walls. Real retaining walls have corners, returns, terraces, step-downs, and planter returns. Top 10 are all single-segment. SkyCiv and Anchor Diamond do engineering analysis but neither is a homeowner BOM tool. This calculator sums up to five segments and outputs one combined order.
  • None triggers geogrid by height. Walls 3 ft and taller in poor soil need geogrid layers (per NCMA TEK 15-8B). Anchor Diamond does the engineering math but is brand-locked. The other 9 results don't mention geogrid at all. This calculator triggers a recommendation at 3 ft and shows lift count + roll length so you can order it with the rest.
  • None returns total delivery weight. A 30-ft × 3-ft Allan Block Classic wall with caps, base aggregate, and drainage gravel is ~11 tons. That's the difference between a one-trip flatbed delivery and two trips with weight surcharge. None of the SERP top 10 surfaces this. We do, in pounds and tons, including geogrid weight when applicable.
  • Nobody offers an embed. If you write about hardscape (landscape blog, /r/landscaping mod, hardscape contractor site, segmental retaining wall supplier), the iframe at the bottom of this page lets you host the same calculator with attribution. Free.

How it works (the math behind the numbers)

The core calc has eight pieces. Each one is straightforward; the trick is knowing what numbers to plug in.

For each segment:
  segment_sqft   = length × height
  blocks_per_sqft = 144 / (block_length_in × block_height_in)
  blocks         = ceil(segment_sqft × blocks_per_sqft × (1 + waste_pct))
  caps           = ceil((length × 12) / cap_length_in × (1 + cap_waste_pct))

Base aggregate (compacted #57 or 3/4" minus):
  base_depth     = 6" if max_height ≤ 3 ft, else 8"
  base_width_in  = block_depth_in + 12   (6" forward, 6" behind block)
  base_volume    = total_length × base_width / 12 × base_depth / 12   (cu ft)
  base_tons      = base_volume × 110 lb/cu ft / 2000

Drainage gravel (3/4" clean stone, 12" zone behind wall):
  drain_volume   = total_length × 1.0 × (max_height + 0.5)   (cu ft)
  drain_tons     = drain_volume × 105 lb/cu ft / 2000

Pipe + fabric + adhesive:
  pipe_lf        = ceil(total_length × 1.10)    (10% slope to daylight)
  fabric_sqft    = ceil((2 × 1 + max_height) × total_length × 1.05)
  adhesive_tubes = ceil(total_caps / 30)        (1 tube ≈ 30 caps)

Geogrid (only when max_height ≥ 3 ft):
  geogrid_lifts  = floor(max_courses / 2)       (every other course)
  geogrid_roll   = ceil(geogrid_lifts × total_length × 1.10)

Block face dimensions and weights come from manufacturer-published spec sheets — Allan Block (Junior and Classic), Belgard (Anchor Highland), Pavestone (small landscape, medium stone). Each preset's blocks-per-sqft is calculated from the actual face area (length × height in inches), which is published on every supplier site and on every pallet sticker.

Base aggregate depth follows NCMA TEK 15-8B — 6" minimum compacted base for walls under 3 ft, 8" for 3–4 ft, and engineer-specified above 4 ft (the calculator uses 8" for the budgetary number above 4 ft but flags engineer review). The trench width = block depth + 12" matches the Allan Block install guide (6" of base aggregate forward of the block face plus 6" behind for stable bearing).

Drainage gravel volume is a 12"-wide zone behind the block face running the full wall height plus 6" below grade for the perforated drain pipe trench. The 3/4" clean stone density of 105 lb/cu ft is the loose-delivered weight from supplier spec sheets.

Geogrid trigger at 3 ft follows NCMA TEK 15-8B's recommendation for soil-reinforced segmental walls in any soil that isn't compacted clay. Lift spacing is every other course; roll length is calculated as lifts × wall length × 10% lap allowance.

Every fixture in sites/diy/src/data/tools/retaining-wall-calculator/fixtures.json runs in CI before each deploy. If the math drifts, the build fails.

Three real-world examples

Garden border — 10×1 ft, small-landscape block

A 12-inch-tall edging wall along the back of a perennial bed. 10 ft × 1 ft = 10 sq ft of face. Small-landscape block (12 × 4 × 7), straight run, 5% waste. The calculator returns: 32 blocks, 11 caps, 0.44 t base aggregate, 0.79 t drainage gravel, 11 ft of 4″ perforated drain pipe, 32 sq ft filter fabric, 1 tube of construction adhesive — total weight just under 1.7 tons. Single-trip homeowner pickup territory if you have a half-ton truck and a friend with a stronger back.

Property-line wall — 30×3 ft, Allan Block Classic

A 3-ft-tall wall along the back of a sloped property — typical "should I DIY this?" project. 30 ft × 3 ft = 90 sq ft. Allan Block Classic (18 × 8 × 12), straight run, 5% waste. The calculator returns: 95 blocks, 21 caps, 1.65 t base aggregate, 5.51 t drainage gravel, 33 ft of drain pipe, 158 sq ft filter fabric, 1 tube adhesive, 2 geogrid lifts (66 ft of 4-ft uniaxial roll) — total weight 11.1 tons. The geogrid recommendation banner kicks in at 3 ft, because anything taller than 36″ in residential soil benefits from soil reinforcement on every other course. Order as one flatbed delivery with the geogrid roll on top.

Tall property wall (engineer-required) — 40×5 ft, Allan Block Classic

A 5-ft-tall wall holding back a sloped backyard. 40 ft × 5 ft = 200 sq ft. The orange engineer-required banner fires the moment you type 5 in the height field. The math still runs: 210 blocks, 28 caps, 2.93 t base, 11.55 t drainage gravel, 44 ft pipe, 294 sq ft fabric, 1 tube adhesive, 3 geogrid lifts (132 ft roll), total weight 22.86 tons. Take the printable PDF — it stamps "ENGINEER REVIEW REQUIRED" at the top — to your local engineer for the soil-specific geogrid spec, drainage detail, and surcharge analysis. Expect $400–$1,200 for the stamp depending on geography. Talk to your local building department about whether you also need a permit (most jurisdictions: yes, above 4 ft).

What affects how much you actually need

The calculator gives you a strong starting point, but a real install has variables it can't see:

  • Soil type and bearing capacity. The calculator assumes typical residential native soil with reasonable compaction. Sand, soft clay, or saturated soil need engineer-specified base depth and geogrid spacing — the budgetary 6"–8" base will be too thin. If your soil holds water in spring, expect to over-specify.
  • Surcharges from above. A driveway, retaining wall, building, or even a parked truck above the wall is a surcharge that the calculator can't model. NCMA TEK 15-8B has surcharge multipliers but they're engineer territory. Same for sloped ground above the wall.
  • Frost line. In the northern US (Minnesota, Wisconsin, upstate NY, Maine), the base aggregate must extend below frost depth — typically 36" or more. The calculator's 6"–8" base is for a wall in a 12"–24" frost zone. Above that, your base trench gets deeper and your aggregate volume grows linearly.
  • Block breakage during cuts. Even with a wet saw and a sharp diamond blade, segmental block chips at the cut about 5–10% of the time. The 5% straight-run waste covers the cut math but is thin on breakage budget; if you're new to a wet saw, give yourself a 4–5 block practice budget before committing to your first cap.
  • Cap-to-block adhesive coverage. One 28-oz tube of Loctite PL Premium covers about 30 caps with 2 beads per cap. Cold weather installation slows the dispense rate and cuts coverage by 15–20%. If you're installing in below-50°F weather, plan an extra tube per 60 caps.
  • Drainage daylight outlet. The 4″ perforated pipe needs to slope 1% (1 ft per 100 ft) to a daylight outlet — typically a swale, drywell, or storm drain at the low end of the wall. If your topography won't give you that, you need an engineer-specified solution (sump, infiltration pit). The calculator assumes you have somewhere to send the water.

For the tools that actually do the work — the wet saw, the masonry-bit drills, the plate compactor — see Jake's writeups on cordless drills (for the masonry bits and adhesive-tube dispenser modes). Crushed stone fines and block chips wreck household vacuums, so a dedicated shop vac is non-negotiable. Working in low light or under porch overhangs? LED shop lights at wall-line height let you spot lippage before the cap goes on. Most retaining-wall jobs aren't near an outlet — a portable generator powers the wet saw and chargers. Multi-day site work needs lockable on-site storage from a tool chest. Cleaning block faces before adhesive cure: pressure washer. The full starter list lives in essential tools for new homeowners.

Frequently asked questions

How do I calculate how much retaining wall I need?

Multiply the wall length by the wall height to get face area in square feet. Divide that by the block face area in square feet (block length × height in inches, divided by 144) to get raw block count. Multiply by 1.05 for straight-run waste, 1.08 for stepped, 1.10 for curved walls. Then add caps (linear feet × 12 / cap length, plus 5% waste), base aggregate, drainage gravel, drain pipe, and filter fabric. The calculator above does all of this, plus the engineer-required threshold check and geogrid recommendation. The shortcut: just use it. Hand math fails on the BOM, not the block count.

How deep should the base be for a 4-foot retaining wall?

A 4-ft wall is at the engineer-required threshold under IBC R404.5 — the actual answer depends on your engineer's soil-specific spec, not a generic rule. As a budgetary rule, NCMA TEK 15-8B recommends 8" of compacted #57 stone or 3/4" minus extending block_depth + 12" wide (block depth plus 6" forward and 6" behind). In northern frost zones, the base trench has to extend below frost depth — typically 36" or more — even though you'll only have 8" of aggregate at the bottom. Above 4 ft, none of these are negotiable: get an engineer.

How much does a 50-foot retaining wall cost?

For a 3-ft tall, 50-ft long Allan Block Classic wall (the most common DIY size), expect roughly: blocks $700–$1,200 (158 blocks × $4.50–$7.50 each), caps $200–$350, base aggregate $100–$200 (2.75 tons × $30–$60/t delivered), drainage gravel $300–$500 (9.2 tons × $30–$60/t), drain pipe $40–$80, filter fabric $80–$120, adhesive $25, geogrid $60–$120, equipment rental (plate compactor + wet saw, 2 days) $150–$300. Total materials: ~$1,650–$2,800, plus equipment rental, plus your time. Pro install adds another $30–$60 per face square foot, so ~$4,500–$9,000 for a 150-sqft wall. Above 4 ft, add $400–$1,200 for the engineer drawing and $150–$400 for the permit. The calculator above gives you the BOM and weight, not the price — supplier pricing varies regionally too much for a useful single number.

What is the middle-third rule for retaining walls?

The middle-third rule is a centuries-old engineering shorthand for stability: the resultant force vector (gravity + lateral earth pressure + surcharge) on a retaining wall has to land within the middle third of the base for the wall not to overturn or have tension at the back of the base. Modern engineers don't use it directly — they use moment analysis (Rankine and Coulomb earth pressure theories) and check overturning, sliding, and bearing utilization. For DIY-buildable segmental walls under 4 ft, the manufacturer-published install guides (Allan Block, Versa-Lok, Pavestone) bake the middle-third condition into their setback batter angles and base-extension specs — you don't need to do the calc yourself, but you do need to follow the install guide step by step. Above 4 ft, the engineer does the formal stability check.

Can I embed this retaining-wall calculator on my site?

Yes — copy the iframe snippet at the bottom of this page. The embedded version is a stripped-down variant designed for landscape-design blogs, /r/landscaping mods, hardscape contractor sites, segmental retaining wall (SRW) supplier sites, and personal renovation logs. Required attribution is built in. Free, no signup, no analytics attached to the embed.

Retaining-wall work has a specific tool list that overlaps with masonry and hardscape but isn't identical. Beyond the trowel, level, and string line, here's what's on every Morrison-Construction segmental-wall job:

  • Best Cordless Drills — for masonry-bit pilot holes, drilling Tapcons through the cap into the top course, and dispensing construction adhesive with a tube-driver attachment.
  • Best Shop Vacs — base-prep crushed stone fines and wet-saw block chips wreck household vacuums. A dedicated shop vac handles trench cleanup, cap-course prep, and final wash-down before the adhesive sets.
  • Best Portable Generators — most retaining-wall jobs aren't near an outlet. The wet saw, plate compactor (electric models), drill chargers, and lights all need power — a portable generator covers it.
  • Best Pressure Washers — clean block faces before adhesive cures and rinse base-aggregate fines off the cap course before you set the top.
  • Best Tool Chests — multi-day site work needs lockable on-site storage. Levels, line blocks, jointers, and the diamond-blade kit live there between work sessions.
  • Best LED Shop Lights — bond-line waver and course lippage only show up under raking light. Catch problems while you can still pull the cap and re-set.
  • Essential Tools for New Homeowners — the 12-tool starter kit Jake recommends before any DIY masonry or hardscape project.

Sources & methodology

This calculator is reviewed annually for source currency. About Jake · Last reviewed May 7, 2026.

Embed this tool on your site

Free for landscape-design blogs, /r/landscaping mods, hardscape contractor sites, SRW supplier sites, and personal renovation logs. Required attribution is included in the snippet. No fee, no account, no analytics attached to the embed.

<iframe
  src="https://diyrated.com/retaining-wall-calculator/embed/"
  width="100%"
  height="780"
  loading="lazy"
  style="border:1px solid #e5dcd0; border-radius:16px; max-width:720px;"
  title="Retaining Wall Calculator (DIYRated)">
</iframe>
<p style="font-size:12px;color:#666;margin-top:8px">
  Retaining wall calculator by
  <a href="https://diyrated.com/retaining-wall-calculator/">DIYRated</a>
  &middot; Reviewed by Jake Morrison, Licensed GC
</p>