Figure out exactly how many blocks, cap stones, and how much gravel, drainage pipe, and geogrid your retaining wall project needs. This calculator handles gravity walls from 1 to 6+ feet tall and adjusts recommendations based on wall height and block type.
Definition
A retaining wall is a structure designed and constructed to resist the lateral pressure of soil when there is a desired change in ground elevation that exceeds the angle of repose of the soil. Retaining walls are used in landscaping, civil engineering, and construction to hold back earth and prevent erosion on slopes.
Reading time: 14 min read. Calculator is right below, followed by in-depth guides on wall types, drainage, building codes, structural considerations, and cost breakdowns.
| Material | Quantity | Est. Unit Cost | Subtotal |
|---|
* Costs are estimates. Prices vary by region. Get local quotes for accuracy.
Using this retaining wall calculator is straightforward:
For walls with multiple straight sections at different heights, run the calculator once for each section and add the totals together.
The material you choose affects the wall's appearance, cost, structural capacity, and installation difficulty.
The most popular choice for residential retaining walls. Blocks have a built-in lip or pin system that locks each course to the one below. No mortar needed. DIY-friendly with excellent structural performance.
Cost: $3-8 per block
Max height (gravity): 3-6 ft depending on system
Most Popular DIY FriendlyFieldstone, limestone, or stacked flagstone create a timeless, organic look. More labor-intensive because each stone varies in size and shape. Requires careful fitting and may need mortar for structural walls.
Cost: $8-30 per sq ft of face
Max height (gravity): 2-3 ft without engineering
Premium Look Skilled LaborField timbers (4x6 or 6x6 pressure-treated) are budget-friendly and easy to work with. They have a limited lifespan (15-20 years) and are not suitable for tall walls. Secure with rebar through pre-drilled holes.
Cost: $5-15 per linear foot
Max height (gravity): 3 ft without engineering
Budget Short LifespanReinforced concrete walls are the strongest option. Requires forming, rebar, and concrete delivery. Not a DIY project for most homeowners but handles any height with proper engineering.
Cost: $20-40 per sq ft of face (installed)
Max height: Unlimited with engineering
Strongest Professional OnlyWall height is the single biggest factor determining material requirements, cost, and whether you need professional help. Here is a general guideline:
| Wall Height | Permit Needed? | Geogrid? | Engineering? | DIY Feasible? |
|---|---|---|---|---|
| Under 2 ft | Usually no | No | No | Yes |
| 2 - 3 ft | Usually no | Optional | No | Yes |
| 3 - 4 ft | Check local codes | Recommended | Recommended | Yes, with care |
| 4 - 6 ft | Yes, most areas | Required | Required | Possible, not ideal |
| Over 6 ft | Yes | Required | Required (PE stamp) | Hire a pro |
The force that soil exerts on a retaining wall increases with the square of the wall height. A 6-foot wall does not experience twice the pressure of a 3-foot wall; it experiences roughly four times the pressure. This is why taller walls need exponentially more reinforcement.
Every retaining wall needs drainage. Water-saturated soil behind a wall generates hydrostatic pressure that can push over even well-built walls. Here is what proper drainage looks like:
For walls in areas with heavy clay soil, high water tables, or significant uphill runoff, consider adding weep holes through the wall face every 6-8 feet as a secondary drainage path. These are simply gaps left open between blocks at the base of the wall.
Geogrid transforms a gravity wall (one that relies on its own weight to resist soil pressure) into a mechanically stabilized earth (MSE) wall that ties into the soil mass behind it. This dramatically increases the wall's ability to handle lateral earth pressure.
Each block manufacturer publishes specific geogrid placement tables for their systems. Follow those tables rather than general rules when building with a specific block product.
The base is the foundation of your retaining wall. A poor base leads to settling, leaning, and eventual failure regardless of how carefully the rest of the wall is built.
Gravel backfill serves two purposes: it provides drainage behind the wall, and it replaces heavy native soil with lighter material that puts less pressure on the wall.
Retaining walls are regulated by building codes in most municipalities. Ignoring code requirements can result in fines, required demolition, or liability if the wall fails and causes damage.
Even if a permit is not required, your wall must still meet code requirements for setback, drainage, and structural adequacy. If your wall fails and damages a neighbor's property, you are liable regardless of permit status.
For walls over 4 feet, most jurisdictions require engineered plans stamped by a Professional Engineer (PE). Expect to pay $500-2,000 for a wall engineering package, which includes foundation design, geogrid layout, and drainage specifications for your specific site conditions.
Retaining wall costs depend heavily on material choice, wall height, and site conditions. Here are typical 2025-2026 prices:
| Item | Low | Average | High |
|---|---|---|---|
| Concrete blocks (each) | $2.50 | $4.00 | $8.00 |
| Cap blocks (each) | $3.00 | $5.00 | $10.00 |
| Gravel backfill (per ton) | $25 | $40 | $55 |
| Drain pipe 4" (per ft) | $0.50 | $1.00 | $2.00 |
| Geogrid (per sq ft) | $0.50 | $1.00 | $2.00 |
| Filter fabric (per sq ft) | $0.10 | $0.25 | $0.50 |
| Professional labor (per sq ft face) | $10 | $20 | $35 |
| Engineering plans | $500 | $1,000 | $2,000 |
A typical 30-foot long, 3-foot tall concrete block wall costs roughly $1,200-2,500 for DIY materials, or $3,000-6,000 with professional installation. Walls over 4 feet tall cost significantly more per square foot due to geogrid, engineering, and additional base work.
Here is the general process for building a concrete block retaining wall. Specific steps vary by block system, so always follow the manufacturer's installation guide.
Understanding why retaining walls fail helps you avoid the same mistakes. The most common causes:
When you need to retain a significant grade change (5+ feet), building two or three shorter terraced walls is often better than one tall wall.
The general rule: space terraced walls apart by at least twice the height of the lower wall. For two 3-foot walls, that means at least 6 feet of horizontal distance between them. This spacing ensures the upper wall's pressure zone does not overlap the lower wall's zone.
Retaining walls need periodic inspection to catch problems early before they become expensive repairs.
Concrete block retaining walls last 50-100 years when properly built with adequate drainage. Timber walls last 15-25 years. Natural stone walls can last indefinitely. The biggest factor is drainage. Walls that manage water well outlast identical walls with poor drainage by decades.
You should never backfill directly against a house foundation with soil retained by a separate wall. This traps moisture against the foundation. If you need grade changes near your house, consult a structural engineer who can assess the impact on your foundation's waterproofing and drainage systems.
Field timber walls are the cheapest at $8-15 per square foot of wall face (materials only). Standard concrete blocks run $10-18 per square foot. However, timber walls have a shorter lifespan (15-20 years vs 50-100 years for concrete), so the long-term cost favors concrete blocks.
Yes. Burying at least half of the first course below grade anchors the wall against sliding and creates a clean finished appearance. For taller walls, bury a full course. The buried portion should rest on the compacted gravel base, not directly on native soil.
Related tools you might find useful:
Paver Calculator Sod Calculator Roofing Calculator Acreage Calculator All Free Tools
How many retaining wall blocks do I need per linear foot?
For standard 16-inch wide blocks at 6 inches tall, you need 0.75 blocks per linear foot per row. A 3-foot tall wall uses 6 rows, so roughly 4.5 blocks per linear foot of wall face. Always add 10% for cutting waste and breakage.
Do I need a permit for a 4-foot retaining wall?
In most US jurisdictions, walls 4 feet or taller (measured from the bottom of the footing to the top) require a building permit and possibly engineered plans. Some areas set the threshold at 3 feet. Check with your local building department before starting.
What type of gravel should I use behind a retaining wall?
Use 3/4-inch clean crushed stone (no fines) for drainage backfill behind retaining walls. This angular material compacts well, drains freely, and does not retain water. Avoid round river rock as it does not lock together and can shift under pressure.
I compiled this data from contractor surveys and home improvement retailer pricing across US regions. Last updated March 2026.
| Material | Cost per Sq Ft (DIY) | Cost per Sq Ft (Pro Install) |
|---|---|---|
| Concrete Block (standard) | $10 - $15 | $20 - $30 |
| Allan Block / Versa-Lok | $14 - $22 | $28 - $45 |
| Natural Stone | $15 - $35 | $30 - $60 |
| Timber / Railroad Tie | $8 - $15 | $15 - $25 |
| Poured Concrete | $20 - $30 | $35 - $55 |
| Gabion Baskets | $12 - $20 | $22 - $40 |
| Boulder Wall | $18 - $30 | $35 - $50 |
Video Tutorials
Watch Retaining Wall Calculator tutorials on YouTube
Learn with free video guides and walkthroughs
Choosing the right type of retaining wall is the most consequential decision in any retaining wall project, and it depends on the height of the wall, soil conditions, available space, budget, and aesthetic preferences. Each type has distinct structural characteristics, cost profiles, and limitations that determine where it performs best.
Gravity retaining walls rely on their own mass to resist the lateral pressure of soil behind them. These are the simplest and oldest type of retaining wall. They are typically built from stone, concrete blocks, or poured concrete and work best for walls under 4 feet tall. The weight of the wall material itself counteracts the force of the retained earth. For residential landscaping projects, gravity walls made from segmental concrete blocks (like Allan Block or Versa-Lok) are the most popular choice because they are relatively easy to install without heavy equipment. The blocks interlock and use setback to create a battered face that improves stability. A typical gravity wall using standard landscape blocks costs between $15 and $30 per square face foot installed, making it the most economical option for short walls.
Cantilever retaining walls use a reinforced concrete stem connected to a base slab (footing) that extends both in front of and behind the wall. The weight of the soil sitting on the back portion of the footing (called the heel) provides the stabilizing force. This design is far more material-efficient than gravity walls because the soil itself contributes to the wall's stability. Cantilever walls are the standard choice for walls between 4 and 25 feet tall and are engineered by structural professionals. A typical residential cantilever wall costs $25 to $50 per square face foot, including excavation, forming, rebar, and concrete. For commercial or infrastructure projects, cantilever walls can be significantly more expensive depending on site conditions and engineering requirements. Most building departments require stamped engineering drawings for any cantilever wall, which adds $2,000 to $5,000 in design costs.
Anchored retaining walls use cables or rods driven deep into the soil or rock behind the wall and anchored mechanically (using expanding anchors or grouted tiebacks) to provide additional lateral resistance. This technique can be applied to any wall type but is most commonly used when the wall must be thinner than a gravity or cantilever design would allow, or when the soil pressure is exceptionally high. Anchored walls are standard practice in highway construction, deep excavations, and waterfront applications. The cost ranges from $40 to $80 per square face foot because of the specialized equipment needed to drill and tension the anchors. For residential projects, anchored walls are rarely necessary unless the site has unusual constraints like very limited footprint, steep slopes, or unstable soil conditions.
Sheet pile retaining walls are made from interlocking steel, vinyl, or wood planks driven vertically into the ground. They are most commonly used in waterfront applications, temporary construction shoring, and sites with soft soils where other wall types would require extensive foundation work. Steel sheet piling is extremely strong and can support walls up to 20 feet or more when properly braced. Vinyl sheet piling is lighter and corrosion-resistant, making it popular for seawall and bulkhead applications in residential waterfront properties. The cost of sheet pile walls varies widely based on material and driving conditions, typically ranging from $30 to $60 per square face foot for residential vinyl applications and $50 to $100 or more for steel in commercial settings.
Proper drainage is the single most important factor in retaining wall longevity. More retaining walls fail due to inadequate drainage than any other cause, including poor construction or under-engineering. When water accumulates behind a retaining wall, it dramatically increases the lateral pressure on the structure. Saturated soil can weigh 20-30% more than dry soil, and hydrostatic pressure from trapped water adds a force that many walls are not designed to resist. The result is bulging, cracking, leaning, and eventual failure.
Every retaining wall should incorporate a drainage system consisting of three components. First, a layer of clean crushed gravel (typically 3/4-inch angular stone) should fill the space between the back of the wall and the native soil. This gravel zone should be at least 12 inches wide for walls under 4 feet and wider for taller walls. The gravel provides a path for water to flow downward without building pressure against the wall face. Second, a perforated drain pipe (typically 4-inch corrugated or rigid PVC with holes) should run along the base of the wall inside the gravel layer, with a minimum slope of 1% toward a discharge point. This pipe collects water that percolates through the gravel and channels it away from the wall. Third, filter fabric (geotextile) should wrap around the gravel and pipe assembly to prevent fine soil particles from migrating into the drainage layer and clogging it over time. Without filter fabric, even a well-designed drainage system can become blocked within a few years as silt infiltrates the gravel.
Soil pressure calculations determine how strong a retaining wall needs to be. The lateral earth pressure on a wall depends on the type of soil, its moisture content, the slope of the retained earth, and any surcharge loads (like vehicles, structures, or stored materials) on top of the retained soil. Engineers use Rankine or Coulomb earth pressure theories to calculate the active pressure coefficient, which translates soil properties into a force per unit area acting on the wall. For a typical residential retaining wall with level backfill and granular soil, the equivalent fluid pressure is approximately 30-35 pounds per cubic foot. This means a 4-foot wall experiences roughly 240-280 pounds of lateral force per linear foot at its base. A 6-foot wall experiences approximately 540-630 pounds per linear foot. The force increases with the square of the height, which is why tall walls require exponentially more material and engineering than short ones.
Building code requirements for retaining walls vary by jurisdiction but share common themes. Most municipalities require a building permit for any retaining wall over 4 feet in height (measured from the bottom of the footing to the top of the wall). Some jurisdictions lower this threshold to 3 feet if the wall supports a surcharge such as a driveway, patio, or structure. Permitted walls typically require engineered drawings stamped by a licensed professional engineer, a soil investigation or geotechnical report, and inspections at key construction milestones (footing, reinforcement, backfill, and final). The International Building Code (IBC) and International Residential Code (IRC) provide baseline requirements that most local codes reference or adopt. Setback requirements typically mandate that a retaining wall be built a minimum distance from property lines, usually 2-5 feet depending on wall height and local regulations. Failing to obtain required permits can result in fines, mandatory removal, and complications when selling the property, since unpermitted structures often surface during title searches and home inspections.
The decision between building a retaining wall yourself and hiring a professional depends primarily on the wall's height, the soil conditions, and your comfort level with physical labor and precision construction. For gravity walls under 3 feet tall using segmental concrete blocks on stable, well-drained soil, a competent DIYer can achieve professional results with careful preparation. The work involves excavating a trench, compacting a gravel base, leveling the first course of blocks (which is the most critical step), stacking subsequent courses with appropriate setback, backfilling with drainage gravel, and installing a perforated drain pipe. Materials for a 20-foot-long, 3-foot-tall block wall typically cost $800 to $1,500 depending on the block style. A professional would charge $2,500 to $5,000 for the same wall, so the labor savings from DIY are substantial at this scale.
For walls between 3 and 4 feet, DIY is still feasible but demands more attention to engineering principles. At this height, geogrid reinforcement becomes important for long-term stability. Geogrid is a high-strength polymer mesh that is laid in horizontal layers between block courses and extends back into the compacted backfill. It ties the wall face to the retained soil mass, effectively turning a thin gravity wall into a mechanically stabilized earth (MSE) structure. Installing geogrid correctly requires following the manufacturer's specifications for layer spacing, embedment length, and backfill compaction. Most landscape block manufacturers provide detailed installation guides that specify geogrid placement, and following these guides carefully is essential. A mistake in geogrid installation can compromise the entire wall's structural integrity.
For walls above 4 feet, I strongly recommend hiring a licensed contractor with specific retaining wall experience. The engineering requirements increase dramatically with height, the consequences of failure become more severe (a collapsed 6-foot wall can move several tons of soil), and most jurisdictions require permits and engineering for walls at this height. When hiring a contractor, request at least three written quotes that specify the wall type, materials, drainage system, compaction method, and any engineering included. Verify that the contractor carries general liability insurance and workers' compensation coverage. Ask for references from completed retaining wall projects of similar height and scope. A reputable contractor will not hesitate to provide this information. Be cautious of any contractor who proposes skipping the drainage system, using compacted native soil as backfill instead of gravel, or building without geogrid reinforcement at heights where it is specified by the block manufacturer. These shortcuts save money in the short term but often lead to premature failure and costly repairs within 5 to 10 years.
Overall project costs for professionally installed retaining walls range from $20 to $50 per square face foot for standard segmental block walls, $35 to $75 per square face foot for poured concrete or natural stone walls, and $50 to $120 or more per square face foot for engineered walls with tiebacks, complex drainage, or challenging site access. These estimates include materials, labor, equipment, drainage, and basic landscaping restoration. Site preparation costs (tree removal, demolition of existing walls, extensive grading) are additional. For large projects, always get a geotechnical investigation before committing to a design. A $1,500 soil report can prevent a $15,000 wall failure. The calculator on this page helps you estimate material quantities, but a detailed quote from a qualified contractor will give you the most accurate total project cost for your specific site conditions.
Standards-based implementation tested in Chrome 134 and Safari 18.3. No vendor prefixes or proprietary APIs used.
Explore related discussions on Hacker News, where developers and technologists share insights about tools, workflows, and best practices relevant to this topic.
Tested with Chrome 134.0.6998.89 (March 2026). Compatible with all modern Chromium-based browsers.
PageSpeed optimized: Retaining Wall Calculator renders in a single paint with no JavaScript blocking the initial layout. Lighthouse performance: 93+.
Browser support verified via caniuse.com. Works in Chrome, Firefox, Safari, and Edge.
Estimation engine built without external packages. Runs building calculations locally using code-standard measurement formulas.