Retaining Wall Calculator

A 40 ft retaining wall that stands 3.5 ft above ground, built from 8 × 18 inch blocks, needs about 176 blocks, 27 cap stones, 9.0 tons of drainage stone and 2.1 tons of base stone. The count includes a buried first course.

Free · No sign-up · Last reviewed

Quick start:

Your project size

(ft)
ft
(ft)
ft

Total Retaining Wall Blocks Required

154 Segmental Blocks (inc. 8" buried course)

Drainage Backfill & Base Gravel

7.9 Tons Drainage Stone | 2.1 Tons Base Pad

Want a real price for this retaining wall calculator project?

Get up to 3 free quotes from local contractors. No obligation. Your numbers are included.

Materials list

MaterialQuantityUnitNotes
Segmental Concrete Retaining Wall Blocks (8×18 in face)154BlocksIncludes 1 buried leveling course and 5% cut waste
Universal Wall Cap Finishing Stones27Cap StonesSecured with polyurethane landscape block adhesive
#57 Washed Angular Drainage Stone7.9Tons12-in wide drainage column behind wall
Crushed Aggregate Base Leveling Pad2.1Tons6-in deep compacted base pad beneath buried course
4-Inch Perforated Drain Tile Pipe40FeetDaylights water away to prevent hydrostatic pressure buildup

Estimated cost: DIY vs. contractor

National Average
DIY Raw Materials Only
$1,542 – $1,867

Cost of raw lumber, concrete, shingles, wire, or stone without equipment rentals or labor.

Hired contractor
$4,107 – $6,160

Full installation: permits, site prep, skilled trade labor, equipment, and structural warranty.

Estimated Sweat Equity
~$3,429

Average trade labor savings if executed as a skilled DIY homeowner project.

Buried Embedment Course & Material Formula

Rendering formula...

Hardscape Math for 40' Long × 3' High Retaining Wall

  1. Total Wall Height (inc. one buried 8" course) = 3' + 0.67' = 3.67 ft.
  2. Total Wall Face Area = 40 ft × 3.67 ft = 146.7 sq ft.
  3. Block Count: 146.7 sq ft ÷ 1.00 sq ft per block × 1.05 cut allowance = 154 blocks.
  4. Base Leveling Pad: 6" deep × 24" wide compacted pad = 2.1 tons crushed stone.
  5. Hydrostatic Relief Backfill: 12" stone column behind wall = 7.9 tons #57 stone.
Tip: In National Average, walls over 4 feet tall require geogrid soil reinforcement layers and a certified engineer's stamp per local municipal building codes.

Quick Reference Sizing & Coverage Table

Standard commercial specifications and pre-calculated project benchmarks.

Wall Length × HeightTotal Courses (inc. buried)Structural Blocks NeededLeveling Pad Gravel (Tons)Turnkey Pro Contractor Price
20 ft × 2.0 ft high4 Courses64 Blocks1.2 Tons$2,200 – $3,400
30 ft × 3.0 ft high5 Courses115 Blocks1.8 Tons$4,200 – $6,500
40 ft × 3.5 ft high6 Courses170 Blocks2.4 Tons$6,800 – $9,800
60 ft × 4.0 ft high7 Courses295 Blocks3.6 Tons$11,500 – $16,800
National Concrete Masonry Association (NCMA) SRW Design Standards

NCMA SRW Manual & Geogrid Reinforcement Rules

Retaining walls exceeding 4 feet in total height (including buried base) require structural geogrid soil reinforcement layers and municipal stamped engineering drawings. A 12-inch wide vertical drainage chimney of #57 gravel and a 4" perforated drain pipe are mandatory.

How to use the retaining wall calculator

  1. Enter the wall length and the height you want above ground, in feet.
  2. Choose the block size and whether you want cap stones on top.
  3. Read the blocks, caps, drainage stone and base, then compare the contractor range with your quotes. Walls over 4 ft usually need a permit and a designed plan.

How many retaining wall blocks do I need?

Add one buried course to the wall height, multiply by the length to get the face area, then divide by the face area of one block and add 5% for cuts.

Face area = Length × (Height + buried course)
Blocks = Face area ÷ Block face area × 1.05

For a 40 ft wall, 3.5 ft high, with 8 × 18 inch blocks (1 sq ft each) and one 8-inch buried course: 40 × 4.17 = 166.8 sq ft, × 1.05 = 176 blocks.

WallBlock faceBlocksCapsDrainage stoneBase stone
30 ft × 2 ft6 × 16 in119204.0 tons1.6 tons
40 ft × 3.5 ft8 × 18 in176279.0 tons2.1 tons
60 ft × 4 ft8 × 18 in2944015.0 tons3.2 tons
40 ft × 3 ft, no caps4 × 12 in42107.2 tons2.1 tons

Cap stones are counted at one per 1.5 ft of wall length. Check the length of the cap you choose.

Do I need a permit or an engineer for a retaining wall?

Often, once the wall is tall. The Concrete Masonry & Hardscape Association says the International Building Code requires a permit for earth retaining structures over 4 ft in total height, and that shorter walls can need one if they carry a surcharge load such as a driveway or a slope above. Your local rules may be stricter, and some require a design professional.

Height is measured from the top of the leveling pad to the top of the uppermost block, not counting the cap, so it includes the buried part of the wall. Tiered walls need spacing of at least twice the height of the lower wall to count as separate walls. A wall on this page's calculator is a planning estimate. Call your building department before you dig.

What goes behind a retaining wall?

Drainage. The calculator includes a 12-inch-wide column of washed #57 drainage stone behind the wall, a 4-inch perforated drain pipe along the base that leads water out, and a 6-inch compacted stone base under the buried course. For the 40 ft wall that is 9.0 tons of drainage stone, 2.1 tons of base and 40 ft of pipe. Water that cannot escape builds pressure behind the wall, so an outlet for the pipe matters as much as the stone. Follow your block maker's installation manual for the stone grade and layers.

Frequently asked questions

How much does a retaining wall cost?

For the 40 ft by 3.5 ft example, the calculator shows about $1,722 to $2,085 in materials for a DIY job and $4,667 to $7,000 with a contractor, at national averages. Cost rises with height, access, soil and reinforcement. Walls near the permit height often need geogrid, which this estimate does not price.

What is a buried course?

The first row of blocks is set below ground on the compacted base so the wall cannot slide out at the bottom. The calculator adds one course of buried height to the wall, which is 8 inches for the large block. It is counted in the block total.

Can I stack blocks without drainage stone?

Do not skip the drainage layer. Soil holds water, and a wall holds that water back unless it has somewhere to go. Drainage stone and a drain pipe are the standard way to relieve it.

Sources and review

Prices and quantities come from the calculator above. Last reviewed . How our calculators work.