Retaining Wall Block Calculator

Editorial team, built with AI assistance, checked against Allan Block and VERSA-LOK guides, updated .

Enter the wall length and the height showing above grade, then pick a block. The calculator adds buried courses below grade.

What to measure

Retaining wall, side sectionSide section of a block wall with a cap, showing the exposed height above grade and the buried course below.gradecapExposed heightBuriedretained soil
Exposed height above grade, plus the buried course
Wall face, front viewFront view of a wall face with its length and height marked.Wall lengthHeight
Wall length along the face

Worked example: VERSA-LOK: a 20 ft wall 3 ft high is 60 sq ft × 1.5 = 90 units (15 per course × 6 courses), plus 20 × 0.86 = 17.2, so 18 caps. With one buried course added, the calculator shows 105 units before allowance.

AB Classic blocks and caps for common walls

Wall length1 ft exposed2 ft exposed3 ft exposedCapstones
10 ft21 (3 courses)28 (4 courses)42 (6 courses)7
20 ft42 (3 courses)56 (4 courses)84 (6 courses)14
30 ft63 (3 courses)84 (4 courses)126 (6 courses)20
40 ft84 (3 courses)112 (4 courses)168 (6 courses)27
50 ft105 (3 courses)140 (4 courses)210 (6 courses)34

Estimates for a straight wall on level ground using the calculator's method: 18 × 8 in AB Classic face, courses above grade rounded up, plus buried courses at 1/10 of the exposed height (at least one), + 5% allowance, rounded up; one 18 in capstone per 1.5 ft. Allan Block's own chart (no allowance) lists, for example, 28, 55 and 82 blocks for 4 courses at 10, 20 and 30 ft. Caps add about 4 in to the height. Add corner blocks: one per course with a corner or step.

Wall rock (drainage gravel) for the same AB Classic walls

Wall length1 ft exposed (3 courses)2 ft exposed (4 courses)3 ft exposed (6 courses)
10 ft1.02 cu yd1.27 cu yd1.76 cu yd
20 ft2.04 cu yd2.53 cu yd3.52 cu yd
30 ft3.06 cu yd3.80 cu yd5.28 cu yd
40 ft4.07 cu yd5.06 cu yd7.04 cu yd
50 ft5.09 cu yd6.33 cu yd8.80 cu yd

Estimates from Allan Block's installation steps for walls under 4 ft: an 18 in wide base trench with 6 in of wall rock, plus wall rock 12 in behind the block for the full block height, buried courses included. Rock in the block cores and any extra for soft soil are not included, so ask your dealer. Wall rock is clean, compactible gravel about ¼ to 1½ in, with no sand, silt or clay.

How it works

Courses above grade = exposed height ÷ block height, rounded up. Buried courses = buried share × exposed height ÷ block height, rounded up, at least one. Blocks per course = wall length ÷ block face length. Blocks = blocks per course × total courses × (1 + allowance), rounded up. Caps = wall length ÷ cap length (or VERSA-LOK's 0.86 caps per lineal ft), rounded up.

More worked examples

  1. AB Classic garden wall, 30 ft long and 2 ft exposed: 24 ÷ 8 = 3 courses above grade; 1/10 × 24 in = 2.4 in buried, so 1 buried course; 4 courses. 30 × 12 ÷ 18 = 20 blocks per course × 4 = 80; + 5% = 84 blocks and 20 capstones (Allan Block's chart: 82 blocks, 21 caps). Wall rock: base trench 30 × 1.5 × 0.5 = 22.5 cu ft, plus 12 in behind the 32 in of block, 30 × 1 × 2.67 = 80 cu ft; 102.5 cu ft = 3.80 cu yd, before core fill. The finished wall with caps stands about 28 in above grade.
  2. VERSA-LOK Standard, 40 ft long and 2.5 ft exposed: 30 ÷ 6 = 5 courses + 1 buried = 6; 40 × 12 ÷ 16 = 30 per course × 6 = 180 units (the same as VERSA-LOK's worksheet: 100 sq ft × 1.5 = 150, plus 30 buried); + 5% = 189. Caps 40 × 0.86 = 34.4, so 35. Pins: 2 per unit, none in the base course, (180 − 30) × 2 = 300. Adhesive: 40 ÷ 14 = 2.9, so 3 tubes. Leveling pad at least 6 in thick and 24 in wide: 40 cu ft (1.48 cu yd) of road-base aggregate. Drainage aggregate (¾ in clear) 12 in thick from the front grade up, not behind the buried course: 40 × 1 × 2.5 = 100 cu ft (3.70 cu yd).

How to measure

  1. Measure the wall length along the face at the base, in feet. Measure curves along the front face; corners and curves change the count.
  2. Measure the exposed height from the finished grade in front of the wall to the top of the wall, not counting caps. Allan Block caps add about 4 in.
  3. If the ground slopes along the wall, split it into level sections. Both guides step the base so each section starts on a level pad with enough buried block.
  4. Count corners and step-downs. Allan Block adds one corner block for each course with a corner and one for each course that steps down.
  5. Check the height against local rules. Allan Block notes most municipalities require permits for walls over 4 ft, and recommends larger blocks or patterned walls above 3 ft.

Common mistakes

Assumptions

Frequently asked questions

How many retaining wall blocks do I need?

Divide the wall length by the block face length for blocks per course, then multiply by the number of courses (above and below grade). A 20 ft wall of 18 in blocks is 13.3 per course; 3 courses need 40, which Allan Block's chart rounds to 41.

How deep should a retaining wall be buried?

VERSA-LOK says segmental walls usually have about one-tenth of the exposed height buried below grade. Follow your block maker's instructions and any engineer's design.

How many caps do I need?

One per cap length along the wall. VERSA-LOK estimates 0.86 caps per lineal foot; Allan Block's chart lists 14 capstones for a 20 ft wall.

Related calculators

Sources

Formulas and reference values are from these sources. Page content last updated 2026-11-12.