Retaining Wall Calculator
A block retaining wall is simple arithmetic — blocks per row, rows high — plus the gravel trench that keeps it standing. This calculator counts the blocks, the caps and the base, waste included.
Block sizes are nominal — makers vary by an inch or so, so confirm your block's real face size at the store. Walls over about 4 ft often need a permit or an engineer's design; check local rules.
How to use this calculator
- Type the wall length and the finished height above ground.
- Pick the block you are buying — sizes here are the nominal face sizes.
- Read the answer: blocks per course, courses, total blocks with 5% extra, caps and base gravel.
- Print the list. Drainage pipe and gravel behind the wall are separate — see the questions below.
How the maths works: blocks per course = wall length ÷ block face length, rounded up. Courses = wall height ÷ block face height, rounded up. Total = per course × courses, plus 5% for cuts and breakage. Cap blocks = one per block along the top course. Base gravel fills a trench 2 ft wide and 6 in deep under the wall.
What are you using this for?
Tell us what you are making, and we will help you do it yourself. Type your project below — for example “a low garden retaining wall” — and we will show you the full method, step by step, using the estimate you just made.
A worked example
A 20 ft long, 3 ft high wall in 17.5 × 6 in retaining blocks: each block covers 1.46 ft of length, so 14 blocks per course; at 6 in per course, 3 ft takes 6 courses. That is 84 blocks, plus 5% = 89 blocks, with 14 cap blocks on top and about 0.74 cubic yards of base gravel in the trench.
Keep going
Blocks on a concrete footing instead? The Concrete Slab Calculator. Gravel for drainage behind the wall? The Gravel Calculator. A paver edge or patio beside it? The Paver Calculator.
Questions people ask
How deep should the base under a retaining wall be?
A trench about 2 ft wide with roughly 6 inches of compacted gravel, and the first course buried about halfway. That buried course is what stops the wall sliding forward.
Does a retaining wall need drainage?
Yes, on anything but the shortest garden walls: a perforated drain pipe in gravel behind the wall carries water away. Trapped water is the number one reason block walls lean and fail.
How high can I build a block wall myself?
Garden walls up to about 3–4 ft are normal DIY territory. Higher walls hold back serious weight — many towns require a permit or an engineered design above 4 ft, so check before you dig.
Do I need cap blocks?
They finish the wall, shed water off the top course and lock the last row in place with construction adhesive. The calculator counts one cap per block along the top.
How many blocks do I need for a retaining wall?
Work it in courses: blocks per course = wall length ÷ block length, and courses = wall height ÷ block height. The worked example above — a 20 ft long, 3 ft high wall in 17.5 × 6 in blocks — needs 14 blocks per course × 6 courses = 84 blocks, plus 5% for cuts and breakage = 89 blocks, with 14 cap blocks on top. The calculator runs this maths for your own wall and block size.
Are the costs exact?
No — typical store-price ranges for your country. This is an estimate — prices can go up or down.