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.
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.
Enter the length and height of the wall to see the blocks, gravel and cost.
| Wall blocks, 6 × 16 in, with the extra | 79 blocks | $395 |
|---|---|---|
| Cap blocks, with the extra | 16 caps | $80 |
| Cap adhesive, 10 oz tubes | 3 tubes | $18 |
| Base gravel, compactible, rounded up to the next half yard | 1 cu ydabout 1.4 tons | $55 |
| Drainage stone, clean ¾ in, rounded up to the next half yard | 2 cu ydabout 2.8 tons | $140 |
| Perforated 4 in drain pipe, in 10 ft lengths | 20 ft | $30 |
| Filter fabric, non-woven | 90 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.
| Block | Weight | Blocks per sq ft | Per 10 ft course |
|---|---|---|---|
| Small, 4 × 12 in | 22 lb | 3 | 10 |
| Standard, 6 × 16 in | 42 lb | 1.5 | 8 |
| Large, 8 × 18 in | 75 lb | 1 | 7 |
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 ground | Small | Standard | Large |
|---|---|---|---|
| 1 ft | 40 | 24 | 21 |
| 1 ft 6 in | 60 | 32 | 28 |
| 2 ft | Too tall | 40 | 28 |
| 2 ft 6 in | Too tall | 48 | 35 |
| 3 ft | Too tall | Too tall | Too 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.
| Block | Limit, buried course included | Above ground, level | Above ground, slope behind |
|---|---|---|---|
| Small, 4 × 12 in | 2 ft | 1 ft 10 in | 1 ft 2 in |
| Standard, 6 × 16 in | 3 ft | 2 ft 9 in | 1 ft 9 in |
| Large, 8 × 18 in | 3 ft 6 in | 3 ft | 2 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.
| Block | Trench width | Gravel base | Buried | Trench depth |
|---|---|---|---|---|
| Small | 12 in | 4 in | 4 in | 8 in |
| Standard | 22 in | 6 in | 6 in | 12 in |
| Large | 24 in | 6 in | 8 in | 14 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.
| Wall | DIY materials | Hired 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
- Blocks per course: wall length in inches ÷ block length, rounded up.
- 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.
- Blocks: per course × courses, plus the extra. Caps: length ÷ cap length, plus the extra.
- Adhesive: 2 beads along the wall ÷ 13.6 ft of 3/8 in bead per 10 oz tube, rounded up.
- 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.
- 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.
- 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).
- 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.
- 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
- Pavestone, BroadStone Installation Guide: base size, buried course, 12 in drainage layer, filter fabric, cap adhesive
- Anchor Wall Systems, LedgeWall 4 × 12 product sheet: small block size, weight, setback and its 2 ft limit including the buried course
- Allan Block, Designing a Retaining Wall: gravity wall heights for clay and sand, with a slope or a load above
- Allan Block, Terraces: spacing for terraced walls
- Allan Block, Basic Installation: trench, base, 12 in of wall rock, when a drain pipe is required and how often to vent it
- 2025 California Residential Code, R404.4 Retaining walls (IRC text): when a wall must be engineered
- City of Tukwila, WA, Retaining Wall permit handout (2025): the 4 ft permit exemption, measured to the bottom of the footing, and the 2 ft limit with a surcharge
- Loctite, PL 500 Landscape Construction Adhesive data sheet: bead length per tube and how to glue caps
- LawnStarter, Retaining Wall Cost (October 2026): installed cost per square foot and permit fees