Retaining Wall Calculator
Which block are you using?
Pick the block size — the math adjusts.
Pick a block type to continue.
How big is the wall?
Length along the hill, height from the buried base to the top.
Include the buried first course in the height — it counts.
Top it with caps?
Cap blocks finish the top course and shed water.
Pick an option to continue.
Your block count
Waste allowance Starts at 0% — tap to add a cushion for cuts & breakage.
Buy this many blocks
–
- Exact blocks
- –
- Blocks to order
- –
- Cap blocks
- –
- Base gravel
- –
💡 Pro field tips
🧰 Tools you'll need
Tap to check off as you load up.
Est. project cost (optional)
File this estimate under a job name or PO to track what to order. Leave blank to file under "General".
Copied to clipboard ✓
How the math works
A retaining wall is a wrestling match with a hillside, and the hillside cheats — it pushes harder every time it rains. The math behind a wall that stands for decades has four parts: courses of block, blocks per course, how far each course leans back, and the drainage rock that keeps water from becoming a battering ram.
How the calculator counts blocks: face area
Blocks = Wall face area (length × height) ÷ 0.889 ft² per standard block, rounded UP
The calculator works from the wall's face area, not course by course: a 20 ft × 3 ft wall has 60 ft² of face, and 60 ÷ 0.889 = 67.49 → 68 blocks. Include the buried first course in the height you enter — it counts. Skipping the buried course is the most common DIY mistake, and it's why so many weekend walls lean by year three.
Cap blocks and base gravel
Cap blocks = Wall length ÷ 1 ft per cap · Base gravel = Length × 1.5 ft wide × 0.5 ft deep ÷ 27
That same 20-ft wall takes 20 cap blocks, and its base pad — a 1.5-ft-wide, 6-inch-deep gravel bed under the wall — takes 20 × 1.5 × 0.5 ÷ 27 = 0.56 yd³ of gravel.
Setback: why good walls lean back
Each course steps back about ¾ inch — called batter — and it's structural, not decorative. Soil pushes horizontally, trying to topple the wall forward; leaning back aims the wall's own weight against that push, like a wrestler leaning into a shove. A plumb wall against a tall slope is quietly planning its collapse.
Drainage rock: the part everyone skips
Waterlogged soil weighs nearly twice what dry soil does, and trapped water pushes with hydrostatic pressure — the number-one wall killer. The defense: 12 inches of clean ¾-inch gravel behind the wall, fabric-wrapped, with a perforated drain pipe at the base:
Drainage rock behind the wall is not figured by this calculator. As a hand-figured guide, a 12-inch gravel column behind the wall runs about Length (ft) × 1 ft × Height (ft) ÷ 27 cubic yards.
For a 20-ft by 3-ft wall that hand figure is about 2.2 cubic yards — order it separately from the base gravel above. Skip this and you're building a dam, not a wall — and dams fail dramatically.
Worked example: 20 ft × 3 ft wall
- Face area 20 × 3 = 60 ft² → 60 ÷ 0.889 = 67.49 → 68 blocks; 20 cap blocks
- Base gravel: 0.56 cubic yards for the base pad. Drainage rock behind the wall is not figured by this calculator — figure it by hand (about 2.2 yd³ for this wall) and order it separately, with drain pipe.
- Waste factor: tap a waste chip to add for chipped cuts and cracked setters — at 10% the order is 75 blocks and 22 caps.
Walls over 4 feet usually need an engineer's stamp and geogrid reinforcement — that's permit territory, not weekend math.
Most Asked Questions
How many blocks do I need for a 20 ft × 3 ft wall?
68 standard blocks, plus 20 cap blocks. The calculator counts the wall's face — 20 × 3 = 60 ft² — and divides by 0.889 ft² per standard block (8×16 in), rounding up. That count includes the buried first course, so enter your full height with the buried course counted in.
How does the calculator count blocks — by rows or by area?
By face area, not row by row. It divides the wall's square footage by the block's face size, which handles a partial top course automatically. Cross-check by hand if you like: a standard block is 16 inches long, so a 20-ft wall lays 15 blocks per course.
How many cap blocks do I need?
One cap per foot of wall. A 20-ft wall takes 20 caps at the exact count. Tap a waste chip and the caps grow by the same percentage — 22 caps at +10%.
How much gravel does the wall need?
The calculator figures the base pad only: 0.56 yd³ for a 20-ft wall. That's a gravel bed 1.5 ft wide and 6 inches deep under the blocks. The drainage rock behind the wall is separate — figure roughly length × 1 ft × height ÷ 27 (about 2.2 yd³ for this wall) and order it on its own.
How tall can I build a retaining wall without an engineer?
Keep it at 4 feet or under without one. Past 4 ft, most jurisdictions want an engineered design and a permit — the calculator itself flags you when the height you enter goes over 4 ft. Taller walls also need geogrid reinforcement, which is permit territory, not weekend math.
How much extra should I add for cuts and breakage?
Your call — the calculator starts at 0% and the order stays the exact count until you tap a waste chip. Most people tap +10%: on the 20 × 3 ft example that takes the order from 68 to 75 blocks and 20 to 22 caps. Blocks chip and crack in transit, and one block short stops a course cold.