Retaining Wall Calculator

Enter the wall length, height and block size to get the number of blocks and caps, the buried course, base and drainage gravel, drain pipe and trench volume.

Free · No sign-up · Runs in your browser

How to use the retaining wall calculator

A segmental block retaining wall is a kit of parts: wall blocks stacked in courses, a row of caps on top, a compacted gravel base under the first course, a zone of clean drainage stone behind the blocks and usually a perforated pipe at the bottom. This calculator turns the wall length and height into a quantity for each of them, so you can price the wall, order materials and check whether it is tall enough to need an engineer.

  1. Choose units. US mode uses feet for the wall and inches for the blocks and returns cubic yards and US tons. Metric mode uses metres and millimetres and returns cubic metres and tonnes.
  2. Enter the wall length and exposed height, which is the visible height of the block courses above finished ground, not counting the cap.
  3. Pick a block or type the face height, face length and depth from the product sheet. Set the cap length if the caps differ from the blocks.
  4. Check the base and drainage settings. The defaults of a 6 in (150 mm) base and a 12 in (300 mm) drainage zone are common manufacturer guidance.
  5. Add extra for cut blocks and for gravel lost to compaction, then read the results.

Retaining wall formulas

Buried depth = max(6 in, exposed height ÷ 8), rounded up to whole courses
Courses = ⌈exposed height ÷ block height⌉ + buried courses
Blocks = ⌈length ÷ block length⌉ × courses × (1 + extra %)
Caps = ⌈length ÷ cap length⌉ × (1 + extra %)
Base gravel = length × (block depth + 12 in) × base depth
Drainage stone = length × drainage width × (total block height − 6 in)
Trench = length × base width × (base depth + buried depth)

Weights use about 1.8 t/m³ for compacted crushed base and 1.6 t/m³ for clean drainage stone. These are estimates; ask the supplier for the density of the product they sell.

Typical block (face height × length × depth)Face area per blockBlocks per ft² / m² of face
Small garden block, 4 × 12 × 7 in0.33 ft²3.0 per ft²
Standard wall block, 6 × 16 × 12 in0.67 ft²1.5 per ft²
Large wall block, 8 × 18 × 12 in1.0 ft²1.0 per ft²
Metric block, 150 × 400 × 300 mm0.06 m²16.7 per m²
Metric block, 200 × 450 × 300 mm0.09 m²11.1 per m²

Worked examples

A 3 ft garden wall

A wall 40 ft long with 3 ft exposed, built from 8 × 18 × 12 in blocks. The buried depth is the larger of 6 in and 36 ÷ 8 = 4.5 in, so one 8 in course goes below grade. Five courses give 40 in exposed, so there are six courses in all. Each course takes ⌈480 ÷ 18⌉ = 27 blocks: 162 blocks, or 171 with 5% extra, plus 29 caps. The base is 40 × 2 × 0.5 = 40 ft³ (1.48 yd³, about 2.25 US tons). The drainage stone is 40 × 1 × 3.5 = 140 ft³ (5.19 yd³, about 7 US tons), with 40 ft of perforated pipe. Add 10% extra to the gravel when ordering.

A low metric planter wall

A 12 m wall, 0.6 m exposed, in 150 × 400 × 300 mm blocks. The buried depth is 150 mm, one course, and four courses make the 600 mm exposed height, so five courses in total. That is 30 blocks per course and 150 blocks, 158 with 5% extra. The base is 12 × 0.6 × 0.15 = 1.08 m³, and the drainage stone is 12 × 0.3 × 0.6 = 2.16 m³, roughly 1.9 and 3.5 tonnes.

Who this calculator helps

  • Landscape architects and garden designers sizing terraces, raised beds and level changes on a site plan.
  • Architects putting early quantities on site walls around driveways, patios and lower-ground courtyards.
  • Contractors and landscapers turning a site measure into a block and aggregate order.
  • Homeowners pricing a garden wall and checking when it crosses into permit or engineering territory.
  • Students learning how embedment, drainage and courses fit together in a gravity wall.

Practical tips

  • Level and compact the base carefully; an error in the first course shows all the way up the wall.
  • Fill the cores of hollow blocks and the space between them with drainage stone as you lay each course.
  • Wrap the drainage stone in filter fabric where the retained soil is fine, so it doesn't clog.
  • Work out the dig with the excavation calculator and order extra stone with the gravel calculator. Check the grade above and below the wall with the slope calculator.
  • Treat any wall over about 4 ft, or one holding back a driveway, slope or building, as an engineering job.

Want to see the terrace before you build it? Try the wall and planting on a photo of the garden with Landscape.

From numbers to pictures

See the space before it's built.

Once the plan works on paper, BasedFrame turns a sketch, a massing model or a site photo into a photoreal render in seconds. Try Sketch to Render or Room Redesign with free credits.

Try BasedFrame free

FAQ

Retaining Wall Calculator FAQ

How many retaining wall blocks do I need?

Divide the wall length by the face length of one block to get the blocks per course, and the total height (exposed plus buried) by the block height to get the number of courses. Multiply the two and add 5% or so for cuts and breakage. A 40 ft wall, 3 ft high, in 8 × 18 in blocks needs 27 blocks per course and 6 courses including one buried course: 162 blocks, or about 171 with 5% extra.

How deep should the first course of a retaining wall be buried?

Most block manufacturers ask for the first course to be fully buried, and a common guide is the larger of about 6 in (150 mm) or one-eighth of the exposed wall height. Walls on slopes, soft ground or with loads above them often need more. The calculator rounds the buried depth up to whole courses; always follow the installation guide for the block you are using.

How much gravel goes under a retaining wall?

A typical segmental block wall sits on a compacted base of crushed stone about 6 in (150 mm) deep and roughly 12 in (300 mm) wider than the block, so about 24 in (600 mm) wide for a 12 in deep block. For a 40 ft wall that is 40 ft³ of base, about 1.5 yd³ or 2.25 US tons, before any extra for compaction.

How much drainage gravel do I need behind a retaining wall?

Manufacturers commonly specify a zone of clean, free-draining crushed stone about 12 in (300 mm) wide directly behind the blocks, running from the base up to within about 6 in (150 mm) of the top, where it is capped with soil. Multiply the wall length by that width and height. It is often the largest material quantity on the job, so it is worth pricing early.

Do I need a perforated drain pipe behind the wall?

Most block manufacturers recommend a perforated drain pipe at the bottom of the drainage stone, run to daylight or a drain, especially for walls taller than about 2–3 ft or where the soil holds water. Trapped water is one of the main reasons retaining walls lean or fail. The calculator gives the pipe length as the wall length; add runs to the outlets.

When does a retaining wall need an engineer or a permit?

In the US, the International Residential Code (R404.4) requires walls retaining more than 48 in of unbalanced fill to be designed by accepted engineering practice, and the International Building Code exempts walls up to 4 ft from the bottom of the footing to the top of the wall from a permit unless they carry a surcharge such as a driveway, slope or building. Local rules vary, so check with your building department.

Do retaining walls need geogrid?

Short gravity walls often don't, but taller walls, walls holding back a slope or a driveway, and walls in weak soil usually need layers of geogrid reinforcement laid between courses and extended back into the compacted fill. The spacing and length come from the manufacturer's tables or an engineer. The calculator warns when a wall is tall enough that this is likely.

Should I count the cap blocks as part of the wall height?

In this calculator, no. Enter the exposed height of the block courses, and the caps are counted separately along the length. If you design to a finished height including the cap, subtract the cap thickness first. The calculator also shows the actual exposed height, since whole courses rarely land exactly on the height you type.

Keep exploring

More free tools for architects

Turn any listing
into rooms that sell

Start with a Zillow link or a single photo. Redesign, stage, relight and walk buyers through every room, ready to list today.