- Calculators
- Retaining Wall
Retaining Wall Calculator
The short answer
Count retaining wall blocks course by course: courses = wall height ÷ block height and blocks per course = wall length ÷ block length. A 20 ft wall, 3 ft high, built with 16 × 6 in blocks and one buried course is 7 courses of 15 = 105 blocks, plus 15 caps.
Retaining wall formula
Courses = height above ground ÷ block height, rounded up + buried courses
Blocks = courses × (wall length ÷ block face length, rounded up)
Segmental retaining wall blocks are dry-stacked without mortar, so there are no joints to allow for: use the actual face length and height printed on the product label. Sizes differ a lot between products, which is why the calculator asks for yours instead of assuming one.
Worked example: 20 ft long, 3 ft high, 16 × 6 in block
- Courses above ground: 36 in ÷ 6 in = 6.
- Add one buried base course: 7 courses.
- Blocks per course: 240 in ÷ 16 in = 15.
- Blocks: 7 × 15 = 105, plus 5% waste = 111 blocks.
- Caps: one row of 15 cap blocks.
- Base gravel: 20 ft × 2 ft × 0.5 ft = 20 ft³ = 0.74 yd³.
Quick reference table
| Height above ground | Total courses | 10 ft long | 20 ft long | 30 ft long | 50 ft long |
|---|---|---|---|---|---|
| 1 ft | 3 | 24 | 45 | 69 | 114 |
| 1.5 ft | 4 | 32 | 60 | 92 | 152 |
| 2 ft | 5 | 40 | 75 | 115 | 190 |
| 2.5 ft | 6 | 48 | 90 | 138 | 228 |
| 3 ft | 7 | 56 | 105 | 161 | 266 |
| 4 ft | 9 | 72 | 135 | 207 | 342 |
Cap blocks are extra: one per block in a course.
Buried course and gravel base
Retaining walls sit on a leveled, compacted gravel base, and part of the first course is set below finished grade so the wall cannot slide forward. How much to bury and how thick to make the base are specified in each manufacturer's installation guide and change with wall height. The defaults here (one buried course, a base 6 in deep and 24 in wide) are placeholders to replace with your product's numbers.
You will also need drainage gravel behind the wall and usually a perforated drain pipe. Those quantities depend on the design, so they are not included.
When a wall needs an engineer
Height limits for walls built without a permit or engineering vary by jurisdiction, and they drop when the wall supports a slope, driveway or structure. Taller walls typically need geogrid reinforcement and a stamped design. Check with your building department before ordering block for anything beyond a low garden wall.
Frequently asked questions
How do I calculate how many retaining wall blocks I need?
Divide the wall height by the block height to get courses, divide the wall length by the block length to get blocks per course, and multiply. Add any buried courses and 5–10% waste.
How many retaining wall blocks for a 20 ft wall?
With 16 × 6 in blocks, 3 ft high and one buried course: 105 blocks plus 15 caps. Other block sizes change the count, so enter your product's dimensions.
Do I need to bury the first row of a retaining wall?
Yes, in almost every manufacturer guide part of the first course goes below grade. The exact depth depends on the product and the wall height.
How much gravel do I need under a retaining wall?
Multiply wall length × base width × base depth. A 20 ft wall on a 24 in wide, 6 in deep base needs 20 ft³, about 0.74 cubic yards, before compaction.