Retaining Wall Calculator

Find out how many retaining wall blocks and caps you need for a wall of any length and height — plus an estimate of the cost.

How to measure a brick or block wall — length times height Wall length Height
Measure the wall face — length × height. Blocks stack in courses; the bottom course sits in a compacted gravel base.

How many blocks for a retaining wall?

Block walls are a simple grid — so many blocks across, so many courses up:

Blocks = blocks per course × number of courses

Blocks per course is the wall length divided by the block's face length; the number of courses is the wall height divided by the block height. We round each up to a whole block, multiply them, and add one extra row of caps for the top. A 20 ft wall, 3 ft tall, in 12 in × 4 in blocks comes to 20 × 9 = 180 blocks plus about 20 caps.

Common block sizes

Block typeTypical face × height
Garden / planter wall12 in × 4 in
Standard segmental (SRW)16–18 in × 6–8 in
Cap unitMatches face, ~3–4 in high

Retaining wall materials

  • Segmental concrete block (SRW). Interlocking, mortar-free units — the most popular and DIY-friendly choice.
  • Poured concrete. The strongest option for tall or load-bearing walls, but it needs forms, rebar, and a footing.
  • Natural stone. Dry-stacked or mortared for a classic look; slower to build and less uniform.
  • Timber. Pressure-treated landscape ties are inexpensive but have the shortest life (~15–20 yrs).
  • Gabion. Wire baskets filled with rock — free-draining and good for a rugged, modern look.

When you need engineering

Most areas let you DIY a segmental wall up to about 3–4 ft. Above that — or when there's a surcharge (a driveway, slope, or structure pushing on the wall from above) — you usually need geogrid soil reinforcement, an engineer's design, and a permit. Terracing two shorter walls instead of one tall one can keep a project in DIY territory; check your local code first.

How much does a retaining wall cost?

Blocks run about $3–$8 each, and a finished segmental wall is often quoted by the square foot of wall face. The base gravel, drainage stone, pipe, and (on taller walls) geogrid add up, so material is well beyond just the block count — and engineered or tall walls cost considerably more installed.

Build it to last

  • Start with a solid base. Compact about 6 in of gravel in a level trench, and bury the bottom course so roughly the first course is below grade.
  • Drain behind it. Backfill with drainage gravel and run a perforated pipe — water pressure is what topples walls.
  • Step it back. Most blocks have a lip or pins that set each course back slightly (batter) so the wall leans into the slope.
  • Know your limit. Walls over ~3–4 ft usually need geogrid, engineering, and a permit. Check local code first.

Frequently asked questions

How many blocks for a 20 ft × 3 ft wall?
With 12 in × 4 in blocks, that's 20 per course × 9 courses = 180 wall blocks, plus about 20 caps for the top.
How tall can I build without a permit?
Usually 3–4 ft for a segmental block wall. Taller walls need geogrid, engineering, and a permit — check your local code.
Do I need a gravel base?
Yes — about 6 in of compacted gravel, with the bottom course buried. Backfill with drainage gravel and a perforated pipe behind the wall.
How many cap blocks?
About one course worth — the blocks-per-course number. Caps are glued on with masonry adhesive and bought separately.
Why is drainage so important?
Water building up behind a wall creates hydrostatic pressure that pushes it over. Drainage gravel plus a perforated pipe lets that water escape — it's the #1 reason walls fail.
What is geogrid and when do I need it?
Geogrid is a mesh laid between courses and back into the soil to anchor the wall. It's typically required above ~3–4 ft or under a surcharge like a driveway.
What's the cheapest retaining wall?
Pressure-treated timber is the lowest material cost but the shortest-lived; segmental concrete block costs a bit more and lasts far longer with less upkeep.

How we calculate this

  • Blocks = wall face area ÷ the face area of one block
  • Caps are estimated along the top course
  • A waste allowance covers cuts and breakage

Walls over about 3–4 ft, or any holding a slope or extra load, usually need engineering and a permit — check locally first.

Sources: Segmental retaining-wall manufacturer data. Last reviewed: June 2026. See our methodology for how we build every estimate.