Home / Retaining Wall Calculator

Retaining Wall Calculator

Enter the length and height of the wall and the face size of your block. Get the blocks per row, total blocks including the buried course, cap blocks, and the gravel for the base and the drainage zone.

Wall

ft
ft
rows

Block

in
%
Prices (optional)
$
$
$
Wall blocks
0blocks
Blocks per row
0
Rows (incl. buried)
0
Cap blocks
0
Base gravel (6 × 24 in trench)
0
Drainage stone (12 in behind)
0
Material cost
-

How to use the retaining wall calculator

  1. Measure the wall length along the face, in feet. For curved walls, lay a hose along the line and measure the hose.
  2. Enter the exposed height above the finished ground.
  3. Keep the buried row. The first course sits below grade in the trench for stability; manufacturers usually require one buried row per foot or so of wall height on taller walls.
  4. Choose the block face size. It is the visible width and height of one block, listed on the product page.

Retaining wall formulas

Blocks per row = wall length (in) ÷ block width
Rows = wall height (in) ÷ block height + buried rows
Blocks = blocks per row × rows × (1 + waste %)
Base gravel = length × 2 ft wide × 0.5 ft deep ÷ 27
Drainage stone = length × 1 ft × total wall height ÷ 27

Worked example

A 30 ft long, 3 ft tall garden wall built with 12 × 4 inch blocks needs 30 blocks per row and 9 visible rows plus 1 buried row, for 300 blocks, or 315 with 5% extra. You also need 30 cap blocks. The 6 inch deep, 24 inch wide gravel base is 1.1 cubic yards, and a 12 inch drainage zone behind the visible wall takes about 3.3 cubic yards of clean stone, or a little more to include the buried row.

Building a wall that lasts

Need more base material or topsoil for the planting bed behind the wall? Use the gravel and topsoil calculators.

Estimates for planning only. Follow the block manufacturer's installation guide and local building code.

Frequently asked questions

How many retaining wall blocks do I need?

Divide the wall length by the block width to get blocks per row, divide the height by the block height to get rows, add the buried row, and multiply. A 30 ft long, 3 ft tall wall of 12 × 4 inch blocks needs about 300 blocks plus 5% extra.

How much gravel do I need for a retaining wall base?

A trench about 24 inches wide with 6 inches of compacted gravel uses roughly 1 cubic yard per 27 feet of wall.

How tall can a retaining wall be without an engineer?

Many codes allow gravity block walls up to about 3 to 4 feet without engineering. Anything taller, or walls supporting driveways or slopes, usually needs an engineered design and a permit.

How deep should the first row of retaining wall blocks be buried?

Usually at least one full block, or about 10% of the wall height, whichever is more. Check the manufacturer's instructions.

Do retaining walls need drainage?

Yes. Clean stone backfill at least 12 inches thick and a perforated drain pipe at the base relieve water pressure, which is the main reason walls bulge or fail.

More home project calculators

Last updated October 2026.