Plan a segmental block retaining wall for a garden terrace, raised bed or slope. Enter the wall length and the height you want above the ground, choose a block size, and the calculator counts the wall blocks and caps and works out how much gravel to order for the base and for the drainage zone behind the wall.
It is for gravity walls built from interlocking concrete blocks. Taller walls, and walls holding back a driveway, a building or a steep slope, need an engineered design.
How is a block retaining wall built?
A segmental retaining wall is a stack of interlocking concrete blocks with no mortar. It holds back soil by its own weight and by leaning slightly into the slope; each course sits a little behind the one below. The wall rests on a compacted gravel base in a trench, and the first course is set partly below ground so the wall cannot slide out at the bottom.
Water is the main enemy. Soil that fills with rain pushes much harder than dry soil, so the space directly behind the blocks is filled with clean, angular gravel, with a perforated pipe at the bottom to carry water away. Taller walls also need layers of geogrid — a plastic mesh laid between courses and run back into the soil — and an engineered design. Many US building departments draw that line at 4 ft, measured from the bottom of the footing to the top of the wall.
How to use the retaining wall calculator
- Enter the wall length and the height above ground.
- Choose the block size and courses buried below ground.
- Read the blocks, caps, gravel base and drainage stone.
Formula
Blocks = ⌈ ⌈ Length ÷ Block width ⌉ × (⌈ Height ÷ Block height ⌉ + Buried courses) × (1 + Waste) ⌉
Caps = Length ÷ Cap length (plus waste). Gravel base = Length × Base width × Base depth. Drainage stone = Length × Drainage width × Built height of the blocks.
Most permit rules measure height from the bottom of the footing or base to the top of the wall, so the calculator checks that height against 4 ft (1.2 m).
Worked examples
A 2 ft garden wall with small blocks
- Units
- Imperial (ft, in)
- Wall length
- 20 ft
- Wall height above ground
- 2 ft
- Block size
- Garden wall block, 12 × 4 in face
- Courses buried below ground
- 1
- Cap block length
- 12 in
- Gravel base depth
- 6 in
- Gravel base width
- 18 in
- Drainage stone behind wall
- 12 in
- Extra for waste
- 5 %
- Wall blocks needed
- 147
- Cap blocks
- 21
- Courses
- 7 (6 above ground, 1 buried)
A 20 ft wall of 12 in blocks needs 20 blocks per course. Two feet is six 4 in courses above ground, plus one buried: 7 courses × 20 = 140 blocks, plus 5% gives 147. The base trench takes 0.56 yd³ of gravel.
A 3½ ft terrace wall
- Units
- Imperial (ft, in)
- Wall length
- 40 ft
- Wall height above ground
- 3.5 ft
- Block size
- Standard wall block, 16 × 6 in face
- Courses buried below ground
- 1
- Cap block length
- 16 in
- Gravel base depth
- 6 in
- Gravel base width
- 24 in
- Drainage stone behind wall
- 12 in
- Extra for waste
- 5 %
- Wall blocks needed
- 252
- Cap blocks
- 32
- Courses
- 8 (7 above ground, 1 buried)
With 16 × 6 in blocks, 40 ft is 30 blocks per course and 3½ ft is 7 courses above ground plus one buried. That comes to 252 blocks with waste, and 5.93 yd³ of drainage stone. With the base, the wall is over 4 ft from the bottom of the footing, so check the permit rules first.
A 60 cm raised bed in metric
- Units
- Metric (m, cm)
- Wall length
- 8 m
- Wall height above ground
- 0.6 m
- Block size
- Large wall block, 18 × 8 in face
- Courses buried below ground
- 1
- Cap block length
- 45 cm
- Gravel base depth
- 15 cm
- Gravel base width
- 60 cm
- Drainage stone behind wall
- 30 cm
- Extra for waste
- 5 %
- Wall blocks needed
- 76
- Cap blocks
- 19
- Courses
- 4 (3 above ground, 1 buried)
With 18 × 8 in (45.7 × 20.3 cm) blocks, an 8 m wall needs 18 blocks per course, and 60 cm is 3 courses above ground plus one buried: 76 blocks with 5% extra.
Courses and blocks per 10 ft of wall (16 × 6 in blocks, one buried course, no waste)
| Height above ground | Courses | Blocks per 10 ft | Built height | Over 4 ft with a 6 in base? |
|---|---|---|---|---|
| 1 ft | 3 | 24 | 1.5 ft | No |
| 1.5 ft | 4 | 32 | 2 ft | No |
| 2 ft | 5 | 40 | 2.5 ft | No |
| 2.5 ft | 6 | 48 | 3 ft | No |
| 3 ft | 7 | 56 | 3.5 ft | No |
| 3.5 ft | 8 | 64 | 4 ft | Yes — check permits |
| 4 ft | 9 | 72 | 4.5 ft | Yes — check permits |
Drainage is what keeps a wall standing
Water trapped behind a wall pushes on it far harder than dry soil. Gravel backfill behind the blocks, a perforated drain pipe at the base and a fabric to keep soil out of the gravel let it drain. The calculator includes the drainage stone for that reason.
Common mistakes
- Forgetting the buried course. The first row sits below ground, so a wall needs one more course than its visible height suggests.
- Backfilling with the soil you dug out. The zone behind the blocks needs clean gravel and a drain pipe; wet clay behind a wall is what pushes walls over.
- Building a tall wall without checking the rules. Height for permits is usually measured from the bottom of the footing, so a 3½ ft visible wall on a 6 in base can already be over the 4 ft line.
- Setting the first course on loose soil. The base must be compacted gravel on undisturbed ground, or the wall settles unevenly.
Frequently asked questions
How many retaining wall blocks do I need per square foot?
A 16 × 6 in face covers 0.67 ft², so about 1.5 blocks per square foot of wall face; a 12 × 4 in garden block covers 0.33 ft², so 3 per square foot. Add the buried course and a few spares.
Do I need a permit for a retaining wall?
Many US cities require a permit for walls over 4 ft measured from the bottom of the footing to the top of the wall, and for any wall that supports a surcharge such as a driveway, a building or a slope above it. Rules vary, so check with your local building department.
How deep should the gravel base be?
Block makers typically call for 4–8 in (10–20 cm) of compacted, free-draining gravel in a trench wider than the block, with the first course of blocks set partly below ground.
How high can I build without an engineer?
It depends on local rules; many places require a permit or an engineered design above about 3 to 4 ft. Check before you build.
Sources
- Retaining Wall Construction 101, Unilock
- Retaining Walls: when a building permit is required, City of Napa, Community Development Department, Building Division
- Retaining Wall Requirements, Eagle Mountain City Building Department, Utah
Last updated · Calculations checked by automated tests· Editorial policy