This retaining wall block calculator turns wall length and finished height into the full shopping list โ wall blocks with waste, cap blocks, the gravel base trench and the drainage gravel behind the wall, with the total cost. No sign-up. The working is shown under every number.
Quick example: a 20 ft long, 2 ft high wall in 6 ร 16 in blocks needs 83 blocks, 17 cap blocks, 1.0 cubic yard of base gravel and 2.0 cubic yards of drainage gravel โ $749.00 at the example prices.

| Item | Buy | Cost |
|---|---|---|
| Estimated total | $0.00 |
Drainage gravel goes behind the wall with a perforated drain pipe at the base โ the pipe is not priced here (allow one length per wall). A layer of landscape fabric behind the blocks keeps soil out of the gravel.
Estimate only โ not a guarantee. Mistakes are possible, so always check the quantities with your supplier or a builder before you buy or build.
Stretch a string along the line of the wall at ground level and measure its length โ for a curved wall, lay a garden hose along the curve first, straighten it, and measure the hose. The height this calculator wants is the finished height above ground: stand at the low side of the slope and measure from the ground there up to the level the top of the wall must reach, because a wall on a slope is taller at one end than the other. Use the greatest height for ordering โ blocks can step down at the high end, but a wall that comes up short at the low end is a rebuild. Before you settle the height, check your local rules: many areas require a permit and an engineered design above 4 ft of exposed height, and a wall holding up a driveway or a slope carries far more load than a garden wall of the same height. Also mark what is behind the wall โ the drainage zone and the trench together need about 2 ft of working room behind the wall line.
Blocks per row = wall length in inches รท block length, rounded up. Rows = finished height in inches รท block height, rounded up, plus one buried starter course (you can untick it, but read the note below first). Blocks = rows ร blocks per row, plus your waste allowance; caps are one row's worth plus waste. Base gravel fills a trench 6 in deep and 12 in wider than the block. Drainage gravel is a 12 in wide column behind the wall for the wall's full built height โ the part most first-time builders under-order.
Per row: 360 in รท 16 in = 22.5, so 23 blocks. Rows above ground: 36 in รท 6 in = 6, plus the buried course = 7 rows. Raw blocks = 23 ร 7 = 161, and with 10% waste, 178 to buy; caps = 23 plus waste = 26. Base trench: 30 ft ร 2 ft wide (12 in block + 12 in) ร 6 in deep = 1.11 cubic yards, rounded up to 1.5 cubic yards. Drainage: 30 ft ร 1 ft ร the full 3.5 ft built height = 3.89 cubic yards, rounded up to 4.0 cubic yards. At the example prices โ $6.50 a block, $3.50 a cap, $50 a yard for gravel โ the total is $1,523.00. Set the same figures above and compare line by line.
Blocks are heavy in a way that surprises people: a 30 ft wall at this size is over 200 blocks and several tons. Get them delivered on pallets as close to the wall line as the truck can reach, and ask the yard to place pallets along the wall's length, not in one pile at the end. Buy caps from the same batch as the blocks so the color matches across the top โ the caps are the part everyone sees. And order the gravel for the same delivery window: a wall trench dug and then rained on while you wait a week for gravel is a trench you dig twice.
Read next: How to check a contractor's material quote โ wall quotes hide a lot in the block count โ how to recompute every line before you sign.
With 6 ร 16 in blocks, each row of a 20 ft wall takes 15 blocks (240 in รท 16 in), and a 2 ft exposed wall takes 4 rows plus 1 buried starter course โ 5 rows in total, so 75 blocks, and 83 to buy once the 10% waste allowance is added.
The first course of a block wall is normally buried below ground level to stop the wall sliding and to keep the base out of the frost. This calculator counts one buried course (you can untick it), based on the finished height you want above ground.
The base is a trench 6 in deep and 12 in wider than the block, filled with compacted gravel. A 20 ft wall with 12 in deep blocks needs 0.74 cubic yards, rounded up to a 1.0 cubic yard order.
This calculator allows a 12 in wide column of clean drainage gravel behind the blocks for the full built height of the wall. A 20 ft wall built 2.5 ft high (2 ft showing plus the buried course) needs 1.85 cubic yards, rounded up to 2.0 cubic yards.
Most block manufacturers rate their standard blocks for walls up to about 4 ft of exposed height; anything taller, or a wall holding back a slope, driveway or building, usually needs an engineered design, geogrid reinforcement and often a permit. This calculator plans materials only โ check your local rules before building over 4 ft.
| Wall (length ร height) | Blocks | Cap blocks | Base gravel | Drainage gravel | Total |
|---|---|---|---|---|---|
| 10 ft ร 2 ft | 44 | 9 | 0.5 cu yd | 1.0 cu yd | $392.50 |
| 20 ft ร 2 ft | 83 | 17 | 1.0 cu yd | 2.0 cu yd | $749.00 |
| 20 ft ร 3 ft | 116 | 17 | 1.0 cu yd | 3.0 cu yd | $1,013.50 |
| 40 ft ร 3 ft | 231 | 33 | 1.5 cu yd | 5.5 cu yd | $1,967.00 |
Block counts include the buried starter course and 10% waste. Base gravel is a 6 in deep trench 12 in wider than the block; drainage gravel is a 12 in wide column behind the wall for its full built height; both are rounded up to the nearest 0.5 cubic yard. Totals use the example prices in the calculator above.
These figures are planning estimates only โ not a guarantee and not professional advice. Mistakes are possible, including through an error in this calculator. Always check the quantities, sizes, spacings and depths with your supplier, a licensed builder, and your local building code before you buy materials or start work. The owner of this site accepts no responsibility or liability for any loss, cost, damage, injury, wasted material or failed inspection that results from using these estimates. Prices are examples to start from, not live prices or quotes.