Retaining wall cost calculator

Enter the length and height of the wall and pick a block. You get the blocks, gravel and drainage to buy, what they cost against hiring it out, and whether the wall is short enough to build without an engineer.

Above ground, not counting the cap. Rounded up to whole courses, with one more course buried.

Block

Face size, height × length. Block makers' height limits, counting the buried course: small 2 ft, standard 3 ft, large 3 ft 6 in.

Your prices

Filled in with typical US prices. Block and cap prices follow the block you pick. Swap in a local quote for a closer number.

Section through the retaining wall showing the courses, buried course, gravel base and drainage to scale2 ft 3 in6 in buried6 in baseBlock limit 3 ftCap, glued downWall blockDrainage stone, 12 inFilter fabricPerforated drain pipeCompacted gravel baseExisting soil
Section through the wall. The courses, the buried course and the base change to scale as you edit the wall. The dashed pink line is the height limit for the block you picked.

Materials if you build it yourself

$736

Blocks, caps, gravel, stone, pipe and fabric, at your prices

Hiring a contractor

$900–$1,800

At $20 to $40 per sq ft of wall face, a typical 2026 range

79 wall blocks

15 per course, 4 courses above ground and 1 buried, so the wall stands 2 ft 3 in with the cap. Includes 5% extra. The blocks weigh about 1.7 tons at 42 lb each.

What to buy
Wall blocks, 6 × 16 in, with the extra79 blocks$395
Cap blocks, with the extra16 caps$80
Cap adhesive, 10 oz tubes3 tubes$18
Base gravel, compactible, rounded up to the next half yard1 cu ydabout 1.4 tons$55
Drainage stone, clean ¾ in, rounded up to the next half yard2 cu ydabout 2.8 tons$140
Perforated 4 in drain pipe, in 10 ft lengths20 ft$30
Filter fabric, non-woven90 sq ft$18

Dig the trench 22 in wide and 12 in deep: 6 in of gravel and one buried course. Start at the low end, and where the ground rises, step the base up one course at a time.

Call 811 a few business days before you dig. It's free, and the utilities mark their buried lines. Check your city's rules too: some need a permit above 3 ft, or for any wall with a slope or load above it.

How many blocks do I need for a retaining wall?

Count blocks per course, then courses. One course is the wall length in inches divided by the block's face length. Courses are the height above ground divided by the block height, rounded up, plus one buried course. Add 5 percent for cuts and breakage, 10 percent for a curved wall. Caps run one per block length along the top.

BlockWeightBlocks per sq ftPer 10 ft course
Small, 4 × 12 in22 lb310
Standard, 6 × 16 in42 lb1.58
Large, 8 × 18 in75 lb17

Weights are for a typical big-box block. Deeper blocks with the same face weigh more, so check the pallet label.

Blocks for a 10 ft wall by height above ground, not counting the cap, with one buried course, before caps and extra. Too tall means over the block's limit on level ground.

Height above groundSmallStandardLarge
1 ft402421
1 ft 6 in603228
2 ftToo tall4028
2 ft 6 inToo tall4835
3 ftToo tallToo tallToo tall

How tall can a retaining wall be without a permit or an engineer?

Two different limits apply. The block maker's limit says how tall the blocks can stack without geogrid. The building code says when you need a permit or an engineer.

BlockLimit, buried course includedAbove ground, levelAbove ground, slope behind
Small, 4 × 12 in2 ft1 ft 10 in1 ft 2 in
Standard, 6 × 16 in3 ft2 ft 9 in1 ft 9 in
Large, 8 × 18 in3 ft 6 in3 ft2 ft 4 in

Heights above ground include the cap. The limits assume level ground in front and decent soil. Clay, wet ground, or a slope steeper than 1 ft up for every 3 ft back calls for less, or for a design. Allan Block's chart, for example, takes its 8 in block from 3 ft 2 in on level clay to 2 ft 4 in under a 3:1 slope, and to 1 ft 4 in under a patio or driveway. Near-vertical blocks with little setback allow less, and sand or gravel may allow more: check the chart for your block.

The model code most states adopt exempts walls up to 4 ft from a permit (IRC section R105.2), measured from the bottom of the footing to the top of the wall, unless the wall holds up a surcharge: a slope, a driveway, a building or another wall. Section R404.4 calls for an engineered design when a wall holds back more than 4 ft of soil, or stands over 2 ft with a load on top. Cities change these numbers: Tukwila, Washington, needs a permit for a wall with a load above at over 2 ft, and some cities start at 3 ft. Count what you bury: a wall that shows 3 ft, with a 6 in buried course and a 6 in base, is already 4 ft from the bottom of the base.

Two short walls can stand in for one tall one if the upper wall sits back at least 2 times the lower wall's height and is no taller. Allan Block sends more than two tiers, or terraces with a building above, to an engineer.

How deep to bury the first course, and how thick a base?

Bury at least one full course. For 6 and 8 in blocks that also meets the 6 in minimum the block industry uses (NCMA, in Pavestone's guide), and taller walls bury about a tenth of their height. Small 4 in garden blocks bury one course, as their makers say.

Under the blocks goes compacted crushed stone, the kind sold as road base, crusher run or ¾ in minus, which packs hard. Pavestone and Allan Block call for 6 in, in a trench that runs 6 in in front of the blocks and 6 in behind. Small-block makers use a 4 in base in a 12 in trench. Spread it in 2 in layers, dampen it, and compact each layer with a plate compactor or hand tamper. Loose stone tamps down by about a fifth, so the calculator orders 25 percent more.

BlockTrench widthGravel baseBuriedTrench depth
Small12 in4 in4 in8 in
Standard22 in6 in6 in12 in
Large24 in6 in8 in14 in

Where the ground rises along the wall, step the base up one course at a time from the low end, so at least one course stays buried everywhere.

Drainage behind a retaining wall

Water, not soil, pushes most walls over. Pavestone and Allan Block call for at least 12 in of clean, angular stone behind the blocks, from the base to near the top: washed ¼ to ¾ in crushed stone such as #57. Don't use pea gravel: the round stones roll and don't lock together. If the blocks have hollow cores, fill them with the same stone.

Line the cut behind the stone with non-woven filter fabric, from the bottom of the trench up the back and folded over the top, so soil can't wash into the stone. Lay a 4 in perforated pipe at the bottom behind the first course and run it out to daylight at the low end, and every 50 ft on a long wall. Allan Block requires the pipe on poorly drained sites and on any wall over 4 ft. Finish the top with a few inches of soil, graded so water runs away from the wall.

What a retaining wall costs per square foot

Hired out, a segmental block wall typically costs $20 to $40 per square foot of wall face (2026 prices). Cost guides put the bare block work at $15 to $35, and retaining walls of every kind at $20 to $53, so a small job with drainage and caps lands in the middle. Face area is the length times the height above ground. The buried course, base and drainage are in the price but not in the area.

Standard 6 × 16 in blocks with caps, pipe and 5 percent extra, at the example prices in the calculator.

WallDIY materialsHired out
10 ft long, 1 ft 6 in high$348$350–$700
10 ft long, 2 ft high$389$450–$900
20 ft long, 2 ft high$736$900–$1,800
30 ft long, 2 ft high$1,125$1,350–$2,700
50 ft long, 2 ft 6 in high$2,131$2,750–$5,500

The price goes up for:

  • a taller wall that needs geogrid and an engineer;
  • a hard-to-reach spot where blocks are carried in by hand;
  • curves, corners and steps;
  • tearing out an old wall or hauling away soil;
  • a permit, typically $40 to $450 (LawnStarter).

Doing it yourself saves the labor, but plan on renting a plate compactor and a saw with a masonry blade, and on moving several tons of block and stone by hand.

How the calculator works

  1. Blocks per course: wall length in inches ÷ block length, rounded up.
  2. Courses above ground: height ÷ block height, rounded up. Plus buried courses: at least one, at least 6 in for 6 and 8 in blocks, and 10 percent of the height on tall walls.
  3. Blocks: per course × courses, plus the extra. Caps: length ÷ cap length, plus the extra.
  4. Adhesive: 2 beads along the wall ÷ 13.6 ft of 3/8 in bead per 10 oz tube, rounded up.
  5. Base: length × trench width × base depth, plus 25 percent for compaction, in cubic yards rounded up to a half yard. 1.4 tons per loose yard.
  6. Drainage stone: length × 12 in × block height including the buried course, rounded up to a half yard. Stone for hollow block cores isn't counted.
  7. Pipe: wall length, rounded up to 10 ft lengths. Fabric: length × (block height + base + 6 in along the bottom + 12 in folded over the top).
  8. Limit: block height from the top of the base, buried course included and cap left out, against the block maker's limit: small 2 ft, standard 3 ft, large 3 ft 6 in on level ground, about a quarter less under a slope. The permit check adds the base and cap and compares with 4 ft.
  9. Contractor: length × height above ground with the cap × $20 to $40 per sq ft.

Common questions

How many blocks do I need for a 20 ft retaining wall 2 ft high?

With standard 6 × 16 in blocks, one course is 15 blocks. A 2 ft wall is 4 courses above ground plus 1 buried, so 75 blocks, or 79 with 5 percent extra, and 15 caps. With large 8 × 18 in blocks it is 14 per course and 4 courses: 56 blocks, 59 with extra. Small 4 × 12 in blocks top out at 1 ft 8 in above ground plus the cap, so they can't build this wall without geogrid.

Do I need a permit to build a retaining wall?

In most of the US, not for a short wall with level ground above it. The model code (IRC section R105.2) exempts walls up to 4 ft, measured from the bottom of the footing to the top of the wall, unless the wall supports a surcharge such as a slope, a driveway or a building. Count the parts you bury: a 2 ft wall of standard blocks with its cap, buried course and 6 in base measures 3 ft 3 in. Many cities set lower limits, some at 3 ft, and a wall with a load above often needs a permit at 2 ft or less. Call your building department before you dig.

What gravel goes behind a retaining wall?

Clean, washed, angular crushed stone, ¼ to ¾ in, often sold as #57 stone, at least 12 in thick from the base to near the top. Don't use pea gravel: the round stones roll. Under the wall goes a different stone: compactible road base or crusher run, which packs hard. Separate the drainage stone from the soil behind it with filter fabric. A loose cubic yard of either weighs about 1.4 tons.

How much does a 20 ft retaining wall cost?

Hired out, a 20 ft wall 2 ft high with caps has 45 sq ft of face, so about $900 to $1,800 at the typical 2026 range of $20 to $40 per square foot. Built yourself with standard blocks, the materials come to about $736 at the example prices in the calculator: $395 of block, $80 of caps, $195 of gravel and drainage stone, and about $66 for pipe, fabric and adhesive. Renting a plate compactor and a saw is extra.

Do retaining wall caps need to be glued?

Yes. Glue the caps to the top course with a concrete or landscape block adhesive, or they get knocked off. Loctite's PL 500 directions call for two beads, about 2 in in from the front and the back. A 10 oz tube runs about 13.6 ft of a 3/8 in bead, so plan on one tube for every 7 ft of wall. Keep off the caps for a day or two while it cures.

How far apart should terraced retaining walls be?

Allan Block's rule: set the upper wall back at least 2 times the height of the lower wall, and make it no taller than the lower one. Then each wall holds only its own soil. Two 2 ft walls need at least 4 ft of level ground between them. Closer than that, more than two tiers, or a building above, and the walls need an engineer.

Sources