Retaining wall blocks calculator

Blocks, caps, base gravel and drainage priced by wall length, height and block type.

By the LocalServiceHQ editorial team
Updated Oct 29, 2026
Formulas and sources listed below
Prices checked Oct 2026
Your job
Wall shape
Drainage
Your estimate
Blocks needed
—
face area ÷ block coverage, with cuts
Material cost
—
blocks, caps, base gravel and drainage
Typical range for this job: —
How it adds upTypical
Wall face arealength × height
—
Blocks1.1–2.2 blocks per sq ft by block size
—
Cap blockslength ÷ cap width, rounded up
—
Base gravel6 in compacted base under the first course
—
Drainagegravel backfill and perforated pipe
—
Material costblocks, caps, gravel and drainage
—
US block wall prices for October 2026: $2.20–$15 per block, caps about 20% more and base gravel $30–$45 per cubic yard. Walls over 4 ft usually need an engineer, geogrid and a permit.
Walls over 4 ft usually require a permit and engineered design, and drainage gravel is not optional.
Photo via Pexels

How the math works

Blocks per square foot
Layout
1.1 to 2.2 blocks per sq ft
Smaller blocks cover less face area, so you need more.
Cap blocks
Layout
length ÷ block width
Caps finish the top and keep water out of the cores.
Base gravel
Material
6 in compacted base, plus backfill drainage
Gravel below and behind the wall is what keeps it standing.
Height rule
Structure
above 4 ft: engineer and permit
Tall walls need geogrid, deadmen and an engineered plan.

Common starting points

Common US garden walls with standard block.

Tap a preset in the calculator above to load a typical job, then adjust the numbers to match your site.
Starting points: 20 ft × 2 ft · 40 ft × 3 ft · 40 ft × 3 ft curved · 60 ft × 4 ft · 40 ft × 3 ft segmental

Rather hire it out?

See installed prices and permit rules for retaining wall block calculator.

Embed this calculator

Free for blogs and contractor sites. Keep the credit link.

Embed this calculator on your site with the credit link intact.

How to use the retaining wall block calculator

Measure the wall, choose the block and allow for caps, base and drainage.

1
Measure the wall
Length along the wall face and the height above grade.
2
Choose the block
Standard, large format or segmental block each cover different area.
3
Plan the base
Six inches of compacted gravel, with drainage gravel behind the wall.
4
Check the height
Above 4 ft, get an engineered design and a permit.

Mistakes that cost homeowners money

!
Skipping the gravel base and the drainage backfill, which is what fails first.
!
Building a wall over 4 ft without an engineer and permit.
!
Not counting caps, which are sold separately and priced higher.
!
Forgetting to check local code on wall height and setbacks.

Retaining wall block calculator FAQ

How many blocks do I need for a retaining wall?

Multiply wall length by height for face area, then use 1.1 to 2.2 blocks per sq ft depending on block size. A 40 ft × 3 ft wall with standard block needs about 180 blocks plus caps.

Materials run about $5 to $15 per sq ft, and installed costs are $25 to $60 per sq ft. A 40 ft × 3 ft wall typically lands between $3,000 and $7,000 installed.

Many cities require a permit for walls over 3 to 4 ft, and anything tall enough to retain a driveway or slope usually needs an engineer's design.

Six inches of compacted gravel below the first course, and the first course buried about a quarter of its height for stability.

Yes. Gravel backfill and a perforated drain pipe behind the wall are essential; hydrostatic pressure is the main cause of wall failure.

Forty to sixty years with correct base and drainage. Without drainage, failures often appear within five to ten years.

Using the calculator defaults, 20 ft × 2 ft gives Blocks needed: 60 and Material cost: $331, with a typical range $194 to $522. Change the waste allowance, material or thickness to match your site.

Using the calculator defaults, 40 ft × 3 ft segmental gives Blocks needed: 264 and Material cost: $3,070, with a typical range $1,834 to $4,637. Change the waste allowance, material or thickness to match your site.