Field Service Cost Compare prices

Home/Calculators/Retaining wall calculator

Retaining wall calculator: blocks, caps and drainage stone

You want to work out how many blocks, caps, drainage stone and base material your retaining wall needs, so you can order the right quantities before you start digging or buying. Retaining wall calculator. Nothing was tested for this page; the numbers come from the formula shown below and the inputs you enter.

CalculatorBuilt 27 November 2026Example inputs, not industry averages

Measured along the face of the wall.
Height above the ground, not counting buried courses.
Face length of one block. Check the block you will buy.
Height of one course. Check the block you will buy.
Whole number of courses below ground. Your plan or the block maker decides.
Leave blank if the wall has no caps.
Cuts and breakage. Applied to blocks, caps and stone.
Width of the stone column behind the blocks. Use 0 for none.
Width of the compacted base under the wall.
Depth of the compacted base.
Leave all price fields blank to get quantities only. Typed by you, not market figures.

Blocks to buy

—

Courses, including buried
—
Cap blocks
—
Visible wall face, sq ft
—
Drainage stone and base, cubic yards, with waste
—
Cost of the items you priced
—

An estimate from the formula below and the numbers you typed. Check quantities against your plan and your supplier before you order.

Put it into a job estimate

Enter your wall length, visible height, block face size and buried courses. You get block count, cap count, drainage stone and base material in cubic yards, with waste added.

The automatic calculation needs JavaScript. With scripting off, the fields above do nothing and the result area stays empty. The formula is written out below, so you can do the same arithmetic on paper.

Retaining wall calculator: how to measure

  1. Measure the wall length along the face you are building, in feet.
  2. Measure the visible wall height from the base of the first above ground course to the top of the wall, in feet.
  3. Check the face size of one block you will buy, length and height in inches, and note how many courses sit below ground.
  4. Measure the drainage stone width behind the wall and the base trench width and depth in inches.

Retaining wall calculator formula, written out

  • courses = visible height x 12 / block height, rounded up, plus buried courses
  • blocks per course = wall length x 12 / block length, rounded up
  • blocks = courses x blocks per course, x (1 + waste percent / 100), rounded up
  • caps = wall length x 12 / cap length, rounded up, x (1 + waste percent / 100), rounded up
  • drainage stone = length x stone width / 12 x total block height in feet
  • base = length x base width / 12 x base depth / 12
  • stone and base in cubic yards = cubic feet x (1 + waste percent / 100) / 27
  • cost = quantities x the prices you typed, for the items you priced

Retaining wall calculator worked example

With the inputs already in the form (wall length 30, visible wall height 3, block length 16, block height 6, buried courses 1, cap length 12, waste allowance 5, drainage stone behind the wall 12, base trench width 24, base depth 6).

With those inputs the result is: blocks to buy: 170; courses, including buried: 7; cap blocks: 32; visible wall face, sq ft: 90; drainage stone and base, cubic yards, with waste: 5.25.

  1. Courses = ceil(3 x 12 / 6) = 6 visible + 1 buried = 7
  2. Blocks per course = ceil(30 x 12 / 16) = 23
  3. Blocks = 7 x 23 = 161, with 5 percent waste, rounded up = 170
  4. Caps = ceil(30 x 12 / 12) with 5 percent waste, rounded up = 32
  5. Drainage stone behind the wall = 30 x 12 / 12 x 3.50 = 105.00 cubic feet
  6. Base = 30 x 24 / 12 x 6 / 12 = 30.00 cubic feet
  7. Stone and base with 5 percent waste = 4.08 + 1.17 = 5.25 cubic yards

To order drainage stone, use the drainage gravel calculator in tons.

What the retaining wall calculator assumes

  • Block face size varies by product, so check the block you will buy.
  • Waste percent applies to blocks, caps and stone, and defaults to 5.
  • Drainage stone and base volumes are converted from cubic feet to cubic yards.
  • Geogrid, drainage pipe, fabric, adhesive, corners, curves and steps are not calculated.

Retaining wall calculator questions people ask

How do I count courses for the wall?

Divide the visible height in inches by the block height in inches, then round up. Add the buried courses to get the total. The plan or the block maker decides how many courses go below ground.

How are blocks per course worked out?

Multiply the wall length in feet by 12, then divide by the block length in inches and round up. Multiply that by total courses, then add the waste percent and round up again.

How much drainage stone and base material do I need?

Drainage stone uses the wall length, the stone width behind the wall and the total block height in feet. Base material uses the wall length, trench width and trench depth. Both are converted to cubic yards with waste added.

Does this cover corners, curves or the wall design?

No. Corners, curves, steps, geogrid, drainage pipe, fabric and adhesive are not calculated, and neither is the design of the wall. Local rules may require a permit or an engineered design above a certain height, so check with your local office.

This calculator belongs to the masonry and concrete calculators. To price the whole job, not just this part, use the job costing calculator and the pricing guide below.

How this site makes money. Affiliate links on this site are marked before you click them, and a commission will never change a price, a test result or a ranking. Details in the affiliate disclosure.