Skip to content

Retaining Wall Calculator: How Many Blocks Do I Need?

Enter your wall's length, height and block size to see how many wall blocks, caps and tons of gravel to buy.

Enter your measurements

ft
ft
in

From the block’s spec sheet or label.

in

Most block makers want at least one course below grade. Follow your block’s guide.

in
in

Set from your block maker’s install guide.

in
in

Width of the clean stone zone behind the blocks.

lb/cu yd
%

Wall blocks210

Wall blocks

210

Courses (rows)20 blocks per course
10
Cap blocks
20
Base gravel
0.74 cu yd
Drainage gravel
2.47 cu yd
Total gravel weight
4.33 tons
Wall face area (incl. buried)
66.7 sq ft

Estimates only. Check product labels and local codes before you buy.

How to use the retaining wall calculator

  1. Enter the wall’s length and the height you want above the ground.
  2. Enter your block’s face length and height from its label or spec sheet.
  3. Enter how many courses go below ground. Most block makers want at least one; their guide says how much for your wall’s height.
  4. Enter the cap length, or 0 if you won’t use caps.
  5. Set the gravel base and drainage zone from your block maker’s install guide. The defaults are a 24 in. wide, 6 in. deep base and 12 in. of drainage stone.

The formula

Blocks per course = wall length (in) ÷ block length, rounded up

Courses = wall height (in) ÷ block height, rounded up, + buried courses

Blocks = blocks per course × courses × (1 + extra %)

Caps = wall length (in) ÷ cap length, rounded up

Base gravel (cu yd) = length × base width × base depth (ft) ÷ 27

Drainage gravel (cu yd) = length × drainage width × full wall height (ft) ÷ 27

Worked example

A 20 ft wall, 3 ft above ground, with 12 × 4 in. blocks, one buried course and 5% extra:

  • Blocks per course: 240 ÷ 12 = 20
  • Courses: 36 ÷ 4 = 9, plus 1 buried = 10
  • Blocks: 20 × 10 = 200, plus 5% = 210 blocks and 20 caps
  • Base: 20 × 2 × 0.5 ÷ 27 = 0.74 cu yd
  • Drainage: 20 × 1 × 3.33 ÷ 27 = 2.47 cu yd, about 4.3 tons of gravel in total at 2,700 lb per cubic yard

Tips

  • Level the first course perfectly. Every course above follows it.
  • Drainage stops failures. Water pressure behind a wall pushes it over. Use clean stone behind the blocks and a drain pipe where your block’s guide calls for one.
  • Tall walls need engineering. Walls over 4 ft, or any holding up a driveway or slope, usually need a permit and often an engineered design.
  • Building a patio too? The paver calculator works out pavers, base and sand.

Frequently asked questions

How many retaining wall blocks do I need?

Blocks per course = wall length in inches ÷ block length. Courses = wall height in inches ÷ block height, plus any buried course. Multiply the two and add about 5% for cuts. A 20 ft wall, 3 ft tall, with 12 × 4 in. blocks and one buried course needs 20 × 10 = 200 blocks, or 210 with extra.

How much gravel do I need behind a retaining wall?

Many block makers' installation guides (Allan Block's, for example) call for about 12 in. of clean drainage stone behind the blocks for the full wall height. That is length × 1 ft × height ÷ 27 cubic yards: about 2.5 cu yd for a 20 ft wall that is 3.3 ft tall including the buried course.

How much gravel do I need under a retaining wall?

Block makers' guides commonly call for a compacted gravel base about 6 in. deep and about 24 in. wide. That is length × 2 ft × 0.5 ft ÷ 27, about 0.74 cu yd for a 20 ft wall. Follow the guide for your block.

How tall can a retaining wall be without a permit?

Under the International Residential Code (section R105.2), a retaining wall up to 4 ft tall, measured from the bottom of the footing to the top of the wall, doesn't need a permit unless it holds back extra load such as a driveway or a slope. Many towns change this, so ask your building department.

How do I calculate retaining wall square footage?

Multiply the wall's length by its full height, including the buried course. A 20 ft wall with 3 ft above ground and one 4 in. course below ground has 20 × 3.33 = 67 sq ft of face. Some blocks are sold by face area; divide by the area of one block to get a count.

Last reviewed November 3, 2026. Found a problem? Tell us.