Retaining Wall Calculator

Blocks, caps, base gravel and wall rock, with the buried course added.

ft
ft
in
in
in
Load ticket
 
  •  
  •  
  •  
  •  
  •  

Base sizes follow Allan Block's residential guide. Your block maker's guide may differ; use theirs.

Drawing updates as you type. Not to scale.

Courses, blocks and base

A block wall is laid in courses. Part of the first course sits below ground: Allan Block's guide buries 1 inch for each foot of wall height. Add that to the height you want above ground, divide by the block height and round up for courses. Multiply by the blocks per course, the wall length divided by the block length.

The same guide sizes the base trench at 18 inches wide and 4 inches deep for walls under 4 feet, and 24 by 6 inches above that, filled with compacted wall rock. It also fills 12 inches behind the blocks with wall rock, which the calculator counts for the full height.

Use your block's face size from the maker, not the depth. Caps are counted by length along the top. Walls over 4 feet are shown with a warning and need an engineer.

Base trench and buried course

Wall heightTrench widthBase depthBuried block
Under 4 ft18 in4 in1 in per ft of height
4 ft and up24 in6 in1 in per ft of height

Plus 12 in of wall rock behind the block. Source: Allan Block, Basic Installation (residential retaining walls), checked Nov 1, 2026. Every number is listed on How we calculate.

Worked examples

  1. Garden wall 20 ft long, 3 ft high, 18 × 8 in blocks: 70 blocks Open this job
  2. Same wall, caps: 14 caps Open this job
  3. Same wall, base gravel: 0.37 yd³ Open this job
  4. Edging wall 30 ft, 2 ft high, 12 × 4 in blocks, no caps: 210 blocks Open this job
This estimates material only. It is not a structural design. Walls over 4 ft, walls with a slope or a load above them, and walls near a property line need an engineer and often a permit. Follow your local code and the block maker's guide.