Skip to content
Design free

Retaining wall calculator

Enter the length, the height you see and the block. We count the courses and blocks, the caps, the pad and drain stone and the pipe, and stop where an engineer should take over.

Buy 74 blocks (5 courses of 14, plus 5% for cuts), 20 caps and 3 tubes of adhesive, 0.9 tons of base gravel, 2.9 tons of drain stone and 2 lengths of 4 in perforated pipe. From the bottom of the base to the top it is 36 in, inside the 4 ft permit exemption of the model code.
Courses
5, counting 6.0 in buried and a 2 in cap on top
Blocks before cuts
70
Leveling pad
19.0 in wide x 6 in deep: 0.6 cu yd, 0.9 tons at 1.4 tons per cu yd
Drain stone
12 in behind the wall, 30 in high: 2.0 cu yd, 2.9 tons
What to buy, Home Depot Hamilton Mill
ItemQtyPrice
Pavestone RockWall Large block, 17.44 x 6 x 7 in74 block$441.78
Pavestone wall cap, 12 x 2 x 8 in20 cap$57.40
LOCTITE PL 500 Landscape Block Adhesive, 10 fl oz3 tube$19.44
Base gravel for the leveling pad, 0.5 cu ft bags35 bag$226.45
Quikrete drainage rock, 0.5 cu ft bag110 bag$679.80
4 in x 10 ft perforated drain pipe2 length$29.94

$1,454.81 in materials, Home Depot Hamilton Mill shelf prices read Nov 6, 2026 (drainage rock from Lowe's near Chamblee, GA, the same day), one-piece prices before tax and delivery. Pallet quantities are cheaper per block.

Gravel includes 10% over the compacted volume, and bags are counted at 0.5 cu ft. Weights are typical; ask your yard for the weight of what you order. A permit can still be needed below 4 ft where your city says so. Call 811 before you dig.

Building a patio beside the wall? Count the pavers

The paver calculator counts the pavers, base, sand and edging for the patio the wall holds up.

Planning figures for a segmental block wall up to 4 ft, not an engineer's design. Follow your block maker's installation guide, check local rules, and call 811 before you dig.

How many retaining wall blocks you need

Count the courses, then the blocks in each course. The courses fill the exposed height plus the buried part, less the cap, divided by the block height and rounded up. The blocks per course are the wall length divided by the block face, rounded up.

A 20 ft wall showing 24 in, with 6 in buried and a 2 in cap, in Pavestone RockWall Large blocks (17.44 in face, 6 in high) is 5 courses of 14: 70 blocks, or 74 with 5% for cuts. In the RockWall Small block (11.63 in face, 4 in high) the same wall is 7 courses of 21, 155 blocks with cuts.

Cap blocks and adhesive

Caps run along the top, one face length at a time. At 12 in each, the example needs 20 caps. They are glued down: a 10 fl oz tube of LOCTITE PL 500 Landscape gives about 13.6 ft of the 3/8 in bead its data sheet recommends outdoors, and with two beads along the wall that is 3 tubes for 20 ft.

Corners and curves

The count is for a straight wall. Corners and curves add cuts, so keep the allowance and round up when you order from a yard that takes returns.

Base and drain gravel

The first course sits on a compacted leveling pad of 3/4 in minus base, at least 6 in wider than the block on each side and 6 in deep after compaction. For the 7 in deep RockWall Large that is a 19.0 in wide pad, 0.6 cu yd for the example. Behind the blocks goes at least 12 in of clean drainage aggregate for the full height, 2.0 cu yd here, with 2 lengths of 4 in perforated pipe at the base.

Why drainage matters

Water that sits behind a wall pushes on it, and wet soil pushes harder. The stone lets water fall to the pipe, and the pipe carries it out to daylight or a drain. Belgard spaces outlets no more than 50 ft apart and at the low points. Keep regular soil out of the drain stone, or it clogs.

Tons or cubic yards

Gravel sells by the ton, the cubic yard or the bag. We use 1.4 tons per cubic yard and add 10% for compaction, and the shopping list counts 0.5 cu ft bags. Your yard knows the weight of what it sells, so ask before you order in bulk.

Retaining wall cost

The calculator prices the list at the Home Depot Hamilton Mill store, one-piece shelf prices read Nov 6, 2026, before tax and delivery: the RockWall Large block at $5.97, the RockWall Small at $2.97, the 12 in cap at $2.87, a tube of PL 500 at $6.48 and a 0.5 cu ft bag of paver base at $6.47, with Quikrete drainage rock at $6.18 a 0.5 cu ft bag from Lowe's near Chamblee, GA. Blocks bought by the pallet cost less each.

For the 20 ft wall showing 24 in, that is $1,454.81 in materials priced so far. Every line has a price. We have not read a named installed range for retaining walls, so we print none.

How tall can you build without an engineer

The calculator stops at 48 in. Under the model code, IRC R404.4, a wall not supported at the top that retains more than 48 in of unbalanced fill, or a wall over 24 in that holds a load besides the soil, is designed by engineering. A driveway, a parked car, a shed or a slope rising behind the wall all count as that load, so tick the box and the limit drops to 24 in.

The permit test is different. IRC R105.2 exempts a wall up to 4 ft measured from the bottom of the footing to the top, unless it supports a surcharge, and the calculator adds the pad, the buried course and the exposed height to show where yours lands. Local codes change both numbers.

Walls beside a patio

A low wall often holds the edge of a patio on a slope. Count the pavers, base and sand with the paver calculator, or the pour with the concrete slab calculator, and price the whole job in the patio cost calculator. The paver patio cost guide sets the sizes side by side. Call 811 before any digging.

Where the numbers come from

Base, burial and drainage follow the Belgard Technical Resource Guide (BEL25-D-516650, pp. 32 and 53) and the Allan Block basic installation page, both read Nov 6, 2026: a leveling pad at least 6 in in front of and behind the first course and 6 in deep, the base course buried at least 6 in, 12 in of drainage aggregate behind the blocks and a 4 in perforated drain pipe. Cap adhesive is counted from the LOCTITE PL 500 Landscape data sheet (revision Aug 1, 2024): about 13.6 ft of 3/8 in bead per 10 fl oz tube. Block and cap sizes are Pavestone products as titled at Home Depot.

The height limits are model code text: IRC R404.4 (2021, read in the City of Grand Prairie, TX retaining wall page) and IRC R105.2 item 3 (2021, Grant County, WA copy). The 5% for cuts, the two beads of adhesive, the 1.4 tons per cubic yard and the 10% gravel allowance are editorial. Your block maker's guide overrides all of them.

More free calculators

  • Deck calculator

    Joists, beam, posts, decking, hardware and concrete for a deck of any size.

  • Deck cost

    What your deck costs in wood or composite, per sq ft and installed.

  • Joist span

    The smallest joist that spans your distance, and how far it can overhang.

  • Beam span

    How far apart the posts can be for a 2-ply or 3-ply built-up beam.

  • Stair calculator

    Steps, riser, tread, run, angle and stringers for any stair, drawn to scale.

  • Stair stringer

    Steps, riser and tread sizes, stringer count and board length from a total rise.

  • Deck footing

    Footing size, depth and concrete bags for the whole deck.

  • Pergola span

    How far a pergola beam and rafters can span, and what limits them.

  • Paver calculator

    Pavers, gravel base, sand, edging and polymeric sand for a patio.

  • Concrete slab

    Cubic yards, 80 lb and 60 lb bags, gravel, mesh and control joints for a slab.

  • Slab cost

    What a slab costs in bags, in ready-mix or hired out, per sq ft.

  • Gravel

    Cubic yards, tons and bags of gravel for any shape and depth.

  • Paver base

    Gravel base, bedding sand and dig depth under pavers.

  • Mulch

    Cubic yards and bags of mulch for a bed of any shape.

  • Topsoil

    Cubic yards, tons and bags of topsoil or fill dirt.

  • Raised bed

    Cut list, boards, screws and soil for a wood raised bed of any size.

  • Concrete steps

    Risers, landing and concrete for poured steps.

  • Cinder block

    Concrete blocks, mortar and grout for a block wall.

  • Patio cost

    What a paver, concrete, stamped or flagstone patio costs, materials and installed.

  • Deck stain

    Gallons of stain or sealer for the deck floor, railings and stairs.

  • Railing

    Even baluster spacing under 4 in, posts, rails and what to buy.

  • Fence calculator

    Posts, rails, pickets, concrete and hardware for a wood fence.

  • Fence post depth

    How deep to dig by the 1/3 rule and your frost line, and what post to buy.

  • Concrete for posts

    Bags of fast-setting or regular concrete per post and for the fence.

  • Fence stain

    Gallons of stain for a privacy or picket fence.

  • Fence cost

    What a wood fence costs in materials, per linear foot.

  • Span tables

    The joist, beam and post tables from DCA 6, by species and spacing.

Questions

Anything else? Write to us or see every calculator.

Questions people ask

It depends on the block. A 20 ft wall showing 36 in, with 6 in buried and a 2 in cap, takes 7 courses of 14 Pavestone RockWall Large blocks (17.44 in face, 6 in high): 98 blocks, or 103 with 5% for cuts, plus 20 caps. A smaller block takes more courses and more blocks per course.

Belgard's guide asks for at least 12 in of clean drainage aggregate directly behind the blocks, and Allan Block places its wall rock 12 in behind too. For the 20 ft wall showing 24 in, that is 2.0 cu yd (2.9 tons) of drain stone, plus 0.6 cu yd (0.9 tons) of base for the leveling pad, each with 10% extra.

Often not for a low wall, but the local rule is the one that counts. The 2021 model code (IRC R105.2) exempts retaining walls not over 4 ft, measured from the bottom of the footing to the top of the wall, unless they support a surcharge. Many cities change that, so ask your building department, and call 811 before you dig.

Belgard's installation guide says to bury the base course a minimum of 6 in, or as the plans show, and Allan Block buries 1 in of block for each foot of wall height. For a wall up to 4 ft the larger figure is 6 in, so the calculator starts there. The buried course sits on a compacted leveling pad at least 6 in deep, never on bare soil.