Skip to content
Measured Yard

Retaining Wall Calculator

Enter the wall length and height and pick a block size. You get blocks, caps, the base gravel, the drainage stone and the drain pipe.

Your project

ft

The height above the ground. The buried course is added for you.

ft

Most walls bury the first course, about 1 in for every 8 in of wall height.

Fine tune

About twice the block depth, usually 24 in (60 cm).

in
in
in
Prices (optional)Type your local prices to see what it costs.
$
$
$

You need

147blocks

Blocks needed · 12 × 4 in

Courses (rows)
7
Cap blocks
21 caps
Base gravel
1.33 tons
Drainage gravel
2.33 tons
Wall face
40 sq ft

Shopping list

  • Wall blocks147 blocks · 12 × 4 in
  • Cap blocks21 caps
  • Crusher run for the base1.5 tons
  • Clean drainage stone2.5 tons
  • Perforated drain pipe20 ft

Counts are rounded up so you are never short. Weights are typical. Your supplier's may differ by about 10%.

How to count retaining wall blocks

Divide the wall length by the block length to get blocks per row, divide the height by the block height to get the rows, then add one buried row. The calculator also adds 5% for cuts and broken blocks.

A 20 ft wall, 2 ft high, built with 12 × 4 in blocks: 20 per row, 6 rows plus 1 buried, so 140 blocks, or 147 with spares.

What goes under and behind the wall

  • Base: a trench about 24 in wide with 6 in of compacted crusher run. A level base is what makes a wall last.
  • Drainage stone: about 12 in of clean crushed stone behind the blocks, full height. It lets water out instead of pushing on the wall.
  • Drain pipe: perforated pipe along the back of the base, sloped to daylight.
  • Caps: glued on top with masonry adhesive.

Step the wall back slightly as it rises. Most blocks have a lip that sets this for you.

Questions people ask

How tall can I build a block wall myself?

Most block makers rate small garden blocks for about 2 to 3 ft. Above that, walls usually need geogrid, an engineered design and often a permit.

How many blocks per square foot?

12 × 4 in blocks: 3 per square foot of wall face. 16 × 6 in: 1.5. 18 × 8 in: 1.

Do I need gravel behind a retaining wall?

Yes. Clean drainage stone behind the wall relieves water pressure, the main reason walls lean and fail.

How deep should the base be?

About 6 in (15 cm) of compacted crushed stone, plus the buried first course.

Sources and data

  • Segmental retaining wall installation guides from major block makers
  • National Concrete Masonry Association guidance on base, drainage and height limits

Last reviewed November 16, 2026 · How we calculate

Next steps in your project