Free DIY calculator
Retaining wall calculator: how many blocks, caps and gravel do I need?
One Allan Block Classic covers about 1 square foot of wall face, so a 20 by 3 foot garden wall — 60 square feet — needs 60 blocks before waste, 63 with the usual 5 percent added, 14 cap blocks and about 3.11 tons of gravel backfill. This calculator does the same maths for any wall: enter the length and height, pick your block size and waste, and it gives you the blocks, caps, gravel and material cost to buy.
Last updated: November 17, 2026.
Estimate only — check your supplier's current price and local code before ordering.
Tired of chasing manually? Let Invoice Chaser run the day 7, 14 and 30 reminder sequence automatically — free for up to 3 invoices.
How do you work out how many blocks a retaining wall needs?
Six pieces of arithmetic, all from the wall itself:
- Wall area. Length × height. A 20 × 3 ft wall is 20 × 3 = 60 sq ft.
- Blocks before waste. Area ÷ 1 sq ft per Allan Block Classic face, rounded up. 60 ÷ 1 = 60 blocks. The smaller AB Junior covers 0.5 sq ft per block, so the same wall takes 120 of those before waste.
- Waste. Base blocks × (1 + waste ÷ 100), rounded up. 60 × 1.05 = 63 blocks. The 5% default covers cuts at corners and ends and a cracked block or two.
- Cap blocks. Wall length in inches ÷ 18, rounded up — an AB Capstone is 18 in long. 20 ft is 240 in, and 240 ÷ 18 = 13.33, so buy 14 caps for the top course.
- Gravel backfill. Length × height × 1 ft, for the 12 in wall-rock zone Allan Block requires behind the block, full height — then ÷ 27 for cubic yards. 20 × 3 × 1 = 60 cu ft, and 60 ÷ 27 = 2.22 cu yd. The hollow block cores get filled with the same wall rock, so order a little extra if your cores are deep.
- Gravel weight. Cubic yards × 1.4 tons per cubic yard. 2.22 × 1.4 = 3.11 tons of clean crushed stone.
- Material cost. Blocks × $8.88 + caps × $6 + tons × $50, rounded to whole dollars. 63 × $8.88 + 14 × $6 + 3.11 × $50 = $559.44 + $84 + $155.50 = $798.94, so about $799. The prices are planning figures from the sources below — get a real quote from your supplier before ordering.
The 1 sq ft face comes from Allan Block’s own AB Collection spec table, which lists the AB Classic at 8 in high × 12 in deep × 18 in long, about 75 lb, covering “1 sq ft approx”. That is the nominal module: the block itself measures a little under 18 × 8 in, and the lip and setback make up the module in the wall. Specs are approximate and vary a little by local producer, so check your producer’s sheet if your wall is large — but for a garden wall the 1-block-per-square-foot rule is the maker’s own number, not a guess.
How many blocks does a 20 by 3 foot retaining wall need?
A 20 × 3 ft garden wall, Allan Block Classic, 5% waste, caps included:
- Wall area: 20 × 3 = 60 sq ft
- Blocks before waste: 60 ÷ 1 = 60 blocks
- With 5% waste: 60 × 1.05 = 63 blocks
- Cap blocks: 240 in ÷ 18 in = 13.33, round up to 14 caps
- Gravel backfill: 20 × 3 × 1 ft = 60 cu ft ÷ 27 = 2.22 cu yd
- Gravel weight: 2.22 × 1.4 = 3.11 tons
- Material cost: 63 × $8.88 + 14 × $6 + 3.11 × $50 = about $799
Buy 63 blocks, 14 caps and about 3.11 tons of clean crushed stone. The 63 blocks weigh about 4,725 lb at 75 lb each, so plan on the supplier’s truck or a trailer — and remember the gravel base under the first course, the drain pipe and any geogrid are on top of this list.
How many blocks do different retaining walls need?
| Wall | Wall area (sq ft) | Blocks (AB Classic) | Cap blocks | Gravel backfill (cu yd) | Gravel backfill (tons) | Material cost (about $) |
|---|---|---|---|---|---|---|
| 10 × 3 ft garden wall | 30 | 32 | 7 | 1.11 | 1.56 | 404 |
| 20 × 3 ft garden wall | 60 | 63 | 14 | 2.22 | 3.11 | 799 |
| 20 × 4 ft wall | 80 | 84 | 14 | 2.96 | 4.15 | 1037 |
| 30 × 4 ft wall | 120 | 126 | 20 | 4.44 | 6.22 | 1550 |
| 40 × 4 ft wall | 160 | 168 | 27 | 5.93 | 8.3 | 2069 |
All rows: Allan Block Classic, 5% waste, caps included, gravel backfill at a 12 in zone behind the wall. Change any of them in the calculator above for your exact wall. The gravel base under the first course, drain pipe, geogrid and engineering are not included — walls over 4 feet high usually need those designed and permitted.
How much does a retaining wall cost?
The blocks are the biggest material line. Allan Block Classic units sell for $8.24–$9.52 each at Valley Landscape Center, from the supplier’s retail price sheet captured in September 2026 — the calculator prices them at $8.88, the midpoint of that sheet, so the 63 blocks in the worked example run about $559. Cap blocks cost $2–$6 each, priced at $6 in the calculator, which puts the 14 caps at $84.
Gravel is the next line: 3.11 tons of clean crushed stone for the worked example, priced at $50 a ton in the calculator, inside the $35–$65 a ton range for drainage aggregate — about $156. That brings the worked example to about $799 in materials before tax and delivery.
What the calculator does not price is delivery, the gravel base under the first course, the perforated drain pipe, geogrid, labour and any engineering. A pallet of 40 Classic blocks weighs about 3,000 lb, so most DIY jobs need the supplier’s truck. Walls over 4 feet high usually need an engineered design and a permit — get those quoted separately, and check your local code before you build, because some towns set the height limit lower than 4 feet.
Embed this calculator on your site
Copy the code below and paste it into any page to embed this calculator.
What do people ask before starting this project?
How many retaining wall blocks do I need for a 20 foot wall?
A 20 foot long, 3 foot high wall is 60 square feet of face. One Allan Block Classic covers about 1 square foot, so the wall needs 60 blocks before waste. Add 5 percent for cuts and breakage and the order becomes 63 blocks, plus 14 cap blocks for the top course and about 3 tons of gravel backfill.
How much gravel goes behind a retaining wall?
Allan Block calls for wall rock in the block cores and at least 12 inches of it behind the block, running the full height of the wall. For a 20 foot by 3 foot wall that is 60 cubic feet, or 2.22 cubic yards. At 1.4 tons per cubic yard that is 3.11 tons of crushed stone to order.
How high can I build a retaining wall without an engineer?
Most US codes let a homeowner build a retaining wall up to 4 feet high without an engineered design, measured from the footing to the top. Taller walls, walls holding up a slope or driveway, and walls in poor soil need a licensed engineer and a permit. Check your local code first, since some towns set the limit lower.
Do I need cap blocks on top of a retaining wall?
Yes, caps finish the wall and keep rain out of the hollow block cores. Allan Block capstones are 18 inches long, so count one cap per 18 inches of wall length, and a 20 foot wall needs 14 caps. They also give the wall a flat edge you can sit on, and they set in masonry adhesive.
Where do the numbers come from?
- Allan Block AB Collection spec table — AB Classic 8 in H × 12 in D × 18 in L, about 75 lb, coverage "1 sq ft approx"; AB Junior 0.5 sq ft, 35 lb — Allan Block manufacturer spec sheet — the 1-block-per-square-foot figure
- Allan Block spec guideline — fill block cavities and a minimum of 12 in (300 mm) of wall rock behind the block — Allan Block — the 12 in gravel backfill zone
- Allan Block residential installation, water management — wall rock in the cores and a minimum of 12 in behind the block — Allan Block — drainage and wall rock, second source for the 12 in zone
- Retaining wall cost 2026 — Allan Block Classic $8.24–$9.52 per block at Valley Landscape Center, price sheet eff. 2024-04-01, captured Sept 5, 2026 — SimplyWise — block pricing behind the $8.88 planning price
- Retaining wall cost guide 2026 — cap blocks $2–$6 each, one cap per linear foot for 12 in caps — YardCalc — cap pricing behind the $6 planning price
- Retaining wall block costs 2026 — drainage aggregate $35–$65 per ton — UseCalcPro — gravel pricing behind the $50 per ton planning price
What other DIY calculators are there?
- Concrete block calculator — how many mortared blocks and mortar bags for a garden or structural wall
- Gravel driveway calculator — how many tons of gravel for a driveway or patio base
- Concrete slab calculator — how many bags of concrete mix for the footing under a wall
- Fence calculator — how many posts, pickets, rails and bags of concrete for a fence
- DIY material calculators — the full list — one new calculator every day
See all of them on the DIY material calculators page — one new calculator every day.
More free calculators and generators: Fence calculator · Concrete slab calculator · Mulch calculator · Gravel driveway calculator · Tax set-aside calculator · Freelance rate calculator · Paint calculator · Tile calculator · Freelance platform fee calculator · Project quote calculator · Drywall calculator · Laminate flooring calculator · Concrete block calculator · Deck stain calculator · Hourly-to-salary converter · Fence stain calculator · Concrete mix calculator · Retainer rate calculator · Roofing shingle calculator · Siding calculator · Driveway sealer calculator · Insulation calculator · 1099 vs W-2 calculator · 1099 quarterly tax calculator · Brick calculator · Lumber calculator · Stair calculator · Freelance contract generator · Receipt maker · Late payment demand letter generator · Freelance NDA generator · Asphalt calculator · Wallpaper calculator · Freelance proposal generator · Vinyl plank flooring calculator · Gutter calculator · Freelance scope of work generator · Carpet calculator · Retaining wall calculator · Freelance timesheet calculator · Bulk gravel calculator · Sand calculator · Paver base calculator · Home office deduction calculator · Freelance mileage calculator · Solo 401(k) contribution calculator · Freelance quote generator · Freelance tax deductions calculator · Freelance platform comparison calculator · DIY checklist generator · Freelance rate by profession calculator · How to chase a late payment guide · Free invoice template library by trade · DIY project cost guides · How to write an invoice guide · Late fees in Virginia guide · Late fees in New Jersey guide · Late fees in Oregon guide · Late fees in the District of Columbia guide · Late fees in Mississippi guide · Late fees in Montana guide · Late fees in Nebraska guide · Late fees in Oklahoma guide · All DIY calculators