Retaining Wall Calculator

Calculate retaining wall materials and cost for concrete block, stone, timber, or poured concrete.

By Konstantin Iakovlev · Updated September 2026 · Source: International Code Council, 2021 IRC Section R404.4 (retaining walls) and Section R105.2 (permit exemptions)

ft
ft
Material

Wall Face Area

200.00 sqft

Material Cost

$3,000.00

Total Estimate

$7,375.00 - $11,375.00

Material & Labor Breakdown

Wall Face Area200.00 sqft
Blocks / Stones Needed225
Base Gravel0.9 cu yd
Drainage Gravel (1-ft zone, full height)7.4 cu yd
Material Cost (Concrete Block)$3,000.00
Drainage Material$333.33
Base Gravel Cost$41.67
Labor ($20-40/sqft)$4,000.00 - $8,000.00
Total Project Estimate$7,375.00 - $11,375.00

A cost estimate, not a wall design. Under the 2021 IRC a retaining wall over 4 ft, measured from the bottom of the footing, or one holding back a slope, driveway or building needs a permit (R105.2), and more than 48 in of retained soil needs an engineered design (R404.4). Local codes may be stricter.

Use the Retaining Wall Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only. Results are estimates from the numbers you enter and the assumptions described on this page; check them against local building codes, product specifications and current prices, and have structural, electrical or gas work designed or checked by a licensed professional.

How It Works

This calculator prices a retaining wall and counts its materials from three inputs: the wall's length and height in feet and the facing material (concrete block, natural stone, timber or poured concrete). It does not design the wall. Soil type, wall thickness, footing size, reinforcement and stability against sliding and overturning are not part of the calculation.

The face area is length × height. Blocks or stones are the face area divided by the face of one unit (0.89 sq ft for a concrete block, 1.5 for stone, 2 for a timber), rounded up; poured concrete has no unit count. Material is priced per square foot of face ($15 block, $25 stone, $12 timber, $30 poured concrete) and labor at $20 to $40 per square foot, which gives the low and high totals. Gravel is added for a base 1 foot wide and 6 inches deep along the wall and for a drainage zone 1 foot wide the full height of the wall, both at $45 per cubic yard. These are fixed planning rates, not local prices.

Drainage behind the wall matters because water trapped in the soil adds pressure the wall was not built for. Height is where the code steps in. The 2021 International Residential Code exempts a retaining wall up to 4 feet, measured from the bottom of the footing to the top of the wall, from a building permit unless it supports a surcharge, such as a slope, a driveway or a building above it (Section R105.2). It requires a wall that retains more than 48 inches of unbalanced fill, or one over 24 inches that also resists loads other than soil, to be designed by accepted engineering practice with a safety factor of 1.5 against sliding and overturning (Section R404.4). These are model-code rules; your city or county adopts its own version and may be stricter, so ask the building department before you build.

Example: 50-foot concrete block wall, 4 feet high

  1. 1 Input: a wall 50 feet long and 4 feet high in concrete block, the calculator's defaults.
  2. 2 Face area: 50 × 4 = 200 sq ft. Blocks: 200 ÷ 0.89 = 224.7, rounded up to 225.
  3. 3 Gravel: base 50 × 1 × 0.5 ÷ 27 = 0.9 cu yd ($41.67); drainage zone 50 × 1 × 4 ÷ 27 = 7.4 cu yd ($333.33), both at $45 per cubic yard.
  4. 4 Cost: material 200 × $15 = $3,000 and labor 200 × $20 to $40 = $4,000 to $8,000, so the total is $3,000 + $4,000 + $333.33 + $41.67 = $7,375 low and $11,375 high.
  5. 5 Code check: the IRC measures height from the bottom of the footing, so if 4 feet is the height above grade, the buried part puts this wall over the 4-foot permit threshold. Ask your building department before you build.

Frequently Asked Questions

How much does a retaining wall cost per foot?
The calculator prices a wall by its face area, so the cost per linear foot grows with height. With its built-in rates (material $12 per sq ft for timber, $15 for concrete block, $25 for natural stone and $30 for poured concrete, plus $20 to $40 labor and gravel at $45 per cubic yard), a 4-foot wall works out to about $136 to $216 per linear foot in timber, $148 to $228 in block, $188 to $268 in stone and $208 to $288 in poured concrete. Engineering, which taller walls need, is not included.
Do I need a permit for a retaining wall?
Usually only above 4 feet. The model International Residential Code exempts retaining walls up to 4 feet, measured from the bottom of the footing to the top of the wall, unless they support a surcharge such as a slope, a driveway or a building (Section R105.2), and it requires walls retaining more than 48 inches of unbalanced fill to be engineered (Section R404.4). Local codes can be stricter, so check with your building department.
How long does a retaining wall last?
Poured concrete and natural stone walls last 50-100+ years. Concrete block walls last 40-60 years. Timber walls have the shortest lifespan at 15-25 years before significant deterioration from moisture and insect damage.