ConcreteGauge

ConcreteGauge / Retaining wall

Retaining wall block calculator

Enter the length of the wall, the height you want to see and the size of your block. You get the blocks, the caps and the gravel.

The part you will see. The buried part is added for you.

Along the face of the wall.

Front to back.

More options: extra for waste

Blocks to buy

116 blocks, plus 17 caps

Includes 10% extra for cuts and breakages. Without it: 105 blocks in 7 courses of 15.

6 inches of the wall is below ground, so it is 3.5 feet of block for 3 feet of wall you see.

Gravel to order
ForCubic feetCubic yards
Base under the wall220.81
Drainage behind it662.44

About 4.6 US tons of gravel in all. Add a perforated drain pipe 20 feet long behind the first course.

20 ft3 ftBelow the dashed line: buried

The part you do not see

A stacked block retaining wall starts below the ground. Allan Block’s guidance is to bury 1 inch of wall for every foot of height, with 6 inches as the usual minimum, on a base of at least 6 inches of compacted gravel. The calculator adds that buried part before it counts the courses, which a plain length × height sum leaves out.

For a wall 20 feet long showing 3 feet, in blocks 16 inches long and 6 inches high:

  • Buried: 1 inch per foot would be 3 inches, so the 6 inch minimum applies
  • 36 inches + 6 inches = 42 inches ÷ 6 inches = 7 courses
  • 20 feet ÷ 16 inches = 15 blocks to a course
  • 7 × 15 = 105 blocks; with 10% extra, 116

Blocks, caps and gravel for common walls

For blocks 16 inches long, 6 inches high and 12 inches deep, with 10% extra.

WallCoursesBlocksCapsGravel
10 ft long, 2 ft high54491.7 tons
20 ft long, 2 ft high583173.5 tons
20 ft long, 3 ft high7116174.6 tons
30 ft long, 3 ft high7178266.9 tons
40 ft long, 3 ft high7231339.2 tons
20 ft long, 4 ft high9149175.8 tons
40 ft long, 4 ft high92973311.6 tons
60 ft long, 4 ft high94465017.3 tons

The gravel

Two lots of gravel go into a wall like this, and both are counted:

  • The base: a trench filled 6 inches deep with compacted gravel, reaching 6 inches in front of the block and 6 inches behind it. For the example that is 20 cubic feet.
  • Drainage: a layer of clean gravel 12 inches thick behind the wall for its full height, so water drains down to a pipe and does not push on the wall. For the example, 60 cubic feet.

Use the size and depth of the block you are actually buying: retaining wall blocks come in many sizes and the count changes with every one. Some systems use a special base block or pins; follow the maker’s instructions for those.

How high can it go?

Stacked blocks hold back soil by their own weight, and that only works up to a point. The safe height depends on the block, the soil and what sits above the wall: a slope, a driveway or a fence all push harder than level ground. Block makers publish the maximum height for each of their products, and above it the wall needs reinforcing mesh in the soil and usually an engineer. Many places also require a permit once a wall passes a set height, so check before you build.

This page is for dry-stacked landscape block. A retaining wall of mortared concrete block is counted on the concrete block calculator, and a poured one on the wall calculator. For gravel on its own, see the gravel base calculator.

Questions people ask

How many retaining wall blocks do I need?

Divide the wall’s length by the block’s length for the blocks in a course, and the height including the buried part by the block’s height for the courses. A wall 20 feet long showing 3 feet needs 116 blocks of 16 × 6 inches, including 10% extra.

How deep should the first course be buried?

Allan Block’s guideline is 1 inch for each foot of wall height, with a usual minimum of 6 inches. Follow the instructions for your own block.

How much gravel goes under a retaining wall?

A base 6 inches deep, 6 inches wider than the block at front and back. For a 20 foot wall with 12 inch deep block that is 20 cubic feet, about 1.1 tons.

How many cap blocks do I need?

One for each block in the top course if the caps are the same length as the blocks. If your caps are a different length, divide the wall’s length by the cap’s length.

Do I need drainage behind a retaining wall?

Yes. Water trapped behind a wall is the usual reason one fails. Clean gravel behind the blocks and a perforated pipe at the bottom let it escape.

Where the numbers come from

Every formula on this page is checked by an automatic test each time the site is updated. Last reviewed 15 November 2026.

What you may need next