Home · Construction & Home DIY · Retaining Wall Calculator

Retaining Wall Calculator

Count blocks, caps, base gravel and drainage backfill for a segmental block wall. This is a materials planning estimate only — it makes no structural or load-bearing claims. Results update as you type.

Common sizes

Your wall and blocks

Units

Example result — edit any value to make it yours

L 20 ft H 36 in
The wall from the front: block courses under a cap row, with one course below the dashed ground line. The dimension labels update with your inputs.
Wall view

Block courses and cap on their gravel base, to scale from your inputs. Drag to rotate · scroll or pinch to zoom.

What this calculator is for

Segmental block retaining walls — garden terraces, bed edging, level changes in a yard. It counts the blocks and caps and the two gravel volumes the wall sits in and drains through: the compacted base pad underneath and the drainage backfill behind it. It is a materials planning estimate only: it makes no structural or load-bearing conclusions, and nothing here replaces your local code, the block manufacturer's guidance or a design for taller walls.

Formula and assumptions

Courses = ⌈(exposed height + one block height) ÷ block height⌉ · Blocks per course = ⌈wall length ÷ block length⌉

One full course is modelled as buried below grade, so the course count covers the exposed height plus one extra course — a planning assumption, not an engineering standard. Block and cap counts round up per course, then your allowance is applied for cuts, breakage and spares. The base pad is a gravel strip as deep as you enter and as wide as the block depth plus the extra width you enter. Drainage backfill is a zone behind the wall, as wide as you enter, over the exposed height. Both gravel volumes include the allowance. Every one of those numbers is an editable field, because the right values come from your block system and your site — not from this page.

Reading your result

The big figure is the number of blocks to buy, allowance included. Under it, the course arithmetic — courses × blocks per course — so you can check the count against your wall by eye. Cap blocks are counted separately at the cap length you entered. Base gravel and drainage backfill are the two order volumes; they are different materials in many builds (a compactable base mix versus a clean drainage stone), so keep them as separate lines when you order. The wall face area is handy when a supplier prices or checks coverage by the square foot.

Worked example

A 20 ft wall with 36 in of exposed height, built from 16 in × 8 in blocks: courses = ⌈(36 + 8) ÷ 8⌉ = 6 courses (one buried), at 15 blocks per course = 90 blocks; with a 10% allowance that becomes 99 blocks to buy, plus 17 cap blocks. The base pad takes 0.81 yd³ of gravel and the drainage zone 2.44 yd³. These figures are computed by the same tested function the calculator above runs — change the inputs and they move together.

Common mistakes

Entering the total height instead of the exposed height. The field asks for height above ground; the buried course is added for you. Entering ground-to-top total height double-counts it. Using nominal block sizes without checking. Counts are only as good as the block dimensions you enter — measure your actual block, including any setback your system builds in course by course. Skipping the backfill. The drainage zone behind the wall is a real material volume, not an optional extra; leaving it out under-orders gravel. Reading the count as a design. A block count says nothing about whether the wall stands up — height limits, reinforcement and drainage follow code, the manufacturer and your site.

Quick reference: common walls

Blocks and caps to buy for common walls, using the calculator's default 16 in × 8 in × 12 in block and 10% allowance, computed by the same function:

WallLengthExposed heightCoursesBlocks to buyCaps to buy
Garden edge12 ft24 in44010
Garden wall20 ft36 in69917
Terrace wall30 ft36 in615226
Long boundary40 ft48 in723133

A different block size changes every count — run the calculator above with your block's real dimensions.

Common questions

Why is there one more course than the height needs?

The model buries one full course of blocks below grade, so the course count covers your exposed height plus one extra course. That is a planning assumption, not an engineering standard — it is stated on the result so you can see it. If your block system or site calls for a different embedment, adjust the exposed height you enter so the course count lands where you want it.

Does this calculator tell me how high I can build?

No — deliberately. This page counts materials only and makes no structural or load-bearing conclusions. Wall height limits, reinforcement, drainage design and footing requirements follow your local code, the block manufacturer's guidance and your site conditions. Taller or load-bearing walls need proper design; a materials count is not a substitute for it.

How are the base gravel and backfill volumes worked out?

The base pad is modelled as a gravel strip under the wall: its width is the block depth plus the extra width you enter (24 in at the defaults), at the pad depth you enter. Backfill is a drainage zone behind the wall, as wide as the backfill width you enter, over the exposed height. Both are editable planning assumptions — real drainage design depends on your soil and water conditions.

Do cap blocks use the same allowance?

Yes. Caps are counted per course-length (wall length ÷ cap length, rounded up) and the same allowance percentage is applied for cuts and spares. If your caps are a different length from your blocks, enter the cap length separately — the field is there for exactly that.