Retaining Wall Calculator

A 4 × 40 ft wall = 160 ft² face. 264 blocks + 30 caps + 5.93 yd³ backfill + 40 ft drain + 1 geogrid layer. Geogrid every 2 ft above 3 ft. NCMA: gravity ≤ 3 ft, geogrid > 3 ft. Backfill: 12″ washed gravel full height. Drain: 4″ pipe at base. Cap adds 2–3″.

Units

Retaining wall materials

264 blocks + 30 caps + 5.93 yd³ backfill + 40 ft drain + 1 geogrid layer

Example values. Enter your measurements above to see your result.

Wall face area
160.0 ft²
Block face area
0.67 ft²
Blocks needed (with waste)
264 blocks
Cap blocks
30 caps
Backfill gravel (12″ washed)
5.93 yd³ (160.0 ft³)
Drain pipe (4″ perforated)
40 ft
Foundation gravel base (6″ × 24″)
1.48 yd³
Geogrid layers
1 layer
Geogrid length per layer
2.40 ft
Total geogrid area
10.67 yd²

Standard block: 6″ × 16″ × 12″ (H×L×D), face = 0.67 ft². Cap: 3″ × 16″ × 12″.

Backfill: 12″ min washed gravel (¾″ clean) behind full wall height. NCMA recommends 1 ft minimum.

Drain: 4″ perforated corrugated pipe at base, wrapped in filter fabric, sloped 1% to daylight or sump.

Geogrid: required for walls > 3 ft (NCMA). 1 layer at 2 ft spacing. Grid length = 0.6 × wall height = 2.40 ft. Use biaxial geogrid (Miragrid, StrataGrid).

Foundation: 6″ compacted gravel base, 24″ wide, below frost line. 1.48 yd³ gravel.

10% waste included for blocks. Complex layouts: use 15%.

Walls > 4 ft or with surcharge require engineer design (IBC 1807.2). This calculator estimates materials only.

Checked by the Yardstick Math team · How we check

Need the concrete for the footing or core fill? Use the concrete calculator.

Worked examples

Gravity wall — 3 ft × 30 ft, standard block, 10 % waste

  1. Face area = 3 × 30 = 90 ft²
  2. Block face = 6″ × 16″ = 96 in² = 0.67 ft²
  3. Blocks = ceil(90 ÷ 0.67) × 1.10 = 149 blocks
  4. Caps = ceil(30 ÷ 1.33) = 23 caps
  5. Backfill = 30 × 1 × 3 ÷ 27 = 3.33 yd³ gravel
  6. Drain pipe = 30 ft perforated pipe
  7. Geogrid = 0 (height ≤ 3 ft)

Result: 149 blocks, 23 caps, 3.3 yd³ backfill, 30 ft drain, no geogrid

Checked by the automated test “retaining-wall — 3 ft × 30 ft gravity wall → 149 blocks, 23 caps, 1.11 yd³ backfill, 30 ft drain, 0 geogrid”.

Reinforced wall — 5 ft × 50 ft, standard block, 10 % waste

  1. Face area = 5 × 50 = 250 ft²
  2. Blocks = ceil(250 ÷ 0.67) × 1.10 = 413 blocks
  3. Caps = ceil(50 ÷ 1.33) = 38 caps
  4. Backfill = 50 × 1 × 5 ÷ 27 = 9.26 yd³ gravel
  5. Drain pipe = 50 ft
  6. Geogrid layers = floor((5 - 2) / 2) = 1 layer
  7. Grid length = 0.6 × 5 = 3 ft → grid area = 50 × 3 = 150 ft² = 16.7 yd²

Result: 413 blocks, 38 caps, 9.3 yd³ backfill, 50 ft drain, 1 geogrid layer (16.7 yd²)

Checked by the automated test “retaining-wall — 5 ft × 50 ft reinforced wall → 412 blocks, 38 caps, 1.85 yd³ backfill, 50 ft drain, 1 geogrid layer”.

Reinforced wall — 4 ft × 40 ft, standard block, 10 % waste (transition height)

  1. Face area = 4 × 40 = 160 ft²
  2. Blocks = ceil(160 ÷ 0.67) × 1.10 = 264 blocks
  3. Caps = ceil(40 ÷ 1.33) = 30 caps
  4. Backfill = 40 × 1 × 4 ÷ 27 = 5.93 yd³ gravel
  5. Drain pipe = 40 ft perforated pipe
  6. Geogrid layers = floor((4 - 2) / 2) = 1 layer at 2 ft height
  7. Grid length = 0.6 × 4 = 2.4 ft → grid area = 40 × 2.4 = 96 ft² = 10.7 yd²

Result: 264 blocks, 30 caps, 5.9 yd³ backfill, 40 ft drain, 1 geogrid layer (10.7 yd²)

Checked by the automated test “retaining-wall — 4 ft × 40 ft reinforced wall (transition) → 264 blocks, 30 caps, 5.93 yd³ backfill, 40 ft drain, 1 geogrid layer”.

Metric — 1.5 m × 15 m reinforced wall, 200 mm block, 15 % waste

  1. Face area = 1.5 × 15 = 22.5 m²
  2. Block face = 200 mm × 400 mm = 0.08 m² → blocks = ceil(22.5 ÷ 0.08) × 1.15 = 324 blocks
  3. Caps = ceil(15 ÷ 0.4) = 38 caps (cap length 400 mm)
  4. Backfill = 15 m × 0.3 m (depth) × 1.5 m (height) = 6.75 m³ = 8.8 yd³ gravel
  5. Drain pipe = 15 m = 49 ft perforated pipe
  6. Geogrid: height 1.5 m > 0.9 m (3 ft) → layers = floor((1.5 - 0.6) / 0.6) = 1 layer at 0.6 m
  7. Grid length = 0.6 × 1.5 = 0.9 m → grid area = 15 × 0.9 = 13.5 m² = 16.1 yd²

Result: 324 blocks, 38 caps, 6.8 m³ backfill, 15 m drain, 1 geogrid layer (13.5 m²)

Checked by the automated test “retaining-wall — metric: 1.5 m × 15 m wall, 200 mm × 400 mm block, 15% waste → 324 blocks, 38 caps, 6.75 m³ backfill, 15 m drain, 1 geogrid layer”.

Low garden wall — 2 ft × 20 ft, standard block, 10 % waste

  1. Face area = 2 × 20 = 40 ft²
  2. Blocks = ceil(40 ÷ 0.67 × 1.10) = 66 blocks
  3. Caps = ceil(20 ÷ 1.33) = 15 caps
  4. Backfill = 20 × 1 × 2 ÷ 27 = 1.48 yd³ gravel
  5. Drain pipe = 20 ft perforated pipe
  6. Geogrid = 0 (height ≤ 3 ft, gravity wall per NCMA)
  7. Foundation gravel = 20 × 2 × 0.5 ÷ 27 = 0.74 yd³

Result: 66 blocks, 15 caps, 1.5 yd³ backfill, 20 ft drain, no geogrid, 0.74 yd³ foundation gravel

Checked by the automated test “retaining-wall — 2 ft × 20 ft garden wall → 66 blocks, 15 caps, 1.48 yd³ backfill, 20 ft drain, 0 geogrid”.

Tall reinforced wall — 6 ft × 60 ft, standard block, 10 % waste

  1. Face area = 6 × 60 = 360 ft²
  2. Blocks = ceil(360 ÷ 0.67 × 1.10) = 594 blocks
  3. Caps = ceil(60 ÷ 1.33) = 45 caps
  4. Backfill = 60 × 1 × 6 ÷ 27 = 13.33 yd³ gravel
  5. Drain pipe = 60 ft perforated pipe
  6. Geogrid layers = floor((6 − 2) ÷ 2) = 2 layers (at 2 ft and 4 ft)
  7. Grid length = 0.6 × 6 = 3.6 ft → grid area = 60 × 3.6 × 2 ÷ 9 = 48 yd²

Result: 594 blocks, 45 caps, 13.3 yd³ backfill, 60 ft drain, 2 geogrid layers (48 yd²)

Checked by the automated test “retaining-wall — 6 ft × 60 ft reinforced wall → 594 blocks, 45 caps, 13.33 yd³ backfill, 60 ft drain, 2 geogrid layers (48 yd²)”.

How it works

Wall face area (ft²) = height (ft) × length (ft)

Block face area (ft²) = block height (in) × block length (in) ÷ 144

Blocks needed = ceil(wall face area ÷ block face area) × (1 + waste %)

Cap blocks = ceil(wall length (ft) ÷ cap length (ft))

Backfill volume (yd³) = wall length (ft) × 1 ft (depth) × wall height (ft) ÷ 27

Drain pipe (ft) = wall length (ft)

Geogrid layers = floor((wall height (ft) - 2) / 2) if height > 3 ft else 0

Geogrid area (yd²) = sum of (wall length × grid length) per layer, grid length = 0.6 × wall height

Assumptions

  • Standard block: 6″ × 16″ × 12″ (H×L×D), face area = 0.67 ft². Cap: 3″ × 16″ × 12″.
  • Waste factor 10 % for cuts, corners, breakage. Complex layouts: 15 %.
  • Backfill: 12″ min washed gravel (¾″ clean) behind wall, full height. NCMA recommends 1 ft min.
  • Drain: 4″ perforated corrugated pipe at base, wrapped in filter fabric, sloped 1 % to daylight or sump.
  • Geogrid: required for walls > 3 ft (NCMA). Place every 2 ft vertical, length = 0.6 × wall height (AASHTO/FHWA).
  • Foundation: compacted gravel base 6″ thick, 24″ wide, below frost line. Not included in block count.
  • This calculator estimates materials only. Walls > 4 ft or with surcharge need engineer design (IBC 1807.2).

Reference table

Common retaining wall sizes — blocks, caps, backfill (standard 6×16×12 block, 3×16×12 cap, 10 % waste)
Wall H × LBlocksCapsBackfill yd³
2 ft × 20 ft66151.48
3 ft × 30 ft149233.33
4 ft × 40 ft264305.93
5 ft × 50 ft413389.26
6 ft × 60 ft5944513.33

Backfill = 12″ washed gravel behind wall, full height. Geogrid every 2 ft above 3 ft. Foundation gravel base not included.

How to Calculate Retaining Wall Materials

Step 1: Face Area — Wall height (ft) × wall length (ft) = face area in ft².

Step 2: Block Count — Face area ÷ block face area (0.67 ft² for standard 6″×16″ block) = raw blocks. Multiply by 1.10 for 10 % waste. Round up to full pallets (48–54 blocks/pallet).

Step 3: Cap Blocks — Wall length (ft) ÷ cap length (1.33 ft for 3″×16″ cap) = cap count. Round up.

Step 4: Gravel Backfill — Wall length × 1 ft depth × wall height ÷ 27 = yd³ of ¾″ washed gravel (AASHTO #57).

Step 5: Drain Pipe — 4″ perforated pipe = wall length (ft). Slope ⅛″ per ft to daylight.

Step 6: Geogrid (walls > 3 ft) — One layer every 2 ft of height above 3 ft. Grid length = 0.6 × wall height. Area = wall length × grid length per layer.


Worked Example — 4 ft × 40 ft Reinforced Wall

  1. Face area = 4 × 40 = 160 ft²
  2. Blocks = ceil(160 ÷ 0.67) × 1.10 = 240 × 1.10 = 264 blocks
  3. Caps = ceil(40 ÷ 1.33) = 30 caps
  4. Backfill = 40 × 1 × 4 ÷ 27 = 5.93 yd³ gravel
  5. Drain pipe = 40 ft perforated pipe
  6. Geogrid = floor((4-2)/2) = 1 layer at 2 ft height; grid length = 0.6 × 4 = 2.4 ft → 40 × 2.4 = 96 ft² = 10.7 yd²

Common Wall Sizes (Quick Reference)

Wall H × L Blocks Caps Backfill yd³
2 ft × 20 ft 66 15 1.48
3 ft × 30 ft 149 23 3.33
4 ft × 40 ft 264 30 5.93
5 ft × 50 ft 413 38 9.26
6 ft × 60 ft 594 45 13.33

Standard 6″×16″×12″ block, 3″×16″×12″ cap, 10 % waste. Backfill = 12″ washed gravel full height. Geogrid every 2 ft above 3 ft. Foundation base not included.


Common Mistakes to Avoid

Mistake Why It Fails
Skipping the drainage pipe Water behind the wall is the #1 cause of failure. A 4″ perforated pipe at the base, wrapped in filter fabric, sloped to daylight, is non-negotiable. Without it, hydrostatic pressure pushes the wall over.
Using native soil as backfill Clay and silt hold water and swell — they push the wall. Use ¾″ clean washed gravel (AASHTO #57) for the full 12″ behind the wall. Native soil goes on top of the gravel, not against the block.
Building a gravity wall too tall Gravity walls (no geogrid) max out at 3 ft per NCMA. At 4 ft you need geogrid reinforcement every 2 ft. At 6 ft+ you need an engineer — the forces exceed what simple grids handle.
Forgetting the foundation base Blocks don’t sit on dirt. You need 6″ compacted gravel (¾″ minus), 24″ wide, level, below frost line. A 40 ft wall needs 1.8 yd³ base gravel. Skipping this = settlement = wall failure.
No geogrid on tall walls Geogrid isn’t optional over 3 ft. One layer at mid-height for 4 ft walls, two layers (2 ft and 4 ft) for 6 ft walls. Grid length = 0.6 × wall height. Use Miragrid, StrataGrid, or equivalent biaxial geogrid.

Sources

Common mistakes

Frequently asked questions

How many retaining wall blocks do I need?

Divide wall face area (height × length in feet) by block face area (0.67 ft² for standard 6″×16″ block). A 3×30 ft wall = 90 ft² ÷ 0.67 = 134 blocks. Add 10 % waste = 148 blocks. Round up to full pallets (typically 48–54 blocks/pallet).

How much gravel backfill for a retaining wall?

12″ (1 ft) of ¾″ washed gravel behind the full wall height. Volume = wall length (ft) × 1 ft × wall height (ft) ÷ 27 = cubic yards. A 30 ft × 3 ft wall needs 30 × 1 × 3 ÷ 27 = 3.3 yd³. This is in ADDITION to the 6″ foundation base.

Do I need a drain pipe behind my retaining wall?

YES — always. 4″ perforated corrugated pipe at the base, wrapped in filter fabric, sloped 1 % (⅛″ per ft) to daylight or a sump. Without drainage, water builds up, hydrostatic pressure pushes the wall, and it fails. This is the #1 reason walls collapse.

When do I need geogrid for a retaining wall?

Walls over 3 ft tall (NCMA). Place geogrid every 2 ft of wall height: one layer at 2 ft for a 4 ft wall, two layers at 2 ft and 4 ft for a 6 ft wall. Grid length = 0.6 × wall height. Use biaxial geogrid (Miragrid, StrataGrid). Walls over 4 ft with surcharge need an engineer.

How much does a retaining wall cost?

DIY block wall: $15–30/ft² face (blocks, caps, gravel, pipe, geogrid). A 3×30 ft wall (90 ft²) = $1,350–2,700 materials. Installed by pro: $40–100/ft² = $3,600–9,000. Concrete/masonry walls cost more. Get 3 quotes.

Sources

Formula, examples and sources checked on by the Yardstick Math team. How we check our formulas.

  1. Design Manual for Segmental Retaining Walls, 3rd Edition — National Concrete Masonry Association (NCMA), accessed
  2. FHWA NHI-10-024 — Design and Construction of Mechanically Stabilized Earth Walls and Reinforced Soil Slopes — Federal Highway Administration, accessed
  3. AASHTO LRFD Bridge Design Specifications, Section 11 — Abutments, Piers, and Walls — AASHTO, accessed
  4. ASTM D6638 — Determining Geogrid Tensile Properties — ASTM International, accessed