Retaining wall block calculator

Enter the wall length, exposed height and block size to get how many blocks to buy. Check your block maker’s maximum unreinforced wall height first.

Enter your measurements

ft
Along the face. 20 ft 6 in = 20.5
in
What shows above the ground in front, in inches. 2 ft = 24
Face size, length × height, from the pallet label
in
Thickness of one cap stone — often 3–4 in
in
More options: Buried · Block depth · Corners …
Blank = auto: enough courses to bury at least 6 in of block, or 10% of the wall’s total height if that’s more
in
Sets the pad width (block depth + 6 in in front and behind). Small garden blocks are often shallower — check the label
Each outside corner takes a corner block in every course
%
Allan Block suggests ordering about 5% extra
in
Width of clean stone behind the blocks — Belgard and Allan Block both say 12 in
in
The drainage stone stops this far below the top; soil over fabric fills the rest (Allan Block: 8 in)
Compactable crushed stone. Your supplier’s weight per yard is better than ours
%
Extra loose gravel to reach the compacted pad depth. Blank = typical: crusher run 25%, #57 stone 5%, your own material 25%
%
For the pad and drainage stone · 5% is typical
Where the drain pipe leaves the wall to run downhill
ft
From the wall to where it can drain. 10 ft is a starting guess — measure yours
Hollow blocks get their cores filled with the same stone as behind the wall
$
Blank to skip
Wall blocks168 blocks
Courses (incl. buried)
8 courses
Buried courses
2 courses
Blocks per course
20 blocks
Cap stones
21 caps
Cap adhesive (approx.)
1 tube · 10 oz tube
Height above ground, as built
27 in
Built height (bottom block to top of cap)
35 in
Dig the trench about
14 in
Drainage stone behind the wall (to order)
1.84 cu yd (49.6 cu ft)
Drainage stone (#57, approx.)
2.57 tons (5,145 lb)
Filter fabric behind the stone (if your plan calls for it)
65 sq ft (7.22 sq yd)
Leveling pad (crusher run)
1.46 tons (2,917 lb)
Wall face area
40 sq ft
Perforated drain pipe
30 ft
How we got this

20 ft ÷ 12 in = 20 blocks per course

(24 in − 3 in cap) ÷ 4 in = 6 courses above grade

Buried: max(6 in, 10% of 32 in) ÷ 4 in = 2 courses

8 courses × 20 + 5% = 168 blocks

Caps: 20 ft ÷ 12 in + 5% = 21 caps; adhesive 20 ft ÷ about 20.7 ft per tube = 1 tube

Above ground: 6 × 4 in + 3 in cap = 27 in

Built height: 8 × 4 in + 3 in cap = 35 in

Trench: 6 in pad + 2 × 4 in buried = 14 in deep, 24 in wide

Pad: 20 ft × 24 in × 6 in = 0.74 cu yd compacted

0.74 cu yd compacted × 1.25 = 0.93 cu yd loose × 1.5 tons/cu yd = 1.39 tons

+ 5% waste = 1.46 tons

Effective rate: ≈ 1.97 tons per cu yd compacted

Drainage stone: 20 ft × 12 in × (35 in − 8 in soil cap) = 1.67 cu yd in place

1.67 cu yd in place × 1.05 = 1.75 cu yd loose × 1.4 tons/cu yd = 2.45 tons

+ 5% waste = 2.57 tons

Effective rate: ≈ 1.54 tons per cu yd in place

Filter fabric: 20 ft × (27 in up the back + 12 in over the top) = 65 sq ft

Pipe: 20 ft + 1 × 10 ft to daylight = 30 ft

  • Blocks come in whole courses, so this wall shows 27 in above the ground, not the 24 in you entered. Options: one course fewer shows 23 in; or set the whole wall 3 in lower (dig the trench that much deeper) so 24 in shows; or pick a thinner cap or a different block height.
  • Filter fabric: Belgard’s typical section puts filter fabric between the drainage stone and the soil behind it. Allan Block’s spec doesn’t suggest it with clay (cohesive) soils, where it can clog — follow your block maker’s guide. Add the seam overlaps the fabric maker asks for.
  • Lay perforated drain pipe at the back of the pad inside the drainage stone and run it out to daylight at the low end — water pressure behind the wall is what pushes walls over.
  • Cap adhesive is approximate: Allan Block’s worksheet allows one 29 oz tube per 60 ft of wall, and we scale that to your tube size. Glue the caps to the top course and to each other at the ends.
Check your codeWalls over 4 ft — measured from the bottom of the footing or leveling pad to the top of the wall — or any wall holding back a slope, driveway or other load generally need a permit (IRC R105.2) and often an engineered design. Check your local code and the block maker’s height limit before you build.

For this job · affiliate link
Landscape block adhesive21 cap stones need gluing down — about 1 tube of landscape-block adhesive in a caulk gun; the tube’s label says how far it goes.
View on Amazon (opens in a new tab)

Quick answers for common sizes

Worked examples for the Retaining Wall Block Calculator
ExampleAnswer
How many blocks for a 20 ft retaining wall, 2 ft high168 blocks
How many blocks for a 40 ft retaining wall, 3 ft high221 blocks

Blocks needed by exposed height (at the length above)

Blocks needed by exposed height (at the length above)
Exposed height (top of cap to finished grade)Wall blocksCourses (incl. buried)Drainage stone behind the wall (to order)
12 in105 blocks5 courses1.02 cu yd
18 in126 blocks6 courses1.29 cu yd
24 in168 blocks8 courses1.84 cu yd
30 in189 blocks9 courses2.11 cu yd
36 in231 blocks11 courses2.65 cu yd
48 in294 blocks14 courses3.47 cu yd
CautionCall 811 (or your local one-call service) a few days before you dig — buried utility lines are often within the first 12–18 in.

The count works in courses (horizontal rows of block) from the exposed height, plus the buried courses below grade — at least 6 in or 10% of the wall’s height, whichever is more — then multiplies by the blocks per course.

How the block count works

Segmental retaining wall blocks are dry-stacked in courses. The exposed height is measured from the finished ground in front to the top of the cap, so the cap comes off first: the rest divided by the block height (rounded up) is the courses above grade. Then come the buried courses. Belgard’s and Allan Block’s guides both want at least 6 in of block below grade, and Allan Block adds 1 in for every foot of wall height; the calculator uses at least 6 in or 10% of the total block height, whichever is more, and rounds up to whole courses. Each course needs the wall length divided by the block’s face length.

blocks per course = wall length ÷ block face length (round up)
courses above grade = (exposed height − cap height) ÷ block height (round up)
buried courses = max(6 in, 10% of total block height) ÷ block height (round up)
blocks = (courses above + buried) × blocks per course × (1 + extra)
caps = wall length ÷ cap length · adhesive ≈ one 29 oz tube per 60 ft
Common face sizes; pick one in the Block size box or enter your own. Depth front to back varies more — read it off the pallet label.
Block face (L × H)Blocks per sq ft of faceTypical use
12 × 4 in3.0Garden walls and bed edging, usually low
16 × 6 in1.5Mid-size landscape walls
18 × 6 in1.33Larger landscape walls
18 × 8 in1.0Larger walls (Allan Block’s full-size units); check engineering limits

Two worked examples: a small garden terrace, How many blocks for a 20 ft retaining wall, 2 ft high, and a longer wall right at the height where permits start, How many blocks for a 40 ft retaining wall, 3 ft high.

The parts people forget

  • Leveling pad: a trench filled with compacted crushed stone that the first course sits on. Belgard’s guide calls for at least 6 in of compacted base extending 6 in in front of and behind the block, and Allan Block’s worksheet uses a pad 24 in wide by 6 in deep. The calculator uses the block depth plus 12 in, 6 in deep, and applies the same compaction model as the paver calculator: crusher run packs down about 25%.
  • Trench depth: the 6 in pad plus the buried courses. With 4 in tall blocks and two buried courses, that is a 14 in trench.
  • Drainage aggregate: clean crushed stone (3/4 in, often sold as #57) at least 12 in wide behind the blocks — both Belgard and Allan Block specify 12 in. It stops 6–8 in below the top; Allan Block finishes with 8 in of low-permeability fill, so surface water runs off instead of pouring into the stone.
  • Drain pipe: perforated pipe at the back of the pad, daylighted or tied to a drain. Allan Block’s worksheet counts about the wall length; add the run from the wall to each outlet. Allan Block requires it for gravity walls over 4 ft and for poorly drained sites; on a small wall it is cheap insurance.
  • Corners: each 90° outside corner usually takes a corner block in every course. The calculator counts them separately and doesn’t take them off the wall block count; the spare blocks cover the cuts.
  • Cap adhesive: Allan Block’s estimating worksheet allows one 29 oz tube per 60 ft of capped wall — about a third of that for a 10 oz caulk tube. Buy a spare.
  • Geogrid: over about 3 ft of exposed wall, many blocks need geogrid layered into the backfill. Allan Block’s manual says grid typically runs at least 60% of the total wall height back and sits on about 16 in centers; the calculator gives a rough square-footage (and rolls, once you enter the roll size) from that, but the real layout comes from the maker’s chart or an engineer.
  • Hollow-core blocks: units like Allan Block are filled with wall rock as you build. Allan Block’s estimating worksheet counts the cores plus 12 in behind the wall as 1.4 ft of rock over the wall face, so the cores alone take about 0.4 ft; pick Hollow-core under More options to add it.
  • Filter fabric: Belgard’s typical section puts filter fabric between the drainage stone and the soil behind it; the calculator sizes it up the back of the stone and over its top. Allan Block’s spec doesn’t suggest fabric with clay soils, where it can clog, so check your maker’s guide.

Curved walls

The blocks step back a little each course, so on a curve each course has a different length. On an outside curve (bulging toward you) the courses get shorter as you go up — Allan Block’s radius chart shows a 4 ft tall wall that ends at a 4 ft radius on top needs about 5 ft 2 in at the base. On an inside curve they get longer. Count blocks per course along the longest course: the base course of an outside curve, the top course of an inside curve.

CautionRetaining walls hold back a lot of weight. The model residential code (IRC R105.2) exempts from permits only walls up to 4 ft measured from the bottom of the footing to the top of the wall, and only if they aren’t supporting a surcharge such as a slope, driveway or building above. Taller walls usually need geogrid and an engineered design. Your local rules may be stricter — check with the building department and follow the block manufacturer’s installation guide.
CalculatorGravel Calculator →Pricing the drainage stone or base in tons?

What you’ll need

As an Amazon Associate we earn from qualifying purchases. Links to products are affiliate links — they cost you nothing extra and help keep these calculators free.

Frequently asked questions

How many retaining wall blocks do I need for a 20 ft wall?

It depends on the height and block size. At 2 ft exposed (with a 3 in cap) in 12 × 4 in blocks it is 168 with 5% extra: six courses above grade and two buried, 20 blocks each. The full breakdown is on How many blocks for a 20 ft retaining wall, 2 ft high.

How many retaining wall blocks per square foot of wall face?

Divide 144 by the block face area in square inches. A 12 × 4 in face is 48 sq in, so 3 blocks per sq ft. A 16 × 6 in face is 96 sq in, so 1.5 per sq ft. Add the buried courses on top of that — they don’t show in the face area.

How deep should the first course of a retaining wall be buried?

Belgard’s and Allan Block’s guides both ask for at least 6 in of block below finished grade, and Allan Block adds 1 in per foot of wall height; 10% of the wall’s total height is a common rule, whichever is more. With 4 in tall blocks that means two buried courses on a 2–3 ft wall. Soft soil or a slope in front can call for more.

How many tubes of adhesive do I need for retaining wall caps?

Allan Block’s estimating worksheet allows one 29 oz tube per 60 ft of capped wall. With ordinary 10 oz caulk tubes that is about one tube per 20 ft, so a 40 ft wall takes 2 small tubes. It is a rough figure — a bead along both sides of each cap uses more than a zigzag, so buy a spare.

How tall can I build a retaining wall without a permit?

Under the model residential code, up to 4 ft measured from the bottom of the footing (not from the ground) to the top of the wall, as long as it doesn’t hold back a slope, driveway or other surcharge. Many places adopt that rule, some are stricter — check with your local building department.

Sources