1. Calculators
  2. Retaining Wall

Retaining Wall Calculator

Your measurements
Wall length
ftinm
Height above ground
ftinm
Block face length
incm
From the product label
Block height
incm
Buried base courses
Courses set below grade
Gravel base depth
incm
Gravel base width
incm
Waste allowance
%
4–10% is typical

Retaining wall blocks

111blocks

7 courses × 15 blocks, plus 5% waste

  • Courses above ground6
  • Total courses7
  • Blocks per course15
  • Cap blocks15
  • Exposed wall face60 ft²
  • Gravel for the base0.74 yd³ · 20 ft³

The short answer

Count retaining wall blocks course by course: courses = wall height ÷ block height and blocks per course = wall length ÷ block length. A 20 ft wall, 3 ft high, built with 16 × 6 in blocks and one buried course is 7 courses of 15 = 105 blocks, plus 15 caps.

Retaining wall formula

Courses = height above ground ÷ block height, rounded up + buried courses

Blocks = courses × (wall length ÷ block face length, rounded up)

Segmental retaining wall blocks are dry-stacked without mortar, so there are no joints to allow for: use the actual face length and height printed on the product label. Sizes differ a lot between products, which is why the calculator asks for yours instead of assuming one.

Worked example: 20 ft long, 3 ft high, 16 × 6 in block

  1. Courses above ground: 36 in ÷ 6 in = 6.
  2. Add one buried base course: 7 courses.
  3. Blocks per course: 240 in ÷ 16 in = 15.
  4. Blocks: 7 × 15 = 105, plus 5% waste = 111 blocks.
  5. Caps: one row of 15 cap blocks.
  6. Base gravel: 20 ft × 2 ft × 0.5 ft = 20 ft³ = 0.74 yd³.

Quick reference table

Retaining wall blocks with a 16 × 6 in face, one buried course (no waste)
Height above groundTotal courses10 ft long20 ft long30 ft long50 ft long
1 ft3244569114
1.5 ft4326092152
2 ft54075115190
2.5 ft64890138228
3 ft756105161266
4 ft972135207342

Cap blocks are extra: one per block in a course.

Buried course and gravel base

Retaining walls sit on a leveled, compacted gravel base, and part of the first course is set below finished grade so the wall cannot slide forward. How much to bury and how thick to make the base are specified in each manufacturer's installation guide and change with wall height. The defaults here (one buried course, a base 6 in deep and 24 in wide) are placeholders to replace with your product's numbers.

You will also need drainage gravel behind the wall and usually a perforated drain pipe. Those quantities depend on the design, so they are not included.

When a wall needs an engineer

Height limits for walls built without a permit or engineering vary by jurisdiction, and they drop when the wall supports a slope, driveway or structure. Taller walls typically need geogrid reinforcement and a stamped design. Check with your building department before ordering block for anything beyond a low garden wall.

Frequently asked questions

How do I calculate how many retaining wall blocks I need?

Divide the wall height by the block height to get courses, divide the wall length by the block length to get blocks per course, and multiply. Add any buried courses and 5–10% waste.

How many retaining wall blocks for a 20 ft wall?

With 16 × 6 in blocks, 3 ft high and one buried course: 105 blocks plus 15 caps. Other block sizes change the count, so enter your product's dimensions.

Do I need to bury the first row of a retaining wall?

Yes, in almost every manufacturer guide part of the first course goes below grade. The exact depth depends on the product and the wall height.

How much gravel do I need under a retaining wall?

Multiply wall length × base width × base depth. A 20 ft wall on a 24 in wide, 6 in deep base needs 20 ft³, about 0.74 cubic yards, before compaction.

Sources

  1. CMHA, CMU-TEC-001-23, Concrete Masonry Unit Shapes, Sizes, Properties, and Specifications (2023).

Reviewed November 27, 2026 · How we check our numbers