Retaining Wall Calculator

Free retaining wall calculator estimates blocks, base gravel, backfill, drainage pipe & total cost. Supports straight, curved, and fire pit walls with imperial and metric units.

Dimensions

ft
ft

Block Type

Base & Backfill

in
in
in

Perforated pipe at base of wall

Cost Settings

$/ton
$/ft²

Total Blocks Needed

132blocks

15 per row × 7 rows = 105 wall + 5% waste = 111 + 21 cap = 132 total (6 visible + 1 buried)

Material Estimates

Blocks, gravel, drainage & pallet quantities

Blocks per Row
15blocks
Number of Rows
7rows (6 visible)
Cap Blocks
21blocks
Wall Area
80.0sq ft
Base Gravel
0.78cu yd
Backfill Gravel
3.11cu yd
Total Gravel
3.89cu yd
Gravel Weight
5.4tons
Drainage Pipe
20ft
Pallets Needed
2pallets (90/pallet)
Wall Weight
5,940lbs

Cost Breakdown

Materials, labor & total project cost

Block Cost
330$
Gravel Cost
245$
Labor Cost
2,000$
Total Project Cost
$2,575
Cost per sq ft
32.19$

Engineering Notes

Geogrid, drainage & block specs for your wall

No geogrid required

Wall height is under 4 ft — geogrid is not needed.

Drainage included

Perforated pipe: 20 ft at base

Block specs

16″ × 8″ face, 12″ deep — 45 lbs each

What is a Retaining Wall Calculator?

Instant block, gravel, drainage & cost estimates for any wall shape

This retaining wall calculator estimates the exact number of blocks, base gravel, backfill gravel, drainage pipe, and total project cost. Supports straight walls, curved walls, and circular fire pits. Works in both imperial (feet, inches) and metric (meters, centimeters). Built for DIY homeowners, landscapers, and contractors — no sign-up, no email, instant results.

3 Wall Shapes

Straight, curved, and fire pit — each with automatic formula adjustments for arc length or circumference.

4 Block Types

Standard (8″H × 16″L), large (12″H × 16″L), small (6″H × 12″L), or custom dimensions with instant recalculations.

Full Cost Breakdown

Blocks, gravel, labor, and waste factor — editable pricing with multi-currency support.

Used by: homeowners planning garden walls, landscapers quoting projects, contractors estimating materials, and DIY builders calculating Home Depot or Lowe's orders. Enter your wall dimensions, pick a block type, set your local material costs, and get a complete materials list and budget in seconds.

How Are Retaining Wall Blocks Calculated?

The formula behind every estimate — transparent and verifiable

The calculation works row by row: determine how many blocks fit along the wall length, how many rows stack to reach your height, then multiply. Buried courses are added for below-grade stability. Curved walls use arc length; fire pits use circumference.

1

Blocks per Row

Blocks/Row = ⌈Wall Length ÷ Block Length⌉

Standard blocks are 16″ long. For a 20 ft wall: 20 ÷ (16÷12) = ⌈15⌉ = 15 blocks per row. Curved walls: use arc length instead. Fire pits: use π × diameter.

2

Number of Rows

Rows = ⌈Wall Height ÷ Block Height⌉ + Buried Courses

Standard blocks are 8″ high. For a 4 ft wall: (48 ÷ 8) = 6 visible rows + 1 buried = 7 rows. Always bury at least 10% of wall height below grade.

3

Wall Blocks

Wall Blocks = Blocks/Row × Rows × (1 + Waste%)

For our 20′ × 4′ example: 15 × 7 = 105 wall blocks. Add 5% waste = 111. Cap blocks (+21) are added separately for the total 132 blocks shown in the result.

4

Gravel & Drainage

Base Gravel = Base Depth(ft) × Base Width(ft) × Length(ft) ÷ 27 cu yd

Backfill = Backfill Depth × Wall Height × Wall Length ÷ 27 cu yd. Convert to tons by multiplying cu yd × 1.4. Drainage pipe runs the full wall length.

Worked Example: 20′ × 4′ Straight Wall, Standard Blocks, 1 Buried Course

  • Blocks/Row = ⌈20 ÷ 1.333⌉ = 15 blocks
  • Rows = ⌈48″ ÷ 8″⌉ + 1 buried = 7 rows
  • Wall Blocks = 15 × 7 = 105 exact × 1.05 waste = 111 + 21 cap = 132 total
  • Base Gravel (exact) = 0.5′ × 2′ × 20′ ÷ 27 = 0.74 cu yd
  • Backfill (exact) = 1′ depth × 4′ height × 20′ length ÷ 27 = 2.96 cu yd
  • Total Gravel with 5% waste = 3.89 cu yd × 1.4 = 5.4 tons

Retaining Wall Block Types

Choose the right block for your wall height and design

Block TypeFace AreaPer Pallet
Standard (8″H × 16″L)0.89 ft²90
Large (12″H × 16″L)1.33 ft²72
Small (6″H × 12″L)0.50 ft²120
CustomYour input~90

Important: Standard landscaping blocks work for walls under 2–3 feet. Taller walls need interlocking retaining wall blocks designed for structural loads. Walls over 4 feet typically require geogrid reinforcement and may need an engineer's design per local building codes.

Gravel, Backfill & Drainage

Why drainage matters — and how to calculate it correctly

Base Gravel

  • 4–6″ deep for walls under 4 ft
  • 6–12″ for taller walls
  • Extends 6–12″ beyond block face
  • Use ¾–1″ angular gravel (ASTM #57)
  • Compact in 2–3″ lifts with plate compactor
  • Do NOT use pea gravel — won't compact

Backfill & Drainage

  • At least 12″ of clean gravel behind wall
  • 4″ perforated pipe at base of wall
  • Pipe should slope to daylight or dry well
  • Wrap pipe in filter fabric to prevent clogging
  • Never backfill with soil or clay
  • #1 cause of wall failure: no drainage

Why drainage is critical: Water buildup behind a retaining wall creates hydrostatic pressure — up to 62.4 lbs per cubic foot. Without proper drainage, even a perfectly built wall can crack, lean, or collapse, especially in freeze-thaw climates. A $50 drainage pipe can save a $5,000 wall.

Retaining Wall Cost Breakdown

What you'll actually pay — DIY vs professional

DIY Installation

  • $15–$40/sq ft total cost
  • Materials only: $8–$25/sq ft
  • Equipment rental: $50–$150/day
  • Best for walls under 4 ft
  • Requires: shovel, level, plate compactor

Professional Install

  • $30–$80/sq ft including labor
  • Includes excavation, base prep, drainage
  • Warranty: typically 1–5 years
  • Required for walls over 4 ft (permit needed)
  • Includes geogrid engineering if needed

Real-World Examples

Small Garden Wall

10′ × 2′

45 blocks1.6 tons~$685 DIY

Medium Retaining Wall

30′ × 4′

202 blocks8.2 tons~$3,870 DIY

Large Driveway Wall

60′ × 6′

536 blocks22.9 tons~$11,370 pro

Fire Pit

4′ dia × 2′

56 blocks2.0 tons~$860 DIY

Common Retaining Wall Mistakes

Avoid these errors — most wall failures are preventable

Most Common Error: Skipping drainage. Water buildup behind a retaining wall creates hydrostatic pressure that can crack, lean, or collapse even a perfectly built wall. Always include 12″ of backfill gravel and a perforated drainage pipe — a $50 pipe saves a $5,000 wall.

Forgetting buried courses

At least 1 course (10% of wall height) must be buried below grade. A 4-foot wall with no buried course will shift and lean within the first year. Deeper burial is needed in freeze-thaw climates.

Not compacting the base

A loose gravel base settles unevenly, causing the wall to tilt forward. Compact in 2–3″ lifts with a plate compactor. The base should extend 6–12″ beyond the front and back of the wall blocks.

Using the wrong block type

Standard landscaping blocks work for walls under 2–3 feet. Taller walls need interlocking retaining wall blocks with a lip or pin system designed for structural loads — not decorative pavers or cinder blocks.

Ignoring building codes

Most jurisdictions require a permit and engineered design for retaining walls over 4 feet. Check your local building department before starting. Walls near property lines or roads have additional setback and surcharge requirements.

Key Considerations & Pro Tips

Getting the best result from your wall project

Always get 3+ quotes for materials

Block prices vary significantly between suppliers. Home Depot, Lowe's, and local landscape supply yards often have different pallet pricing. Use this calculator to establish a baseline, then shop around — pallet discounts can save 10–15%.

Prioritize drainage over aesthetics

A beautiful wall that fails in 3 years is a false economy. Spend extra on proper backfill gravel and drainage pipe. Your wall should last 20–50+ years when properly drained. The drainage system costs ~5% of the total project but prevents 95% of failures.

Know when to call an engineer

Walls over 4 feet, walls retaining driveways or structures, and walls on slopes steeper than 2:1 need professional engineering. The cost ($500–$1,500) is far less than rebuilding a failed wall. Most building departments require stamped plans for walls over 4 ft.

Factor in access and equipment

Can a truck deliver gravel and pallets directly to your site? If not, factor in wheelbarrow hauling time or mini skid-steer rental ($200–$400/day). Steep slopes, narrow side yards, and overhead obstacles increase labor significantly.

Measure twice, order once

Use string lines and stakes to mark your wall layout before ordering materials. Curved walls need flexible layout (garden hose works great). Double-check that your measurements account for any steps, corners, or elevation changes along the wall length.

Important: These estimates are for budgeting purposes only. Actual quantities depend on your specific block dimensions, site conditions, and installation method. Always order 5–10% extra for cuts and breakage. For walls over 4 feet or walls near structures, consult a licensed engineer. Prices updated for 2026.

Frequently Asked Questions

Common questions about retaining wall calculations, materials, and costs

Embed Retaining Wall Calculator

Add this calculator to your website or blog for free.