Retaining Wall Calculator
Work out the blocks, caps, gravel base and drainage stone for a segmental block retaining wall, from its length and height, with the first course buried as block makers ask.
Along the face of the wall, all its straight runs added up.
Above the ground in front, without the cap.
Face length, along the wall.
Front to back.
Empty: 10% of the height, at least 6 in.
Allan Block recommends ordering 5% extra.
Blocks to buy
Enter your measurements to see a result.
Measure the wall along its face, adding up each straight run, and its height above the ground in front, without the cap. Use the size printed on your block's label: the face length and height, and the depth front to back.
Worked example
A 20 ft garden wall, 2 ft high
| Wall length | 20 ft |
|---|---|
| Height above the ground | 2 ft |
| Buried below the ground (10% of the height, at least 6 in) | 6 in |
| Courses ((height + buried) ÷ block height, rounded up) | 4 courses |
| Blocks per course (length ÷ block length, rounded up) | 14 blocks |
| Extra | 5% |
| Blocks (courses × per course + extra) | 59 blocks |
| Caps (length ÷ cap length, rounded up) | 15 caps |
| Tubes of adhesive for the caps | 1 tube |
| Gravel base (length × width × depth) | 0.74 cu yd |
| Gravel base by weight | 1-1.05 tons |
| Drainage stone behind the wall (length × width × built height, buried course included) | 1.98 cu yd |
| Drainage stone by weight (backfill only, block core fill excluded) | 2.67-2.8 tons |
Answer: 59 blocks. Enough courses to reach the height plus the buried course, each course a whole row of blocks, plus the extra.
Formula and method
buried = max(6 in, 10% of the height)
courses = ⌈ (height + buried) ÷ block height ⌉
blocks = courses × ⌈ length ÷ block length ⌉ (+ 5% extra)
base = length × base width × base depth · drainage = length × drainage width × built height (buried course included) + blocks laid × stone per block (cores, when known)
Block makers bury the first course: Nicolock and Pavestone say about 10% of the wall height, at least 6 in (Pavestone cites the NCMA minimum). Each course is a whole row of blocks, with the last one cut. Allan Block recommends ordering 5% extra, and one 29 oz tube of adhesive for every 60 ft of capped wall.
Base and drainage
- Base: a trench 24 in wide with at least 6 in of compacted ¾ in minus gravel (Allan Block, Pavestone, Basalite).
- Drainage: 12 in of clean stone behind the blocks, all the way up (Pavestone, Nicolock; Allan Block uses 12 in on reinforced walls and 6 in on its gravity walls), with a perforated drain pipe at the bottom for taller walls or wet sites.
- Block cores: block makers fill the cores and the gaps between blocks with the same stone (Pavestone: “All block cores must be filled”). The calculator counts it only when the stone per block is known: Pavestone states its BroadStone block volumes, so those presets include it. Allan Block and Versa-Lok don't publish one, so enter it from your block's data sheet; otherwise the result says “backfill only, block core fill excluded”.
- Not counted: drain pipe, filter fabric and geogrid. Stone weights vary, so the tons are an estimate: ask your supplier for theirs.
The calculator turns both into cubic yards and tons with the gravel weights used on the gravel calculator; cubic yards vs. tons explains the conversion. A 20 ft wall, 2 ft high, takes 59 blocks of 18 in × 8 in.
Blocks for common walls
| Wall | Courses | Blocks | Caps | Base + drainage stone (cores not included) |
|---|---|---|---|---|
| 10 ft × 1 ft | 3 | 23 | 8 | 1.11 cu yd |
| 20 ft × 1 ft | 3 | 45 | 15 | 2.22 cu yd |
| 20 ft × 2 ft | 4 | 59 | 15 | 2.72 cu yd |
| 30 ft × 2 ft | 4 | 84 | 21 | 4.07 cu yd |
| 30 ft × 3 ft | 6 | 126 | 21 | 5.56 cu yd |
| 50 ft × 3 ft | 6 | 215 | 36 | 9.26 cu yd |
18 in × 8 in blocks (Allan Block AB Classic size), caps every 18 in, 5% extra, a 24 in × 6 in base and 12 in of drainage stone behind the blocks. The block cores aren't included (Allan Block publishes no core volume).
How tall can a block wall be?
Most block makers build gravity walls (no reinforcement) up to about 3 ft, counting the buried course but not the cap (Nicolock, Basalite, Pavestone). Taller walls need geogrid layers in the soil behind them, from the maker's design chart. Building codes (IRC R404.4) require walls holding back more than 4 ft of soil to be designed by an engineer, and Versa-Lok says any wall over 4 ft should be engineered. A slope or a driveway above the wall lowers these limits.
Edging a patio instead? The paver calculator counts the pavers and the base under them.
Common mistakes
- Starting at ground level. The first course goes below grade; it adds a course to the count.
- Skipping the drainage stone. Water behind a wall pushes it over; makers fill 12 in behind the blocks with clean stone.
- A thin or loose base. Compact at least 6 in of ¾ in minus, and level the first course carefully: every course follows it.
- Going over 3 ft without a plan. Check the maker's chart for geogrid, and the 4 ft code limit.
Frequently asked questions
How many retaining wall blocks do I need?
Courses × blocks per course, plus 5%. A 20 × 2 ft wall in 18 in × 8 in blocks is 4 courses of 14, so 59 blocks with the extra.
How deep should the gravel base be?
At least 6 in after compaction, in a trench about 2 ft wide.
Related tools and guides
- CalculatorGravel CalculatorWork out how much gravel you need for a path, patio or driveway: cubic yards to order, the weight in tons as a range, and how many bags if you buy it bagged.
- CalculatorPaver CalculatorCount the pavers for a patio or walkway from the paver size, joint and waste, plus the compacted gravel base and bedding sand to order in cubic yards and tons.
- GuideCubic Yards to TonsHow to convert cubic yards to tons for gravel, sand and topsoil with a density range, why suppliers use both units, and why a wet yard weighs more.
- GuideHow Much Paver Base Do I Need?How deep a compacted gravel base should be under pavers, how to turn it into cubic yards and tons with the bedding sand, and how many pavers to buy.