HowMuchStuff

Retaining Wall Calculator

By Taro Schenker | Updated February 18, 2026

Quick Answer: To calculate retaining wall blocks, divide wall length by block length for blocks per row, then divide wall height by block height for rows. Multiply together and add 5% waste. For a 20 ft long, 3 ft tall wall with standard 12"x4"x8" blocks: 30 blocks/row x 9 rows = 270 blocks, plus 5% waste = 284 blocks. You also need approximately 0.74 cu yd of base gravel (6" deep x 24" wide), 2.22 cu yd of drainage gravel, and 120 sq ft of filter fabric.

Calculate exactly how many retaining wall blocks, cap stones, gravel, and filter fabric you need for your project. Enter your wall dimensions and block size to get a complete materials list with estimated cost.

How to Calculate Retaining Wall Blocks

The formula for calculating retaining wall blocks:

Blocks = (Wall Length / Block Length) x (Wall Height / Block Height) x (1 + Waste %)
  1. Measure the total wall length along the face and the desired finished height.
  2. Divide the wall length by the block length (in matching units) to find blocks per row.
  3. Divide the wall height by the block height to find the number of courses (rows).
  4. Multiply blocks per row by rows for the base block count.
  5. Add 5-10% for waste from cuts, breakage, and irregular terrain.
  6. Add one row of cap stones if finishing the top of the wall.

Block Size Reference

Common retaining wall block sizes and their characteristics:

Size (W x H x L)Blocks / lin ftRows / ft heightBest For
12" x 4" x 8"1.53Small walls under 2 ft, garden borders
12" x 6" x 8"1.52Standard residential walls 2-4 ft
18" x 6" x 12"12Large walls, heavy-duty applications

Wall Types Comparison

Choosing the right retaining wall material depends on your budget, wall height, and aesthetic preference:

TypeMax HeightLifespanDIY FriendlyCost Range
Interlocking Block4 ft (DIY)50+ yearsYes$10-15/sq ft
Concrete Block (CMU)6+ ft (engineered)75+ yearsModerate$12-20/sq ft
Natural Stone3 ft (dry stack)100+ yearsModerate$15-30/sq ft
Timber4 ft15-20 yearsYes$8-12/sq ft

Drainage Requirements

Proper drainage is the single most important factor in retaining wall longevity. Without it, hydrostatic pressure from trapped water will push the wall forward and cause failure. Every retaining wall needs these three drainage components:

  • Gravel base: A 6-inch deep compacted gravel pad in a trench at least 24 inches wide. This provides a level, stable foundation and allows water to drain away from the base.
  • Drainage gravel: A 12-inch layer of clean crushed stone (3/4-inch minus) behind the entire wall face. This creates a channel for water to flow downward to the drain pipe.
  • Perforated drain pipe: A 4-inch perforated pipe at the base of the wall, laid on top of the gravel base with holes facing down. Route to daylight or a storm drain.
  • Filter fabric: Landscape fabric between the drainage gravel and the backfill soil. This prevents fine soil particles from migrating into and clogging the gravel. Wrap it over the top of the gravel before backfilling.

When to Hire a Structural Engineer

Retaining walls over 4 feet tall carry significant structural loads and can be dangerous if they fail. You should hire a structural engineer if:

  • The wall will be taller than 4 feet (some jurisdictions require engineering at 3 feet).
  • The wall supports a slope, driveway, or structure above it (surcharge loading).
  • The soil is clay-heavy, expansive, or has a high water table.
  • The wall is near a property line, septic system, or underground utilities.
  • You plan to build tiered walls (multiple walls stacked on a slope).

An engineer will design the wall with proper footing depth, reinforcement, and drainage specifications. Engineering fees typically run $500-$2,000 for residential retaining walls and are well worth the investment for walls that need to last decades.

Formula Summary

Block Count Formula: Calculate retaining wall blocks by dividing wall dimensions by block dimensions, then applying a waste factor.

N(blocks) = ceil(L(wall) / L(block)) x ceil(H(wall) / H(block)) x (1 + W%)

Cap Stones: Cap stones = ceil(L(wall) / L(block)) — one row along the top.

Base Gravel: V(base) = L(wall) x W(base) x D(base) / 27 [cu yd]

Default: W(base) = 24 in, D(base) = 6 in

Drainage Gravel: V(drainage) = L(wall) x H(wall) x 1 ft / 27 [cu yd]

Filter Fabric: A(fabric) = L(wall) x (H(wall) + 3 ft) [sq ft]

Block SizeWidth (in)Height (in)Length (in)
Standard1248
Large1268
Jumbo18612

Standard Assumptions: Default waste factor is 5%. Gravel base is 6 inches deep by 24 inches wide. Drainage gravel is 12 inches deep behind the wall. Filter fabric extends 3 feet beyond the wall height to wrap over the gravel backfill. All gravel volumes converted to cubic yards (divide cubic feet by 27).

Related Calculators

Estimates are for planning purposes only. Consult a qualified contractor for critical projects. Actual material requirements may vary based on site conditions, waste, and installation methods.

Pricing last verified: February 2026. Material prices vary by region, season, and supplier. Prices shown are national averages for planning purposes.

Frequently Asked Questions

How many blocks do I need for a retaining wall?
Divide the wall length by the block length to get blocks per row, then divide the wall height by the block height to get the number of rows. Multiply rows by blocks per row, then add 5-10% for waste. For example, a 20 ft long, 3 ft tall wall using standard 12x4x8 blocks needs about 30 blocks per row and 9 rows, totaling roughly 284 blocks (with 5% waste).
How deep should a retaining wall base be?
The gravel base should be at least 6 inches deep for walls under 4 feet tall. Dig the trench wide enough to extend at least 12 inches behind the wall (24 inches total width is standard). The first course of blocks should sit below grade level by at least 1 inch per 8 inches of wall height. Compact the gravel in 2-3 inch lifts for a solid foundation.
Do I need drainage behind a retaining wall?
Yes. Drainage is critical for retaining wall longevity. Without it, water pressure builds behind the wall and can cause failure. Install a 12-inch layer of drainage gravel behind the wall, a perforated drain pipe at the base, and filter fabric between the gravel and backfill soil. This directs water away from the wall and prevents soil from clogging the gravel.
How tall can a retaining wall be without an engineer?
Most building codes allow DIY retaining walls up to 4 feet tall without a permit or engineering. Walls over 4 feet typically require a structural engineer's design, a building permit, and professional installation. Some jurisdictions set the limit at 3 feet. Always check your local building codes before starting construction.
What type of retaining wall block is best?
Interlocking concrete blocks are the most popular for DIY projects because they stack without mortar and have built-in lips for setback. Natural stone looks best but is harder to install and more expensive. Timber walls are affordable but have a shorter lifespan (15-20 years). Standard concrete blocks (CMU) are the strongest option and best for walls over 3 feet when filled with grout and rebar.
How much gravel do I need behind a retaining wall?
You need gravel in two areas: the base trench and the drainage zone behind the wall. The base trench is typically 24 inches wide by 6 inches deep. The drainage zone behind the wall should be at least 12 inches deep for the full height of the wall. For a 20 ft long, 3 ft tall wall, expect about 0.74 cubic yards for the base and 2.22 cubic yards for drainage — roughly 3 cubic yards total.