Retaining Wall Calculator

Wall size and block in — blocks, caps, courses and gravel out.

Wall & block

Height is the whole wall — bury the base course, so add its depth to the exposed height.

Caps are a finished top row set with masonry adhesive.

Gravel covers a leveling pad under the wall plus a 12 in drainage chimney behind it.

Order

105 blocks

+ 20 cap blocks

Wall blocks · waste included

5 courses × 20 per course

Blocks≈ $420
Caps≈ $120
Gravel≈ $191
Total≈ $731
ELEVATION 20′-0″ 3′-0″ 5 COURSES · 12×8 BLOCK CAP + DRAINAGE STONE BEHIND
Base & backfill gravel ≈ 4.25 tons

Bury the bottom course, level the pad dead flat, and backfill behind the wall with clean drainage stone — not soil.

Summary + link — paste into a quote or text

Estimates, not advice. This calculator exists to give you a working idea of the materials a job needs and a rough cost — not numbers to commit money or construction to. Check the figures yourself, or with an appropriately qualified professional, before you order, quote, or build. Read the full disclaimer

How this retaining wall calculator works

A segmental wall is a grid of blocks, so the count is two rounded divisions — courses up the height, blocks along the length — plus the gravel that makes the wall actually last:

courses = ⌈height ÷ block height⌉ · blocks/course = ⌈length ÷ block length⌉
wall blocks = courses × blocks per course → × (1 + waste) · caps = one course

At the defaults — a 20 ft long, 3 ft high wall in 12 × 8 in block — that is 5 courses of 20, 105 wall blocks with waste plus a 20-block cap course, and about 4.25 tons of base and backfill gravel — roughly $731 in materials; the full chain is in the worked example below.

The parts of a segmental retaining wall

A dry-stacked block wall is more than the blocks you see — it is a drainage system with a face on it. The pieces:

  • Wall blocks: the interlocking units — a lip or pin sets each course back for batter. Common faces are 12 × 8 in and 18 × 6 in.
  • Cap blocks: the finished top course, glued on with masonry adhesive; they shed water and hide the cores.
  • Leveling pad: 4–6 in of compacted crushed stone under the base course — the foundation the whole wall rides on.
  • Drainage stone: clean #57 backfilled behind the wall, with a perforated pipe to daylight — priced on the gravel calculator.
  • Geogrid: soil-reinforcement layers tied into the wall on anything tall or surcharged — engineer-specified.

Base, burial, drainage, and how high you can go

Most failed walls fail at the bottom or from water, not from the blocks. The rules that keep one standing:

  • Bury the base: one inch of block below grade per foot of height, at least one full course — set the wall height in the calculator to include it.
  • Level the pad: 4–6 in of compacted stone, dead flat; the first course sets every course above it.
  • Drain it: clean stone and a perforated pipe behind the wall — water pressure is what pushes walls over.
  • Batter: the built-in setback leans the wall into the slope a little each course.
  • Height limit: 3–4 ft is the usual no-engineer ceiling; taller, or with a slope or driveway above, needs geogrid and a design.

Blocks per square foot, and a whole wall by size

Table 1 is the nominal block count per square foot of wall face by block size; Table 2 runs the standard 12 × 8 in block out to common walls — courses, blocks, caps and gravel.

Table 1 — Nominal blocks per ft² of face
Block faceBlocks / ft²
12 × 8 in1.50
18 × 6 in1.33
16 × 6 in1.50
12 × 4 in3.00
144 ÷ (face length × height) — before course rounding.
Table 2 — 12 × 8 in block by wall size
WallCoursesBlocksCapsGravel
10 × 3553102.25 t
20 × 35105204.25 t
30 × 35158306.25 t
20 × 46126205.25 t
Generated by this calculator's engine — blocks include 5% waste.

How to measure for a retaining wall

  1. Measure the wall length along the face; for a curved or stepped wall, pace the run and total the segments.
  2. Set the total height — exposed height plus the buried base course, from the build guide.
  3. Pick the block face so the course and per-course counts are right for your unit.
  4. Leave the cap course on unless you’re coping the top another way, and set 5% waste for cuts on curves and ends.
  5. Read blocks, caps and gravel, then add pipe, fabric, adhesive and any geogrid from the exclusions below.

Worked example: a 20 × 3 ft retaining wall

The default, worked line by line — 20 ft long, 3 ft high, 12 × 8 in block, cap course, 6 in base pad, 5% waste:

courses = ⌈36 ÷ 8⌉ = 5 · blocks/course = ⌈240 ÷ 12⌉ = 20
wall blocks = 5 × 20 = 100 → ×1.05 = 105 + 20 caps
gravel = (pad 0.74 + backfill 2.22) = 2.96 yd³ × 1.4 = 4.25 t
cost = $420 + $120 + $191 = $731

Go one foot taller to 4 ft and it is a sixth course — 126 blocks and 5.25 tons of gravel, and you are at the height where local code usually starts asking for an engineer. Notice the gravel is a real line: the drainage stone behind a wall routinely costs more than people budget, because a wall without it is a wall on borrowed time.

What this retaining wall estimate doesn’t include

The blocks, caps and gravel are the bulk of the material, but a wall that lasts needs more:

  • Drain pipe and fabric. A perforated pipe to daylight and filter fabric between soil and drainage stone.
  • Cap adhesive. Masonry construction adhesive to set the cap course.
  • Geogrid. Soil-reinforcement grid for tall or surcharged walls — sized by an engineer.
  • Excavation and compaction. Digging the base trench and compacting the pad and backfill in lifts.
  • Base and drainage stone haul. Delivery of the crushed stone, priced by the load.
  • Engineering and permits. Required over the local height threshold — this sizes a standard wall, it isn’t a design.

Retaining wall FAQ

How many blocks do I need for a retaining wall?

Courses = wall height ÷ block height; blocks per course = wall length ÷ block length, both rounded up. A 20 ft long, 3 ft high wall in standard 12 × 8 in block is 5 courses of 20 — 100 wall blocks, 105 with 5% waste, plus a 20-block cap course. That is about $540 in block and cap at the default prices.

How high can I build a retaining wall without an engineer?

Most jurisdictions let a homeowner build a segmental wall up to 3 to 4 ft of exposed height without a permit or engineered design; taller walls, or walls with a slope or surcharge above them, need geogrid reinforcement and an engineer. Always check local code — the threshold is often exactly 4 ft.

How much gravel do I need for a retaining wall?

Two places: a compacted leveling pad under the wall and a drainage chimney of clean stone behind it. The default 20 × 3 ft wall works out to about 2.96 cubic yards — 4.25 tons — with a 6 in base pad and a 12 in drainage zone. The calculator sizes both from the wall dimensions.

How many retaining wall blocks for a 30 foot wall?

A 30 ft long wall at 3 ft high in 12 × 8 in block is 5 courses of 30 — 150 wall blocks, 158 with 5% waste, plus a 30-block cap course, and about 6.25 tons of base and backfill gravel. Longer walls scale the per-course count; taller ones add courses.

Do you need drainage behind a retaining wall?

Yes — water building up behind a wall is what pushes it over. Backfill the first foot behind the blocks with clean #57 drainage stone (never soil), run a perforated drain pipe along the base to daylight, and separate the stone from soil with filter fabric. The gravel figure here covers the stone, not the pipe.

How deep should the base of a retaining wall be?

Bury the bottom course: a rule of thumb is one inch of buried block for every foot of wall height, and at least one full course below grade. Under that sits a leveling pad of 4 to 6 in of compacted crushed stone, dead flat — the base course sets the whole wall, so it is worth the time.

How much does a retaining wall cost?

The default 20 × 3 ft wall is about $731 in materials — block, caps and gravel — at the prices shown. Installed by a contractor, segmental block walls commonly run $25 to $60 per square foot of wall face in 2026, so labor, drainage pipe and any geogrid are most of the delivered cost.

Sources and standards

Block counts are geometry; the wall rules come from manufacturer specs and local code:

  • NCMA / SRW manufacturer specs: block face sizes, batter setback and the base-burial rule of thumb.
  • IRC / local code: the exposed-height threshold (often 4 ft) above which a permit and engineered design are required.
  • Drainage practice: clean stone backfill, perforated pipe to daylight, and filter fabric behind the wall.
  • The engineer of record: tall or surcharged walls are designed with geogrid — this is a planning tool, not a spec.

Embed this retaining wall calculator on your site

Run the retaining wall calculator on your own site, free. Paste the snippet where you want it; the visible credit link is the only condition.

More masonry & hardscape calculators

Order 105 blocks ≈ $731 blocks + caps + gravel