Skip to main content

Retaining Wall Calculator

By · Updated Jul 2026

Estimate wall blocks, caps, drainage gravel, and cost for segmental concrete, stone, and timber retaining walls.

ft

Total run of the wall. For L-shaped or terraced walls, calculate each section and add.

$/block
Share

How to Use

  1. Enter wall length - the total run in feet; add sections separately for L-shaped or terraced walls.
  2. Select height - measured from finished grade at the base to the top; over 4 ft usually needs engineering.
  3. Pick block size - standard 12×6 segmental blocks are 2 per square foot of wall face.
  4. Set waste - 10% covers a straight wall with corners; 15–20% for curves where blocks are cut.
  5. Plan the gravel - the gravel result is the drainage layer plus base - never skip it, and add a perforated drain pipe.

Quick answer

A 20 foot long, 3 foot tall block wall takes about 132 standard 12x6 blocks (2 per square foot of face), 20 cap blocks, and roughly 2.8 cubic yards of gravel for the compacted base and the 12 inch drainage zone behind the wall. Bury the first course - about 10 percent of wall height - and keep unreinforced walls at 4 feet or under. Enter your wall size above.

What Holds a Wall Up

front graderetained soilcompacted basedrainage gravelperforated pipebatterburied courseBase, drainage, and a buried first course are what keep a wall standing
The parts that keep a segmental wall standing: a compacted gravel base, a first course buried below the front grade, a full-height column of drainage gravel with a perforated pipe at its base to relieve water pressure, and a slight backward batter. Water behind the wall, not weight, is what topples most failures.

Why Drainage Decides Whether a Wall Lasts

Retaining walls fail for one reason more than any other: trapped water. When rain saturates the soil behind the wall, hydrostatic pressure builds fast - far more force than the soil weight alone. A 3-foot wall without drainage can see hundreds of pounds per square foot of lateral pressure after a storm, and even well-built walls eventually lean or crack under it.

The fix is simple: 12 inches of crushed gravel directly behind the wall for the full height, plus a 4-inch perforated pipe at the base that daylights to a lower grade. That single detail separates walls that last 30 years from ones that fail in five. The gravel result here includes both the drainage layer and the compacted base trench - budget it before you price blocks. If the base course sits on a poured footing, size the mix with the concrete bag calculator.

Block Count by Wall Height and Length

Wall height10 ft20 ft50 ft100 ft
1 ft (2 courses)2244110220
2 ft (4 courses)4488220440
3 ft (6 courses)66132330660
4 ft (8 courses)88176440880
5 ft (10 courses)1102205501,100

Includes 10% waste, based on standard 12×6 in face blocks (2 per sq ft of wall face). Cap blocks are counted separately at 1 per linear foot of wall top.

Retaining Wall Material Comparison

Material choice drives cost, lifespan, drainage, and whether the job is DIY-friendly:

MaterialCost per sq ft (face)LifespanDIYBest for
Segmental concrete block$15–$3050+ yrsYesMost residential walls
Natural stone (dry-stack)$25–$4575+ yrsModerateFeature walls
Pressure-treated timber$10–$2015–25 yrsYesGarden beds, walls under 2 ft
Poured concrete$20–$4050+ yrsNoEngineered / commercial
Gabion baskets$15–$3550+ yrsYesRustic look, great drainage

Retaining Wall Formulas

Block and gravel math:

Wall face area = Length × height
Block count = Face area × blocks per sq ft
Cap blocks = 1 per linear foot of wall
Drainage gravel = Length × height × 1 ft wide ÷ 27 (cubic yards)
Base gravel = Length × 1.5 ft × 0.5 ft ÷ 27 (cubic yards)
With waste = Block count × (1 + waste %)

Set the base course 6 inches below finished grade on 6 inches of compacted gravel. Each course steps back about 1 inch (the block batter handles this). Walls over 3–4 ft require permits in most jurisdictions.

Design & Permit Note

  • Segmental retaining wall design follows the concrete masonry industry guidance, which sets out the base, drainage, and reinforcement details this calculator assumes. The rule most codes share: an unreinforced wall over about 4 feet tall, measured from the bottom of the buried course, or any wall holding back a slope, driveway, or other surcharge, needs geogrid reinforcement and usually an engineer and a permit. Check your local threshold before building.NCMA - Segmental Retaining Wall Design Guidance

Next Steps

Blocks counted, line up the rest of the build:

  1. Order the stone by the tonConvert the base and drainage gravel into tons for delivery.
  2. Backfill behind itEstimate the fill soil behind the drainage zone.
  3. Build the patio aboveSize pavers for the terrace the wall creates.

Related Calculators

Brick CalculatorBrick and block counts.Fence Cost CalculatorInstalled fence pricing along the same property boundary.Aggregate CalculatorGravel backfill behind the wall.River Rock CalculatorDecorative rock at the wall base.

Retaining walls need gravel, concrete, and fill - browse the full construction calculator collection.

Frequently Asked Questions

How many retaining wall blocks do I need per square foot?

Standard 12×6-inch blocks cover half a square foot each, so you need 2 per square foot of wall face. A 20-foot wall 3 feet tall is 60 sq ft × 2 = 120 blocks, plus 10% waste = 132, plus about 20 cap blocks (one per linear foot of top). Larger block systems cover more face area, which is why the calculator includes a block-size selector.

Do I need a permit for a retaining wall?

Most jurisdictions require permits for walls over 3 to 4 feet; some require them for any wall that retains soil. Check with your building department first - unpermitted walls can be flagged during home sales and may need removal. Walls over 4 feet almost always require a structural engineer's stamp.

How much gravel do I need behind a retaining wall?

Plan a drainage layer at least 12 inches wide for the full wall height, plus a compacted base trench. The calculator combines both into the gravel result. For a 20-foot, 3-foot wall that is roughly 2.8 cubic yards. Always run a 4-inch perforated drain pipe at the base, daylighting to a lower point.

What causes a retaining wall to fail?

The leading cause is poor drainage - hydrostatic pressure from saturated soil pushes the wall forward. Other causes are shallow footings (especially in frost areas), undersized block for the height, skipping the backward batter, and building on unstable clay. Skipping engineering review on anything over 3 feet is the highest-risk shortcut.

How deep should I bury the first course?

Bury the bottom course about one-tenth of the finished wall height, and never less than one full block - so a 3 foot wall sits roughly 3 to 4 inches below the front grade, and a taller wall proportionally deeper. The buried course rests on the compacted gravel base and anchors the wall against sliding. In cold climates, excavate the base below the local frost line.

Do I need a drainage pipe behind a retaining wall?

Yes, for anything beyond short garden edging. Water building up behind the blocks is the number one cause of retaining wall failure - saturated soil pushes far harder than dry soil. A perforated pipe at the base of the drainage gravel, sloped to daylight or a drain, carries that water off before it can build pressure. Wrap the pipe and gravel in filter fabric so soil does not clog them.

How far back should a retaining wall lean?

Segmental block walls should batter back about 1 inch per foot of height, so a 3-foot wall leans back roughly 3 inches at the top. Most interlocking systems build this batter into the block geometry, stepping back automatically as you stack. Dry-stacked stone requires setting the lean manually on each course.


Updated Jul 2026 · See our Methodology
These are planning-grade estimates, not engineering measurements. Actual requirements vary by site conditions, materials, and local codes. Always verify with your supplier and a licensed contractor. See our Data Sources and Methodology.