Lawn & Garden Math

Retaining Wall Calculator

Retaining wall calculator: count blocks and caps for any wall length, height and block size, plus base gravel and backfill drainage rock in cubic yards.

Before you order a pallet of wall blocks, run the numbers here: enter the wall's length and height and the block dimensions, and the calculator counts courses, blocks and caps — then sizes the base gravel and backfill rock the wall actually needs.

Retaining walls fail from water, not from weak blocks: set the first course below grade and backfill 9–12 inches of free-draining rock with a perforated pipe at the base, and the wall will outlive the invoice. Anything over 3–4 feet moves from DIY territory to engineering review — geo-grid, permits and stamped drawings in most towns.

Quick answer

A 24 ft × 2 ft wall of 16" × 6" blocks needs 76 blocks plus 7 caps

Four courses of 18 blocks (24 ft ÷ 16 in) = 72, plus 5% cutting waste rounds up to 76. Cap blocks (46-inch) run 7. You'll also spread about 0.81 cu yd of base gravel and tuck roughly 1.33 cu yd of drainage rock behind the wall.

blocks = courses × blocks/course × 1.05 · caps = wall length ÷ cap length · backfill cu yd = length × height × 0.75

Calculator

How to calculate a retaining wall

  1. 1

    Measure length and height

    Measure along the wall face at ground level. For height, measure from the base of the wall to the top of the cap — and remember a terraced slope is two short walls, not one tall one.

  2. 2

    Count courses and blocks

    Courses = height ÷ block height (2 ft ÷ 6 in = 4). Blocks per course = length ÷ block length (24 ft ÷ 16 in = 18). Multiply × 1.05 for cuts and spares: 72 × 1.05 = 76 blocks.

  3. 3

    Bury the first course

    Set course one below grade — about 1 inch buried per foot of wall height, minimum 2 inches. Dig the trench into the base gravel to fit, and count that buried course in your block order.

  4. 4

    Add base and drainage rock

    Base: 6 inches of compacted crushed stone, as wide as the block plus 6 inches. Behind the wall: a 9-inch drainage zone of clean rock from bottom to top, with perforated piped daylighted to an outlet.

Retaining wall tips that keep it standing

  • The drainage zone is the wall: 9–12 inches of washed rock behind the block, wrapped in fabric so soil can't migrate in, with a perforated pipe at the base flowing to daylight.
  • Walls over 3–4 feet, walls supporting driveways, and walls on slopes usually need an engineer's letter and a permit — geo-grid every other course ties the wall back into the hillside.
  • Order blocks for the buried course too: a "2 ft wall" built of 6-inch blocks with the first course 3 inches down is really 4½ courses — order for five and cut nothing on course one.
  • Glue every cap block down with concrete adhesive; caps are what frost, wind and kids pry loose first.
  • Terrace any slope over 4 feet: two 3-foot walls with a 4–6 foot bench between them hold back far more than a single 6-foot wall — and often skip the engineering review entirely.

Frequently asked questions

How many retaining wall blocks do I need?
Wall face ÷ block face, then +5%. For a 24 ft × 2 ft wall using 16" × 6" blocks: 4 courses × 18 blocks = 72, × 1.05 = 76 blocks, plus caps — 7 for 46-inch cap units.
How much gravel goes behind a retaining wall?
Plan a 9–12 inch zone of clean drainage rock from base to top. A 24 ft × 2 ft wall needs about 1.33 cu yd — roughly 1.8 tons. Tall walls taper the zone, but the bottom third stays all rock: that's where pressure peaks.
How deep should the base be?
6 inches of compacted crushed stone, as wide as the block plus 6 inches front and back — the example wall needs about 0.81 cu yd. On soft or wet soils, go 8–10 inches and step the trench on slopes. Never set block on topsoil.
How tall can a retaining wall be without engineering?
Common DIY and permit thresholds sit around 3–4 feet, but they vary by town and by what's above the wall (driveway? house?). Past 4 feet, assume geo-grid reinforcement, engineered drawings, or terracing into shorter walls.
How much does a retaining wall block cost?
Basic 6" × 16" landscape wall blocks run $2–$5 each; premium split-face systems $6–$12. The 24 × 2 ft example is about $150–$380 in blocks plus caps, base stone and adhesive — installed walls price out per square foot of face instead.
Do wall blocks need adhesive?
Most segmental systems pin or lip together dry; caps and single-height garden walls get concrete adhesive between courses. Follow the block manufacturer's sheet — some freestanding and curved walls require flexible adhesive even though the system is dry-stacked.
What do you put under a retaining wall?
Compacted crushed stone, 6 inches deep — not concrete (it cracks and traps water), not sand (it squeezes out), not fabric alone. The base carries the whole wall's weight and lets water drain out from under the first course.

Related calculators