How to calculate a block retaining wall
Segmental retaining wall blocks are dry-stacked in courses. Count the courses from the height, the blocks per course from the length, then add the buried course and a little extra.
courses = courses above ground + buried courses
blocks per course = wall length ÷ block face length, rounded up
blocks = blocks per course × courses × (1 + extra %), rounded up
cap blocks = wall length ÷ cap length, rounded up
Rounding the courses up means the wall comes out a little taller than you asked for, never shorter. Keep that in mind near a height limit. The calculator’s height warnings use this built height: the 3 ft example builds to 40 in (3.33 ft), so it gets the over-3-ft message about geogrid.
Example: 20 ft long, 3 ft high, 8 × 18 in blocks
- Courses above ground: 36 in ÷ 8 in = 4.50 → 5 courses (40 in of wall showing)
- Plus 1 buried course = 6 courses
- Blocks per course: 240 in ÷ 18 in = 13.33 → 14
- Blocks: 14 × 6 = 84; + 5% = 88.2 → 89 blocks
- Caps, if they are 18 in long: 240 ÷ 18 = 13.33 → 14 caps
- Base: 20 ft × 2 ft × 0.5 ft = 20 cu ft compacted; × 1.4 = 28 cu ft = 1.04 cu yd of compactable crushed stone (1.3–1.7 tons)
- Drainage stone: 20 ft × 1 ft × 4.00 ft (all 6 courses) = 80 cu ft compacted; × 1.14 = 91 cu ft = 3.38 cu yd of #57 stone (4.2–4.9 tons)
At 75 lb each (AB Classic), 89 blocks weigh about 6,675 lb, and at 85 lb (Rockwood Classic 8) about 7,565 lb, before caps.[4][5] Plan on delivery.
Example: 40 ft long, 2 ft high, 6 × 16 in blocks
- Courses: 24 ÷ 6 = 4 above ground + 1 buried = 5
- Blocks per course: 480 ÷ 16 = 30
- Blocks: 30 × 5 = 150; + 5% = 157.5 → 158 blocks, plus 30 caps
- Base: 40 cu ft × 1.4 = 2.07 cu yd; drainage stone: 40 × 1 × 2.5 = 100 cu ft; × 1.14 = 4.22 cu yd
Block sizes
What matters for the count is the size of the block’s face: height × length. Three of the blocks below have an 8 × 18 in face and cover about 1 sq ft each; 6 in high blocks cover less, so you need more of them.
| Block | Face (H × L) | Depth | Face area | Blocks per 100 sq ft of face | Weight |
|---|---|---|---|---|---|
| Allan Block AB Classic[4] | 8 × 18 in | 12 in | 1.00 sq ft | 100 | 75 lb |
| Belgard Diamond Pro[6] | 8 × 18 in | 12 in | 1.00 sq ft | 100 | — |
| Rockwood Classic 8[5] | 8 × 18 in | 12 in | 1.00 sq ft | 100 | 85 lb |
| VERSA-LOK Standard[7] | 6 × 16 in | 12 in | 0.67 sq ft | 150 | 82 lb |
| Pavestone RockWall Large[8] | 6 × 17.44 in | 7 in | 0.73 sq ft | 138 | — |
Face areas are length × height ÷ 144 and match the makers’ figures: about 1 sq ft (Allan Block, Rockwood), 0.667 sq ft (VERSA-LOK) and 34.9 sq ft per 48-block pallet (Pavestone). Belgard’s is our calculation from its listed size. Smaller wall blocks are sold too; measure the face of the block you buy and enter it as the closest size, or check the count by hand with the formula above.
The buried course
The first course goes below ground. A DIY guide hosted by The Home Depot says to bury the whole base course; Allan Block asks for at least 6 in of buried block, and VERSA-LOK for about one tenth of the exposed height.[3][9][10] For a 3 ft wall that is 3.6 in by the VERSA-LOK rule, so a full buried course of 6 or 8 in meets all three. The calculator adds one buried course by default; add more if your block maker’s tables call for it.
Base and drainage stone
The wall sits on a compacted gravel pad in a trench. Allan Block and VERSA-LOK both describe a base about 24 in wide and at least 6 in deep; Allan Block also gives a smaller 18 in wide, 4 in deep option for walls under 4 ft.[11][10][12] The trench depth is the base plus the buried course: 14 in for 8 in blocks on a 6 in base.
The calculator figures the base as compactable crushed stone (crusher run or road base) compacted to 6 in, weighs it at 1.30–1.60 tons per loose cubic yard, and orders 1.4 times the compacted volume. A compacted base takes about 1.33 to 1.5 times its volume in loose stone: 1.33 in Penn State’s 8 in to 6 in rule, about 1.4 from Tennessee DOT’s weights and 1.34–1.52 in Wisconsin DOT’s tests; FHWA reports a volume loss of 30% or more on gravel roads.[13][14][15][16] Allan Block fills its base with the same “wall rock” it uses behind the wall.[11] If your base is clean crushed stone such as #57, it barely compacts, so order about the trench volume plus 10–15% instead of the calculator’s base figure.[14]
Behind the wall, all three guides call for a zone of drainage stone 12 in deep from the back of the block, and VERSA-LOK’s specification asks for at least 1 cu ft of drainage stone per square foot of exposed face.[11][10][12][3] The calculator fills that 12 in zone the full height of the blocks. In the first example that is 80 cu ft against a VERSA-LOK minimum of 67 cu ft. The guides compact this stone, so the calculator orders 1.14 times the zone’s volume, Tennessee DOT’s factor for compacted clean stone. Weights use loose #57 stone at 1.25–1.45 tons per cubic yard.[14][17] Allan Block adds a drain pipe for gravity walls over 4 ft and compacts the backfill in layers no more than 8 in thick.[11]
How high can you build without an engineer?
| Rule | Height | Source |
|---|---|---|
| Engineered design required above | 48 in of unbalanced fill; 24 in if the wall also carries loads besides the soil | IRC R404.4[1] |
| Permit not required up to (no surcharge) | 4 ft, from the bottom of the footing to the top of the wall | IRC R105.2[18] |
| Tallest stable unreinforced wall, best conditions | 4 ft | VERSA-LOK[10][7] |
| Allan Block AB Collection gravity wall: level backfill, clay | 3 ft 2 in | Allan Block[2] |
| Allan Block AB Collection gravity wall: level backfill, silty sand | 4 ft 7 in | Allan Block[2] |
| Allan Block AB Collection gravity wall: clay with a 3:1 slope above | 2 ft 4 in | Allan Block[2] |
| Allan Block AB Collection gravity wall: clay with a 100 psf surcharge above | 1 ft 4 in | Allan Block[2] |
The Allan Block heights are exposed height including the cap, without earthquake loads. We left out one row of that chart (level sand and gravel) because it shows the same height as clay, which looks like an error. In clay, or with a slope or load above the wall, the chart’s heights run from 1 ft 4 in to 3 ft 2 in.
Watch how the permit exemption is measured. The first example shows 40 in above ground, but from the bottom of the 6 in base to the top of the blocks it is 6 × 8 + 6 = 54 in (4 ft 6 in), over 4 ft before the caps go on. The 2 ft example is 36 in (3 ft). The calculator measures the same way and, once a wall passes 48 in from the bottom of its base, warns that the exemption may not apply. Ask your building department how they measure and whether your city or county has amended these rules.
Before you order
- Add extra for cuts and breakage: 5% for a straight wall, and another 10% for a curved one, per the Home Depot-hosted guide.[3]
- Cap blocks are not always the same length as wall blocks. The calculator assumes caps as long as the wall blocks; divide the wall length by your cap’s length if it is different.
- Corners, steps and returns need extra blocks or corner units. Count them from the maker’s layout guide.
Questions people ask
How do I calculate the blocks for a retaining wall?
Divide the height by the block face height and round up to get the courses above ground, then add one buried course. Divide the length by the block face length and round up for blocks per course. Multiply the two and add 5% extra.
What materials does a 100 ft retaining wall need?
A wall 100 ft long and 3 ft high in 8 × 18 in block takes about 423 blocks, 67 caps, 5.2 cu yd of base gravel and 16.9 cu yd of drainage stone. For a cost, multiply each quantity by your supplier’s price (per block, per cap and per ton or cubic yard of stone), then add delivery and any engineering or permit fees.
What is the 1/3 rule for retaining walls?
We did not find a “1/3 rule” in the IRC or in the Allan Block and VERSA-LOK guides we checked. What they do give is a buried depth: at least 6 in of block (Allan Block) or about one tenth of the exposed height (VERSA-LOK), on a base about 24 in wide and 6 in deep.
Does a 4 ft retaining wall need drainage?
Yes. Allan Block, VERSA-LOK and the Home Depot-hosted guide all put 12 in of drainage stone behind the block, and Allan Block adds a drain pipe for gravity walls over 4 ft. At 4 ft you are also at the IRC limit for an engineered design and at VERSA-LOK’s best-case limit for an unreinforced wall.
Related calculators
Sources
- International Code Council, 2021 IRC R404.4 Retaining walls. Design required above 48 in of unbalanced fill, or 24 in with a surcharge. Checked 2026-09-26.
- Allan Block, Gravity Retaining Walls: maximum wall heights. Checked 2026-09-26.
- The Home Depot (retailer-hosted PDF, publisher not stated), DIY Retaining Wall Installation. Bury the first course; buy 5% extra block; call 811 before digging. Checked 2026-09-26.
- Allan Block, AB Collection product page. Checked 2026-09-26.
- Rockwood Retaining Walls, Classic 8 cut sheet. Checked 2026-09-26.
- Belgard Commercial, Diamond Pro Retaining Wall System. Checked 2026-09-26.
- VERSA-LOK, Standard unit product page. Checked 2026-09-26.
- Pavestone, RockWall Large cut sheet (#798). Checked 2026-09-26.
- Allan Block, Proper Embedment Guidelines. Minimum 6 in of buried block. Checked 2026-09-26.
- VERSA-LOK, Homeowner Installation Tips. Checked 2026-09-26.
- Allan Block, Residential Installation: Basic Installation. 6 in base, 24 in trench, 12 in drainage aggregate. Checked 2026-09-26.
- VERSA-LOK, Standard unit guide specifications. Leveling pad at least 6 in deep; at least 1 cu ft of drainage aggregate per sq ft of exposed face. Checked 2026-09-26.
- Penn State Center for Dirt and Gravel Road Studies, Driving Surface Aggregate (DSA) Handbook (2025). 8 in loose compacts to 6 in. Checked 2026-09-26.
- Tennessee Department of Transportation, Roadway Design Guidelines, Chapter 4 (rev. 03/20/15). Loose and compacted weights of mineral aggregate base and crushed stone. Checked 2026-09-26.
- Wisconsin Department of Transportation (WHRP), Weight-Volume Relationships and Conversion Factors for Soils and Aggregates (Project 0092-22-05, 2023). Unit weights of base aggregate, and FHWA/Church loose, bank and compacted weights of topsoil, loam and clay. Checked 2026-09-26.
- Federal Highway Administration / South Dakota LTAP, Gravel Roads Construction and Maintenance Guide (FHWA-OTS-15-002, 2015). Volume loss of gravel on compaction; minimum lift thickness. Checked 2026-09-26.
- Federal Highway Administration, Strength Characterization of Open-Graded Aggregates for Structural Backfills (FHWA-HRT-15-034). Laboratory densities of #57, #67, #8 and #89 stone. Checked 2026-09-26.
- International Code Council, 2021 IRC R105.2 Work exempt from permit. Checked 2026-09-26.