Retaining Wall Calculator

Blocks per course = wall length ÷ block face length; courses = wall height ÷ block face height, both rounded up. Add a buried course below grade, multiply, and order 5–10% extra. A 30 ft long, 3 ft high wall built with 18 × 8 in blocks needs 20 blocks per course × 6 courses (5 exposed + 1 buried) = 120 blocks, or 126 with 5% extra, plus 21 caps, about 1.9 tons of base gravel and 6.5 tons of drainage stone. Enter your wall below to get blocks, caps, gravel, drain pipe and cost.

1. Wall size

Height above the finished grade in front of the wall, not counting the cap.

2. Block and cap

3. Base and drainage

4. Prices (optional)

Retaining wall calculator cross-section: a compacted gravel base about 24 inches wide and 6 inches deep, a first course of block buried below the front grade, four exposed courses that step back slightly, a cap on top, about 12 inches of drainage aggregate behind the blocks with a perforated drain pipe at the bottom, filter fabric and the retained soil
Count every course, including the one below grade. The base and the drainage stone are what keep a block wall straight; they are also the heaviest items on the order. Illustration: Bruno for Mulch Planner (original artwork).

Key takeaways

  • Blocks = (wall length ÷ face length, rounded up) × (courses above grade + buried courses), plus 5–10% extra.
  • Blocks per square foot of face = 144 ÷ (face length × face height in inches): 3 for 12 × 4 in, 1.5 for 16 × 6 in, 1 for 18 × 8 in.
  • Bury the first course: Allan Block’s guidance is about 1 in per 8 in of wall height, at least 6 in.
  • Base: a trench typically about 24 in wide with 6 in of compacted gravel (Allan Block, Versa-Lok).
  • Drainage: free-draining stone about 12 in deep behind the block, with a perforated pipe at the bottom vented to daylight.
  • Walls retaining more than 48 in of soil must be designed under the IRC (R404.4); many towns want a permit and an engineer at about 4 ft, or lower with a slope or load above.

How the retaining wall calculator works

Blocks per course = wall length in inches ÷ block face length, rounded up. Courses = exposed height in inches ÷ block face height, rounded up, plus buried courses. Blocks = blocks per course × courses × (1 + extra %). The calculator then works out the rest of the order from the same wall length:

The stone weight defaults to 1.4 tons per cubic yard. That is an assumption: it is the figure our crushed stone calculator uses for clean #57 stone (Select Sand & Gravel), which is a common drainage aggregate. Dense-graded base with fines, such as #411 or crusher run, is closer to 1.5 tons per cubic yard as delivered, so type 1.5 if your supplier sells the base that way, or the exact figure from the scale ticket.

The 20% base compaction allowance comes from the same source as our paver base calculator: Bovees says crushed stone compacts to about 80% of its loose volume and adds 20–25%. Clean drainage stone is placed and lightly compacted, so it gets only the extra % for spills and uneven trenches.

How to measure a retaining wall

  1. Length: measure along the face of the wall, at the front of the blocks. On a curve, run a tape or garden hose along the planned face line and measure that. For an L-shaped wall, add the two legs; corner units are usually sold separately, so subtract them from the straight-block count if your system has them.
  2. Height: measure from the finished grade in front of the wall to the top of the last course, not counting the cap. If the ground slopes along the wall, split the wall into sections and run the calculator for each, because the base steps up the slope in block-height increments (Allan Block shows this in its “stepping up the base” guide).
  3. Block face: use the face length and face height from the product sheet, not the depth from front to back. Retaining wall blocks are often listed by their nominal size; for counting, the face dimensions are what matter.
  4. Caps: check the cap length. Some systems use caps that match the block face length, others use longer or tapered caps; the calculator lets you type your own.

If the height does not divide evenly into courses, the calculator rounds up. A 36 in wall with 8 in blocks is 4.5 courses, so you either build 5 courses (40 in exposed) or bury half a course more. Building the extra course is usually the easier choice; you can then raise the soil in front a little or lower the finished grade behind.

Blocks per square foot by block size

If you already know the square footage of the wall face (length × exposed height), divide it by the face area of one block. The table below covers the sizes most often sold for segmental retaining walls. These are typical face sizes; actual units are often a fraction of an inch smaller, so use your product’s sheet for a final count.

Typical face sizeFace areaBlocks per sq ftBlocks per 10 ft courseCourses per ft of height
12 × 4 in (small garden-wall block)48 sq in3.0103
12 × 6 in72 sq in2.0102
16 × 6 in (for example, Versa-Lok Standard)96 sq in1.582
18 × 6 in108 sq in1.337 (6.7)2
16 × 8 in128 sq in1.138 (7.5)1.5
18 × 8 in (full-size, for example, Allan Block’s standard units)144 sq in1.07 (6.7)1.5

Derived: blocks per sq ft = 144 ÷ face area. Versa-Lok lists its Standard unit at 6 in high and 16 in wide; Allan Block’s full-size units have a face of about 18 × 8 in, close to 1 sq ft. Square footage counts only the exposed face, so add the buried course and the extra % on top.

Block size changes more than the count. Small 4 in blocks are light enough to carry by hand but take three times as many units per square foot, and they are usually marketed for low garden walls. Full-size units are heavy, but they are the blocks manufacturers publish gravity-wall and geogrid height charts for.

Base and drainage requirements

A segmental retaining wall is a gravity structure: the weight of the blocks and the stone behind them holds the soil back. That only works if the wall sits on a firm, level base and water cannot build up behind it. The manufacturer guides we checked agree on the basic layers, shown in the diagram above:

Our gravel calculator handles odd-shaped areas if you also need gravel for a path or patio at the foot of the wall, and the topsoil calculator covers the soil you place behind and on top of the wall for planting.

When you need geogrid or an engineer

Every block system has a height limit for a gravity wall, meaning a wall with no reinforcement in the soil behind it. Above that height, layers of geogrid are laid between courses and extend back into compacted soil, turning the soil into part of the wall. Manufacturers publish charts for this, and the limit drops when there is a slope above the wall, a driveway or patio near the top, a building, or weak soil. Allan Block, Versa-Lok and Unilock all point owners to their design charts or an engineer for those cases.

Building codes add a second limit. The International Residential Code, section R404.4, says that retaining walls not laterally supported at the top and retaining more than 48 in of unbalanced fill must be designed for stability against overturning, sliding, excessive foundation pressure and water uplift. Many local jurisdictions turn that into a permit rule, often at about 4 ft measured from the bottom of the footing or from the lowest grade, and lower when a slope or structure loads the wall. Los Angeles County’s residential code manual on R404.4 and Grand Prairie, Texas’s residential retaining wall permit page are two examples; the details differ by city, so check with your building department before you dig.

Rule of thumb for this calculator: it counts materials for any height, but it does not design the wall. If your wall is near 4 ft, holds back a slope, a driveway or a building, or sits on clay or wet ground, get the manufacturer’s design chart or an engineer’s drawing first, and add geogrid from that design to your order.

Worked example: 30 ft × 3 ft retaining wall

  1. Blocks per course: 30 ft = 360 in; 360 ÷ 18 = 20 blocks.
  2. Exposed courses: 36 in ÷ 8 = 4.5, rounded up to 5 (40 in of exposed block).
  3. Buried courses: the larger of 6 in or 36 ÷ 8 = 4.5 in is 6 in; 6 ÷ 8 = 0.75, rounded up to 1 course.
  4. Blocks: 20 × 6 courses = 120; with 5% extra, 126 blocks.
  5. Caps: 360 ÷ 18 = 20; with 5% extra, 21 caps.
  6. Base gravel: 30 × 2 ft × 0.5 ft = 30 cu ft; × 1.20 compaction = 36 cu ft = 1.33 yd³, about 1.87 tons at 1.4 t/yd³.
  7. Drainage stone: 6 courses × 8 in = 48 in = 4 ft of block; 30 × 1 ft × 4 ft = 120 cu ft; × 1.05 = 126 cu ft = 4.67 yd³, about 6.5 tons.
  8. Drain pipe: 30 ft, or three 10 ft pieces, plus any run to an outlet.

The stone for this one wall is about 8.4 tons, a little more than the 6–8 ton payload of a typical single-axle dump truck, so plan on a tandem or two loads: see how many yards fit in a dump truck before you book delivery. If you are building a patio at the top or bottom of the wall, run the paver calculator and the paver base calculator for that area too; the same delivery can often bring both.

Common mistakes

Need to bring in soil to level the area behind or in front of the wall? The fill dirt calculator estimates cubic yards, tons and truckloads with a compaction allowance.

Wet ground beyond the wall? The French drain calculator sizes a separate yard drain.

Measuring a wall with several runs? Add them in the linear feet calculator first.

Frequently asked questions

How many retaining wall blocks do I need?

Divide the wall length in inches by the face length of one block to get blocks per course, and divide the wall height in inches by the block face height to get courses, rounding both up. Add any buried course below grade, multiply blocks per course by courses, and add 5 to 10 percent for cuts and breakage.

How many blocks do I need for a 30 ft long, 3 ft high retaining wall?

With full-size blocks that have an 18 by 8 inch face, one course is 360 / 18 = 20 blocks. A 36 inch wall needs 36 / 8 = 4.5, rounded up to 5 exposed courses, plus 1 buried course, so 6 courses and 120 blocks, or 126 with 5 percent extra. You also need about 21 caps if the caps are 18 inches long.

How much of a retaining wall should be buried?

Segmental wall makers bury at least part of the first course. Allan Block's embedment guidance is about 1 inch of buried block for every 8 inches of wall height, with a 6 inch minimum, and more where the ground in front slopes down. Check the install guide for the block you buy.

How much gravel do I need for a retaining wall base?

A typical base trench for full-size block is about 24 inches wide with 6 inches of compacted gravel (Allan Block, Versa-Lok). That is 10 cubic feet for every 10 feet of wall, or about 12 cubic feet (0.44 cubic yards, roughly 0.6 tons at 1.4 tons per cubic yard) after a 20 percent compaction allowance.

Do I need drainage stone and a pipe behind a retaining wall?

Segmental wall install guides from Allan Block, Versa-Lok, Belgard and Unilock all place free-draining aggregate directly behind the blocks, typically a zone about 12 inches deep, with a perforated drain pipe at the bottom that is vented to daylight. The stone keeps water pressure from building up behind the wall.

How tall can a retaining wall be without an engineer?

The International Residential Code (section R404.4) requires walls that are not supported at the top and retain more than 48 inches of unbalanced fill to be designed for stability, and many cities require a permit and an engineer's design above about 4 feet or when there is a slope, driveway or building above the wall. Local rules vary, so check with your building department before you build.

How many retaining wall blocks are in a square foot?

Divide 144 by the face area of one block in square inches. A 12 by 4 inch face is 3 blocks per square foot, a 16 by 6 inch face is 1.5, and an 18 by 8 inch face is 1 block per square foot. Square footage only counts the face; add the buried course and waste separately.

How many cap blocks do I need?

Caps = wall length in inches divided by the cap length, rounded up, plus about 5 percent. A 30 foot wall with 18 inch caps needs 20 caps, or 21 with extra. Curved walls and corners use more cuts, so add closer to 10 percent there.

Sources