Retaining Wall Calculator
v2.0Find how many blocks, courses, and how much base gravel your retaining wall needs.
How to use this calculator
- Measure the total length and desired height of the finished wall, in feet.
- Check your retaining wall block's dimensions, printed on the product packaging, and enter length and height in inches.
- Set a base gravel depth, 6 inches is typical for a compacted base course.
- Use the total block count to order materials, and add extras for cuts at corners or curves.
One page, free to print. A materials list for a block retaining wall, with room to copy your results.
How the calculation works
Blocks per course come from dividing wall length by block length. Courses come from dividing wall height by block height. Multiplying the two gives total blocks. The base gravel estimate assumes a trench slightly wider than the block to allow for leveling and drainage, at the depth you specify. In metric mode, enter the wall length and height in meters and the block and base sizes in centimeters. The calculator converts them to feet and inches before counting, and shows the base gravel in cubic meters and tonnes (cubic yards and tons in US mode). The optional price per block adds a block cost; it does not include gravel, caps or adhesive.
The table shows the courses and total blocks for a 20 ft long wall built from 18 in long, 8 in tall blocks at common heights.
| Wall height | Courses | Total blocks (20 ft wall) |
|---|---|---|
| 1 ft | 2 | 28 |
| 2 ft | 3 | 42 |
| 3 ft | 5 | 70 |
| 4 ft | 6 | 84 |
Worked example: a 20 ft long, 3 ft tall wall built from 18 in by 8 in blocks needs 14 blocks per course and 5 courses, so 70 blocks. The 6 in base takes about 0.52 cubic yards of gravel. At $3.50 per block, the blocks cost $245.
What to measure and common mistakes
Measure along the face of the wall, in sections. A wall that steps down with the slope has a different height in each section. Run each section on its own and add the blocks together. A curved wall is easier to count as a series of short straight runs.
Include the buried course in the height. Most block systems call for the first course to sit below grade. The calculator counts every course in the height you enter, so add the buried part to the visible height.
Enter the face length and height of the block. Take them from the product sheet. The depth from front to back is not used, and common sizes vary by product.
Price the rest of the wall separately. Caps, adhesive, geogrid, the drain pipe and the stone behind the wall are not included. The gravel result covers the base only, so use the Gravel Calculator to size the drain stone behind the wall.
When to bring in help
Height is not the only trigger. A wall near a building or a driveway, or one that holds back a slope, carries extra load from what sits above it. Check your local rules, and ask the block manufacturer or an engineer before you build if the wall is tall, supports a load or holds back water.
Formula and assumptions
Blocks per course are the wall length divided by the block length, rounded up. Courses are the wall height divided by the block height, rounded up. Total blocks are the product of the two, and cut blocks at the ends and corners count as whole blocks.
The base trench is estimated at 0.6 times the block length plus 6 inches wide, filled to the depth you enter, at 105 pounds per cubic foot. In metric mode, lengths are converted to feet and inches first, and the gravel shows in cubic meters and tonnes. The cost field multiplies blocks by your price per block.
Frequently asked questions
Do I need an engineer for a retaining wall?
Many jurisdictions require an engineered design and permit for retaining walls above 3 to 4 feet tall, or any wall holding back a slope with surcharge load. Check local requirements before building a wall over that height.
How much base gravel does a retaining wall need?
A compacted gravel base is typically 6 inches deep and extends a few inches wider than the block on each side, to provide drainage and a level starting course.
Does this calculator account for a running bond pattern?
No, it estimates blocks per course at full width for each row. A running bond, where each course offsets by half a block, uses roughly the same total block count but changes how courses align at the ends.
How many blocks do I need for a 3 ft tall wall?
A 3 ft wall built with 8 in tall blocks needs 5 courses, because 36 in divided by 8 in is 4.5 and the last course rounds up. With 18 in long blocks, a 20 ft long wall then needs 14 blocks per course, or 70 blocks in total.
Does the block count include capstones or a buried first course?
No. The count covers the wall height you enter. Add capstones separately, and if you plan to bury the first course below grade, include that course in the wall height.
Last updated November 20, 2026.