Retaining Wall Calculator
A 20 foot retaining wall 2 feet high takes about 75 standard 6 by 16 inch blocks, including one buried course, plus 15 caps. You'll also need about 1.3 tons of base gravel and 2.6 tons of drainage stone. Enter your wall size and block below to get totals and cost.
Show the math
How to use this calculator
- Enter the wall length and the height above the ground. Add a section for each straight run.
- Pick your block size. Check the face height and length on the block's label.
- Keep the buried course on. Most walls need the first row set below ground.
- Read the blocks, caps, gravel and pipe, then add a few spare blocks for cuts.
Formula
Worked example
Second example
What this calculator doesn't cover
It estimates materials for a straight, gravity-style block wall on firm ground. It doesn't design the wall, add geogrid, plan curves and corners exactly, or account for slopes, surcharges or poor soil. Walls over about 4 feet, or walls holding back a driveway or building, need an engineer and often a permit.
Reference tables
| Wall | 4 × 12 | 6 × 16 | 8 × 18 |
|---|---|---|---|
| 10 ft × 2 ft | 70 | 40 | 28 |
| 20 ft × 2 ft | 140 | 75 | 56 |
| 20 ft × 3 ft | 200 | 105 | 84 |
| 40 ft × 3 ft | 400 | 210 | 162 |
Whole blocks including one buried course, before waste; add about 5% for cuts. Blocks per course = length ÷ block length, rounded up.
Tips & buying advice
- Set the first course perfectly level on a compacted gravel pad. Every course above it depends on it.
- Backfill behind the wall with clean drainage stone and a perforated pipe so water can't build up pressure.
- Each course steps back slightly into the slope. Use blocks with a built-in lip or setback, and follow the maker's guide.
- Glue the caps on with masonry adhesive so they stay put.
Frequently asked questions
How many retaining wall blocks do I need?
How many retaining wall blocks are in a square foot?
How much gravel do I need for a retaining wall?
Do I need to bury the first row of blocks?
How tall can a retaining wall be without an engineer?
Do retaining walls need drainage?
How much does a retaining wall cost?
Related calculators
Courses, blocks, cap, mortar, grout, rebar and total cost.
How many pavers plus gravel base, bedding sand and edging for a patio or walkway.
How much gravel base and bedding sand under pavers: tons, yards, bags and cost.
How much gravel for a driveway, path or patio: cubic yards, tons, bags and cost.
How much fill dirt to fill a hole or raise a yard: cubic yards, tons and truckloads.
Sources
- Pavestone (segmental block maker): Segmental retaining wall blocks. A common standard block has a 6 in high by 16 in long face (about 1.5 per sq ft of wall); small garden blocks are about 4 x 12 and large blocks about 8 x 18. Accessed October 17, 2026.
- Allan Block (segmental block maker): How to install a retaining wall. Dig a base trench 24 in wide and 6 in deep (plus 1 in per foot of wall height), set and bury the first course, fill the block cores and 12 in behind the wall with drainage rock. Accessed October 17, 2026.
- Concrete Masonry & Hardscapes Association (CMHA): Segmental retaining wall height. The IBC requires a permit for earth-retaining walls over 4 ft in total height, measured from the top of the leveling pad to the top of the uppermost unit; walls 4 to 8 ft are evaluated case by case. Accessed October 17, 2026.
- HomeGuide (2026 cost guide): Retaining wall cost (2026). Segmental block walls run about $15 to $35 per sq ft installed (all types average $35 to $65); block materials are about $2 to $10 per block. Accessed October 17, 2026.
Built and maintained by Sikander Mushtaq. Formulas checked against Block face sizes (Pavestone), Base pad and drainage (Allan Block), Height limit (CMHA), 2026 retaining wall costs (HomeGuide). See our methodology and sources, or learn about YardageMath. See our editorial policy.
Last updated:
Estimates only. Confirm quantities with your supplier or contractor. Read the full disclaimer.