Retaining Wall Calculator

Work out how many blocks, cap pieces, and cubic yards of gravel your retaining wall needs. Enter wall and block dimensions for an instant material list.

Select Currency
Wall Dimensions
Block Details
Base & Backfill
Cost & Waste
$
$
$
$
Retaining Wall Summary
Total Blocks: —
Wall Face Area
Number of Rows
Blocks per Row
Total Blocks Needed
Blocks with Waste
Cap Blocks Needed
Base Gravel Volume
Backfill Gravel Volume
Total Gravel Volume
Gravel Weight
Estimated Total Cost
ComponentValueUnit

Enter details and calculate to see breakdown.

Powered by Techraxy

Creator & Reviewer

Faiq Ur Rahman

Founder & CEO, Techraxy

Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

Introduction

A retaining wall fails for two reasons: bad drainage and bad material counts. You can’t fix the first after the fact. You can fix the second before you order. This tool gives you the numbers before you leave the house.

Take a 24 ft wall at 3.5 ft exposed height with 0.5 ft buried. Using standard 18 in × 6 in blocks, you’d need 6 rows (including the buried course) and about 17 blocks per row. That’s roughly 102 blocks before waste. Add 5% and you’re at 108. The base trench takes 6 in of gravel across a 16 in width. The backfill behind the wall runs the full height plus burial, 12 in wide. Total gravel lands near 90 cubic feet, or about 3.3 cubic yards.

Those are the numbers a supplier needs. This calculator gives them to you in one pass, with the waste factor and cost math built in. It’s an estimating tool, not a structural design tool. For walls over 4 feet, you’ll still need an engineer’s stamp and a geogrid plan.

 

How to Use the Retaining Wall Calculator

  1. Pick your currency from the dropdown if you want the cost estimate in something other than US dollars.

  2. Enter the wall length and choose the unit: feet, inches, meters, centimeters, or millimeters.

  3. Enter the exposed wall height — the part you’ll see above grade.

  4. Enter the burial depth. Most block walls bury 6 to 12 inches of the first course. Half a foot is a common default.

  5. Input the block length. Standard landscape blocks run 12 to 18 inches.

  6. Input the block height. Four to 8 inches covers most segmental blocks.

  7. Input the block depth. This is the front-to-back measurement, usually 8 to 12 inches.

  8. Set the base gravel depth and width. Six inches deep by 16 inches wide is typical for a residential wall.

  9. Set the backfill gravel width — the distance behind the wall that gets drained. Twelve inches is standard.

  10. Enter the cost per block, cost per cap, and gravel cost. Choose the gravel pricing unit from the dropdown.

  11. Set the waste factor. Five percent is a safe default for a straight wall. Bump it to 10% for curves or step-downs.

  12. Add any additional costs for drain pipe, filter fabric, or adhesive. Hit Calculate.

 

How the Retaining Wall Formula Works

The calculator converts everything to feet, then counts blocks by rows and columns.

Formula: Total Height (ft) = Exposed Height + Burial Depth

Formula: Number of Rows = ceil(Total Height ÷ Block Height (ft))

Formula: Blocks per Row = ceil(Wall Length (ft) ÷ Block Length (ft)) + 1

Formula: Total Blocks = Rows × Blocks per Row

Formula: Blocks with Waste = ceil(Total Blocks × (1 + Waste % ÷ 100))

Formula: Cap Blocks with Waste = ceil(Blocks per Row × (1 + Waste % ÷ 100))

Formula: Base Gravel (ft³) = Wall Length × Base Width × Base Depth

Formula: Backfill Gravel (ft³) = Wall Length × Backfill Width × Total Height

Formula: Total Gravel (ft³) = Base Gravel + Backfill Gravel

Formula: Block Cost = Blocks with Waste × Cost per Block

Formula: Total Cost = Block Cost + Cap Cost + Gravel Cost + Additional Costs

The ceil function rounds up. A wall that needs 16.2 blocks per row becomes 17. The +1 on blocks per row accounts for the half-block you almost always need at the end of a run. The tool enforces a minimum of 2 blocks per row.

Burial depth matters for two reasons. First, it adds to the total height the wall must cover, which adds rows. Second, the buried portion still needs backfill gravel behind it. A 0.5 ft burial on a 3 ft wall gives you 3.5 ft of total height. On a 24 ft wall with 6 in blocks, that’s ceil(3.5 ÷ 0.5) = 7 rows instead of 6.

Gravel cost can be entered three ways. A per-cubic-foot price multiplies straight through. A per-cubic-yard price gets divided by 27 first. A per-cubic-meter price gets divided by 35.3147. The tool handles that conversion so you can use whatever unit your supplier quotes.

Gravel weight is estimated at 100 lb/ft³. That’s a reasonable average for crushed stone. Actual weight varies with moisture and aggregate type.

 

Worked Example

You’re building a 28 ft wall with 4 ft of exposed height and 0.75 ft buried. Your blocks are 16 in long, 6 in high, and 10 in deep. Base gravel runs 6 in deep by 18 in wide. Backfill gravel is 12 in wide. Blocks cost $3.75 each. Caps cost $4.50 each. Gravel is $32 per cubic yard. You’re adding $60 for drain pipe and fabric.

Step 1: Total height.
4 + 0.75 = 4.75 ft.

Step 2: Convert block dimensions to feet.
Length: 16 ÷ 12 = 1.333 ft. Height: 6 ÷ 12 = 0.5 ft. Depth: 10 ÷ 12 = 0.833 ft.

Step 3: Number of rows.
ceil(4.75 ÷ 0.5) = ceil(9.5) = 10 rows.

Step 4: Blocks per row.
ceil(28 ÷ 1.333) + 1 = ceil(21.0) + 1 = 21 + 1 = 22 blocks.

Step 5: Total blocks.
10 × 22 = 220 blocks.

Step 6: Blocks with 5% waste.
ceil(220 × 1.05) = ceil(231) = 231 blocks.

Step 7: Cap blocks with waste.
ceil(22 × 1.05) = ceil(23.1) = 24 caps.

Step 8: Base gravel.
28 × 1.5 × 0.5 = 21 ft³.

Step 9: Backfill gravel.
28 × 1.0 × 4.75 = 133 ft³.

Step 10: Total gravel.
21 + 133 = 154 ft³. In cubic yards: 154 ÷ 27 = 5.70 yd³.

Step 11: Gravel cost.
5.70 × $32 = $182.40.

Step 12: Block and cap cost.
Blocks: 231 × $3.75 = $866.25. Caps: 24 × $4.50 = $108.00.

Step 13: Total cost.
$866.25 + $108.00 + $182.40 + $60.00 = $1,216.65.

The summary tab shows 231 blocks, 24 caps, 154 ft³ of gravel (5.70 yd³), and $1,216.65 total cost. The breakdown tab lists every converted dimension and intermediate value.

Frequently Asked Questions

How many blocks do I need for a 20×10 retaining wall?

A 20 ft long, 10 ft tall wall is not a standard residential project. Walls over 4 ft usually need engineering. For a 20 ft wall at 3 ft high with 18×6 inch blocks: 20 ÷ 1.5 = 13.33, round up to 14, plus one for 15 blocks per row. Total height with 0.5 ft burial is 3.5 ft. 3.5 ÷ 0.5 = 7 rows. 7 × 15 = 105 blocks before waste. Add 5% for 111.

 

How much gravel do I need for a retaining wall?

Base gravel and backfill gravel are separate. Base gravel fills the trench under the first course. Backfill fills the drainage zone behind the wall. For a 30 ft wall at 3 ft high with 0.5 ft burial, 6 in base depth, 16 in base width, and 12 in backfill width: base is 30 × 1.333 × 0.5 = 20 ft³. Backfill is 30 × 1.0 × 3.5 = 105 ft³. Total is 125 ft³, or 4.6 cubic yards.

 

How deep should the first course of blocks be buried?

Six to twelve inches for most residential walls. Burying the first course locks the wall against the soil in front and prevents it from sliding. A 3 ft wall typically buries 6 inches. A 4 ft wall buries 9 to 12 inches. Check your block manufacturer’s installation guide, some specify a minimum embedment for their system.

 

What is the standard block size for a retaining wall?

Landscape retaining wall blocks commonly measure 12 inches long, 4 inches high, and 8 inches deep. Larger units run 18 inches long, 6 inches high, and 10 to 12 inches deep. Both sizes are in the calculator’s default range. Enter the actual dimensions from the block you’re buying. The count changes significantly between a 12×4 block and an 18×6 block.

 

How do you calculate cap blocks for a retaining wall?

Divide the wall length by the cap block length, round up, and add waste. If your wall is 24 ft and caps are 16 inches long: 24 ÷ 1.333 = 18.0, round up to 18. Add 5% for 19 caps. Cap blocks are usually the same length as the wall blocks, so the count often matches the blocks-per-row figure. This calculator applies the same waste factor to caps as it does to wall blocks.

 

What is the standard gravel base for a retaining wall?

Six inches of compacted 3/4-inch clear crushed stone, extending at least 6 inches beyond the block on both sides. Excavate 6 to 8 inches to allow for compaction. The base must be level front-to-back and side-to-side. A 4-foot level and a rubber mallet are the tools for getting the first course flat. Every course above it follows that base.

 

Can I build a retaining wall myself?

Walls up to 3 or 4 feet tall are common DIY projects. They need careful excavation, a compacted gravel base, proper drainage, and good technique. Walls over 4 feet usually require a permit, engineered drawings, and geogrid reinforcement. The material count from this calculator will work for a DIY wall. The structural design won’t. If your wall holds back a slope, a driveway, or a structure, get an engineer involved.

 

How much does a retaining wall cost per square foot?

Materials for a block retaining wall run $10 to $20 per square foot of wall face. That covers blocks, caps, gravel, and drainage components. Labor adds $15 to $30 per square foot if you hire it out. A 20 ft by 3 ft wall (60 square feet of face) lands between $600 and $1,200 in materials and $1,500 to $3,000 installed. The calculator’s cost output covers materials only.

 

Does the calculator include geogrid?

No. Geogrid is a soil reinforcement layer used on taller walls, usually anything over 4 feet or walls carrying a surcharge load. It runs horizontally behind the wall at specified intervals. The calculator doesn’t model geogrid because the spacing and depth depend on an engineer’s design. If your wall needs it, the geogrid is a separate line item on your material list.

 

Is this retaining wall calculator free?

Yes. No cost, no sign-up, no limit on how many walls you estimate. The calculations run in your browser. Use the Copy button to grab the results for a supplier quote, or the Share button to send them to someone else on the job.

Disclaimer

This calculator provides material estimates for planning and budgeting. It does not design retaining walls. Structural capacity, soil bearing pressure, drainage requirements, and geogrid reinforcement all depend on site conditions, soil type, wall height, and local building codes. Walls over 4 feet in most jurisdictions require engineered drawings and a permit. Verify all quantities with your block supplier or a licensed engineer before ordering. The cost figures are material estimates only and do not include labor, equipment, or permits.

ADVERTISEMENT

ADVERTISEMENT