AllDATUM

Retaining Wall Calculator — blocks and base

Block count, buried base course and drainage stone for a retaining wall, with the height at which engineering and permits enter the picture.

Retaining Wall Calculator — blocks, base and drainage

Block count is easy arithmetic. Retaining walls fail from water and from a bad base, not from a miscount, so the base course and the drainage stone are in here too.

grade base course drainage —
The first course goes below grade and sits on compacted stone. Water behind the wall is what pushes it over, so the drainage layer is structure, not an extra.
——
Courses (exposed + buried)—
Blocks per course—
Blocks total—
Wall face area—
Base stone—
Drainage stone—
Backfill behind wall—

The 4 ft line is written in the code, and it is measured from the bottom of the footing. IBC 2024 §105.2 exempts from a permit "retaining walls that are not over 4 feet (1219 mm) in height measured from the bottom of the footing to the top of the wall, unless supporting a surcharge or impounding Class I, II or IIIA liquids." So a wall that shows 3 ft 6 in. above grade on a buried course and a 6 in. base is already at the line, and a driveway, a slope or a structure above it (a surcharge) removes the exemption at any height. Local amendments change the number; the building department's word governs.

The buried course and the base are not optional, and they are not in the exposed height. The calculator adds them: the first course below grade keeps the toe from kicking out, and the compacted crushed-stone base keeps the first course level, which every course above copies. Drainage stone behind the wall is what keeps water pressure off the units; the strip width you set is the volume to order, and a perforated drain at the base of it is the usual way out.

What I check on a job

Measure the height where the grade drops. The calculator takes one exposed height for the whole length, and that is the input I distrust first. Grade rarely runs level along a wall, so I measure the exposed face at both ends and at the lowest point of the yard, and I run the page again for each stretch where the height changes by a course. A wall that reads 3 ft at the gate can be past 4 ft where the yard falls away, and that end is the one the height warning is about, not the average. I also treat block depth as more than a count input: the base stone here is block depth plus 6 in. wide, so a deeper unit changes the stone order even when the block total does not. Before I order drainage stone, I walk the site to find where the perforated pipe can reach daylight. If there is no downhill outlet, the wall goes to the building department as a question first.

Blocks per course is wall length ÷ block face length, and total courses is the exposed height plus the buried ones. A common rule of thumb buries the first course, or about a tenth of the wall height, and sets it on 6″ of compacted crushed stone.

Drainage stone is estimated as a vertical strip the depth you set, running the full height and length behind the wall. Wall height is the one number that changes the whole job: past roughly 4 ft most jurisdictions require an engineered design and a permit, and geogrid reinforcement usually enters the picture well before that. Soil type, slope above the wall and any surcharge — a driveway, a pool, a structure — all change what is required. Check with your building department before building anything that retains soil.

Worked example

A 20 ft wall, 3 ft exposed, in 12 × 4 × 8 in block: how many blocks per course, and how many courses?

  1. Blocks per course = 20 ft × 12 ÷ 12 in = 20.
  2. Courses = 36 in exposed ÷ 4 in + 1 buried base course = 10.
  3. Drainage stone 12 in behind the wall, and a compacted base under the buried course.

20 blocks a course, 10 courses including the buried one — 200 blocks before waste, plus base and drainage stone. Above about 3–4 ft this stops being a calculator problem.

2 values on this page were driven in a browser and compared with independently derived figures on 2026-10-29 (2808 values across 228 calculators site-wide).

Questions

How many courses of block for a 3 ft wall?

9 exposed courses of 4-inch block plus one buried base course, so 10. The buried course is the one people skip and regret.

When does a retaining wall need an engineer?

Above about 3–4 ft exposed, or with a surcharge behind it, most jurisdictions require a design. The calculator flags the height.

Is the 4 ft permit line measured from the ground?

No, from the bottom of the footing. IBC 2024 §105.2 exempts walls not over 4 ft (1219 mm) from the bottom of the footing to the top, unless they support a surcharge. A wall showing 3 ft 6 in. above grade on a buried course and a 6 in. base is already at the line; local amendments and the building department govern.

Why does the calculator bury the first course?

The buried course keeps the toe from kicking out, and the compacted crushed-stone base under it keeps the first course level, which every course above copies. Neither counts in the exposed height, so the page adds both to the block and stone order.