Construction, Carpentry & Concrete Masonry, Block & Reinforcement NCMA SRW design practice; IRC R404.4

Retaining Wall Block Calculator

A segmental retaining wall is taller than it looks, because the bottom course is buried. Count only the courses you can see and you will be a course short and a trench shallow. This calculator applies the standard embedment rule - the larger of one full block and a tenth of the total height - then returns courses, wall block and cap counts, the compacted base gravel in cubic yards and tons, and the volume of drainage stone behind the wall.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Wall lengthFace length of the wall measured along the run; add the legs of any return corners.40 ft
Exposed wall heightHeight you want to see above finished grade at the front of the wall, cap included.3 ft
Block face heightHeight of one unit as laid; 6 and 8 in are the common segmental sizes.6 in
Block face lengthFace width of one unit; use the nominal face length from the manufacturer's data sheet.12 in
Cap unit lengthFace length of the cap unit, which is often different from the wall block.12 in
Base trench widthWidth of the compacted gravel leveling pad; usually twice the block depth.24 in
Base gravel depthCompacted thickness of the leveling pad under the first course; 6 in is a common minimum.6 in
Drainage stone thicknessDepth of clean free-draining stone placed directly behind the block face.12 in
Gravel tons per cubic yardCompacted density of your base stone; ask the quarry, since it varies with rock type.1.4 t/yd³

It returns

  • Wall blocks — All courses including the buried ones, before breakage allowance.
  • Courses
  • Cap units
  • Total wall height
  • Depth buried below grade
  • Base gravel volume
  • Base gravel weight
  • Drainage stone volume

The formula

N=HtotalhblockLlblock
Vbase=Lwbasedbase27

In plain text: H_total = max(H_exposed + h_block, H_exposed / 0.9); courses = ceil(H_total / h_block); blocks = courses × ceil(L / l_block)

  • H_totalHeight from the top of the base pad to the top of the wall (ft)
  • H_exposedHeight visible above finished grade at the face (ft)
  • h_blockFace height of one unit (ft)
  • l_blockFace length of one unit (ft)
  • LWall length along the face (ft)
  • NTotal wall block count (blocks)

The embedment rule takes whichever is larger: one full buried course, or one tenth of the total wall height. On low walls the first governs; above about nine times the block height the second takes over. Both are manufacturer and NCMA practice for gravity walls, not a code minimum.

Updated Category Masonry, Block & Reinforcement Verified against published test cases Reading time 10 min

Why the wall is taller than the part you can see

A segmental retaining wall is a gravity structure. It resists the soil behind it with its own mass and with the friction between courses, and it depends on being locked into the ground at the bottom. That is what embedment does: the buried courses stop the base of the wall from sliding or kicking out, and they put the leveling pad below the zone where frost, erosion and foot traffic disturb the surface.

The rule the industry uses is simple. Bury at least one full course, and at least one tenth of the total wall height. On a low wall the first requirement governs: a 3 ft exposed wall of 6 in blocks becomes 3.5 ft total, with 6 in buried. On a tall wall the second takes over: at 9 ft exposed the tenth-height rule wants 10 ft total with 12 in buried, which is two courses. The changeover happens when the exposed height reaches nine times the block height.

That is why counting courses off the visible height alone always comes out short. It also changes the excavation, because you have to dig the buried courses plus the compacted base pad below them - 12 in of trench on the default wall, not 6.

Everything else follows from the two dimensions. Blocks per course is the wall length divided by the face length of a unit, rounded up. Total blocks is courses times blocks per course. Caps run one course along the top at the cap unit's own length, which is often different from the wall block's.

Rounding up, and why it happens twice

Two independent roundings are built into the count, and both go up. Courses round up because you cannot lay two thirds of a block, and blocks per course round up because a partial unit at the end of a run still means buying a whole one - it is cut on site.

The consequence is that a wall 40.5 ft long takes the same 41 blocks per course as a wall 41 ft long, and a wall needing 3.6 courses takes four. Neither rounding is waste in the accounting sense, but neither is free either, and on a wall with several corners the cut-offs accumulate. Add a breakage and cutting allowance of a few percent on top of the count this calculator gives, particularly if the wall curves or steps.

Base gravel is a straightforward prism: length × trench width × compacted depth, divided by 27 for cubic yards. Trench width is normally about twice the block depth so the pad extends behind and in front of the unit. Converting to tons needs a density, and compacted crushed base is commonly taken near 1.4 short tons per cubic yard - the quarry will give you the figure for the material you are actually buying, which is why it is an input here.

Drainage stone is another prism: length × thickness × total wall height. It runs the full height because water can enter the backfill anywhere, and it must be clean free-draining stone, not the site soil. Note that it uses the total height, not the exposed height - the buried courses need drainage too.

Worked example: a 40 ft wall, 3 ft exposed

You are building a 40 ft garden wall, 3 ft visible above grade, from 6 in tall by 12 in long units with matching 12 in caps, on a 6 in compacted base 24 in wide, with 12 in of drainage stone behind the face.

  1. Total height. One-course rule: 3 + 0.5 = 3.5 ft. Tenth rule: 3 ÷ 0.9 = 3.333 ft. Take the larger, 3.5 ft.
  2. Buried depth. 3.5 − 3 = 0.5 ft = 6 in, exactly one course.
  3. Courses. 3.5 ÷ 0.5 = 7 exactly, so 7 courses.
  4. Blocks per course. 40 ft ÷ 1 ft = 40.
  5. Wall blocks. 7 × 40 = 280.
  6. Caps. 40 ÷ 1 = 40 units.
  7. Base gravel. 40 × 2 ft × 0.5 ft = 40 ft³; 40 ÷ 27 = 1.481 yd³; at 1.4 tons per yard that is 2.07 tons.
  8. Drainage stone. 40 × 1 ft × 3.5 ft = 140 ft³; 140 ÷ 27 = 5.185 yd³.
  9. Excavation depth at the face. 6 in buried course + 6 in base = 12 in below finished grade, plus whatever you over-dig to compact.

Add roughly 5 percent to the block count for cutting and breakage, which brings 280 to 294, and round up to whole pallets when you order.

Reading the numbers, and the four-foot line

The single most important number on this page is the exposed height, and the threshold that matters is 4 ft. IRC R404.4 requires retaining walls to be designed to ensure stability against overturning, sliding, excessive foundation pressure and water uplift, and most jurisdictions set a permit and engineering trigger at 4 ft of retained height measured from the bottom of the footing. Above that line a segmental wall is no longer a stack of blocks - it needs geogrid reinforcement extending back into the retained soil, a designed drainage system, and a global stability check.

Surcharge moves the line down. A driveway, a parking area, a slope rising above the wall, a fence footing or a swimming pool near the top all add load that a plain gravity wall was never sized for, and any of them can make a 3 ft wall an engineered structure. If you have one, get the wall designed regardless of height.

Below the threshold, the numbers to watch are the buried depth and the base. A wall fails at the bottom, not the top. Compacting the base pad in lifts, levelling the first course to within a few millimetres, and keeping clean stone behind the face are what separate a wall that stands for thirty years from one that bulges in three. Drainage in particular is not optional: saturated backfill can double the pressure a wall has to resist.

For the gravel and stone deliveries, the gravel tonnage calculator converts volumes to tons at your own supplier's density, and the trench excavation volume calculator handles the spoil you will have to move.

Embedment and course count by wall height

Total height and buried depth for 6 in and 8 in units, applying the larger of one course and one tenth of total height.
Exposed (ft)6 in block: total (ft)6 in block: buried (in)6 in block: courses8 in block: total (ft)8 in block: buried (in)8 in block: courses
11.506.031.678.03
22.506.052.678.04
33.506.073.678.06
44.506.094.678.07
55.566.7125.678.09
66.678.0146.678.010
88.8910.7188.8910.714

Rows above 4 ft exposed are shown for comparison only. A wall retaining more than 4 ft, or any wall with a surcharge, requires an engineered design.

What actually makes these walls fail

  • No drainage zone. Backfilling straight against the block with site clay traps water. Saturated soil pushes far harder than drained soil, and the wall bulges from the middle out.
  • An uncompacted or thin base. The leveling pad carries the whole wall. Compact it in lifts to a firm, unyielding surface, and screed it dead level before the first course.
  • Not enough embedment. Skipping the buried course to save a row of blocks removes the toe restraint the wall relies on.
  • Ignoring surcharge. A driveway, a slope above, or a fence at the top changes the loading completely and puts a gravity wall outside its design basis.
  • Building over 4 ft without an engineer. Beyond that height the wall needs geogrid tied back into the retained soil, and the reinforcement length is a design output, not a guess.
  • No allowance for cutting. Corners, curves and step-downs generate cut-offs. Order a few percent over the calculated count.

This tool counts materials, it does not design a wall

Block counts, gravel volumes and course arithmetic are quantity takeoff. Whether the wall stands up depends on the retained height, the soil behind it, the slope above and below, any surcharge, the drainage, and the block's own shear and connection capacities - all of which are covered by the NCMA design method for segmental retaining walls and, where the retained height exceeds 4 ft, by a registered engineer's design under IRC R404.4. Geogrid length and spacing in particular are design outputs and cannot be estimated from wall height alone.

Segmental walls against the alternatives

Segmental block walls dominate low landscape retaining work because they need no mortar, no footing below frost in most cases, and no specialist trade. They are flexible enough to tolerate small settlements that would crack a rigid wall, and they can curve and step without cutting anything but the ends.

Poured concrete and reinforced masonry walls take over where the wall must be thin, must carry a structure, or must be tied into a building. They need a designed footing below frost depth, reinforcement, and drainage behind them just the same. A timber crib or a boulder wall suits a rustic setting and a short life. Where the wall is only holding a garden bed a few courses high, a mortarless block or a soldier course of pavers is often all the situation warrants.

For the rest of a hardscape takeoff, the paver base calculator sizes the compacted layers under an adjoining patio, the gravel tonnage calculator converts any stone volume to a delivery weight, and the concrete block calculator covers mortared CMU walls where a segmental unit is not appropriate. If the wall needs a poured footing or a concrete cap, the concrete footing calculator handles that volume.

Frequently asked questions

How many retaining wall blocks do I need for a 40 foot wall 3 feet high?

280 blocks using 6 in by 12 in units, plus 40 caps. The count is seven courses of forty: seven because the wall is really 3.5 ft tall once you bury the bottom course, and forty because a 40 ft run takes forty 12 in units. Add about 5 percent for cutting and breakage.

How deep should the bottom course be buried?

The larger of one full block and one tenth of the total wall height. For a 6 in block that means 6 in buried on any wall up to 4.5 ft total; above about 5 ft total the tenth-height rule takes over and the embedment grows. Then dig the base pad below that - typically another 6 in of compacted gravel.

Do I need geogrid?

Almost certainly above 4 ft of retained height, and possibly lower if there is a surcharge such as a driveway or a slope above the wall. Geogrid length, strength and vertical spacing are design outputs from the NCMA method and depend on the soil and the loading, so they cannot be estimated from wall height. Below the threshold, a properly built gravity wall on a compacted base normally does not need it.

How much gravel goes behind a retaining wall?

A zone of clean free-draining stone directly behind the block face, typically 12 in thick, running the full height of the wall including the buried courses. On the 40 ft, 3.5 ft tall example that is 140 ft³, or 5.19 cubic yards. Use angular washed stone with no fines, and wrap it in geotextile so the retained soil cannot migrate into it.

Can I build a retaining wall taller than 4 feet myself?

Not without an engineered design. IRC R404.4 requires retaining walls to be designed for overturning, sliding, bearing and water uplift, and most jurisdictions require a permit and a stamped design above 4 ft of retained height. The physical work is still block laying, but the geogrid layout, the drainage and the global stability check have to come from a designer.

Should the wall lean back into the slope?

Yes. Most segmental units create an automatic setback of an inch or so per course through a lip or a pin system, which tilts the wall into the retained soil and improves its resistance to overturning. The setback also means the top of the wall sits behind the base by several inches over a tall wall, which matters when you are setting out the face line.

What is the base gravel made of?

Well-graded crushed aggregate that compacts to an unyielding surface - a road base type material, not pea gravel or sand. Its density is normally near 1.4 short tons per cubic yard compacted, but that varies with rock type, so ask the quarry for the figure and enter it in the advanced field before you convert volume to tons.

Do the cap blocks get glued down?

Yes, with a flexible masonry adhesive rather than mortar. Caps have nothing above them to hold them in place, and they are the first thing a mower, a boot or a frost cycle will move. Adhesive keeps them located while still allowing the small movements a segmental wall is designed to tolerate.

References

  • Design Manual for Segmental Retaining Walls, 3rd ed. — National Concrete Masonry Association
  • 2021 International Residential Code, Section R404.4 - Retaining Walls — International Code Council
  • 2021 International Building Code, Section 1807.2 - Retaining Walls — International Code Council