1. Home
  2. Concrete & Masonry
  3. Retaining Wall
Concrete & Masonry

Retaining Wall Calculator

Enter the wall length and height above ground. You get the blocks and courses including the buried course, the caps, and the gravel for the base and for drainage behind the wall.

  • No sign-up
  • No personal info
  • Imperial & metric
  • Formulas shown
Retaining Wall Calculator illustration

Your project

Quick start

Base and drainage

Result

Quick answer

Blocks = (courses above ground + buried course) × blocks per course. A 20 ft wall 3 ft high built from 12 × 4 in blocks has 9 courses plus 1 buried: 10 courses × 20 blocks = 200 blocks, with 20 caps, on about 1.0 tons of base gravel and 3.1 tons of drainage stone.

How to use the retaining wall calculator

  1. Measure the wall. The length along the face (measure curves with a hose or string) and the height you will see above the ground.
  2. Pick the block. Use the face size printed by the manufacturer. Block depth does not change the count.
  3. Add the buried course. The first course sits below grade to lock the wall in. One course, or about 10% of the wall height, is typical.
  4. Set the base and drainage. The defaults are a 6 inch compacted gravel base and 12 inches of clean stone behind the wall.

Retaining wall formulas

Courses = wall height ÷ block height, rounded up, + buried courses Blocks per course = wall length ÷ block length, rounded up Blocks = courses × blocks per course × (1 + waste) Caps = wall length ÷ cap length Base gravel = length × trench width × base depth Drainage stone = length × stone width × wall height

Example: 3 ft is 36 in, and 36 ÷ 4 = 9 courses above ground, plus 1 buried = 10 courses. 20 ft ÷ 12 in = 20 blocks per course, so 200 blocks and 20 caps.

How many retaining wall blocks do I need?

Wall (length × height)12×4 in blocksCaps (12 in)16×6 in blocksBase gravelDrainage stone
10 ft × 2 ft7010400.5 tons1.0 tons
20 ft × 2 ft14020751.0 tons2.1 tons
20 ft × 3 ft200201051.0 tons3.1 tons
30 ft × 3 ft300301611.6 tons4.7 tons
40 ft × 3 ft400402102.1 tons6.2 tons
50 ft × 4 ft650503422.6 tons10.4 tons

One buried course, no waste. Gravel at 1.4 tons per cubic yard: 6 in base in a 24 in trench, 12 in of drainage stone.

Base, drainage and height limits

  • Base: dig a trench about twice as wide as the block is deep. Compact 6 in of crushed stone or road base and level the first course carefully; every course above follows it.
  • Drainage: backfill at least 12 in behind the wall with clean crushed stone, with a perforated drain pipe at the bottom leading to daylight. Water pressure is what pushes walls over.
  • Setback: most segmental blocks have a lip or pins that step each course back slightly.
  • Caps: glue the cap course with concrete adhesive.
Walls taller than about 3 to 4 ft (0.9–1.2 m), walls holding up a slope, driveway or structure, and tiered walls usually need geogrid reinforcement, an engineer’s design and a permit. Follow the block manufacturer’s height limit.

Sources, assumptions and limits

What the calculator assumes

  • Dry-stacked segmental blocks in full courses; the top course is rounded up, so the wall may finish slightly higher.
  • Caps are the same length as the blocks.
  • Gravel weight uses crushed stone at 1.4 US tons per cubic yard; drainage stone is the stone width × wall height × length.

Where the numbers come from

Checked by the DIY Calc team against the sources above. Products and local rules vary, so treat every result as an estimate. Found an error? Email [email protected].

Frequently asked questions

How many retaining wall blocks do I need?
Divide the wall height by the block height for the courses (add one buried course) and the wall length by the block length for the blocks per course, then multiply. A 20 ft × 3 ft wall of 12 × 4 in blocks needs 200.
How deep should the first course be buried?
About one course, or roughly 10% of the wall height, with a minimum of about 6 inches for larger blocks.
How much gravel do I need behind a retaining wall?
At least 12 inches of clean stone for the full height. A 20 ft wall 3 ft high needs about 2.2 cubic yards (3.1 tons).
How high can I build a retaining wall without an engineer?
Many places allow about 3 to 4 ft measured from the bottom of the footing, but rules vary. Check your building department and the block maker’s limit.
Do I need a concrete footing for a block retaining wall?
Segmental (dry-stacked) retaining wall blocks sit on a compacted gravel base, not concrete. Mortared block walls need a concrete footing.

Last reviewed . Estimates only: see the disclaimer.

Embed this calculator

Free for blogs, schools and contractors. Paste this code into your page. The small “Powered by” line is optional, and we appreciate it if you keep it.