Retaining Wall Calculator

Cross-Section View
Wall Construction
%
Cost Estimation
Material Requirements
Wall Blocks Needed: 0 Blocks
Cap Stones: 0
Fill Material Volume:
Gravel Base (6″ deep): 0 yd³
Drainage Backfill (12″): 0 yd³
Professional Hardscape & Retaining Wall Estimator

Retaining Wall Calculator: How to Calculate Blocks, Backfill, and Cost

A retaining wall holds back soil, prevents erosion, creates level terraces, and adds structure to sloped landscapes. Whether you’re planning a simple garden border or a load-bearing structure to support a driveway or hillside, calculating the right number of blocks, the right amount of backfill gravel, and a realistic cost estimate before you order anything is essential.

This guide walks through every calculation you need: block count formulas, backfill gravel quantities, drainage requirements, cost tables by wall type, and the design rules that determine whether your wall will last decades or fail within a few years.

Retaining Wall Calculator

What Is a Retaining Wall?

A retaining wall is any structure designed to resist the lateral pressure of soil — holding back earth on one side while creating a level or lower grade on the other. Retaining walls are used for:

  • Terracing sloped yards to create usable flat space
  • Preventing soil erosion on hillsides and embankments
  • Supporting roads, driveways, and building foundations
  • Creating raised garden beds and planters
  • Stabilizing cuts made during grading and landscaping

The material, height, and footing depth of a retaining wall determine both its load capacity and its longevity. Walls under 3 feet tall are generally considered DIY-friendly; walls 4 feet and above typically require a building permit and, in many jurisdictions, a licensed engineer’s sign-off.


How to Calculate Retaining Wall Blocks

The retaining wall block calculation uses a simple grid formula: count how many blocks fit across the length (columns) and how many rows fit up the height.

The Block Count Formula

Number of Columns = Wall Length ÷ Block Length

Number of Rows = Wall Height ÷ Block Height

Total Blocks = Columns × Rows

Round up each result to the nearest whole number before multiplying.

If your wall has a cap row (a decorative top course of different or matching blocks), subtract one from the row count before multiplying, then calculate cap blocks separately:

Wall Blocks = Columns × (Rows − 1)

Cap Blocks = Columns × 1

Block Face Area Method (Square Footage)

Some block suppliers sell retaining wall blocks rated in face square feet per block rather than exact dimensions. In this case:

Wall Face Area (sq ft) = Wall Length (ft) × Wall Height (ft)

Blocks Needed = Wall Face Area ÷ Face Area per Block

Common face area ratings for retaining wall blocks:

  • Small blocks: ~0.17 sq ft per block face
  • Medium blocks: ~0.32 sq ft per block face
  • Large blocks: ~0.67 sq ft per block face

Always add 10–15% to your calculated block count for cuts, waste, and the first buried course.

Worked Example

A retaining wall 40 feet long and 3 feet high, using blocks that are 6 inches tall × 12 inches long (0.5 ft × 1 ft):

  • Rows: 3 ft ÷ 0.5 ft = 6 rows
  • Columns: 40 ft ÷ 1 ft = 40 columns
  • Total blocks: 6 × 40 = 240 blocks
  • Add 10% waste: 240 × 1.10 = 264 blocks — order 270

Standard Retaining Wall Block Sizes

Block dimensions vary by manufacturer and product line. These are the most common standard sizes you’ll find at home centers like Home Depot and Lowe’s and at landscape supply yards.

Common Retaining Wall Block Dimensions

Block TypeTypical Dimensions (H × W × L)Face AreaWeight
Small garden block4″ × 6″ × 8″0.22 sq ft18–22 lbs
Standard landscape block4″ × 8″ × 12″0.33 sq ft28–35 lbs
Medium retaining block6″ × 8″ × 12″0.50 sq ft35–50 lbs
Large retaining block6″ × 10″ × 16″0.67 sq ft50–75 lbs
Allan Block / Keystone6″ × 10″ × 18″0.75 sq ft55–80 lbs
Versa-Lok standard6″ × 12″ × 16″0.67 sq ft78 lbs
Jumbo block8″ × 12″ × 18″1.00 sq ft100+ lbs

For any project over 2 feet in height, use manufacturer-specified dimensions for your specific block product rather than generic estimates.


What Is the 1/3 Rule for Retaining Walls?

The 1/3 rule is one of the most important structural guidelines for any gravity-type block retaining wall. It states:

The buried depth of the first course (below grade) should be at least 1/10 of the total exposed wall height, and the base width of the wall should be at least 1/3 of the total height.

More practically stated for builders:

  • Bury the first course: For every foot of finished wall height, bury approximately 1 inch of the first course below grade. A 3-foot-tall finished wall should have its first course at least 3–4 inches below the final grade, sitting on a compacted gravel base.
  • Base width = 1/3 of height: A 3-foot wall needs a base approximately 1 foot wide. A 6-foot wall needs a base at least 2 feet wide. This ensures the wall’s center of gravity remains within its footprint and resists overturning from soil pressure.

This rule applies to gravity retaining walls — walls that rely on mass and geometry to resist lateral soil pressure rather than reinforcement. Interlocking block walls (Allan Block, Keystone, Versa-Lok) use this principle plus the mechanical interlock of their back lip to achieve stability.

For walls over 4 feet, the setback per course also matters: most segmental retaining wall systems batter (lean back into the slope) at approximately 1/4 inch per course, which adds further stability.


Retaining Wall Backfill Calculator: How Much Gravel Do You Need?

Proper drainage behind a retaining wall is not optional — it’s structural. Without adequate drainage, hydrostatic pressure builds up behind the wall during rain events, dramatically increasing the load on the wall face and accelerating failure.

Backfill Formula

Backfill Volume (cubic feet) = Thickness (ft) × Wall Length (ft) × Wall Height (ft)

Backfill Volume (cubic yards) = Cubic Feet ÷ 27

Backfill Weight (tons) = Cubic Yards × 1.4 (gravel density estimate)

Recommended Backfill Specifications

ParameterMinimumRecommended
Backfill zone thickness12 inches (1 ft)18–24 inches for walls over 3 ft
MaterialClean crushed stone (#57 or 3/4″ clean)Washed gravel, #57 stone
Drainage pipeOptional under 3 ftRecommended over 3 ft
Landscape fabricSeparate fill from native soilRequired between backfill and native soil

Backfill Gravel Quick Reference

Wall LengthWall Height12″ Backfill (cu yd)18″ Backfill (cu yd)
20 ft2 ft1.48 cu yd2.22 cu yd
20 ft3 ft2.22 cu yd3.33 cu yd
40 ft3 ft4.44 cu yd6.67 cu yd
40 ft4 ft5.93 cu yd8.89 cu yd
60 ft4 ft8.89 cu yd13.33 cu yd
60 ft6 ft13.33 cu yd20.00 cu yd

How Much Crushed Stone for a Retaining Wall?

For backfill, use clean, crushed angular stone — #57 stone (3/4 inch) or similar clean crushed gravel. Avoid rounded pea gravel (it migrates too easily) and fine materials like sand or crusher dust (they retain water and reduce drainage capacity).

For a standard 40 ft × 3 ft wall with 12 inches of gravel backfill:

Volume = 1 ft × 40 ft × 3 ft = 120 cubic feet ÷ 27 = 4.44 cubic yards

At approximately 1.4 tons per cubic yard: 6.2 tons of crushed stone

Add 10% overage: order 7 tons of #57 stone


Retaining Wall Cost Calculator

The installed cost of a retaining wall depends primarily on the material type, wall height, length, and labor rates in your area.

Average Retaining Wall Cost per Square Foot (Installed)

Wall TypeMaterial Cost (per sq ft face)Installed Cost (per sq ft)Lifespan
Concrete block (CMU)$10 – $20$25 – $5050+ years
Segmental landscape block$8 – $18$18 – $4520–40 years
Poured concrete$15 – $30$30 – $6050+ years
Timber / railroad ties$5 – $12$15 – $3510–20 years
Natural stone (dry stack)$15 – $40$35 – $7540+ years
Gabion wire baskets$10 – $25$25 – $5025–50 years
Boulder wall$20 – $50$40 – $9050+ years

Retaining Wall Cost by Project Size

Wall SizeSegmental Block (Installed)Timber (Installed)Poured Concrete (Installed)
20 ft × 2 ft (40 sq ft)$720 – $1,800$600 – $1,400$1,200 – $2,400
40 ft × 3 ft (120 sq ft)$2,160 – $5,400$1,800 – $4,200$3,600 – $7,200
60 ft × 4 ft (240 sq ft)$4,320 – $10,800$3,600 – $8,400$7,200 – $14,400
40 ft × 6 ft (240 sq ft)$4,320 – $10,800N/A (limit 4 ft)$7,200 – $14,400

How Much Does It Cost to Build a 4 Foot Retaining Wall?

A 4-foot retaining wall is at the threshold where engineering and permitting requirements kick in for many jurisdictions. It’s also the height where material choice, backfill quality, and footing design become structurally critical.

For a standard 30-foot-long, 4-foot-tall segmental block retaining wall:

ItemEstimated Cost
Retaining wall blocks (180 sq ft face, ~270 blocks)$1,350 – $4,860
Cap blocks (30 blocks)$150 – $450
Gravel base (4–6 tons)$120 – $300
Backfill gravel (~7 tons of #57 stone)$175 – $490
Landscape fabric$30 – $60
Drainage pipe (30 ft)$40 – $80
Labor (professional)$1,500 – $3,600
Total estimated range$3,365 – $9,840

DIY material-only cost for the same wall: $1,600 – $4,500, assuming you rent a plate compactor and have appropriate excavation equipment.


Retaining Wall Footing and Base Requirements

The base of a retaining wall does as much structural work as the visible face. A proper base ensures the wall sits level, resists settlement, and provides drainage.

Footing Specifications by Wall Height

Wall HeightBase Trench DepthCompacted Gravel BaseFirst Course Burial
Under 2 ft4–6 inches4 inches of 3/4″ compacted gravel1–2 inches
2–3 ft6–8 inches6 inches of compacted gravel2–4 inches
3–4 ft8–12 inches6–8 inches of compacted gravel4–6 inches
4–6 ft12–18 inches8–12 inches of compacted gravel6–12 inches
Over 6 ftEngineer-specifiedEngineer-specifiedEngineer-specified

The base gravel should be a dense-graded angular stone (crusher run or crushed limestone) compacted in 2-inch lifts with a plate compactor. Soft or organic soils may require deeper excavation and additional base preparation.


Retaining Wall Material Comparison

Which Retaining Wall Material Should You Choose?

FactorSegmental BlockTimber / Railroad TiePoured ConcreteNatural StoneGabion
DIY-friendlyYes (under 4 ft)Yes (under 4 ft)DifficultYes (dry stack)Moderate
Cost (material)ModerateLow – ModerateHighHighModerate
Lifespan20–40 years10–20 years50+ years40+ years25–50 years
Max DIY height3–4 ft3–4 ftRequires forms3–4 ft4–6 ft
Permits requiredOver 3–4 ftOver 3–4 ftOver 3–4 ftOver 3–4 ftVaries
DrainageGood (built-in holes)GoodRequires weep holesExcellentExcellent
AppearanceClean, uniformNatural, rusticSmooth, modernNatural, premiumIndustrial

How Long Will a 6×6 Retaining Wall Last?

A 6×6 inch pressure-treated timber retaining wall — the most common DIY timber retaining wall construction using 6×6 inch lumber — will last approximately 15–25 years in most conditions, depending on:

  • Treatment level: Timbers rated for ground contact (UC4B or UC4C) last significantly longer than standard lumber-grade PT. Look for “For Ground Contact” stamped on the timber.
  • Drainage quality: Timbers in constantly wet or waterlogged conditions deteriorate much faster than those with proper gravel backfill and drainage.
  • Soil chemistry: Acidic soils, fertilizer-heavy garden beds, and soils with high organic content accelerate wood decay.
  • Climate: Frequent freeze-thaw cycles cause movement that stresses the wall connections and post embedment points.

Railroad ties (used railroad ties, not fresh creosote ties) have a similar lifespan of 10–20 years as a retaining wall material. The end-grain of any timber used as a wall post deteriorates fastest — sealing cut ends with a wood preservative or end-cut solution extends service life.

For any permanent application, segmental concrete block or poured concrete outlasts timber by decades.


When Do You Need a Permit for a Retaining Wall?

Permit requirements vary by jurisdiction but follow general thresholds:

Wall HeightTypical Permit Requirement
Under 2 ftNo permit required in most areas
2–3 ftNo permit in most areas; check HOA restrictions
3–4 ftSome jurisdictions require permit; engineering rarely required
Over 4 ftMost jurisdictions require permit and engineer’s stamp
Over 6 ftAlways requires permit and licensed engineer in all jurisdictions

Walls near property lines, drainage easements, utility lines, or load-bearing structures (foundations, driveways) may require permits at any height. Always check with your local building department before excavating.


Frequently Asked Questions

How to Calculate for a Retaining Wall?

Divide the wall height by the block height to get the number of rows. Divide the wall length by the block length to get the number of columns. Multiply rows × columns for total blocks. Add 10–15% for waste and cuts. For backfill gravel, multiply wall length × wall height × desired backfill thickness (minimum 1 foot), then divide by 27 to get cubic yards. Use our retaining wall calculator above to handle all steps automatically.

How to Calculate Retaining Wall Cost?

Multiply the total number of blocks by the price per block. Add the cost of cap blocks, base gravel, backfill gravel, landscape fabric, and drainage pipe. Then add labor at $15–$30 per square foot of wall face for professional installation, or omit labor for a DIY material-only estimate. For a typical 30-foot by 3-foot segmental block wall, total installed cost runs $2,000–$6,000 depending on material grade and region.

How Much Crushed Stone for a Retaining Wall?

Use a minimum 12-inch-thick layer of clean #57 or 3/4-inch crushed stone behind the wall for drainage. Calculate: Wall Length × Wall Height × Backfill Thickness (1 foot minimum) = cubic feet ÷ 27 = cubic yards × 1.4 = tons of stone. For a 40-foot × 3-foot wall with 12 inches of backfill, you’ll need approximately 6–7 tons of crushed stone. Add 10% overage.

How Long Will a 6×6 Retaining Wall Last?

A 6×6 pressure-treated timber retaining wall rated for ground contact (UC4B) lasts approximately 15–25 years with proper drainage and installation. Untreated or improperly drained timber walls may fail in 8–12 years. For longevity beyond 25 years, concrete block or poured concrete is the appropriate material choice.

What Is the 1/3 Rule for Retaining Walls?

The 1/3 rule states that the base width of a gravity retaining wall should be at least one-third of the total wall height. A 3-foot wall needs a base approximately 1 foot wide; a 6-foot wall needs a 2-foot-wide base. This ensures the wall’s weight keeps it stable against the soil pressure pushing from behind. The first course should also be buried below finished grade at a ratio of roughly 1 inch of burial per foot of finished wall height.

How Much Does It Cost to Build a 4 Foot Retaining Wall?

A 4-foot-tall segmental block retaining wall typically costs $30–$60 per linear foot in materials alone, or $60–$120 per linear foot installed by a contractor. For a 30-foot wall, expect $1,800–$3,600 in materials and $3,600–$9,000 installed including excavation, base preparation, backfill, drainage, and labor. Poured concrete runs higher at $60–$100+ per linear foot installed. A 4-foot wall often requires a building permit — confirm with your local building department before starting.


Quick Reference Summary

CalculationFormula
Number of blocks(Wall Height ÷ Block Height) × (Wall Length ÷ Block Length)
Wall face areaWall Height (ft) × Wall Length (ft)
Backfill volume (cu yd)(Thickness × Length × Height in ft) ÷ 27
Backfill weight (tons)Cubic yards × 1.4
1/3 rule (base width)Wall Height ÷ 3
Waste factorAdd 10–15% to all material quantities
Permit threshold4 ft in most US jurisdictions
Timber lifespan (6×6 PT)15–25 years with proper drainage
Segmental block lifespan20–40 years
Minimum backfill depth12 inches of #57 clean crushed stone

Use the retaining wall calculator above to get your block count, backfill tonnage, and total material cost instantly — enter your wall dimensions, block size, and material prices to get a complete project estimate in seconds.