Skip to main content

CalcDune

Home / Construction Calculators / Retaining Wall Calculator

Retaining Wall Calculator

Count wall blocks, caps, base gravel and drainage for a block retaining wall that stays standing.

Retaining Wall Calculator

Blocks, cap stones, drainage gravel, pipe and fabric for a segmental retaining wall.

How this is calculated

Courses = height ÷ block height (+ buried base courses). Blocks per course = length ÷ block length. Gravel = leveling base (6 in) + drainage zone behind the wall.

Enter wall length and height, choose a block size, and get the number of courses, wall blocks, cap blocks, base and drainage gravel, perforated pipe, geotextile fabric, total block weight and cost — with safety notes for taller walls.

Results are estimates for planning purposes only. Real-world quantities depend on site conditions, materials and workmanship. Always verify measurements, follow local building codes and confirm quantities with your supplier or a qualified professional before ordering or building.

About the Retaining Wall Calculator

A retaining wall fails from the back, not the front — water pressure and bad drainage topple more walls than weak blocks ever do. This calculator sizes segmental block walls: wall blocks, cap blocks, tons of base gravel, plus the drainage pipe and backfill gravel the wall needs to survive. It also flags the height limits where a DIY wall needs engineering.

How to use

  1. Enter the wall length and the exposed height in feet — measure the tallest point, since block count follows it.
  2. Enter your block face dimensions, for example 16 by 8 inches for a standard wall block.
  3. Enter the cap block length so the top row is counted separately.
  4. Set waste to 5 percent for straight walls, 10 percent for curves, corners and stepped ends.
  5. Do not skip the gravel and drainage lines — base material, backfill and drain pipe are not optional.

Understanding your results

The block count covers the wall face including the buried first course, rounded up with waste. Cap blocks cover the top row only. Base gravel is in tons for the compacted leveling pad; backfill gravel is the drainage zone behind the wall; drain pipe matches the wall length in one continuous run.

How the calculation works

Wall face area is length times height. Dividing by one block face area (width times height in feet) gives the block count, plus waste, rounded up. Caps are wall length divided by cap length. The base assumes a 6-inch compacted pad twice as wide as the block depth; backfill assumes a 12-inch gravel zone behind the full height, with one run of 4-inch perforated pipe at the base.

Retaining Wall Calculator FAQs

Most codes allow gravity block walls up to 3 to 4 feet of exposed height without an engineered design — check your local limit, since many cities require a permit and engineering above 4 feet. Taller walls need geogrid reinforcement, deeper embedment and drainage design. When in doubt, terrace the slope into two shorter walls instead of building one tall one.
Yes — water trapped behind a wall creates hydrostatic pressure that can push it over, and it is the most common cause of wall failure. Every wall needs a perforated drain pipe at the base draining to daylight, plus at least 12 inches of gravel backfill behind the blocks. Landscape fabric between the gravel and the soil keeps the drainage zone from clogging with silt.
About 75 standard blocks. The face area is 20 times 3 equals 60 square feet; a 16×8 inch block covers 0.89 square feet, so 60 divided by 0.89 is 68 blocks, plus 10 percent waste gives 75. Add 20 cap blocks for a 12-inch cap (20 feet divided by 1 foot each), plus the buried base course the calculator includes.
Geogrid is a synthetic mesh laid between block courses and extending back into the soil, tying the wall to the earth behind it. It is typically required for walls over 3 to 4 feet tall, walls supporting a slope or driveway above, and any engineered wall. Layers usually go every other course, extending back about 60 to 70 percent of the wall height.
Yes — bury the first course plus about 6 inches of compacted gravel base, which typically means the bottom block sits 6 to 8 inches below finished grade. The rule of thumb is to bury one-tenth of the wall height, minimum one full block. A buried base course locks the wall against sliding and hides minor settling.
Nabil Sharif, founder of CalcDune

Written by

Nabil Sharif

Founder of CalcDune — a free library of 137 online calculators for finance, health and everyday math. Every calculator shows the formula behind its result, so you can see exactly how your numbers are worked out.

More articles by Nabil →

Related Calculators