Retaining Wall Calculator
Count wall blocks, caps, base gravel and drainage for a block retaining wall that stays standing.
Retaining Wall Calculator
Blocks, cap stones, drainage gravel, pipe and fabric for a segmental retaining wall.
How this is calculated
Courses = height ÷ block height (+ buried base courses). Blocks per course = length ÷ block length. Gravel = leveling base (6 in) + drainage zone behind the wall.
Enter wall length and height, choose a block size, and get the number of courses, wall blocks, cap blocks, base and drainage gravel, perforated pipe, geotextile fabric, total block weight and cost — with safety notes for taller walls.
Results are estimates for planning purposes only. Real-world quantities depend on site conditions, materials and workmanship. Always verify measurements, follow local building codes and confirm quantities with your supplier or a qualified professional before ordering or building.
About the Retaining Wall Calculator
A retaining wall fails from the back, not the front — water pressure and bad drainage topple more walls than weak blocks ever do. This calculator sizes segmental block walls: wall blocks, cap blocks, tons of base gravel, plus the drainage pipe and backfill gravel the wall needs to survive. It also flags the height limits where a DIY wall needs engineering.
How to use
- Enter the wall length and the exposed height in feet — measure the tallest point, since block count follows it.
- Enter your block face dimensions, for example 16 by 8 inches for a standard wall block.
- Enter the cap block length so the top row is counted separately.
- Set waste to 5 percent for straight walls, 10 percent for curves, corners and stepped ends.
- Do not skip the gravel and drainage lines — base material, backfill and drain pipe are not optional.
Understanding your results
The block count covers the wall face including the buried first course, rounded up with waste. Cap blocks cover the top row only. Base gravel is in tons for the compacted leveling pad; backfill gravel is the drainage zone behind the wall; drain pipe matches the wall length in one continuous run.
How the calculation works
Wall face area is length times height. Dividing by one block face area (width times height in feet) gives the block count, plus waste, rounded up. Caps are wall length divided by cap length. The base assumes a 6-inch compacted pad twice as wide as the block depth; backfill assumes a 12-inch gravel zone behind the full height, with one run of 4-inch perforated pipe at the base.
Retaining Wall Calculator FAQs
How tall can I build a retaining wall without engineering?
Do I really need drainage behind a retaining wall?
How many blocks do I need for a 20-foot wall that is 3 feet tall?
What is geogrid and when do I need it?
Should the first course of blocks be buried?

Written by
Nabil Sharif
Founder of CalcDune — a free library of 137 online calculators for finance, health and everyday math. Every calculator shows the formula behind its result, so you can see exactly how your numbers are worked out.
More articles by Nabil →