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

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.

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.