A retaining wall fails on paper before it fails in the yard — usually because the buried base course and the drainage gravel never made it into the count. Enter your wall’s length and height and your block size, and this calculator totals the blocks, the cap blocks and the gravel in one pass.

Retaining Wall Block Calculator

Blocks, cap blocks and gravel for a segmental retaining wall — including the buried first course most people forget.

0 blocks to buy (5% waste included)
0
Courses (incl. 1 buried course)
0
Blocks per course
0
Cap blocks for the top row
0
Gravel: base pad + drainage (cu yd)

The block count includes one full course buried below grade — the base course that locks the wall in. Gravel covers a 6-inch compacted base pad (block depth + 6 inches wide) plus a 12-inch drainage column behind the wall. Walls over about 4 feet usually need engineering, permits and often geogrid reinforcement — check your local rules before building higher.

How the Block Count Works

Blocks per course is the wall length divided by the block length. Courses is the wall height divided by the block height — plus one full course buried below ground, which is not optional: the buried course is what stops the wall sliding and gives the base pad something to lock against. Add 5% for cuts at the ends, corners and steps, and the cap count is simply one more row’s worth of blocks at the top.

The Formulas

Blocks per course = Wall length (in) ÷ Block length (in), rounded up. Courses = (Wall height (in) ÷ Block height (in), rounded up) + 1 buried course. Total blocks = Courses × Blocks per course × 1.05. Base gravel = Length × (Block depth + 6 in) × 6 in deep. Drainage gravel = Length × 12 in wide × Wall height.

Worked Example: A 20-Foot Wall, 3 Feet High

With standard 16×6-inch blocks: each course needs 240 ÷ 16 = 15 blocks. The visible wall needs 36 ÷ 6 = 6 courses, plus 1 buried = 7 courses. Total: 7 × 15 = 105 blocks, 111 with 5% waste. Caps: 15. Gravel: the base pad takes 0.56 cu yd and the drainage column 2.22 cu yd — 2.78 cu yd in total, which our Gravel Calculator can convert to tons and bags for your order.

Blocks Needed by Wall Size (16×6 Blocks)

Wall (L × H)CoursesBlocks (incl. waste)Cap blocks
10 ft × 2 ft5408
20 ft × 3 ft711115
30 ft × 3 ft716623
40 ft × 4 ft928430

The Three Things That Make a Wall Last

First, the base: a 6-inch pad of compacted gravel, level front-to-back and side-to-side — every later course inherits its accuracy, so this is where the time goes. Second, drainage: the 12-inch gravel column behind the wall, with a perforated drain pipe at the bottom on taller walls, because water pressure — not soil — is what pushes most failed walls over. Third, the buried course and a slight backward lean (batter) built into most block systems. Get those three right and a segmental wall is a lifetime structure; skip the drainage and even a perfect-looking wall is on a countdown.

Frequently Asked Questions

How many blocks do I need for a retaining wall?

Multiply blocks per course by courses — remembering the buried one. A 20-foot, 3-foot-high wall in 16×6 blocks needs 15 per course × 7 courses = 105, or 111 with waste. Enter your own numbers above; corners and steps eat extra blocks, which the 5% covers on simple straight walls.

Why does one course go underground?

The buried course anchors the wall against sliding and frost heave, and it hides the base pad. The rule of thumb is at least one full course below grade, and more on soft soil or taller walls — some builders bury one course for every 8 courses above ground on big walls.

How much gravel goes behind a retaining wall?

A drainage column at least 12 inches wide behind the blocks, full height, plus the 6-inch base pad under them. For the example 20 × 3 wall that is about 2.8 cubic yards total. Use clean, angular 3/4-inch stone — it drains and locks; rounded pea gravel does neither job well here.

How high can I build a retaining wall without an engineer?

Most areas allow DIY segmental walls up to about 4 feet of exposed height without engineering or a permit — but the limit varies by city and county, and walls holding a slope, driveway or structure above them need engineering at almost any height. Check local rules first; this calculator handles the counting, not the code.

Do I need cap blocks?

Functionally the wall stands without them, but caps finish the top, shed water away from the joints, and lock the top course in place — and they are the part everyone sees. Budget one cap per block position on the top course, glued down with construction adhesive.

Related Calculators

Order the base and drainage stone with the Gravel Calculator — the one planned cross-link between this lane and Aggregates. All outdoor tools live on the Outdoor & Hardscape calculators page.