Skip to content
MeasureToBuy

Retaining Wall Calculator

Enter the wall length, visible height and block size. You'll get the wall blocks and caps, the buried course, and the crushed stone for the base trench and the drainage zone behind the wall.

Structural sizes — footings, framing, stairs — are governed by local building codes and site conditions. Use this for material planning, and confirm sizes with your building department or an engineer.

Measurements

The visible height. The buried course is added for you.

0 if you aren't capping the wall. Caps are often a different length from the blocks — check the product.

Waste allowance

Rule of thumb for broken and cut blocks; more for curves and corners.

Your estimate

You need 228 wall blocks and 32 caps for 30 ft of wall.

31 blocks per course × 7 courses, including the buried course, plus 5%.

Wall length
30 ft
Height above ground
2 ft
Buried depth1 in per ft of wall height
2.2 in
Built height7 courses
2.33 ft
Blocks per course
31 blocks
Wall blocks
228 blocks
Caps
32 caps

Base and drainage

Trench width
18 in
Trench depth6 in base + buried block
8.3 in
Base (crushed stone)0.96 cu yd incl. 15% compaction
1.34 tons
Drainage stone behind wall2.59 cu yd, 12 in deep zone
3.63 tons
Perforated drain pipeVent to daylight every 50 ft
Only if drainage is poor
  • Fill the block cores (if hollow) and the 12 in zone behind the wall with clean crushed stone, compacting in lifts of 8 in or less.
  • Lay the first course level and fully on the compacted base — every course above follows it.
Retaining wall · section
BASEFRONT GRADERETAINED SOIL7 coursesburied6 in12 in
Each course sets back slightly into the slope. Clean crushed stone fills the 12 in zone behind the block; soil is backfilled behind that.

Next step

Pricing the stone delivery?

Compare crushed stone types and bulk delivery in the gravel calculator.

Gravel calculator

Also useful

Building a patio behind the wall?

Work out pavers, base and joint sand for the level area.

Paver calculator

How to measure

  1. Measure the wall's length along the face, following any curves with a tape or string.
  2. Measure the visible height you want above the finished ground at the front. The buried part is added for you.
  3. Read the block's face height and length from the label — the face, not the depth into the wall.
  4. If you're capping the wall, check the cap length; it's often different from the block.

How the retaining wall calculation works

Buried depth   = 1 in per ft of wall height
Courses        = (visible height + buried depth) ÷ block height, rounded up
Blocks         = ceil(length ÷ block length) × courses × (1 + waste)
Base stone     = length × trench width × 6 in × 1.15
Drainage stone = length × wall height × 12 in

Allan Block's installation guide buries 1 in of block for each foot of wall height, sets the wall on at least 6 in of compacted wall rock in a trench 24 in wide (18 in for walls under 4 ft), and fills 12 in behind the block with the same clean crushed stone.

Blocks per course and courses both round up, so a 30 ft wall of 11¾ in blocks needs 31 per course even though 30.6 would fit on paper.

Worked example

A 30 ft garden wall, 2 ft visible, in 4 × 11¾ in blocks with 12 in caps and 5% waste.

  1. Total height: 24 × 12 ÷ 11 = 26.2 in, of which 2.2 in is buried
  2. Courses: 26.2 ÷ 4 = 6.5 → 7; blocks per course: 360 ÷ 11.75 = 30.6 → 31
  3. Blocks: 31 × 7 = 217 × 1.05 = 227.9 → 228; caps: 30 × 1.05 = 31.5 → 32
  4. Base: 30 × 1.5 × 0.5 = 22.5 cu ft × 1.15 = 25.9 cu ft (0.96 cu yd) × 1.4 = 1.34 tons
  5. Drainage: 30 × 2.33 × 1 = 70 cu ft (2.59 cu yd) × 1.4 = 3.63 tons

Buy 228 wall blocks, 32 caps, about 1.34 tons of base stone and 3.63 tons of drainage stone.

How much extra to allow

Straight walls cut few blocks; corners, steps in the base and curves cut more.

SituationAllow
Straight wall0–5%
Corners or a few curves5–10%
Many curves or steps10%+

Reading your result

Blocks and stone are the shopping list. A drain pipe is included automatically for walls over 4 ft; add one on any wall where water collects behind it.

The built height can be a little taller than you asked for, because courses come in whole blocks.

Assumptions

  • Trench, base and drainage dimensions follow Allan Block's basic installation guide; other systems are similar but check your block maker's instructions.
  • Clean ¾ in crushed stone weighs about 1.4 tons per cubic yard; the compacted base is ordered 15% over its volume.
  • Hollow block cores also take stone; that volume isn't included.
  • Waste is a rule of thumb for broken and cut blocks.

Unit conversions use exact definitions (1 in = 25.4 mm, 1 US gal = 3.785 L). See the calculation methodology for rounding rules.

When to call a professional

  • Allan Block's own gravity-wall reference heights fall from about 3–5 ft to under 1½ ft once there's a slope, driveway or building above the wall. Get engineering for any wall over about 3 ft or with load above it.
  • The IRC exempts only walls up to 4 ft, measured from the bottom of the footing, that hold back no surcharge; many towns amend this. Taller walls usually need a permit, geogrid reinforcement and a designed drainage system.

Frequently asked questions

How much of a retaining wall goes underground?

Allan Block buries 1 in for each foot of wall height, on top of a 6 in compacted base. Many manufacturers simply say to bury the first course; follow the instructions for your block.

How much gravel goes behind a retaining wall?

A 12 in wide zone of clean crushed stone behind the block, full height. For a 30 ft wall 2⅓ ft tall that's about 70 cu ft, or 2.6 cubic yards.

How tall can a retaining wall be without reinforcement?

It depends on the block, the setback, the soil and what's above the wall. Allan Block's reference table for level ground ranges from about 3 to 5 ft by soil type and drops sharply with a slope or load. Ask your block manufacturer or an engineer.

Do I need a drain pipe?

Allan Block requires one for any reinforced wall, gravity walls over 4 ft, or sites with poor drainage, vented to daylight every 50 ft.

More landscaping & hardscaping calculators

All landscaping & hardscaping