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
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
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
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
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.