DIY Calculator

Calculators › Fences & Walls

Retaining Wall Calculator

Enter the length and height of your wall and pick a block size. The calculator counts the wall blocks course by course — including the buried course below ground — plus cap blocks, the gravel for the leveling base, the drainage stone behind the wall and the drain pipe.

Your wall
Buried courses

Auto buries about 1 in for every foot of wall height (at least one course), a common minimum for segmental walls. Your block maker’s guide may ask for more.

Cost (optional)

You need

111 wall blocks

7 courses × 15 blocks · 15 caps · 4.48 tons of gravel

grade20 ft3 ftburied
Wall20 ft long × 3 ft high
Courses7 (6 above ground + 1 buried course)
Blocks per course15 (16 in long)
Wall blocks111 (incl. 5% extra)
Cap blocks (16 in long)15
Base gravel (6 in deep)0.68 cu yd · 0.98 tons
Drainage stone behind the wall (12 in wide)2.59 cu yd · 3.5 tons
Perforated drain pipe20 ft

Blocks = courses (above ground + buried) × ceil(wall length ÷ block length) × (1 + extra %) · Caps = ceil(wall length ÷ cap length) · Gravel: 6 in base, 12 in drainage zone

Report a problem or suggest a feature

It is built for dry-stacked segmental retaining wall blocks, the kind sold at home centers for garden walls and raised beds. Change the block size to match the label on the blocks you plan to buy.

Good to know

Wall blocks needed (16 × 6 in face, including one buried course, no extra added)

Wall length2 ft high3 ft high4 ft highCap blocks (16 in)
10 ft4056728
20 ft7510513515
30 ft11516120723
50 ft19026634238
100 ft37552567575

Add about 5% extra for cuts and broken blocks. Walls over 4 ft usually need a permit and an engineered design.

How to use this calculator

  1. Measure the wall length along the front and the height you want above ground.
  2. Pick your block size (check the face length, height and depth on the label) and whether you want cap blocks.
  3. The calculator adds buried courses, the gravel base and the drainage stone behind the wall.
  4. Optionally enter a price per block to estimate the cost.

Add this calculator to your website

Run a landscaping supply, garden center or DIY blog? Paste this code into your page to let visitors use the retaining wall calculator right there. It is free, has no ads, and resizes itself to fit.

Preview the embed ↗

More calculators

Frequently asked questions

How many blocks do I need for a 20 ft long, 3 ft high retaining wall?

With standard 16 in long, 6 in high blocks: 6 courses above ground plus 1 buried course, 15 blocks per course — 105 blocks, or 111 with 5% extra. Add 15 cap blocks at 16 in long.

How much gravel do I need behind a retaining wall?

For that 20 ft × 3 ft wall: about 1 ton of paver base for a 6 in deep leveling pad, and about 3.5 tons of clean crushed stone for a 12 in wide drainage zone behind the blocks.

How many retaining wall blocks per square foot?

Divide 144 by the face area of one block in square inches. A 16 × 6 in face is 96 sq in, so 1.5 blocks per square foot of wall face. Don’t forget the buried course, which isn’t part of the visible face.

How tall can a retaining wall be without reinforcement?

Most segmental block walls can go about 3–4 ft high without geogrid, depending on the block, soil and slope above. Walls over 4 ft usually need an engineered design and a permit.