CalcCraft

Retaining Wall Calculator

Calculate how many blocks you need for a segmental gravity retaining wall, including buried base.

ft
ft
in
in
in

Informational only — doesn't affect the block count, just helps you match a real product.

%

How we calculate it

Buried depth = max(10% × Exposed height, 0.5 ft), Blocks = ceil(Wall length / Block width) × ceil(Total height / Block height) × (1 + Waste factor).

Understanding your estimate

A retaining wall doesn't usually fail by looking wrong. It fails when the soil behind it pushes harder than the wall was built to resist, often years after anyone stopped thinking about the project. This calculator handles one kind of wall: a gravity wall built from stacked segmental blocks, no reinforcement, no anchors, no soil engineering. What it gives you is how many blocks to buy and whether your wall's total height crosses the line where a stamped engineering review stops being optional. Both numbers come from a documented formula, not a guess.

A 30-foot wall, worked out

Say you're building a gravity wall 30 ft long, with 3 ft of exposed height above grade, using 18 in by 6 in retail blocks (12 in deep) and the default 10% waste factor.

  1. Buried depth: 10% of 3 ft is 0.3 ft, and that gets compared against a 0.5 ft floor. The floor wins, so the wall needs 0.5 ft of block buried below grade.
  2. Total height: 3 ft exposed plus 0.5 ft buried comes to 3.5 ft. That 3.5 ft, not the 3 ft you can see, is what the 4 ft engineering threshold actually checks.
  3. Blocks per course: 30 ft of wall divided by an 18 in (1.5 ft) block width is exactly 20.
  4. Course count: 3.5 ft of total height divided by a 6 in (0.5 ft) block height is exactly 7.
  5. Total blocks: 20 per course times 7 courses times the 1.10 waste factor comes to 154. This particular wall doesn't need any rounding up along the way, since 20 and 7 both land on whole numbers already.
  6. Total height stays at 3.5 ft, under the 4 ft line, so no engineering-review warning shows up.

Why the buried depth counts toward the 4-foot line

The 4 ft threshold in this calculator isn't arbitrary. It comes from IRC/IBC §R105.2, the code section that decides when a retaining wall needs a permit, and that section measures from the bottom of the wall's footing to the top, not from the ground you can walk up and touch. An earlier plan for this calculator skipped the buried portion entirely and compared exposed height alone to 4 ft. That would have quietly undone the exact protection the disclaimer exists to offer, and looking at other calculators in this space turned up some that make that same mistake. The buried depth itself follows a formula published by Allan Block, a manufacturer of segmental retaining wall block, not a geotechnical calculation of our own: 10% of exposed height, with a hard floor of 0.5 ft (6 in) so a short wall still gets a real foundation instead of a fraction of an inch.

Why the waste factor sits at 10%, nothing wall-specific

The waste factor here defaults to 10%, and that's not a coincidence. It's the same default already used across Concrete, Mulch, Gravel, Tile, Flooring, and Insulation on this site. Retaining wall block doesn't need a special number the way roofing material did, because cutting and fitting segmental block around corners and slopes wastes roughly the same share of material as those other jobs do. Ten percent fixed is one calculator's standard advice for this exact job, and 10 to 15% is another's. It stays a field you can raise if your wall has a lot of corners to work around, not a number locked into the formula.

Why block depth doesn't change the block count

The form asks for block depth alongside width and height, but that third number never reaches the calculation. Only width decides how many blocks fit across one course, and only height decides how many courses stack to your total height. Depth changes neither count, so the function doing the math simply doesn't take it as an input. It stays on the form because it matters for other things, like how far the wall reaches into the yard, but it has no business inside a formula that only ever answers "how many blocks." Blocks per course and course count are also rounded up separately from each other rather than folded into one combined area calculation, because a builder actually wants both of those numbers on their own, not just a single total.

What this calculator doesn't cover

This is a gravity wall calculator and nothing more. Reinforced walls, anchored walls, and anything that needs real soil engineering or a drainage plan are out of scope for this version. The disclaimer also notes that some places set a stricter limit than the 4 ft baseline (California uses 3 ft) and tells you to check your local code, but that isn't modeled as a rule tied to where you live. Doing that would mean asking for your location, and this calculator has no backend to support that kind of lookup. The engineering-review flag itself is a soft warning, never something that stops your calculation from running, the same treatment given to both warnings on the Stair Calculator.

Frequently asked questions

Related calculators