Reviewed · Prices checked October 2026 · How we calculate

Retaining Wall Calculator: Blocks, Caps and Gravel for a Garden Wall

For stacked block (gravity) walls up to 3 ft high. Enter the wall length, height and block size. You get the blocks, caps, adhesive, base stone and drainage gravel to buy, and what they cost at your price.

Wall and block

Units
ft
Wall height above ground

3 ft is the tallest this page plans (about 0.9 m). Walls taller than about 3 ft, or holding a slope, driveway or building, need a geogrid design or an engineer, and often a permit.

Block face size (width × height)

About 0.33 sq ft of face for 12 × 4 in and 0.75 sq ft for 18 × 6 in. Block sizes stay in inches, as they are sold.

in
in

Check your block: sizes vary by maker. Yours has about 0.33 sq ft of face.

Caps
in

12 in is typical. Check the cap you plan to buy.

Shopping list

Updates as you type
168blocks

for a 20 ft long, 2 ft high wall (8 courses of 20)

Plus 20 caps and 2 tubes of adhesive, 1.5 tons of base stone and 2.5 cu yd of drainage gravel.

  • 168 blocks (12 × 4 in face)$336–$1,680
    8 courses (6 showing + 2 buried) × 20 per course, plus 5% extra.

    Typical price (estimate, checked Oct 2026): $2.00–$10.00 per retaining wall block

    168 blocks × $2.00–$10.00 = $336–$1,680Estimate
  • 20 caps (12 in long)$100–$300
    One cap every 12 in along the top.

    Typical price (estimate, checked Oct 2026): $5.00–$15.00 per retaining wall cap

    20 caps × $5.00–$15.00 = $100–$300Estimate
  • 2 tubes of construction adhesive (10 oz)$8.50–$17.50
    One tube per 10 ft of cap, to glue the caps down.

    Typical price (estimate, checked Oct 2026): $4.25–$8.75 per 10 oz tube of construction adhesive

    2 tubes × $4.25–$8.75 = $8.50–$17.50Estimate
  • 1.5 tons of crushed stone for the base$30–$76.50
    A 6 in deep, 24 in wide leveling pad under the first course, with 10% extra for compaction.

    Typical price (estimate, checked Oct 2026): $20.00–$51.00 per ton

    1.5 tons × $20.00–$51.00 = $30–$76.50Estimate
  • 2.5 cu yd of drainage gravel$75–$177.50
    12 in of clean gravel behind the wall, the full height including buried courses, with 10% extra for compaction.

    Typical price (estimate, checked Oct 2026): $30.00–$71.00 per cu yd

    2.5 cu yd × $30.00–$71.00 = $75–$177.50Estimate
  • Delivery$50–$150
    One fee for the whole load. It varies with distance, so enter yours.

    Typical price (estimate, checked Oct 2026): $50.00–$150.00 per delivery

    1 delivery × $50.00–$150.00 = $50–$150Estimate
Project total (estimate where no price is entered)$599.50–$2,401.50
Checked Oct 2026
Show the math
Courses: 2 ft = 24 in ÷ 4 in per block = 6.00 → 6 showing; bury 6 in (1 in per ft, 6 in minimum) ÷ 4 in → 2 buried = 8 coursesPer course: 20 ft = 240 in ÷ 12 in = 20.00 → 20 blocksBlocks: 8 × 20 = 160, × 1.05 (5% extra) = 168.0 → 168 blocksCaps: 240 in ÷ 12 in = 20.00 → 20 caps; adhesive 20 ft ÷ 10 ft per tube = 2.00 → 2 tubesBase: 6 in × 24 in × 20 ft = 20.0 cu ft, + 10% = 22.0 cu ft = 0.81 cu yd × 1.4 tons per cu yd = 1.14 → 1.5 tonsDrainage: 12 in × 2.67 ft (wall plus buried courses) × 20 ft = 53.3 cu ft, + 10% = 58.7 cu ft = 2.17 cu yd → 2.5 cu yd (sold in half-yard steps)

Your prices are saved on this device only. Not priced here: landscape fabric (a strip as long as the wall and tall enough to line the gravel behind it) and 4 in perforated drain pipe (the length of the wall, laid at the bottom of the gravel with an outlet at one end). Quantities for a gravity block wall only.

How it works

The formulas

courses = ceil(height ÷ block height) + ceil(buried inches ÷ block height)
buried inches = 1 in per ft of height, at least 6 in
blocks per course = ceil(length ÷ block width)
blocks = courses × per course × 1.05, rounded up
caps = ceil(length ÷ cap length)
adhesive tubes = ceil(length ÷ 10 ft)
base stone = 6 in × 24 in × length, + 10%
drainage gravel = 12 in × height × length, + 10%

Assumptions

  • The bottom of the wall is buried so it can't slide forward: 1 in per foot of exposed wall height, at least 6 in, which is how segmental block makers such as Allan Block describe it. This is typical practice; we have not checked each maker's current install guide, so read the one for your block. Whole courses are buried, so 4 in blocks get 2 buried courses and 6 in blocks get 1. The buried courses sit on the 6 in crushed stone leveling pad.
  • Blocks get 5% extra for cuts and breakage (rule of thumb). The wall height is the part showing above ground; the buried courses are added on top of that.
  • Caps are 12 in long by default (edit it for your cap). Caps are glued down; a 10 oz tube of construction adhesive covers about 10 to 12 ft of cap, and we use the low end. Rule of thumb, not from a maker. Pinned, lipped or interlocking blocks need no glue between courses.
  • The leveling pad is crushed stone, 6 in deep and 24 in wide, under the first course. Gravel behind the wall is 12 in thick for the full height. These are typical install-guide figures, not checked against every maker.
  • Both gravel orders add 10% for compaction. The base is bought by the ton at 1.4 tons per cu yd (ask your supplier for theirs) and rounded up to a half ton. The drainage gravel is bought by the cu yd and rounded up to a half yard.
  • Landscape fabric and a 4 in perforated drain pipe are not priced, because they depend on your site. Plan for fabric between the gravel and the soil, and pipe the full length of the wall at the bottom of the gravel, sloping to a daylight outlet.
  • Metric: type the wall length in meters. It is converted to feet for the math. Block and cap sizes stay in inches, and gravel is still bought in US tons and cu yd.

Worked example

A 20 ft long, 2 ft high wall of 12 × 4 in blocks with caps

  1. Courses: 24 in ÷ 4 in = 6.00, so 6 showing; bury 6 in (1 in per ft, 6 in minimum) ÷ 4 in = 2 buried; 8 courses
  2. Per course: 240 in ÷ 12 in = 20 blocks
  3. Blocks: 8 × 20 = 160, × 1.05 = 168.0, so 168 blocks
  4. Block cost: 168 × $6 (the middle of our typical range) = $1,008
  5. Caps: 240 in ÷ 12 in = 20 caps, with 2 tubes of adhesive
  6. Base stone: 22.0 cu ft with compaction = 0.81 cu yd × 1.4 = 1.14 tons, so 1.5 tons
  7. Drainage gravel: 58.7 cu ft with compaction = 2.17 cu yd, so 2.5 cu yd

Common wall sizes, 12 × 4 in blocks

Blocks, caps and gravel for common wall lengths at 2 ft and 3 ft high with 12 by 4 inch blocks
LengthBlocks, 2 ft highBlocks, 3 ft highCapsBase stone (tons)Drainage gravel, 2 ft / 3 ft (cu yd)
10 ft841161011.5 / 1.5
20 ft168231201.52.5 / 3
30 ft2523473023.5 / 4.5
50 ft4205785035.5 / 7.5

12 × 4 in blocks, 12 in caps, buried courses (1 in per ft, 6 in minimum) and 5% extra blocks. Heights are above ground.

Questions people ask

How many retaining wall blocks do I need?

Work out the courses (height ÷ block height, rounded up, plus the buried courses), multiply by the blocks in one course (length ÷ block width, rounded up), then add 5%. A 20 ft wall that is 2 ft high with 12 × 4 in blocks is 8 courses of 20, or 168 blocks. With 18 × 6 in blocks the same wall needs 74, and at 3 ft with 12 × 4 in blocks it needs 231.

How deep should the first course be buried?

The common rule, which Allan Block states, is 1 in per foot of exposed wall height, at least 6 in, on a level bed of compacted crushed stone. We bury whole courses: a 4 in block wall up to 3 ft high gets 2 buried courses (8 in), and an 18 × 6 in block gets 1. We have not checked every maker's current guide, so follow the one for your block.

How much gravel do I need behind a retaining wall?

A common rule is 12 in of clean gravel behind the wall, the full height. For a 20 ft wall 2 ft high that is 53 cu ft, or 2.17 cu yd with 10% for compaction, so order 2.5 cu yd. Add the 6 in leveling pad under the wall: 1.5 tons for the same wall.

How tall can I build a retaining wall without an engineer?

Typically up to about 3 to 4 ft, depending on your local code, so check yours before you dig. Anything holding a slope, a driveway or a building, a wall with water running at it, or two walls stacked close together can need an engineer and a permit at any height. Walls over about 3 ft usually need geogrid reinforcement, which this calculator does not plan. This page stops at 3 ft.

Do I need caps and glue?

Caps give a clean, finished top and shed water off the wall. They are glued down with construction adhesive so they don't shift or get knocked off, about one 10 oz tube per 10 ft of cap. A 20 ft wall needs 20 caps and 2 tubes. If your block is a self-capping style, untick the caps box.