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
More options: Buried · Block depth · Corners …
- 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
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.
Quick answers for common sizes
| Example | Answer |
|---|---|
| How many blocks for a 20 ft retaining wall, 2 ft high | 168 blocks |
| How many blocks for a 40 ft retaining wall, 3 ft high | 221 blocks |
Blocks needed by exposed height (at the length above)
| Exposed height (top of cap to finished grade) | Wall blocks | Courses (incl. buried) | Drainage stone behind the wall (to order) |
|---|---|---|---|
| 12 in | 105 blocks | 5 courses | 1.02 cu yd |
| 18 in | 126 blocks | 6 courses | 1.29 cu yd |
| 24 in | 168 blocks | 8 courses | 1.84 cu yd |
| 30 in | 189 blocks | 9 courses | 2.11 cu yd |
| 36 in | 231 blocks | 11 courses | 2.65 cu yd |
| 48 in | 294 blocks | 14 courses | 3.47 cu yd |
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
| Block face (L × H) | Blocks per sq ft of face | Typical use |
|---|---|---|
| 12 × 4 in | 3.0 | Garden walls and bed edging, usually low |
| 16 × 6 in | 1.5 | Mid-size landscape walls |
| 18 × 6 in | 1.33 | Larger landscape walls |
| 18 × 8 in | 1.0 | Larger 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.
What you’ll need
- Hand tamper (8 × 8 in or 10 × 10 in)Budget price
Compacts gravel in small areas and along edges where a rented plate compactor won’t reach. For a whole patio base, rent the plate compactor.
See options on Amazon (opens in a new tab) - Rubber malletBudget price
Taps pavers and wall blocks into line without chipping them. A white head won’t leave black marks.
See options on Amazon (opens in a new tab) - Landscape block adhesiveBudget price
Glues cap stones to retaining wall blocks. Check the label for coverage per tube.
See options on Amazon (opens in a new tab) - Square-point transfer shovelBudget price
Flat blade for scooping gravel, soil and sand off a driveway pile — a round shovel leaves too much behind.
See options on Amazon (opens in a new tab) - Wheelbarrow (6 cu ft class)Mid-range price
Most home wheelbarrows hold 4–6 cubic feet — so a cubic yard of mulch is five or six trips. Two wheels are steadier on soft ground.
See options on Amazon (opens in a new tab) - Coated work glovesBudget price
Grippy, cut-resistant palms for handling stone, block and bags. Buy a couple of pairs — they wear out fast on concrete block.
See options on Amazon (opens in a new tab)
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.
Related guides
Sources
- Allan Block — Commercial Installation Manual, incl. Material Estimation Worksheet (PDF, via ORCO) (opens in a new tab) — Buried block at least 6 in or 1 in per ft of wall height; base trench at least 24 in wide and 6 in deep plus the buried block; drain pipe about the wall length; one 29 oz tube of cap adhesive per 60 ft; geogrid typically at least 60% of total wall height, on about 16 in centers; 8 in of low-permeability fill on the last lift; tighter radius at the top of an outside curve.
- Belgard — Standard Wall Installation Guide (quick reference, PDF) (opens in a new tab) — Leveling pad at least 6 in deep; bury at least 6 in of block; 12 in of 3/4 in free-draining aggregate behind the wall; drain pipe; geogrid and an engineer above gravity height limits.
- Allan Block — Basic retaining wall installation (opens in a new tab) — Wall rock 12 in behind the block; drain pipe for gravity walls over 4 ft or poorly drained sites.
- 2021 International Residential Code, Section R105.2 (Grant County, WA transcription, PDF) (opens in a new tab) — Permit exemption only for retaining walls not over 4 ft measured from the bottom of the footing to the top of the wall, unless supporting a surcharge.