Retaining Wall Calculator

Quick answer

A 20 ft long, 2 ft high wall in standard 16 × 6 in blocks needs 79 blocks (5 courses including the buried base course, with 5% waste) and 15 capstones, plus 0.74 cubic yards of base gravel and 1.48 cubic yards of drainage gravel behind the wall.

Calculate

Try an example:

Your result

—
  • Capstones—
  • Courses—
  • Base gravel (trench)—
  • Drainage gravel (behind wall)—
  • Estimated cost (blocks + caps)—
Retaining Wall Calculator —
HomeCalc — shopping card

Retaining Wall Calculator

Enter your measurements to build your shopping card.

Take this card to the supplier. Confirm quantities before ordering. Prices reviewed December 2026.

How to use this calculator

  1. Measure the wall length along its run and the exposed height above ground at the tallest point, in feet (or metres).
  2. Enter your block size — the common residential retaining block is 16 inches long × 6 inches high (a 0.67 sq ft face).
  3. The calculator adds one buried base course below ground, because the first course must sit below grade on compacted gravel.
  4. Add block and capstone prices for a cost estimate. Walls over about 4 ft exposed height usually need engineering, geogrid and permits — see the notes below.

Retaining wall blocks are counted by courses: blocks per course is the wall length divided by the block length, and courses are the wall height divided by the block height — plus one buried base course that sits below ground. A 20 ft wall, 2 ft high, in 16 × 6 in blocks needs 15 blocks per course × 5 courses = 75 blocks, 79 with 5% waste. The calculator also sizes the gravel trench under the wall and the drainage gravel behind it, the two quantities DIY walls most often get wrong.

The formula, explained

Blocks per course = Wall length (in) ÷ Block length (in)
Courses = (Exposed height (in) ÷ Block height (in), rounded up) + 1 buried course
Blocks = Per course × Courses × (1 + waste %)

The buried course is structural, not optional: the first course sits below grade on a 6-inch compacted gravel trench so the wall cannot kick out at the base. Drainage is the other half of the structure — a 12-inch column of washed stone behind the wall, with a perforated drain pipe at the base on taller walls, relieves the water pressure that pushes walls over. Skip the drainage and even a perfectly counted wall leans within a few winters. Height limits matter too: most jurisdictions require permits and engineering for walls over 4 ft of exposed height, and segmental block systems specify geogrid reinforcement in layers behind walls approaching that height.

Worked examples

Example 1 — garden terrace wall. A 20 ft long, 2 ft high wall in 16 × 6 in blocks: 240 ÷ 16 = 15 blocks per course; 24 ÷ 6 = 4 courses above ground + 1 buried = 5 courses; 15 × 5 = 75 blocks, 79 with 5% waste. Capstones: 15. Base gravel 0.74 cubic yards, drainage gravel 1.48 cubic yards.
Example 2 — low bed border. A 15 ft long, 1 ft high border: 180 ÷ 16 = 12 blocks per course (rounded up); 12 ÷ 6 = 2 courses + 1 buried = 3; 12 × 3 = 36 blocks, 38 with waste. Caps: 12. Even a 1 ft wall needs the buried course and gravel trench.
Example 3 — slope retention. A 40 ft long, 4 ft high wall in 18 × 6 in blocks: 480 ÷ 18 = 27 per course; 48 ÷ 6 = 8 courses + 1 = 9; 27 × 9 = 243 blocks, 256 with waste. At 4 ft exposed, check local permit rules and the block manufacturer's geogrid schedule before building.

Coverage and reference

Retaining wall block reference
Block size (L × H)Face areaBlocks per 10 ft courseCourses per 2 ft height*Typical use
12 × 4 in0.33 sq ft107Low borders, tree rings
16 × 6 in0.67 sq ft8 (7.5)5Garden walls to ~3 ft
18 × 6 in0.75 sq ft7 (6.7)5Terraces, engineered walls
12 × 8 in (CMU)0.67 sq ft104Mortared walls (different system)

*Courses per 2 ft includes the buried base course. Segmental (dry-stack) retaining blocks interlock with a lip or pins and step back slightly each course; the setback means the wall face leans into the hill — allow for it when measuring the top course position. Corner and end blocks are cut from standard blocks on most systems, which the 5% waste allowance covers.

What it costs

Segmental retaining blocks typically run $2.50–$6 per block (16 × 6 in standard), capstones $3–$7 each, and drainage/base gravel $30–$70 per cubic yard delivered. The 20 × 2 ft example wall lands around $300–$450 in blocks, caps and gravel for DIY. Professional installation runs $25–$50 per sq ft of wall face, more with engineering and geogrid. Prices last reviewed December 2026.

Planning the rest of the project

A retaining wall touches three other quantities: the gravel trench and drainage column (size extra stone with the Gravel Calculator), the backfill soil behind the drainage layer (Topsoil Calculator), and the wall face area for quotes (Square Footage Calculator) — all part of our Landscaping Materials guide.

Frequently asked questions

How many blocks do I need for a 20 ft × 2 ft retaining wall?

In standard 16 × 6 in blocks: 15 blocks per course × 5 courses (4 above ground + 1 buried) = 75 blocks, or 79 with 5% waste, plus 15 capstones. The calculator adjusts for your block size and wall dimensions.

Why does the calculator add a buried course?

The first course of a retaining wall must sit below ground level on a compacted gravel trench. Burial stops the base from kicking out under soil pressure and keeps the wall aligned if the surface soil washes. A wall built starting at grade is the most common DIY failure.

How much gravel goes behind a retaining wall?

Plan a 12-inch-wide column of washed drainage stone behind the full height of the wall, plus a 6-inch-deep, 24-inch-wide compacted gravel trench under the base course. For a 20 × 2 ft wall that is about 1.5 cubic yards of drainage stone and 0.74 cubic yards in the trench.

How high can I build a retaining wall without engineering?

Most US jurisdictions require permits and engineered design for walls over 4 ft of exposed height (some at 3 ft), and block manufacturers specify geogrid reinforcement as walls approach that height. Terracing two shorter walls is often cheaper and safer than one tall wall.

Do I need a drain pipe behind the wall?

For walls over about 2 ft, yes: a perforated pipe at the base of the drainage column, sloped to daylight or a drain outlet, carries water away instead of letting it pressurise the wall. Short garden walls with free-draining soil can rely on the stone column alone.

Sources & verification

Block dimensions and face areas from segmental retaining wall manufacturer data (16 × 6 in standard block, 0.67 sq ft face); buried base course, 6 in gravel trench and 12 in drainage column follow NCMA (National Concrete Masonry Association) residential retaining wall guidance. Price ranges reviewed December 2026. Full formulas and price methodology are documented on our methodology page; our editorial policy explains how figures are checked, and any corrections are recorded in the corrections log.

You may also need

Projects rarely need just one number. These pair with this calculator — all part of our Landscaping Materials guide:

Embed this calculator — free for blogs and project guides. Paste this code into your page: <iframe src="https://homcalc.work/retaining-wall-calculator" width="100%" height="520" style="border:0" title="Retaining Wall Calculator" loading="lazy"></iframe>

Methodology: formulas and densities are explained on our methodology page. Last updated December 2026. Estimates only — confirm quantities with your supplier.