Retaining Wall Calculator — Free Blocks, Gravel, Adhesive & Cost Estimator 2026 | AllInOneTools
🪨 Construction & Home Improvement

Retaining Wall Calculator

Calculate blocks, cap stones, gravel backfill, adhesive, and total cost for retaining walls. Supports concrete block, natural stone, and timber with drainage and setback calculations.

Wall Dimensions
ft
ft
Block Options
$/block
Drainage & Base
📋
Material List
💰
Cost Estimate
📝 Step-by-Step Calculation
💡

Retaining Wall Calculator: The Complete Guide to Blocks, Drainage, and Cost

Retaining walls hold back soil on sloped properties, create level terraces, and define garden beds. A properly built retaining wall can last 50+ years, while a poorly built one can fail in just a few seasons — often with expensive consequences. The two most common failure points are inadequate drainage and poor base preparation. This guide covers everything you need to build a retaining wall that lasts.

The Retaining Wall Formula

Wall Face Area = Length × Exposed Height
Total Height = Exposed + Buried (1" per 8" exposed)
Blocks = Face Area × Blocks per Sq Ft + Waste%
Cap Stones = Wall Length ÷ Cap Width
Gravel Backfill = Length × Height × 1 ft (depth) ÷ 27 cu yd
Base Gravel = Length × 2 ft (width) × 0.5 ft ÷ 27
Drain Pipe = Wall Length + 10 ft (outlet)
Worked Example — 20 ft × 3 ft Concrete Block Wall
Exposed height: 3 ft, Buried: ~4.5" (1 course)
Total height: 3.375 ft, Face area: 20 × 3 = 60 sq ft
Standard blocks (3/sq ft): 60 × 3 = 180 blocks
With 10% waste: 180 × 1.10 = 198 blocks
Cap stones: 20 ft ÷ 1 ft = 20 cap stones
Gravel backfill: 20 × 3 × 1 ÷ 27 = 2.22 cu yd
Base gravel: 20 × 2 × 0.5 ÷ 27 = 0.74 cu yd
Total gravel: ~3 cu yd

Retaining Wall Types

TypeCost/Sq Ft (DIY)Max Height (no eng.)Lifespan
Concrete Block (segmental)$10-$154 ft50+ years
Natural Stone$15-$303 ft100+ years
Timber / Railroad Tie$8-$124 ft15-20 years
Poured Concrete$20-$35Requires engineering50+ years
Boulder$12-$253 ft100+ years
Pro Tip — The Buried First Course
Bury the first course of blocks below grade. The rule of thumb: bury 1 inch for every 8 inches of wall height. A 3-foot wall needs about 4.5 inches buried. This prevents the base from shifting or being undermined by erosion. Dig the trench 6-8 inches deep, fill with 4-6 inches of compacted crushed gravel, then set the first course into the gravel so it sits below the finished grade. Check level constantly — an out-of-level base course compounds with every additional course.
Critical — Walls Over 4 Feet Need Engineering
Most building codes require engineered design and building permits for retaining walls over 4 feet tall (some jurisdictions say 3 feet). Walls holding back slopes, surcharges (driveways, structures), or near property lines may require engineering regardless of height. Engineered walls typically use geogrid reinforcement layers every 2-3 courses extending back into compacted backfill. Engineering costs $500-$2,000 but prevents catastrophic failure that can cost $10,000+ to repair. When in doubt, consult a structural engineer.

Drainage — The #1 Cause of Wall Failure

Water is the enemy of retaining walls. Without proper drainage, rainwater saturates the soil behind the wall, creating hydrostatic pressure that pushes the wall forward. In cold climates, freeze-thaw cycles amplify this force dramatically. Every retaining wall over 2 feet tall needs: 12 inches of clean crushed gravel behind the wall from base to near top, a 4-inch perforated drain pipe at the base (holes facing down), filter fabric between gravel and native soil, and a daylight outlet where the pipe exits to grade. The gravel allows water to drain down to the pipe and out, rather than pressing against the wall.

Frequently Asked Questions

How many retaining wall blocks do I need?
Wall face area (L × H) × blocks per sq ft. Standard 12×4" blocks: 3/sq ft. Large 18×6": 1.33/sq ft. A 20×3 ft wall with standard blocks: 60 × 3 = 180, plus 10% waste = 198 blocks. Don't forget caps (1 per linear foot) and the buried base course. Our calculator handles all sizes automatically.
How much does a retaining wall cost?
DIY materials: concrete block $10-$15/sq ft, natural stone $15-$30/sq ft, timber $8-$12/sq ft. Professional: $25-$50/sq ft for block, $35-$80 for stone. A 20×3 ft wall: $600-$900 DIY, $1,500-$3,000 installed. Walls over 4 ft add $500-$2,000 for engineering.
How tall can I build without a permit?
Most codes: up to 4 feet without engineering/permits (some say 3 feet). Walls near property lines, holding back slopes, or supporting surcharges (driveways, buildings) often need engineering regardless of height. Always check your local building code — violations can require expensive teardown and rebuilding.
Do I need gravel behind the wall?
Yes, always. Even short garden walls need 6-8" of gravel. Walls over 2 ft: 12" of crushed gravel plus a 4" perforated drain pipe at the base. The gravel prevents hydrostatic pressure buildup — the #1 cause of retaining wall failure. Use 3/4" minus crushed gravel, not round river rock.
Should I use adhesive on the blocks?
Yes — on the top 2 courses and all cap stones. Use polyurethane masonry adhesive (e.g., Loctite PL 500). Two 1/4" beads per block. One 28 oz tube covers ~10-12 blocks. Don't glue bottom courses — they need to be adjustable during construction. Adhesive prevents shifting from freeze-thaw and foot traffic.
How deep should the base trench be?
6-8 inches deep, 24 inches wide (2× block depth). Fill with 4-6" compacted crushed gravel. First block course sits partially below grade — bury 1" per 8" of wall height. Level the base perfectly — every error compounds with height. Compact gravel in 2" lifts. A 3 ft wall needs ~4.5" of the first course buried.
What is setback and why does it matter?
Setback (or batter) is the backward lean built into each course — typically 1/4" to 3/4" per course. This lean counteracts the soil pressure pushing the wall forward. Most segmental blocks have a built-in lip or pin system that creates automatic setback. Without setback, gravity walls over 2 feet are prone to tipping. More setback = more stability but reduces usable space behind the wall.