Free calculator
Retaining Wall Calculator: Blocks, Caps & Drainage Stone
Wall block counts, cap units, base gravel, and drainage stone for segmental block walls - with a waste allowance for cuts. No sign-up; the math runs entirely in your browser.
By Basharat Ali, FounderCalculation reviewedUpdated October 2026
feet
feet, total incl. buried course
face dimensions
inches per cap unit
% for cuts
You need
126 blocks
Courses
6
Cap units
20
Base gravel
0.74 cu yd
Drainage stone
1.48 cu yd
Steps: 6 courses × 20 blocks per course + 5% waste, rounded up. Base = 20 ft × 2 ft × 6 in trench; drainage = 1 ft wide column behind the wall.
Planning estimate. Walls over 3–4 ft tall (and any wall holding back a slope or driveway) usually need engineering and a permit - check your local code before stacking higher.
Estimated cost
What will it cost?
Enter your local store prices — prices vary by region.
Wall blocks
126 blocks
—
Cap units
20 caps
—
Base gravel
0.74 cu yd
—
Drainage stone
1.48 cu yd
—
Estimate — prices vary by store and region. Check your local store for current pricing.
Worked example: 20×2 ft garden wall
Full arithmetic, step by step (12×4-in landscape blocks, 5% waste, 12-in caps):
- Courses: 24 ÷ 4 = 6 courses
- Blocks per course: 240 ÷ 12 = 20 blocks
- Total blocks: 6 × 20 × 1.05 = 126 blocks
- Caps: 240 ÷ 12 = 20 caps
- Base gravel: 20 × 2 × 0.5 = 20 cu ft = 0.74 cu yd
- Drainage stone: 20 × 1 × 2 = 40 cu ft = 1.48 cu yd
The formulas
Blocks
Blocks = ⌈ courses × blocks per course × (1 + waste) ⌉ - courses = ⌈ height ÷ block face height ⌉, per course = ⌈ length ÷ block face length ⌉.
Caps
Caps = ⌈ wall length ÷ cap length ⌉ - one cap per block-length of wall, roughly.
Gravel and drainage
Base = length × 2 ft × 0.5 ft ÷ 27; drainage = length × 1 ft × height ÷ 27 - both in cubic yards.
Frequently asked questions
How many blocks do I need for a retaining wall?
Divide the wall length by the block's face length for blocks per course, divide the wall height by the block's face height for courses, multiply, and add waste for cuts. Example: a 20-ft wall, 2 ft tall, with 12×4-in blocks = 20 blocks/course × 6 courses = 120, plus 5% waste = 126 blocks.
How tall can a DIY retaining wall be?
Most manufacturers and codes treat 3 to 4 feet as the DIY limit for segmental block walls without engineering. Taller walls - or any wall holding back a slope, driveway, or structure - usually need geogrid reinforcement, drainage design, and a permit. Check your local code before stacking higher.
Do I need drainage behind a retaining wall?
Yes. Water pressure is what kills retaining walls. The standard detail is a 12-inch-wide column of clean drainage stone directly behind the wall, full height, plus a perforated drain pipe at the base daylighted out the ends. This calculator sizes the drainage stone for you.
How deep should the gravel base be under a retaining wall?
6 inches of compacted crushed gravel (compacted in lifts) under the first course, in a trench about twice as wide as the block is deep. Bury the entire first course - the calculator's height input should include that buried course.
What are cap units and how many do I need?
Caps are the finished top row - wider, flat units that lock the wall together and shed water. Count = wall length ÷ cap length, rounded up. For a 20-ft wall with 12-inch caps, that's 20 caps. They cost more per unit than wall block, so price them separately.
Do I need geogrid for my retaining wall?
For walls under 3 feet on flat ground, usually not. Above that, most block manufacturers require geogrid layers extending back into the soil at specified intervals - the exact schedule comes from the block maker's engineering tables for your wall height and soil. This calculator doesn't size geogrid; treat taller walls as engineered work.
Keep estimating