Retaining Wall Calculator: blocks, base and drainage

How it's calculated. Courses = (exposed height + buried depth) ÷ block height; blocks per course = wall length ÷ block length, both rounded up; blocks = courses × blocks per course × (1 + allowance).
20' long, 3' + 6" buried, 16 × 6 in blocks: 7 courses × 15 = 105 → +10 % = 116 blocks and 17 caps
01

Wall

ftin
ftin
Allowance
02

Construction

in
03

Base and drainage

in
in

Clean ¾ in stone, a perforated pipe at the base, fabric between the stone and the soil.

Wall blocks
116blocks
20' 0" × 3' 0" · Standard wall block
Courses7 × 15 a course
Cap units17
Wall face60 ft²
Leveling pad, crusher run0.85 yd³ · 1.24 ton
Drainage stone, #572.59 yd³ · 3.63 ton
Perforated drain pipe, 4 in20' 0"
Filter fabric90 ft²
Trench to dig1.48 yd³
Up to 4 ft of retained soil: build to the block manufacturer's guide

Section through the wall

20' 0" × 3' 0" · Standard wall block
SECTIONbackfilldrain pipestone padgrade3' 0"+6"24" × 6"12"DELIMETRA · FT-IN
blocks = courses × blocks a course × (1 + allowance)Formula60 ft²Wall face3.63 tonDrainage stone, #571.48 yd³Trench to dig
Your local prices
$
$
$
$
$

Prices are not pre-filled: block, stone and concrete prices differ by region and supplier.

How we calculate

Wall blocks: courses = (exposed height + buried depth) ÷ block height, rounded up; blocks a course = wall length ÷ block length, rounded up, so cut blocks count whole; total × (1 + allowance). Caps run the length of the wall.

Base and drainage follow the usual segmental wall installation guides: a compacted crushed stone pad 6 in deep and 6 in wider than the block on each side, 12 in of clean stone behind the wall over its full height, a perforated pipe at the base, filter fabric between the stone and the soil.

Poured concrete: stem thickness 8, 10 or 12 in and footing width 0.4, 0.5 or 0.6 × the height by the load behind, footing 12 in thick; concrete = (L × H × t + L × B × 1 ft) × (1 + allowance); rebar about 135 lb per cubic yard; forms on both faces, the footing sides and the ends. These are proportions for an estimate, not a design.

IRC 2021 R404.4: a wall that retains more than 48 in of unbalanced fill must be designed for overturning, sliding, bearing pressure and water uplift. Many towns also need a permit at a lower height or with a load above the wall.

To order
116blocks

A 20 ft garden wall 3 ft high, built of standard 16 × 6 inch wall blocks with the first course buried 6 inches, takes 7 courses of 15 blocks: 105 blocks, about 116 with 10 % for cuts and breakage, plus 17 caps. Under it goes a 24 inch wide, 6 inch deep compacted stone pad, and behind it 12 inches of drainage stone over the full height with a 4 inch perforated pipe at the base. The calculator above counts all of this for any wall, and also estimates a poured concrete wall.

How the calculator works

Choose wall blocks or poured concrete, and enter the wall's length and its exposed height, from the ground in front to the top. Choose the soil and load behind it. For blocks, pick the block size and how deep the first course is buried; set the stone pad and the drainage zone. The result is the blocks or the concrete, the base and drainage materials, the trench to dig and a check against the building code's height limit.

Wall blocks

Segmental wall blocks are dry-stacked: no mortar, each course set back a little on the one below, held by its weight and, on taller walls, by geogrid layers in the soil. The calculator counts whole blocks in each course, so cut blocks at the ends count as whole ones:

Block faceBlocks per ft² of face20 ft × 3 ft wall, 6 in buried
12 × 4 in (small garden block)3.011 courses × 20 = 220
16 × 6 in (standard)1.57 courses × 15 = 105
18 × 8 in (large)1.06 courses × 14 = 84

Counts in the table are before the allowance. Curved walls use the same number of blocks per foot of length measured along the face; corners and steps add cuts, so raise the allowance.

Base and buried course

Block manufacturers' installation guides agree on the essentials: a level pad of crushed stone with fines, compacted, about 6 inches deep and 6 inches wider than the block on each side, and the first course buried about 1 inch for every 8 inches of wall height, never less than 6 inches. The calculator figures the pad in cubic yards and tons of crusher run, with 15 % added for compaction, and warns when the buried depth is less than that guide.

Drainage

Water, not soil, pushes most walls over. Behind the wall goes a zone of clean ¾ inch stone, about 12 inches wide, over the wall's full height, with a 4 inch perforated pipe at the bottom that drains to daylight or a dry well, and filter fabric between the stone and the soil so the stone does not clog. The calculator gives the stone, the pipe length and the fabric. On a short wall in sandy soil the zone can be narrower; behind clay, keep it at least 12 inches.

Poured concrete

For a cast-in-place wall the calculator uses the proportions of the donor calculator: a stem 8, 10 or 12 inches thick and a footing 0.4, 0.5 or 0.6 times the wall height wide and 12 inches thick, by the load behind the wall. Concrete = (length × height × stem + length × footing width × 1 ft) × (1 + allowance); rebar about 135 lb per cubic yard of concrete; forms on both faces, the footing sides and the ends. These proportions are for budgeting; the actual stem, footing and steel come from a design. Use the Concrete Calculator for ordering and the Rebar Calculator once you have the bar layout.

When a wall needs an engineer

IRC R404.4 says that a wall retaining more than 48 inches of unbalanced fill must be designed to resist overturning, sliding, excessive bearing pressure and water uplift. Many towns require a permit for lower walls, and any wall with a driveway, a slope or a building above it carries extra load. The calculator flags walls over 4 ft of retained soil and heavy loads behind the wall; for those, block manufacturers publish engineered charts with geogrid lengths, or a local engineer designs the wall.

Common mistakes

For the stone and soil, see the Gravel Calculator and the Dirt Calculator; for the slope of the ground above and below the wall, the Slope Calculator.

Questions

How many blocks do I need for a retaining wall?

Divide the wall length by the block length and the total height, including the buried course, by the block height; round both up and multiply. A 20 ft wall 3 ft high with 6 in buried, in 16 × 6 in blocks, is 7 courses × 15 = 105 blocks, about 116 with 10 % extra.

How much gravel do I need behind a retaining wall?

A 12 in wide zone of clean ¾ in stone over the full height: 20 ft × 1 ft × 3.5 ft = 70 ft³, 2.6 yd³, about 3.6 tons of #57 stone.

How deep should the base be for a block retaining wall?

Typically a 6 in compacted crushed stone pad, 6 in wider than the block on each side, with the first course buried about 1 in per 8 in of wall height and at least 6 in.

How tall can a retaining wall be without an engineer?

Under the IRC (R404.4), a wall that retains more than 48 in of soil must be designed for overturning, sliding, bearing and uplift. Many towns need a permit at a lower height or when a driveway or slope is above.

Do I need a drain pipe behind a retaining wall?

Yes for almost every wall over a couple of courses: a 4 in perforated pipe at the base of the drainage stone, outlet to daylight, keeps water pressure off the wall.

How much concrete is in a poured retaining wall?

A 20 ft wall 4 ft high with a 10 in stem and a 2 ft × 1 ft footing is (20 × 4 × 0.83 + 20 × 2 × 1) ÷ 27 = 3.95 yd³, about 4.3 yd³ with 10 % extra.

Related calculators