Retaining wall calculator

Wall blocks, caps, base gravel and drainage stone for a segmental retaining wall.

Tip: feet in the first box, inches in the second (leave it empty for whole feet). Working in meters? Switch to m / cm at the top.

30 ft long (part shown)3 ft high
Estimated quantity
315small wall blocks (12×4 in face)

10 courses (one buried) of 30 blocks, plus 30 cap blocks.

  • Base gravel (2 ft wide, 6 in deep)1.6 tons
  • Drainage gravel behind (12 in)4.7 tons
  • Perforated drain pipe30 ft
  • Landscape fabric150 ft²

Material estimate only, not a wall design. Permit and engineering rules often count total height from the bottom of the footing, not just what shows, and a slope, driveway or building above the wall (surcharge) can trigger them on shorter walls. Check with your local building department and follow the block maker's design guide for base, setback, drainage and reinforcement.

Related calculators

Segmental retaining walls are dry-stacked blocks on a compacted gravel base, with drainage stone behind. This calculator counts blocks, caps, base gravel, drainage stone, pipe and fabric for a straight wall. It is a material estimate only: the wall's design comes from the block maker and your local building department.

Worked example: 30 ft of wall, 3 ft high, small 12 × 4 in blocks

  1. Courses: 36 in ÷ 4 in = 9 above ground, plus 1 buried = 10 courses.
  2. Blocks per course: 30 ft ÷ 1 ft = 30. Ten courses = 300, plus 5% = 315 blocks, and 30 caps.
  3. Base trench: 2 ft wide and 6 in deep of compacted gravel, about 1.6 tons.
  4. Drainage stone 12 in behind the wall, about 4.7 tons, with 30 ft of perforated pipe and 150 ft² of fabric.

How to plan it

  • Bury the first course, usually about 10% of the wall height or at least one block.
  • Check the total height from the bottom of the base. Many places require a permit or an engineer above 4 ft, or lower with a slope or a driveway above.
  • Drainage behind the wall matters as much as the blocks: most failures come from water pressure.
  • Curves and corners need special blocks or cuts; add extra.

Block sizes

BlockFaceBlocks per ft² of face
Small12 × 4 in3
Standard16 × 6 in1.5
Large18 × 8 in1

Common mistakes

  • Building on soil instead of a compacted gravel base.
  • Backfilling with dirt right behind the blocks. Use drainage stone and fabric.
  • Skipping the setback. Each course steps back slightly to lean into the hill.

Questions people ask

How many retaining wall blocks do I need?

Face area ÷ block face area, plus a buried course and 5% extra. 30 ft × 3 ft with 12 × 4 in blocks needs about 315.

How deep should the base be?

Usually 6 in of compacted gravel, wider than the block. Follow the block maker's guide.

Do I need a permit?

Often above 4 ft of total height, and sometimes lower if there's a slope or load above. Check with your building department.

Embed this calculator on your site

Free for any website or blog. Paste this code where you want the calculator. It resizes itself, works on phones, and has no ads or tracking.

Sources and limits

Last checked 25 November 2026. References: 2024 International Residential Code. Results are estimates: product labels, your supplier and your local code come first. How we calculate · Report a mistake