Retaining Wall Calculator
A 6 by 16 inch block covers 0.67 square feet of face, so most walls run near 1.5 blocks per square foot. A 40 ft wall 3 ft tall takes 180 blocks, 4.44 cubic yards of gravel 12 inches deep and 320 square feet of geogrid, about $1,438 in materials at October 2026 prices.
Prices are October 2026 planning numbers, so check your supplier. Base rock, caps, fabric and pipe are extra. All math runs in your browser, nothing is uploaded.
Enter the wall's length and height and get courses, block count, gravel volume, geogrid area and what the materials cost.
Key takeaways
- Courses times blocks per course gives the count; a 3 ft wall stacks 6 courses of 6 inch block
- Keep at least 12 inches of clean crushed gravel behind the units (NCMA installation guide)
- Geogrid runs at least 60 percent of the wall height and never under 4 ft (NCMA)
- Geogrid rows sit no more than 32 inches apart or twice the block depth (California DSA, 2023)
- Portland, Oregon requires a permit above 4 ft measured from footing bottom to top
On this page
Three quantities size the wall
A small block retaining wall turns into three shopping-list lines: how many blocks, how much gravel behind them, and how much geogrid, the plastic mesh that ties the wall into the hillside. The calculator above works all three from the same two inputs, the wall's length and height, plus the block you plan to buy. It assumes a level backfill, no surcharge, and a segmental wall of dry-stacked concrete units, which is the kind sold at big-box stores for do-it-yourself builds.
Two limits frame everything that follows. First, height: the 2024 International Residential Code, section R404.4, requires engineered design once a wall retains more than 48 inches of unbalanced fill or resists loads beyond soil. Second, drainage: nearly every failed small wall failed because water had nowhere to go, and the gravel column in section three is what keeps pressure off the blocks. Get those two ideas in place and the arithmetic in the rest of the page is straightforward.
Block count, step by step
Two divisions produce the count. Courses come from height: a 3 ft wall is 36 inches, and 36 divided by a 6 inch block gives 6 courses. Blocks per course come from length: 40 ft is 480 inches, and 480 divided by a 16 inch block gives exactly 30. Multiply and the wall takes 180 blocks.
| Wall (L x H) | Courses | Blocks per course | Total blocks | Face area |
|---|---|---|---|---|
| 20 x 2 ft | 4 | 15 | 60 | 40 sq ft |
| 24 x 3 ft | 6 | 18 | 108 | 72 sq ft |
| 40 x 3 ft | 6 | 30 | 180 | 120 sq ft |
| 60 x 4 ft | 8 | 45 | 360 | 240 sq ft |
The table rounds with the ceiling function, not in your favor. A 30 ft wall is 360 inches, and 360 divided by 16 lands on 22.5, so that course takes 23 blocks with a half block of cutting at the end. Buy for the ceiling, not the decimal.
Face area gives a fast cross-check: 120 square feet of face at 1.5 blocks per square foot is 180 blocks, same answer by a different door. If the two routes disagree, one of the block dimensions you typed is wrong. Remember to include the buried first course in the height; the blocks do not care that soil hides them.
The gravel column behind the wall
Block suppliers and masonry associations repeat one rule until it sticks: clean crushed gravel, at least 12 inches deep from the back of the units, for the full height and length of the wall. The NCMA Segmental Retaining Wall Installation Guide calls for clean 1 inch minus crushed stone placed in the cores, between the units, and 12 inches behind them, so water reaching the wall falls instead of pushing. California's Division of the State Architect says the same thing for engineered walls in IR 18-2 (2023 revision): free-draining gravel, minimum 1 ft thick, between facing and soil.
| Wall (L x H) | Gravel strip (12 in deep) | Cubic yards |
|---|---|---|
| 20 x 2 ft | 40 cu ft | 1.48 |
| 24 x 3 ft | 72 cu ft | 2.67 |
| 40 x 3 ft | 120 cu ft | 4.44 |
| 60 x 4 ft | 240 cu ft | 8.89 |
The strip is a rectangle: length times depth in feet times height, then divide by 27 for yards. Two extras ride on top of the table. Hollow block cores filled with gravel add a few percent, and a perforated drain pipe at the bottom of the column needs a bed to sit in. Keep fabric between the gravel and the native soil, or silt will migrate in and clog the column within a few seasons.
Geogrid: length, layers and spacing
Geogrid turns the wall and a slice of hillside into one heavy mass. Two rules size it. Length: the NCMA guide sets the minimum at 60 percent of total wall height, never less than 4 ft. Spacing: DSA IR 18-2 (2023) caps the vertical gap at 32 inches and at twice the block depth, whichever is smaller, and requires a layer inside the top 12 inches.
Run the numbers on the 40 x 3 ft wall. Height 3 ft means grid at least 4 ft deep per layer, since 60 percent of 3 is only 1.8 ft, so the 4 ft minimum governs. With a row every 3 courses, 6 courses give 2 layers, so 2 rows times 40 ft times 4 ft is 320 square feet of grid. Roll widths run 4 ft, and a 4 x 50 ft roll covers 200 square feet, so this wall needs two rolls.
| Wall (L x H) | Grid length per layer | Layers (every 3 courses) | Grid area |
|---|---|---|---|
| 20 x 2 ft | 4 ft | 1 | 80 sq ft |
| 24 x 3 ft | 4 ft | 2 | 192 sq ft |
| 40 x 3 ft | 4 ft | 2 | 320 sq ft |
| 60 x 4 ft | 4 ft | 2 | 480 sq ft |
These are planning floors, not engineering. Tall walls, weak soils and slopes above the wall all stretch the lengths and tighten the spacing, and the block maker's published tables for your exact unit take precedence over any rule of thumb.
What the materials cost
Three prices drive the budget, and all three were checked in October 2026. Blocks: big-box listings run from $1.97 for a small Pavestone unit to $5.97 for the 17.44 by 6 in RockWall Large, with premium 6 by 16 in decorative block near $20 apiece. Gravel: the GoodGravel price index, reading 175 yards across 47 states in October 2026, puts crushed stone at a $50 median per cubic yard, with the middle half between $32 and $68. Geogrid: SiteOne listed its Pro-Trade GG2100 biaxial 4 x 50 ft roll at $87.77, which works out to 44 cents per square foot.
| Material, 40 x 3 ft wall | Quantity | Unit price | Cost |
|---|---|---|---|
| Retaining wall blocks | 180 | $5.97 each | $1,074.60 |
| Crushed gravel backfill | 4.44 cu yd | $50 per yd | $222.22 |
| Biaxial geogrid | 320 sq ft | $0.44 per sq ft | $140.80 |
| Materials total | $1,437.62 |
What the total leaves out matters as much as what it holds. Base rock under the wall comes to about 0.74 cubic yards for a 40 ft run at 6 inches deep and a foot wide, cap units cover the top course, fabric and a drain pipe add a modest line, and delivery fees can double a small gravel order. Treat the $1,437.62 as the blocks-and-backfill core, then price the edges locally before committing.
Permits, height limits and when to call an engineer
Height rules stack from three sources, and they measure differently. The model 2024 IRC, in section R404.4, requires design by accepted engineering practice, with a 1.5 safety factor against sliding and overturning, for any wall not supported at the top that retains more than 48 inches of unbalanced fill, or one over 24 inches that also resists surcharge loads. Cities then layer their own permit triggers on top: Portland, Oregon requires a building permit above 4 ft measured from the bottom of the footing to the top of the wall, and for any wall carrying a surcharge. Philadelphia skips permits under 2 ft with no surcharge, and offers a plan-free standard for 2 to 4 ft masonry walls that meet its detail sheet.
Three situations call for an engineer whatever the tape measure says: a wall that holds up a driveway, pool or structure; a wall built on a slope that keeps rising behind it; and any wall in clay soil that stays wet. Foundation soil strength, not wall height, is what decides the design, which is why the same 3 ft wall can be routine in sandy ground and a problem in wet clay. A one-hour engineer consult costs less than rebuilding a failed wall.
Building order: base, first course, drainage, caps
The sequence protects the numbers on this page. Dig a trench and lay 6 inches of compacted crusher run or leveling gravel, extending a few inches past the wall on both sides; the NCMA guide treats the leveling pad as the foundation of the whole system. Set the first course level in both directions, checking every unit, because nothing downstream fixes a crooked first row. This is the slowest hour of the job and the one that shows forever.
Stack upward with joints broken, filling cores and the 12 inch zone behind with clean gravel as you go. Backfill in lifts: DSA IR 18-2 (2023), following the NCMA design manual, limits compaction lifts to 8 inches, and mechanical plate compactors stay about 4 ft back, because the standard details allow only hand-operated compaction within 48 inches of the face. Lay geogrid on the set courses, pull it taut, pin it, then place the next lift of soil over it. Fabric separates the gravel column from native soil the whole way up.
Finish with caps adhered to the top course, grade the soil at the top so surface water runs away from the wall rather than into the gravel, and point the drain pipe to daylight. A wall built in that order rarely visits the failure modes in the next section.
Five mistakes that shorten a wall's life
- Backfilling with the wrong rock. Pea gravel rolls, topsoil holds water, and leftover mulch rots. The 12 inch column must be clean, angular crushed stone, or the drainage the wall depends on never happens.
- Skipping the fabric. Without a geotextile between gravel and soil, silt washes into the voids season after season until the column clogs and water ponds behind the blocks.
- Measuring height from finished grade. The permit trigger usually runs from the bottom of the footing, buried course included. A wall that looks 3 ft above the lawn can be a 4 ft wall to the building department.
- Starving the geogrid. Grid shorter than the 60 percent floor, rows spaced past the 32 inch cap, or layers left loose in the backfill all give back the strength the mesh was bought for.
- Dead-end drainage. Gravel without an outlet is a cistern. The NCMA guide is explicit that the fill is not the primary drainage path; the perforated pipe at the heel, sloped to daylight, is what carries water away.
Each failure shows up a year or two after the build, as lean, bulge or settlement, which is exactly why suppliers hand out an installation guide with the first pallet. Follow it and the calculator numbers become the whole project.
Frequently asked questions
How many blocks per square foot of wall face?
Divide 144 by the block's face area. A 6 by 16 inch block covers 96 square inches, so 144 divided by 96 is 1.5 blocks per square foot. A taller 8 inch block drops the number, and a 4 inch block raises it. The calculator works straight from the dimensions you type.
How much gravel goes behind a 3 ft wall?
Plan on a strip at least 12 inches deep, running the wall's full length and height. A 40 ft wall 3 ft tall needs 40 x 1 x 3 = 120 cubic feet, which is 4.44 cubic yards before the stone fills the block cores. Order a half yard extra for settling and spillage.
How deep should geogrid reach into the hillside?
The NCMA installation guide sets the minimum at 60 percent of the total wall height, and never less than 4 feet. A 3 ft wall therefore gets 4 ft of grid per layer. Taller walls and poor soils need more, and the manufacturer's engineering tables or a civil engineer set the real number.
Do I need geogrid for a 2 ft wall?
Usually not. Short garden walls hold back so little soil that the block weight and a good gravel column carry the load, and most spacing tables start grid above roughly 3 ft. Check the block manufacturer's chart for your exact height and soil, since some brands call for grid even lower.
How high can a retaining wall be without a permit?
It depends on the city. Portland, Oregon requires a permit once the wall tops 4 ft measured from the bottom of the footing to the top. Philadelphia needs none under 2 ft, with a simplified standard from 2 to 4 ft. The 2024 IRC requires engineered design past 48 inches of retained soil, so always ask your local office.
How many blocks for a 40 ft wall that is 3 ft tall?
With 6 by 16 inch blocks: 36 inches of height gives 6 courses, and 480 inches of length divided by 16 gives 30 blocks per course. That is 180 blocks. Face area checks it: 40 x 3 = 120 square feet, and 120 x 1.5 = 180.
What kind of gravel goes behind a retaining wall?
Clean, angular crushed stone around three quarter to one inch, sometimes sold as #57. It must drain and lock together. Pea gravel rolls and packs, topsoil holds water, and wood chips rot. California DSA guidelines call for clean free-draining gravel at least 12 inches thick between the facing and the soil.
How much does a 40 x 3 ft retaining wall cost in materials?
At October 2026 planning numbers, about $1,438: $1,074.60 for 180 blocks at $5.97 each, $222.22 for 4.44 cubic yards of gravel at $50 a yard, and $140.80 for 320 square feet of geogrid at 44 cents a square foot. Base rock, caps, fabric, pipe and delivery all sit on top of that.
How many yards of gravel for a 24 ft wall 3 ft tall?
The strip is 24 ft long, 1 ft deep and 3 ft tall, so 72 cubic feet. Divided by 27, that is 2.67 cubic yards. Add the cores of hollow blocks and the trench drain rock, and a 3 yard delivery is the practical order.
Does the buried first course count in the height?
Yes, and it matters twice. The block count needs it, since a buried course still consumes blocks, so feed the calculator the height from the bottom of the first course. Permit rules often measure the same way: Portland measures from the bottom of the footing to the top of the wall, buried section included.
How far apart should geogrid layers be?
California DSA interpretation IR 18-2 (2023 revision) caps vertical spacing at 32 inches and at twice the block depth, whichever is less, with a layer in the top 12 inches of the wall. For 6 inch block, a row every 3 courses means every 18 inches, which satisfies both limits.
What is a surcharge, and why does it matter?
A surcharge is any load pressing on the soil behind the wall: a driveway, a parked car, a pool, a fence, or a slope that keeps rising. Even a 2 ft wall holding up a driveway edge needs engineering, and both Portland and Philadelphia treat surcharge walls as permit cases regardless of height.
Do caps use the same block count?
No. Cap units are shallow pieces glued or pinned on top of the last course. For a straight 40 ft run with 16 inch caps, figure about 30 caps, and a few more once cuts around corners and curves join in. The wall count and the cap count are separate line items at the supplier.
Is gravel behind the wall enough drainage?
Not by itself. The NCMA guide says the gravel fill is not meant to be the primary drainage path, so add a perforated pipe at the back bottom of the gravel, sloped to daylight or a sump, with fabric separating gravel from soil. Water that cannot leave pushes on the wall as pressure.
Spotted a wrong number or a broken result?
More Home Improvement tools
- ADU Cost Calculator
- Acreage Calculator
- Aggregate Cost Calculator
- Air Conditioner Room Size & BTU Calculator
- Aluminum Fence Cost Calculator
- Asphalt Calculator
- Awning Cost Calculator
- Bathtub vs Shower Footprint Calculator
- Bleach Dilution Calculator
- Block Mortar Calculator
- Board Footage Calculator
- Board and Batten Layout Calculator
- Board and Batten Siding Calculator
- Board on Board Fence Calculator
- Borax Ant Killer Calculator
- Brick Calculator
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.