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)
Wall Face Area
200.00 sqft
Material Cost
$3,000.00
Total Estimate
$7,375.00 - $11,375.00
Material & Labor Breakdown
| Wall Face Area | 200.00 sqft |
| Blocks / Stones Needed | 225 |
| Base Gravel | 0.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 Input: a wall 50 feet long and 4 feet high in concrete block, the calculator's defaults.
- 2 Face area: 50 × 4 = 200 sq ft. Blocks: 200 ÷ 0.89 = 224.7, rounded up to 225.
- 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 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 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.
Source: International Code Council, 2021 IRC Section R404.4 (retaining walls) and Section R105.2 (permit exemptions) · Last updated: September 2026
Frequently Asked Questions
How much does a retaining wall cost per foot?
Do I need a permit for a retaining wall?
How long does a retaining wall last?
You might also need
Concrete Calculator
Calculate cubic yards of concrete needed for slabs, columns, and steps. See bags needed and estimated cost.
Paint Calculator
Calculate gallons of paint needed for a room. Accounts for doors, windows, and number of coats.
Flooring Calculator
Calculate flooring material needed and cost for hardwood, laminate, vinyl, tile, or carpet.