How to use the retaining wall calculator
Enter the total length of the wall and its height, including the first course that sits below ground. Then enter the face size of your block (the part you see from the front) and the length of the cap units. The calculator works out the number of courses, blocks per course, caps, and the gravel needed for the base and for drainage behind the wall.
The retaining wall formulas
Blocks per course = Wall length (in) ÷ Block face length
Blocks = Courses × Blocks per course × (1 + waste)
Caps = Wall length (in) ÷ Cap length
Why the gravel matters
Most retaining walls fail because of water, not because the blocks are weak. Wet soil behind a wall is much heavier and pushes harder. That is why segmental walls sit on a compacted gravel base and have a zone of clean, free-draining gravel directly behind the blocks, often with a perforated drain pipe at the bottom. The calculator assumes a base trench 24 inches wide and 6 inches deep, and 12 inches of gravel behind the wall. Follow your block maker's guide if it specifies different sizes.
Burying the first course
The bottom course is usually buried, often by about 1 inch for every 8 inches of wall height, with at least half a block below ground. Include that buried part in the wall height you enter.
When you need an engineer
Small garden walls are common DIY projects. But walls taller than about 3–4 feet, walls holding back a slope, a driveway, a building or a pool, or walls on poor soil usually need geogrid reinforcement and an engineered design, and many places require a permit. Check before you build.
Frequently asked questions
How many retaining wall blocks do I need?
Divide the wall height by the block height for courses, and the wall length by the block face length for blocks per course. Multiply them and add about 5%.
How much gravel do I need behind a retaining wall?
Typically 12 inches of drainage gravel behind the blocks for the full height. For a 30 ft × 3 ft wall that is about 3.3 cubic yards.
How deep should the base be?
A compacted gravel base about 6 inches deep and twice the block depth wide is common for small walls. Follow the block manufacturer's guide.
How tall can a retaining wall be without an engineer?
Rules vary, but many places require engineering for walls over about 3–4 feet or walls with loads above them.
Last reviewed December 3, 2026. Results are estimates. Check product labels and local codes before buying.