🏠
🏠 Home & living

Retaining Wall Calculator (block wall: blocks, caps, gravel)

Results update as you type.

Your numbers

Understanding the retaining wall block calculator — concept and principle

This calculator estimates the blocks, cap units and gravel needed for a segmental block retaining wall, and flags when the International Residential Code requires an engineered design. Homeowners and landscapers use it to price a garden wall.

Courses × blocks per courseCourses × blocks per course: ⌈1,050 ÷ 150⌉ = 7 courses incl. 1 buried, ⌈8,000 ÷ 400⌉ = 20 blocks per course → 140 blocks + 20 caps · 3.24 m³ gravelCourses × blocks per course⌈1,050 ÷ 150⌉ = 7courses incl. 1 buried⌈8,000 ÷ 400⌉ = 20blocks per course140 blocks+ 20 caps · 3.24 m³ gravel
Courses × blocks per course: with the default inputs the result is 140 blocks (+ 20 caps · 3.24 m³ gravel).

How it is calculated

The principle

A segmental retaining wall is a stack of interlocking blocks. The lowest course is buried for stability, so the wall is taller than what you see. A compacted gravel pad gives a level, firm base, and free-draining gravel behind the blocks lets water escape so pressure does not build up behind the wall. Soil pushes harder the taller the wall, so beyond modest heights the wall needs a design with reinforcement such as geogrid, and the code sets the height limits.

Worked example

Default inputs: wall 8 m long, 0.9 m exposed, 1 buried course, blocks 400 × 150 mm, pad 600 × 150 mm, drainage zone 300 mm, no extra load.

  1. Total height = 0.9 + 1 × 0.15 = 1.05 m.
  2. Courses = ⌈1,050 ÷ 150⌉ = 7; blocks per course = ⌈8,000 ÷ 400⌉ = 20.
  3. Wall blocks = 7 × 20 = 140; cap units = 20.
  4. Base gravel = 8 × 0.6 × 0.15 = 0.72 m³; drainage = 8 × 0.3 × 1.05 = 2.52 m³; total 3.24 m³.
  5. 0.9 m retained with no extra load: not by the height rule alone.
How Wall blocks changes with Block face length (mm)How Wall blocks changes with Block face…0100200300400500600100200300400500600800Example: 140Block face length (mm)
Each point is the calculator re-run with only “Block face length (mm)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Block face length (mm)Wall blocks
100560
200280
300189
400140
500112
60098
80070

How to read the result

Add blocks for cuts, corners and breakage. Follow the block maker's instructions for setback, buried depth, pad size and geogrid, which can change the quantities. A wall near a driveway, building or slope above may count as loaded, which lowers the height at which engineering is required.

Common mistakes

Keep in mind: Retaining walls can fail dangerously. Real designs need local building codes and a qualified professional, especially above the IRC limits or where loads, slopes or poor soils are present. Locate buried services before digging.

Frequently asked questions

How many blocks for an 8 m wall 0.9 m high?

About 140 blocks of 400 × 150 mm with one buried course, plus 20 caps.

When does a retaining wall need an engineer?

Under IRC R404.4, when it retains more than 48 in (1.22 m) of soil, or more than 24 in with extra loads.

Why is gravel needed behind the wall?

It drains water so pressure does not build up behind the blocks.

Sources: International Residential Code, §R404.4 Retaining walls

Checked 9 Nov 2026. International Residential Code (as adopted in the 2025 California Residential Code), §R404.4 Retaining walls (design required above 48 in of unbalanced fill, or above 24 in with additional lateral loads; safety factor 1.5 against sliding and overturning). Quantities by geometry; base pad and drainage-zone sizes are your inputs — use the block manufacturer’s values.

🏠 All home & living tools →🌍 Calculators by country →