YardageMath
Menu

Retaining Wall Calculator

A 20 foot retaining wall 2 feet high takes about 75 standard 6 by 16 inch blocks, including one buried course, plus 15 caps. You'll also need about 1.3 tons of base gravel and 2.6 tons of drainage stone. Enter your wall size and block below to get totals and cost.

Wall sections
Section 1
ft
in
ft
in

Block & options
Check the block's label for the face size.
Most walls bury the first row below grade.
%
in

Prices
$
$
$/ton
$/ft
$/sq ft
Blocks needed
79blocks
75 before 5% waste · 5 courses incl. buried
Caps
15
Base pad gravel
1.33 tons
Drainage stone (#57)
2.59 tons
Drain pipe
20 ft
Material cost
$583
Installed estimate
$1,000
Show the math
blocks per course = ceil(length ÷ 1.33) · courses = ceil(height ÷ 0.5) + 1
blocks = 75 → + 5% = 79
base pad = 24 in × 6 in × length × 1.2 = 0.89 cu yd × 1.5 = 1.33 tons
drainage = 12 in × wall height × length = 1.85 cu yd × 1.4 = 2.59 tons

How to use this calculator

  1. Enter the wall length and the height above the ground. Add a section for each straight run.
  2. Pick your block size. Check the face height and length on the block's label.
  3. Keep the buried course on. Most walls need the first row set below ground.
  4. Read the blocks, caps, gravel and pipe, then add a few spare blocks for cuts.

Formula

blocks per course = ceil(length ft ÷ block length ft)
courses = ceil(height ft ÷ block height ft) + 1 buried course
blocks = per course × courses, with waste = ceil(blocks × (1 + waste%))
base pad tons = length × 2 ft × 0.5 ft × 1.2 ÷ 27 × 1.5
drainage tons = length × 1 ft × wall height ÷ 27 × 1.4

Worked example

A 20 ft wall, 2 ft high, 6 × 16 blocks, buried course on:
blocks per course = ceil(20 ÷ 1.33) = 15; courses = ceil(2 ÷ 0.5) + 1 = 5
blocks = 15 × 5 = 75, plus 15 caps
base 1.33 tons, drainage 2.59 tons, 20 ft of pipe

Second example

A 30 ft wall, 3 ft high, 8 × 18 blocks:
blocks = 20 per course × 6 courses = 120
base 2.00 tons, drainage 6.22 tons
Retaining wall diagram: base pad, buried course, setback blocks, cap, drainage stone and pipe, with the length and height the calculator uses.capgradebase pad + buried coursedrainage + pipeLHfront view
Retaining wall diagram: base pad, buried course, setback blocks, cap, drainage stone and pipe, with the length and height the calculator uses.

What this calculator doesn't cover

It estimates materials for a straight, gravity-style block wall on firm ground. It doesn't design the wall, add geogrid, plan curves and corners exactly, or account for slopes, surcharges or poor soil. Walls over about 4 feet, or walls holding back a driveway or building, need an engineer and often a permit.

Reference tables

Blocks needed by wall size (buried course included, before waste)
Wall4 × 126 × 168 × 18
10 ft × 2 ft704028
20 ft × 2 ft1407556
20 ft × 3 ft20010584
40 ft × 3 ft400210162

Whole blocks including one buried course, before waste; add about 5% for cuts. Blocks per course = length ÷ block length, rounded up.

Tips & buying advice

  • Set the first course perfectly level on a compacted gravel pad. Every course above it depends on it.
  • Backfill behind the wall with clean drainage stone and a perforated pipe so water can't build up pressure.
  • Each course steps back slightly into the slope. Use blocks with a built-in lip or setback, and follow the maker's guide.
  • Glue the caps on with masonry adhesive so they stay put.

Frequently asked questions

How many retaining wall blocks do I need?
Divide the wall length by the block length to get blocks per row, then divide the height by the block height for rows, and add one buried row. A 20 foot wall 2 feet high with 6 by 16 inch blocks needs about 75 blocks.
How many retaining wall blocks are in a square foot?
About 1.5 for a 6 by 16 inch block face, 3 for small 4 by 12 inch garden blocks, and 1 for large 8 by 18 inch blocks.
How much gravel do I need for a retaining wall?
For the base, about a 24 inch wide by 6 inch deep compacted pad. For drainage, about 12 inches of stone behind the wall. A 20 foot wall 2 feet high needs about 1.3 tons of base and 2.6 tons of drainage stone.
Do I need to bury the first row of blocks?
Usually, yes. Most makers recommend burying the first course, or about 1 inch for every 8 inches of wall height, so the wall doesn't slide.
How tall can a retaining wall be without an engineer?
Many areas allow about 4 feet before an engineered design and permit are needed, and less if the wall holds back a slope, driveway or building. Check your local code.
Do retaining walls need drainage?
Yes. Clean gravel behind the wall and a perforated drain pipe at the base let water out. Trapped water is the most common reason walls lean or fail.
How much does a retaining wall cost?
Block walls often run about $15 to $35 per square foot of wall face installed, depending on the block and site. Materials for a small DIY wall cost much less.
Concrete & Block
Block Wall Calculator

Courses, blocks, cap, mortar, grout, rebar and total cost.

Open calculator →
Landscaping Material
Paver Calculator

How many pavers plus gravel base, bedding sand and edging for a patio or walkway.

Open calculator →
Landscaping Material
Paver Base Calculator

How much gravel base and bedding sand under pavers: tons, yards, bags and cost.

Open calculator →
Landscaping Material
Gravel Calculator

How much gravel for a driveway, path or patio: cubic yards, tons, bags and cost.

Open calculator →
Landscaping Material
Fill Dirt Calculator

How much fill dirt to fill a hole or raise a yard: cubic yards, tons and truckloads.

Open calculator →

Sources

Built and maintained by Sikander Mushtaq. Formulas checked against Block face sizes (Pavestone), Base pad and drainage (Allan Block), Height limit (CMHA), 2026 retaining wall costs (HomeGuide). See our methodology and sources, or learn about YardageMath. See our editorial policy.

Last updated:

Estimates only. Confirm quantities with your supplier or contractor. Read the full disclaimer.

← Back to Landscaping Material Calculators