A retaining wall block calculator returns block count, base material, drainage gravel, and material cost for any retaining wall length and height. Most homeowners build retaining walls in the 1-4 foot height range using interlocking landscape blocks (Allan Block, Versa-Lok, Anchor Wall, RockWood, Pavestone, or generic concrete blocks). Knowing the exact block count plus base and drainage materials prevents both under-ordering (project delays, multiple supply runs) and over-ordering (wasted material, return hassles).
Several search variants describe the same calculation. "Retaining wall block calculator," "landscape block calculator," "landscape block estimator," "how many retaining wall blocks do i need," "circular retaining wall block calculator," and "retaining wall block circle calculator" cover both straight and curved wall geometry. "Concrete retaining wall calculator" handles poured-concrete walls separately (different math; covered in the concrete section below). "Face feet calculator" describes the per-square-foot wall area math used by landscape suppliers for pricing.
The calculator approach below handles straight walls (most common), curved walls (gentle curves up to circular), and corner conditions. It accounts for setback (each course steps back 0.5-1 inch for stability), cap blocks at the top, and the buried courses below grade for stability. For walls over 4 feet high, engineering is typically required by code; this guide covers the prescriptive 1-4 foot residential range that most homeowners can build without engineering.
Retaining Wall Block Calculator
Block count, base material, drainage gravel, and material cost for any retaining wall.
Inputs
Walls over 4 ft typically require engineering and a permit. The calculator adds 1 buried course for stability.
Results
Contractor-installed equivalent: $1,440 – $3,600 (at $12-30 per face foot installed).
Material list (Allan Block AB Classic)
Cost breakdown
Block count math — how to calculate retaining wall blocks
The basic block count for a straight wall: blocks per course × number of courses + cap blocks. Each variable below.
Blocks per course: wall length in feet × 12 / block length in inches. For typical 12-inch face-length blocks (Allan Block AB Classic, Versa-Lok Standard): blocks per course = wall length in feet. For 16-inch face blocks (Anchor Diamond Pro, larger landscape blocks): blocks per course = wall length × 0.75. For 18-inch blocks: × 0.67.
Number of courses: wall height in inches / block height in inches. Standard landscape blocks are 4-8 inches tall depending on system. Allan Block AB Classic is 8 inches tall, so a 32-inch (4 ft) wall needs 4 courses above grade plus 1 buried course = 5 total courses. Versa-Lok Standard is 6 inches tall: a 4 ft wall needs 8 courses above grade plus 1-2 buried = 9-10 courses. RockWood is 6 inches tall, similar math.
Buried courses: standard practice is 1 buried course for every 3-4 feet of wall height above grade, with a minimum of 1 buried course on any wall over 18 inches. For a 4 ft wall: 1 buried course. For a 5+ ft wall: 2 buried courses (and engineering review required).
Cap blocks: 1 cap block per linear foot of wall (cap blocks are typically 12-inch face length regardless of system). Caps are flat blocks with no setback that finish the top of the wall.
Total: (blocks per course × number of courses including buried) + (cap blocks per foot × wall length).
Example: 30-foot wall, 32 inches tall (4 ft), Allan Block AB Classic. Blocks per course = 30. Number of courses = 5 (4 above grade + 1 buried). Caps = 30. Total = (30 × 5) + 30 = 180 blocks. Add 5-10% waste = 189-198 blocks ordered.
Complete material list — beyond the blocks
Block count is one item on the material list. A complete retaining wall project also needs base material, drainage gravel, drain pipe, geogrid (for taller walls), and adhesive.
Base material: crushed stone or paver base, 6 inches deep, extending 6-12 inches behind and in front of the bottom course. Volume calculation: wall length × (block depth + 12 inches) × 6 inches = cubic feet, divided by 27 = cubic yards. For a 30 ft wall with 12-inch deep blocks: 30 × 2 × 0.5 / 27 = 1.1 cubic yards of crushed stone. Costs $40-80 per cubic yard.
Drainage gravel: behind the wall, fills the void between the wall and the retained soil. Volume: wall length × wall height × 12 inches deep = cubic feet, divided by 27. For a 30 ft × 4 ft wall: 30 × 4 × 1 / 27 = 4.4 cubic yards. Costs $40-80 per cubic yard.
Drain pipe (perforated 4-inch corrugated): wall length + 5 feet for daylight outlet. For a 30 ft wall: 35 feet of pipe. Costs $1.50-3 per linear foot.
Filter fabric: separates drainage gravel from native soil to prevent the gravel from clogging with soil over time. Wall length × 6 feet = square feet. For a 30 ft wall: 180 sq ft. Costs $0.30-0.60 per sq ft.
Geogrid (required for walls over 4 ft, recommended for sandy or wet-soil walls under 4 ft): synthetic mesh embedded in courses to tie the wall back into the retained soil. Use depends on wall height and soil type. Sized per engineering specification.
Adhesive (PL400 or specialty landscape block adhesive): one tube per 10-15 feet of wall for cap blocks. $5-10 per tube.
Total material cost for a typical 30 ft × 4 ft Allan Block wall: blocks $400-800, base $40-80, gravel $200-400, drain pipe $50-100, filter fabric $50-100, adhesive $20-40 = $760-1,520 in materials. Plus delivery $50-150.
Circular and curved retaining walls
Curved retaining walls are common for landscape features (planters, tree wells, garden terraces). The math is slightly different from straight walls because each block "fans out" to follow the curve.
Inside radius: the radius from the wall's center to its inside face. The outside radius is the inside plus block depth. For an 8-foot inside radius wall: outside radius is 8 ft + block depth (typically 8-12 inches) = 8.7-9 ft.
Block count for a circle: (inside radius + outside radius) / 2 × π × 2 = circumference. For an 8-foot inside radius circle with 12-inch deep blocks: circumference = (8 + 9) / 2 × π × 2 = 53.4 feet. At 12-inch face length blocks: 53.4 blocks per course.
For a partial curve (semicircle, quarter circle, or curved transition): use the full-circle math then multiply by the fraction of the circle you're building. A semicircle = 50% of circle math. A 90° curve = 25%.
Tighter curves require shorter blocks. Most landscape block systems are designed for minimum radius of 4-6 feet (the inside radius). Tighter curves than this require special "curve" blocks or chipping standard blocks to fit.
Allan Block, Versa-Lok, and Anchor Wall all publish curve guides for their specific systems with minimum radius and per-block dimensional details. For circular and tightly-curved walls: use the manufacturer's curve calculator rather than generic block-count math.
Circular retaining wall block calculator and retaining wall block circle calculator queries: the math above handles the basic case. For specialty systems with non-standard block dimensions, defer to the manufacturer guides.
Cost ranges and installation overview
Total project cost for a typical 30 ft × 4 ft retaining wall depends on whether you do it yourself or hire a contractor.
DIY material cost: $760-1,520 for Allan Block-style interlocking systems on a 30 ft × 4 ft wall. Plus tool rental (plate compactor, level, trowel) $50-100. Total DIY material: $800-1,650.
DIY labour: 20-40 hours for a typical 30 ft × 4 ft wall, depending on site conditions and experience. Excavation (4-8 hours for a 30 ft wall), base preparation (2-4 hours), block laying (12-24 hours), drainage and backfill (4-8 hours), capping and finishing (2-4 hours).
Contractor-built: $4,000-12,000 for the same 30 ft × 4 ft wall. The 5-10× markup over DIY material reflects contractor labour ($35-75 per hour for skilled wall builders), equipment, profit margin, and warranty.
Per-face-foot pricing (used by landscape contractors): $12-30 per face foot installed for typical interlocking blocks. A 30 ft × 4 ft wall = 120 face feet × $12-30 = $1,440-3,600 just for the wall installation, plus excavation, drainage, and cleanup.
Concrete retaining wall calculator pricing: poured concrete walls are different — typically $25-60 per face foot installed for a 4 ft wall. The poured-concrete approach is mostly used for walls over 4 ft, in commercial applications, or where engineering requires it.
Permits: most jurisdictions require a permit for retaining walls over 4 ft tall. Some require permits for any wall holding back soil (regardless of height). Verify with your local building department.
Common retaining wall mistakes
Several mistakes recur in DIY retaining wall projects — most caused by skipping foundation work or misunderstanding drainage.
Skipping the buried course: the bottom course of the wall should be buried at least 4-6 inches below grade for stability. Walls built entirely above grade tip outward over time as the retained soil settles.
Insufficient base depth: 6 inches of compacted crushed stone is the minimum for a stable wall. Skipping the base or using only 2-3 inches leads to settling and wall failure within 1-3 years.
No drainage system: water trapped behind the wall creates hydrostatic pressure that pushes the wall outward. Without a drainage gravel zone behind the wall and a drain pipe at the bottom, even a perfectly-built wall fails within 5-10 years in any rainy climate.
Building too tall without engineering: walls over 4 ft retaining significant soil mass need engineered design. Tall walls without engineering frequently bow, crack, or fail outright.
Wrong setback: each course should step back 0.5-1 inch from the course below (most interlocking systems have this built in). Walls built vertically (no setback) are less stable than walls with proper setback.
Filter fabric omission: without filter fabric between drainage gravel and native soil, the gravel clogs with fine soil over years, eventually losing drainage capacity. The wall stays standing but starts to bow.
Inadequate compaction of base: a plate compactor is essential for the base material. Hand-tamping isn't adequate for walls over 2 ft tall. Rent a plate compactor for $40-80/day; the project doesn't work without it.
How we sourced these numbers
Block dimensions and specifications come from manufacturer technical data (Allan Block AB Classic, Versa-Lok Standard, Anchor Diamond Pro, RockWood, Pavestone). Cost ranges reflect 2026 pricing at major retailers (Home Depot, Lowe's) and landscape supply yards. Per-face-foot installed pricing reflects 2026 contractor surveys in major U.S. metro markets.
Construction recommendations follow industry-standard residential retaining wall practice including base depth, buried courses, drainage requirements, and setback. For walls over 4 ft, engineering is typically required by code; defer to a licensed structural engineer for tall-wall design.
For walls and structural building work elsewhere on the property, this site has dedicated tools. The concrete block calculator handles CMU and cinder block walls for foundations and basement work. The stud calculator handles wood-framed walls including shed walls and addition walls.
For exterior and project-scale budgeting beyond the wall itself, related references cover the surrounding workflow. The siding calculator handles exterior cladding budgeting when retaining walls are part of a broader exterior renovation.
For full-project budgeting, related references cover the surrounding scope. The cost to build a house calculator covers full new construction. The home renovation cost calculator covers whole-house renovation pricing when retaining walls are part of a broader landscape and renovation project.
Need to run the numbers?Use the free roof pitch calculator on the home page to convert pitch to angle, calculate rafter length, or estimate roof area in any unit.