Retaining Wall Calculator

Enter the wall's length and exposed height and choose a block size. You'll get blocks, caps, buried courses, base gravel, drainage stone and drain pipe.

Wall size

GradeDrainage stoneBase gravelCapBuried
Above finished grade
in
0 if you don't use caps
%
For cuts, corners and breakage
Add a price (optional)
$

Enter the wall length, height and block size.

On this page
  1. Wall size
  2. How to use the retaining wall calculator
  3. How the calculation works
  4. How deep to bury the first course
  5. Base and drainage
  6. Common block sizes
  7. Frequently asked questions
  8. Sources

How to use the retaining wall calculator

  1. Measure the wall length along its face. For a curved wall, measure along the curve with a garden hose or tape.
  2. Enter the exposed height — the part above finished grade on the low side. The calculator adds the buried course for you.
  3. Pick the closest block size or enter the exact face length, height and depth from the product label.
  4. Read the shopping list: blocks, caps, base gravel for the trench, drainage stone for behind the wall and drain pipe.

How the calculation works

Buried depth = the larger of 6 in or 1 in per foot of wall height Courses = ceil(exposed height ÷ block height) + ceil(buried depth ÷ block height) Blocks = ceil(wall length ÷ block length) × courses × (1 + extra %) Caps = wall length ÷ cap length Base gravel = length × trench width (1.5 × block depth, min 12 in) × 6 in Drainage stone = length × 12 in × full wall height

Worked example: a wall 20 ft long and 24 in high with 16 × 6 × 10 in blocks

  1. Buried depth: 6 in (a 2 ft wall needs the 6-inch minimum) → 1 buried course
  2. Exposed courses: 24 ÷ 6 = 4, so 5 courses in total
  3. Blocks per course: 240 in ÷ 16 in = 15 → 75 blocks, plus 5% = 79 blocks
  4. Caps: 240 ÷ 16 = 15, plus 5% = 16 caps
  5. Base gravel: 20 × 1.25 ft × 0.5 ft = 12.5 ft³ ≈ 0.46 yd³; drainage stone: 20 × 1 × 2.5 ft = 50 ft³ ≈ 1.85 yd³

How deep to bury the first course

Segmental block manufacturers generally call for the first course to be buried at least 6 inches, or 1 inch for every foot of wall height, whichever is greater. The buried course keeps the base of the wall from kicking out and gives it a stable start below any surface erosion. The calculator applies the same rule and rounds up to whole courses.

Base and drainage

  • Base trench: typically about one and a half to two times the block depth wide, with at least 6 inches of compacted crushed stone. Level the first course carefully — every error is multiplied up the wall.
  • Drainage stone: fill at least 12 inches behind the blocks with clean crushed stone (no fines) so water can drain instead of building pressure against the wall.
  • Drain pipe: a perforated pipe at the base of the drainage stone, vented to daylight, is required by manufacturers for taller walls and poorly drained sites — and cheap insurance for any wall.
  • Filter fabric between the drainage stone and the soil behind keeps fines from clogging the stone.

Know the limits. Walls taller than about 4 feet, walls holding back a slope, a driveway or a building, and terraced walls close together usually need an engineered design with geogrid reinforcement — and often a permit. Check your local building department before you start.

Common block sizes

TypeTypical face (L × H)Blocks per sq ft of faceTypical use
Small garden wall block12 × 4 in3.0Flower bed borders and low walls up to about 2 ft
Medium retaining block16 × 6 in1.5Garden and landscape walls
Large retaining block18 × 8 in1.0Taller landscape walls, reinforced walls

Sizes vary by brand; use the exact dimensions from the product for a precise count.

Frequently asked questions

How many blocks do I need for a 3 ft tall, 30 ft long wall?

With 16 × 6 in blocks: 6 exposed courses plus 1 buried course is 7 courses; 30 ft needs 23 blocks per course (22.5 rounded up) — 161 blocks, or 170 with 5% extra.

Do I need caps?

Caps aren't structural, but they finish the wall, protect the top course and give you a place to sit. Glue them down with a concrete landscape adhesive.

Can I build a retaining wall without gravel?

Not one that lasts. The compacted gravel base keeps the wall level as the ground moves, and the drainage stone behind it relieves water pressure — the main reason small walls lean and fail.

Does a curved wall need more blocks?

Measure along the face of the curve and the count stays about the same. Tight curves may need a few blocks trimmed, so keep the extra at 5–10%.

Sources

  • Segmental retaining wall manufacturers' installation guides (for example Allan Block) — buried course, base and drainage recommendations.
  • Your local building code sets the height at which walls need permits or engineering.