Retaining Wall Calculator — Blocks, Gravel & Cost

Use this retaining wall calculator to count the blocks, caps and gravel a retaining wall needs — and what the materials cost — before you dig. Enter the wall’s length and height, pick a block size and type, and it works out blocks per course, the number of courses including the buried course, base gravel and backfill gravel in cubic yards and tons, and a materials total. If you searched for a retaining wall cost calculator, this is the same tool: the cost is built in, block by block. It is free, instant and needs no sign-up.

Retaining wall calculator

Retaining wall calculator
Quick answer: a 20 ft long, 3 ft high wall built with 16×8 in segmental blocks needs 15 blocks per course, 6 courses (5 above ground plus 1 buried), 90 blocks and 15 caps. Base gravel 0.74 yd3 (1.04 t), backfill 2.22 yd3 (3.13 t) — 2.96 yd3 of gravel in all. Materials $378–$822; installed comparison $1,200–$3,000.
Rule of thumb: count one buried course below ground — about a tenth of the wall’s height — and never skip the drainage gravel behind the wall.

A retaining wall fails for unglamorous reasons: no buried course, no drainage, and a wall built too tall for its blocks. This retaining wall calculator gets the counting right and flags the height where you need an engineer — it does not pretend to design the wall for you. The drainage section below is mandatory reading: water behind a wall is structural, not cosmetic.

Retaining wall calculator — rustic stone retaining wall holding back a garden bank beside a pond
A stone retaining wall holding back a garden bank — the buried course and the drainage gravel behind it are doing the real work. (Photo: Pexels)

How the retaining wall calculator works

Measure the wall in feet: length along the face, height from the top of the footing (or the ground at the base) to the top of the wall. The tool counts in whole courses, because you cannot buy half a course of blocks — it rounds up per course, and it always adds one buried course below ground. Every figure this retaining wall calculator shows is worked from those two measurements and your block size.

The formulas, so you can check them:

  • Blocks per course: wall length (ft) / block length (ft), rounded up per course.
  • Courses: wall height (ft) / block height (ft), rounded up, plus 1 buried course.
  • Total blocks: blocks per course x courses. Caps: one per block in the top course (same as blocks per course).
  • Base gravel: length x 2 ft wide x 0.5 ft deep / 27 = cubic yards.
  • Backfill gravel: length x 1 ft wide x height / 27 = cubic yards. The 1 ft column is the drainage zone; on rough ground, add 15% to the backfill as a waste allowance.
  • Tons of gravel: cubic yards x 1.41 (crushed stone).
  • Face area: length x height — block material is priced per square foot of wall face.

What to order

  • Blocks: the total the tool gives — 90 for the 20 ft x 3 ft example — plus a few spares for cuts and breakage (5% is the usual allowance).
  • Caps: one per block in the top course — 15 for the example — priced per linear foot of wall ($1–$3/ft).
  • Base gravel: 0.74 yd3 (1.04 t) for the example — a 6 in deep, 2 ft wide bed of compacted gravel under the first course.
  • Backfill gravel: 2.22 yd3 (3.13 t) for the example — a 12 in column of #57 gravel behind the wall, full height.
  • Delivery: blocks come by the pallet; delivery is typically $100–$400 per pallet. Tick the delivery box in the tool to add it.
  • Drainage pipe: perforated pipe at the base, behind the wall, daylighted or connected to a drain — see the drainage section below. It is not in the gravel numbers, so do not forget it.

Drainage is structural, not cosmetic

Water trapped behind a wall creates hydrostatic pressure — water has nowhere to go, so it pushes. It is the number one cause of retaining wall failure, ahead of bad footings and bad blocks. Every wall needs a 12 in column of #57 gravel directly behind the blocks, full height, with a perforated pipe at the base to carry the water away. The gravel is not decoration and it is not a nice-to-have: it is the part of the wall that stops the water pushing it over. Grade the ground above the wall so water runs away from it, and never let a downspout discharge behind the wall.

Wall types, and what this tool does not do

Most garden walls are gravity walls: dry-stacked segmental blocks that hold the soil back by their own weight, typically 50–60% as thick as they are tall, designed with a 1.5 safety factor under the building code (IBC). Cantilevered walls are different — a rigid T-shaped footing with a vertical stem, usually poured concrete or block with reinforcement — and they are a different job entirely. This tool counts blocks and gravel for gravity-type segmental walls. It does not do stability design, it does not size geogrid, and it does not check soil pressure. If your wall is over 4 ft, on a slope, or holding back a driveway or a building, get an engineer — the table below says so plainly, and the tool says so too.

Block and gravel prices in 2026 — planning ranges, not quotes

All prices below are 2026 planning ranges, not quotes. Block material is priced per square foot of wall face (UseCalcPro; HomeAdvisor/Angi/HomeGuide cross-checks). Labour is shown only as the installed comparison band — no labour multiplier is invented anywhere on this page.

  • Segmental SRW (Allan Block, Versa-Lok, Belgard): $4–$9/sq ft of face.
  • CMU (concrete masonry unit): $1.50–$3.00/sq ft of face.
  • Interlocking architectural: $5–$12/sq ft of face.
  • Natural stone: $8–$20/sq ft of face.
  • Caps: +$1–$3 per linear foot.
  • Gravel: $40–$75/yd3.
  • Delivery: $100–$400 per pallet of blocks.
  • Installed, all-in: concrete block $20–$55/sq ft (UseCalcPro); HomeGuide $20–$50/sq ft; Angi national average $6,077, typical range $3,194–$9,201.

Blocks per course by wall length

Block size10 ft wall20 ft wall30 ft wall40 ft wall
16×8 in blocks8152330
12×8 in blocks10203040

How high can you build — and when to get an engineer

Wall heightWhat it means
Up to 3 ftStandard block and gravel construction; a competent DIY job with a level base and drainage.
3–4 ftGeogrid reinforcement and a level, compacted base become important — get advice before you build.
Over 4 ftAn engineer and a permit in most places. The tool says so and does not pretend otherwise.
The buried course is about 1/10 of the wall’s height — one course below ground on a typical garden wall.

Cost by wall material — installed and materials

MaterialMaterial $/sq ft of face (UseCalcPro)Installed $/sq ft (HomeGuide / Angi)
Segmental SRW$4–$9$20–$50
CMU$1.50–$3.00$20–$55
Interlocking architectural$5–$12$20–$50
Natural stone$8–$20$20–$55

Worked example: a 20 ft wall, 3 ft high

Test 1 — 20 ft long, 3 ft high, 16×8 in blocks, segmental SRW. Blocks per course = 20 / (16/12) = 20 / 1.33 = 15 blocks. Courses = 3 / (8/12) = 3 / 0.67 = 4.5, rounded up to 5 above ground, + 1 buried = 6 courses. Total blocks = 15 x 6 = 90 blocks. Caps = 15. Face area = 20 x 3 = 60 sq ft. Base gravel = 20 x 2 x 0.5 / 27 = 0.74 yd3 (1.04 t). Backfill gravel = 20 x 1 x 3 / 27 = 2.22 yd3 (3.13 t). Gravel total = 2.96 yd3 (4.17 t). Gravel cost = 2.96 x $40–$75 = $118–$222. Blocks = 60 sq ft x $4–$9 = $240–$540. Caps = 20 LF x $1–$3 = $20–$60. Materials total = $378–$822. Installed comparison = 60 sq ft x $20–$50 = $1,200–$3,000 (HomeGuide, 2026).

Test 2 — 10 ft long, 2 ft high, 16×8 in blocks, segmental SRW. Blocks per course = 10 / 1.33 = 7.5, rounded up = 8 blocks. Courses = 2 / 0.67 = 3, + 1 buried = 4 courses. Total blocks = 8 x 4 = 32 blocks. Caps = 8. Face area = 20 sq ft. Base gravel = 10 x 2 x 0.5 / 27 = 0.37 yd3 (0.52 t). Backfill = 10 x 1 x 2 / 27 = 0.74 yd3 (1.04 t). Gravel total = 1.11 yd3 (1.57 t). Gravel cost = 1.11 x $40–$75 = $44–$83. Blocks = 20 sq ft x $4–$9 = $80–$180. Caps = 10 LF x $1–$3 = $10–$30. Materials total = $134–$293.

Retaining walls in Texas

Caliche is hard to dig and good to build on — a retaining wall in Lubbock sits on a firm base, which is the one advantage the ground gives you. The trade-off is the water: when it does rain, it runs off hard ground fast, so grade the soil above the wall away from the top and keep the drainage pipe clear. Never let a downspout discharge behind the wall — a roof’s worth of water in a West Texas storm will push on any wall, however well it was built.

Mistakes to avoid

  • No buried course. A wall that starts at ground level has nothing holding its base. Bury one course — about a tenth of the wall’s height.
  • No drainage gravel or pipe. Water behind the wall is hydrostatic pressure, and it is the number one cause of failure. Twelve inches of #57 gravel and a perforated pipe, always.
  • Building over 4 ft without an engineer or a permit. The forces grow faster than the height. Over 4 ft, get an engineer — this tool says so and will not design the wall for you.
  • A downspout discharging behind the wall. Roof water belongs in a drain, not in the backfill. Move the downspout or pipe it away.

Frequently asked questions

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

The retaining wall calculator says 90 blocks for a 20 ft long, 3 ft high wall with 16×8 in segmental blocks: 15 blocks per course, 6 courses (5 above ground plus 1 buried), plus 15 caps. Change the height or the block size and the count changes — a 2 ft wall needs 32 blocks.

Do I need a buried course?

Yes — one course below ground, about a tenth of the wall’s height. It anchors the base and keeps the first visible course from sliding forward. A wall with no buried course is the most common DIY failure after drainage.

Do I need drainage behind a retaining wall?

Yes — gravel and a pipe, always. A 12 in column of #57 gravel behind the wall, full height, with perforated pipe at the base, stops water pressure building up. Hydrostatic pressure is the number one cause of wall failure.

Can you build a retaining wall in winter?

Yes — if it is a dry-stacked segmental wall and the ground is not frozen. Allan Block’s winter-construction guide says segmental walls can be built year-round, because the blocks are designed to flex a little with the ground instead of needing a footing below frost depth. The stop line is frozen ground: never build on it, because frozen soil cannot be compacted and the wall settles unevenly when it thaws — Allan Block says that alone can cause a wall to fail. Clear any frost first, or wait for a thaw. Mortared walls are different: mortar needs to stay above 40°F while it is laid and for at least 48 hours after, or the water in it freezes before it sets and the joints come out weak and crumbly. Concrete footings need the same protection. Drainage matters even more in winter — water trapped behind a wall that freezes pushes it out of place, so the gravel and pipe go in on thawed ground. In Lubbock, winter days are often mild enough — December highs average around 54°F — so a dry, unfrozen day works fine; a hard freeze is the day to wait.

How high can I build without an engineer?

About 3–4 ft, depending on the block system and the soil — and you must check local rules, because permit thresholds vary. Over 4 ft, an engineer and a permit are needed in most places. This tool does not do stability design, geogrid sizing or soil-pressure checks.

What blocks are best for a retaining wall?

Segmental interlocking blocks — dry-stacked, no mortar. They lock together, flex a little with the ground, and the manufacturer’s system includes the caps and the geogrid for taller walls. Natural stone looks better and costs more; CMU is the cheapest material and needs a footing and a finish.

Related tools

Gravel Calculator | Cubic Yard Calculator | Paver Calculator

Sources and further reading

UseCalcPro (block material and installed bands) · HomeGuide ($20–$50/sq ft installed) · Angi (national average $6,077) · VERSA-LOK and Allan Block installation guides · IRC R105.2 (work exempt from permit — check your local rules).

This retaining wall calculator was last reviewed on Nov 9, 2026. Prices are 2026 planning ranges, not quotes — check with your local supplier before ordering. Spotted a mistake or a price that has moved? Tell us and we will check it and correct the page.

Need a pro in Lubbock?

If the wall is over 4 ft, on a slope, or holding back a driveway, get a local pro — and an engineer — before you build. See Landscaping Lubbock for local installed quotes.

One last check before you order: run this retaining wall calculator twice — once with the standard 16×8 in block and once with the 12×8 in block — and compare the block counts and the materials totals. The cheaper block is not always the cheaper wall. Whatever you choose, measure the length and height twice: the retaining wall calculator is only as accurate as the measurements you give it.