Retaining Wall Block Calculator

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.

A stone retaining wall with a hedge above it, beside a pond

Your project

ft
ft

The height you will see once the wall is built.

Standard practice: the first course sits below ground level so the wall cannot slide. Recommended for almost every wall.

%

Covers cuts at the ends of alternate rows, and breakages.

Walls over about 4 ft of exposed height usually need an engineered design, geogrid and often a permit โ€” this calculator plans materials for garden walls, it does not design the wall.

Your prices โ€” put your store's prices here

These prices are examples to start from, not live prices. Type your store's prices and the total updates instantly.

Shopping list

ItemBuyCost
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.

Next step for this job

Retaining wall blocks: measuring a slope, the buried course, and the gravel behind the wall

Retaining wall cross-section Cross-section of a block retaining wall showing the cap block, block courses, a buried first course, drainage gravel and a perforated drain pipe behind the wall. Cap block Wall blocks Drainage gravel behind the wall typically about 12 in wide Compacted backfill Perforated drain pipe at the base of the gravel First course buried below ground level (typical) Gravel base under the first course
A retaining wall in cross-section. The gravel and drain pipe behind the wall matter as much as the blocks: most walls that lean were drowned by trapped water, not pushed over.

Measure the wall line and the height that shows

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.

How blocks, base and drainage are counted

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.

Worked example: a 30 ft wall, 3 ft above ground, in 6 ร— 16 in blocks

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.

The mistakes that make walls lean

Buying tips

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.

Quick answers

How many blocks do I need for a 20 ft long, 2 ft high retaining wall?

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.

Why does the calculator add a buried starter course?

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.

How much gravel do I need for a retaining wall base?

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.

How much drainage gravel goes behind a retaining wall?

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.

How tall can I build a block retaining wall myself?

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.

Common wall sizes โ€” 6 ร— 16 in blocks, buried starter course included, at the default settings

Wall (length ร— height)BlocksCap blocksBase gravelDrainage gravelTotal
10 ft ร— 2 ft4490.5 cu yd1.0 cu yd$392.50
20 ft ร— 2 ft83171.0 cu yd2.0 cu yd$749.00
20 ft ร— 3 ft116171.0 cu yd3.0 cu yd$1,013.50
40 ft ร— 3 ft231331.5 cu yd5.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.

More free calculators

Deck material calculator
Boards, joists, screws, posts and cost for any deck size.
Fence material calculator
Posts, rails and pickets for a wood fence, with cost.
Concrete slab calculator
Cubic yards of ready-mix, or how many bags, for any slab.
Gravel calculator
Tons, cubic yards and bags for driveways and paths.
Mulch calculator
Bags or bulk cubic yards for garden beds.
Roof pitch calculator
Pitch, angle, roof area and shingle bundles.
Patio paver calculator
Pavers, base gravel, bedding sand and edging for any patio.
Retaining wall block calculator
Wall blocks, caps, base and drainage gravel for any wall.
Sod calculator
Rolls or pallets of sod for any lawn, with cost.
Soil calculator for raised beds
Bags or bulk soil for raised beds and garden soil jobs.
Post hole concrete calculator
How many bags of concrete per fence or deck post hole.
Topsoil calculator
Cubic yards, tons and bags of topsoil for lawns and leveling.
Grass seed calculator
How much seed for a new lawn or overseeding, by grass type.
Deck & fence stain calculator
Gallons of stain or paint for decks and fences, by coverage and coats.
Sand calculator
Tons and bags of sand for sandboxes, patios and pools.
Deck stair calculator
Risers, treads, run and stringers for deck stairs, with materials.
Fire pit calculator
How many blocks for a round fire pit, plus base gravel.
12 ร— 16 deck material list
The full precomputed shopping list and cost for a 12 ร— 16 ft deck.
Roof pitch chart
Every pitch with its angle and multiplier, roof types and minimum pitches by material.

Disclaimer โ€” please read before you build

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.