Enter the wall length, exposed height and block size and get blocks with the buried course, capstones and adhesive, base and drainage rock, drain pipe, filter fabric, trench excavation and cost for a segmental block retaining wall. Walls over 48 in or with load above are flagged for engineered design.
Updated: Oct 13, 2026 · Method: retaining-wall-method 1.0.0
What the calculation is based on
Height Allan Block buries the first course at least 6 in, or 1 in for each foot of wall height, whichever is more. Total height = exposed + buried; courses are rounded up to whole blocks.
Blocks and caps Blocks per course = wall length / block face length, rounded up; Allan Block recommends ordering 5% extra. Capstones follow the cap length; adhesive is one 29 oz (820 g) tube per 60 ft (18 m) of capped wall.
Rock and pipe The base is 6 in (150 mm) of compacted wall rock in a trench 24 in (600 mm) wide, 18 in for walls under 4 ft, and at least 6 in beyond the block in front and behind (Basalite). Wall rock fills the cores and a 12 in (300 mm) zone behind the blocks to full height. Allan Block calls for a drain pipe in gravity walls over 4 ft and on poorly drained sites, at the back of the base and vented to daylight.
Limits IRC R404.4 requires an engineered design for retaining walls that are not laterally supported at the top and retain more than 48 in of unbalanced fill. Block makers set their own limits for unreinforced walls (Basalite: 3 ft for its gravity systems). A slope, parking or a building above the wall also calls for design. Outside the US the calculator uses 1.2 m as the same warning line; local rules may be stricter.
Sources (checked Oct 13, 2026):
- California Residential Code (based on IRC), R404.4 Retaining walls: when engineered design is required
- Allan Block: Basic installation (base trench, buried block, wall rock, drain pipe)
- Allan Block: Material estimation worksheet (5% extra, cap adhesive)
- Basalite: Typical retaining wall installation instructions (leveling pad, 3 ft gravity limit)
Formulas
- Buried depth: b = max(6 in, 1 in per ft of exposed height).
- Courses: n = ⌈(H + b) / hblock⌉; blocks = n × ⌈L / lblock⌉ × (1 + extra).
- Base rock: L × base width × 6 in.
- Drainage rock: L × 12 in × (H + b) + core fill.
- Caps = ⌈L / lcap × (1 + extra)⌉; adhesive = ⌈L / 60 ft⌉ tubes.
Worked example
A wall 40 ft long and 3 ft exposed, with blocks 18 in long, 8 in high and 12 in deep: buried 6 in, total 3.5 ft, 6 courses of 27 blocks = 162, and 171 with 5% extra. Caps 28, one tube of adhesive. Base 24 in wide: 1.48 cu yd; drainage zone 5.19 cu yd.
Step by step
- Check the height and any load above the wall; get a design if needed.
- Dig the base trench, compact the soil and place 6 in of compacted wall rock.
- Level the first course carefully and bury it to the required depth.
- Fill the cores and the 12 in zone behind with wall rock, compacting in lifts.
- Lay the drain pipe at the back of the base, fabric behind the rock, and glue the caps.
Common mistakes
- Building a tall wall without a design or geogrid.
- No drainage zone: water pressure pushes the wall over.
- Skipping the buried course.
- Backfilling with clay right against the blocks.
- Ignoring a driveway, slope or building above the wall.
Frequently asked questions
When does a retaining wall need an engineer?
IRC R404.4 requires a design for walls not laterally supported at the top that retain more than 48 in of unbalanced fill, and when there is extra load. Block makers may set lower limits.
How many blocks do I need?
Courses × blocks per course, plus about 5% extra. A 40 ft wall, 3 ft exposed, with 18 × 8 in blocks needs 171.
How deep do I bury the first course?
Allan Block buries at least 6 in, or 1 in per foot of wall height, whichever is more.
How much gravel goes behind a retaining wall?
A 12 in (300 mm) zone of wall rock behind the blocks to full height, plus the cores and a 6 in base.
Do I need a drain pipe?
Allan Block requires one for gravity walls over 4 ft, reinforced walls and poorly drained sites.
