Retaining Wall Block Calculator

Enter each section of the wall, its length and height, and the block you plan to use, and get the blocks, caps and buried courses, the gravel base, the drainage stone behind the wall, the drain pipe, fabric and cap adhesive. It also counts a mortared or dry-stacked concrete block garden wall, and it flags the heights where a wall needs an engineer or a permit.

Units

Wall sections

Height is the blocks above the ground in front, not the cap. Split a wall that steps down a slope into a section for each height; mark curved sections, which need more caps.

  1. Section 1: Along the patio
  2. Section 2: Curve by the steps
A slope or a load above the wall pushes on it: have it engineered at any height.

Blocks

Lowe’s Basic sheet: 42 lb, 1.5 in setback, 3 in cap, a 16 in wide trench, walls up to 3 ft; Keystone’s 6 x 16 in block is 10 3/8 in deep.

Blank: 1 recommended (an eighth of the height, at least one course and 6 in)
Each adds a block per course and a cap
For cuts and breakage

Base and drainage

A compacted gravel base under the first course, clean crushed stone behind the blocks.

Compacted; 6 in is usual
The block maker’s sheet: 16 in
Stone behind the blocks; 12 in is usual
Perforated, along the back
Between the stone and the soil
For compaction and an uneven trench

Prices (optional)

Typical $18–$30 per ton (Dec 2025), varies by region
Typical $25–$50 per ton (Dec 2025), varies by region

Retaining wall materials

Materials list

129 wall blocks

Plus 29 cap blocks, 1.28 tons of base gravel and 6.04 tons of drainage stone.

Includes 5% extra blocks and caps and 10% extra stone.

6 in × 16 in × 10 in blocks · 5 courses at the tallest · 1 1/2 in setback a course · 3 in caps

Safety and codes

Nothing here crosses the limits the calculator checks: 4 ft under the IRC, the block maker’s height, or a slope or load above the wall. Local rules can be stricter: check with your building department before you dig.

This counts materials; it does not design the wall.

Wall length
34 ft10.4 m
Wall face
80 sq ftburied courses included
Tallest
2' 3"above ground; 3' 3" from the base
Blocks
129122 before the extra
Caps
29
Drainage stone
4.47 yd³120.8 cu ft, 3.42 m³

Shopping list

  • Wall blocks

    129 blocks

    6 in × 16 in × 10 in · 122 in the wall + 5% extra

    about 2.71 tons (2.46 t, 5,418 lb)

  • Cap blocks

    29 caps

    3 in × 16 in · 27 on the wall + 5% extra

  • Base gravel (3/4 in minus, with fines)

    1.28 tons

    0.92 yd³ · 6 in deep, 16 in wide, compacted + 10% extra

    or 50 bags of 0.5 cu ft

  • Drainage stone (clean 3/4 in crushed, no fines)

    6.04 tons

    4.47 yd³ · 12 in behind the blocks and 1.1 yd³ in the block cores + 10% extra

    or 242 bags of 0.5 cu ft

  • Perforated drain pipe

    34 ft

    4 in pipe along the back of the base, run out to daylight: 1 outlet, at least one every 50 ft

  • Filter fabric

    114 sq ft

    Up the back of the stone and over its top: a strip 3' 6" wide, 34 ft long

  • Landscape block adhesive

    5 tubes of 10 oz

    two 3/8 in beads under the caps, 68 ft of bead

    or 2 of the 28 oz tubes

Cross-section of the tallest section, to scale

2' 3"6 in6 in
Along the patio: 4 courses above ground and 1 course buried, the ground in front and behind drawn as a line.
  • Blocks
  • Cap
  • Compacted base
  • Drainage stone
  • Filter fabric
  • Drain pipe (circle)
Section by section, before the extra
SectionLengthCoursesBlocksCaps
Along the patio2' 3" above ground24 ft4 + 19018
Curve by the steps1' 9" above ground, curved10 ft3 + 1329

How to use it

  1. Measure the wall in sections. Run a string line where the face of the wall will be and measure its length. Where the ground falls along the wall, the wall steps down: give each height its own section. Mark a section curved if it bends; curves need more caps.
  2. Set the height above ground. Measure from the finished ground in front of the wall to the top of the last block, without the cap. The calculator rounds up to whole courses and adds the buried ones.
  3. Choose the block. Pick a common size or enter your own from the label: height, face length and depth, the setback per course and, if you know it, the weight. The sizes, setbacks and height limits in the list come from the makers' sheets.
  4. Say what is above the wall. Level lawn or garden, a slope rising behind the wall, or a driveway, parking area, building or pool. Anything but level ground is a load on the wall.
  5. Check the base and drainage. The usual answer is filled in: a 6 in compacted base as wide as the block maker's sheet says, or 6 in wider than the block on each side where it says nothing, 12 in of drainage stone, a drain pipe and filter fabric.
  6. Read the list. Blocks, caps, base gravel and drainage stone in tons and bags, pipe, fabric and adhesive, with a cross-section drawn to scale. Print it or copy a link to share it.

Before you build: height limits, permits and engineers

Over 4 ft, get an engineer. The International Residential Code (R404.4) requires a wall that is not braced at the top and retains more than 48 in of unbalanced fill to be designed by accepted engineering practice, with a safety factor of 1.5 against sliding and overturning. The same applies to a wall over 24 in that resists loads in addition to soil, such as a driveway or a building above it.

A slope or a load above the wall needs an engineer at any height. A slope rising behind the wall, a driveway, parking area, building or pool pushes on it (a surcharge). The IRC's permit exemption for retaining walls up to 4 ft, measured from the bottom of the footing to the top of the wall, does not cover a wall that supports a surcharge (R105.2), and block makers rate their walls lower under one: Allan Block's table drops its 6° blocks from 3 ft 2 in in clay with level ground above to 2 ft 4 in under a 3:1 slope and 1 ft 4 in under a 100 psf surcharge such as a driveway. Rockwood adds fences and guardrails on top of a wall, tiered walls and walls at the water's edge to the designs that need an engineer's attention.

The block sets its own limit. Without geogrid reinforcement, most blocks are rated for less than the code allows. Taller walls are built with layers of geogrid in the backfill, designed for the soil and the site.

Blocks in the calculator and their makers' height limits
BlockSize (in)WeightSetbackUnreinforced height
Anchor LedgeWall4 × 12 × 722 lb0.75 inAnchor rates LedgeWall for walls up to 2 ft, buried course included, cap not
Basic, Keystone6 × 16 × 1042 lb1.5 inThe 6 x 16 in Basic and Keystone sheets rate this block for walls up to 3 ft
Allan Block AB Classic8 × 18 × 1275 lb0.84 inAllan Block lists 3 ft 2 in for its 6° blocks in clay (4 ft 7 in in silty sand) with level ground above, less under a slope or a load

Height by length by depth. Check your own block's sheet; a store's house brand may be made by any of several makers.

Some cities require a permit for lower walls or for terraced walls, set rules for walls near a property line, and measure height their own way, so ask the building department before you dig, and call 811 to have buried utility lines marked. For terraced walls, Rockwood's guide says the upper wall must be set back at least twice the height of the lower one before the two can be designed as separate walls, and a soils engineer should be consulted.

Planning the courses

A course is one row of blocks. The courses above ground are the height divided by the block height, rounded up, so a 2 ft wall of 6 in block is 4 courses and a 21 in wall is 4 courses too, standing 24 in. Below them go the buried courses, which keep the base of the wall from kicking out. The calculator buries at least one full course and at least 1 in for every 8 in of the wall's total height, the cautious end of Rockwood's 1 in per 8 to 10 in; a 6 ft wall of 8 in block with a 4 in cap therefore gets two buried courses. Allan Block and Rockwood ask for at least 6 in of buried block in any case, so a custom block shorter than that is buried deeper than one course; Anchor's sheet for its 4 in LedgeWall block sets its own rule, which one full course meets. Bury more where the ground slopes away in front.

Blocks per course are the section's length over the block's face length, rounded up per section, because the half block that finishes a course is cut from a whole one. Each 90° corner adds a block per course and a cap for the cut pieces. Segmental blocks step back a little each course (the setback, set by the lip or pins on the block), so the top of a 2 ft wall of the 6 x 16 in block sits 6 in behind the bottom: allow for it when you set out the wall near a path or a property line.

Base and drainage

Water, not soil, is what pushes most retaining walls over, so the stone around the blocks matters as much as the blocks. Allan Block's installation steps call for a trench 24 in wide, at least 6 in of compacted base and 12 in of clean crushed stone behind the blocks, with the hollow cores filled with the same stone; Rockwood's are the same, with the base reaching 6 in in front of and behind the first course. The calculator uses those figures as its starting point, except where the block's own sheet gives a base width: the 6 x 16 in Basic block's sheet calls for a trench about 16 in wide.

  • Base: 3/4 in minus crushed gravel with fines, compacted in thin lifts. It is ordered loose, so the calculator adds 10 percent for compaction and an uneven trench and weighs it at 103 lb per cubic foot.
  • Drainage stone: clean 3/4 in crushed stone with no fines (the Basic block's sheet warns against pea gravel), at least 12 in deep behind the blocks, weighed at 100 lb per cubic foot. Hollow blocks take more: the stone that fills a block is its box less its concrete, the block's weight over 135 lb per cubic foot. That figure is set from Rockwood's own: its 8 in Premier block takes 1.6 cubic feet of drainage rock per square foot of wall, 1 cubic foot of it the 12 in zone and the rest its cores.
  • Drain pipe: 4 in perforated pipe at the lowest point at the back of the base, run out to daylight at least every 50 ft. Allan Block requires it for walls over 4 ft and on silty or clay soil.
  • Filter fabric: between the drainage stone and the soil behind and above it, so fines do not wash in and clog the stone. Allan Block finishes the last 8 to 12 in behind the wall with low-permeability soil so surface water runs off rather than into the wall.

Building it, step by step

  1. Call 811, then mark the wall line and the step-downs with stakes and string.
  2. Dig the trench at the lowest point first: deep enough for the base plus the buried courses, about 24 in wide.
  3. Compact the soil in the trench, then lay and compact the base in lifts until it is level front to back and along its length.
  4. Set the first course on the base, level each block both ways and to its neighbours. This course decides how the wall looks.
  5. Lay the drain pipe behind the first course, place the fabric against the soil, and fill the cores and the 12 in behind the blocks with drainage stone.
  6. Stack each course with the joints offset from the course below, fill and compact as you go, and backfill behind the stone in lifts of 8 in or less.
  7. Fold the fabric over the stone, finish with soil, and glue the caps with landscape block adhesive.

A concrete block (CMU) garden wall

Switch the wall type to concrete block for a mortared or dry-stacked garden wall of 8 x 8 x 16 in block. The block is 7 5/8 x 7 5/8 x 15 5/8 in, and with 3/8 in joints it fills an 8 by 16 in module, so every other course starts and ends with an 8 x 8 x 8 in half block; the calculator counts full and half blocks course by course for each section with two free ends. QUIKRETE's data sheets put an 80 lb bag of Mortar Mix or Mason Mix at up to 13 standard blocks. A dry-stacked wall is laid without mortar above its first course and coated over its whole surface, both faces and the ends, with surface bonding cement at least 1/8 in thick, about 50 sq ft per 50 lb bag; the calculator counts mortar for the first course (QUIKRETE's dry-stack how-to sets it in a 1/8 in bed of the bonding cement instead).

The footing is poured concrete at least twice as wide as the block, so 16 in for an 8 in block, and below the frost line wherever the ground freezes (QUIKRETE). Your building department sets the depth; the calculator starts at 8 in thick. For the 20 ft example wall, 19.6 cubic feet of concrete is 33 of the 80 lb bags; for footings of other shapes, use the concrete calculator. QUIKRETE's how-to sets rebar in every other core of a block wall; for a tall wall have the steel, grout and footing designed to local code. If the wall holds back soil it is a retaining wall and the IRC limits above apply to it too, so the calculator flags a block wall over 4 ft from the bottom of its footing for a permit.

Worked example: a block wall beside a patio

A wall of the 6 x 16 x 10 in block with 3 in caps: 24 ft along a patio, 2 ft high, and 10 ft curving round the steps, 18 in high; level ground above; a 6 in base 16 in wide (the block sheet's trench), 12 in of drainage stone, pipe and fabric; 5 percent extra blocks and caps and 10 percent extra stone.

Result

SectionLength (ft)CoursesBlocksCaps
Along the patio244 + 1 buried9018
Curve by the steps103 + 1 buried329
  • Wall blocks (with 5%)129
  • Cap blocks29
  • Base gravel1.28 tons
  • Drainage stone6.04 tons
  • Drain pipe34 ft
  • Filter fabric114 sq ft
  • Adhesive (10 oz tubes)5

The straight section is 18 blocks a course (24 ft over 16 in) for 5 courses, 90 blocks; the curve is 8 a course for 4 courses, 32 blocks. With 5 percent that is 129 blocks, about 2.71 tons of them. The curve takes 9 caps instead of 8. The base is 22.7 cubic feet once compacted, 0.92 cubic yards to order with the extra; the drainage stone is 80 cubic feet behind the blocks and 29.8 in their cores, 4.47 cubic yards to order. The tallest section stands 27 in with its cap, under every limit the calculator checks.

Mistakes people make

  • Skipping the buried course. A wall set on the surface slides and tips; bury at least one course.
  • Backfilling with soil. Clay against the blocks holds water and pushes. Use clean crushed stone behind them.
  • A base that is not level. Every course above repeats the error. Spend the time on the first course.
  • Building taller than the block allows. Check the maker's limit, then the code's, then your city's.
  • Forgetting the load above. A driveway or a slope behind the wall changes the design completely.
  • Buying exactly the count. Blocks chip and corners need cuts. Five percent, and more for many corners or curves.

Sources

Block sizes, installation rules, adhesive and mortar yields and code sections come from:

Frequently asked questions

How many retaining wall blocks do I need?

Divide the length of the wall by the length of one block and round up: that is one course. Multiply by the courses above ground plus the buried ones, then add about 5 percent for cuts and broken blocks, as Allan Block recommends. A 24 ft wall of 16 in blocks takes 18 blocks a course; 4 courses above ground and 1 buried make 90 blocks. Block sizes vary by maker, so use the actual face length from the label or the maker's sheet.

How deep should the first course be buried?

At least one full course, and about 1 in of block below ground for every 8 in of wall height: Rockwood's rule of thumb is 1 in per 8 to 10 in with at least 6 in, Allan Block asks for at least 6 in, and Anchor's 4 in LedgeWall block needs half the first course buried for walls of three courses or fewer and the whole course above that. Bury more where the ground slopes away in front of the wall. The calculator buries the most of one course, one-eighth of the wall's total height and 6 in (for the LedgeWall block, Anchor's own rule instead of the 6 in), and lets you set your own.

How tall can a retaining wall be without an engineer?

Under the International Residential Code (R404.4), a wall that retains more than 48 in of unbalanced fill, or one over 24 in that also carries loads besides soil, must be designed by accepted engineering practice. The block may set a lower limit: the small 4 x 12 in block in the calculator is rated for 2 ft, the 6 x 16 in block for 3 ft, and Allan Block lists 3 ft 2 in for its AB Classic in clay. Under a slope or a load the limits fall further (Allan Block: 2 ft 4 in in clay under a 3:1 slope), so have a wall with a slope, driveway, building or pool above it engineered whatever its height. Many cities require a permit sooner than the code does.

How much gravel goes behind a retaining wall?

A zone of clean crushed stone at least 12 in deep behind the blocks, the full height of the wall, plus what fills the block cores. That is about 1 cubic foot for every square foot of wall face for the zone, and Rockwood puts its 8 in block at 1.6 cubic feet per square foot with the cores. For the example above, 80 cubic feet for the zone and 30 for the cores come to 4.47 cubic yards with 10 percent extra.

Does a retaining wall need a drain pipe?

Allan Block requires one for any gravity wall over 4 ft, any reinforced wall and any wall on silty or clay soil or a site that drains poorly; below that it is cheap insurance. Lay 4 in perforated pipe at the lowest point at the back of the base and run it out to daylight at least every 50 ft. The calculator lists one length of pipe the length of the wall and the number of outlets.

What goes under a retaining wall block?

A trench about 24 in wide and a compacted base at least 6 in thick of 3/4 in minus gravel with fines (or the clean wall rock Allan Block uses), extending 6 in in front of and behind the first course. Compact it in lifts with a plate compactor and level it carefully: every course above repeats any error in the first. Allan Block allows an 18 in wide trench and a 4 in base for walls under 4 ft, and the sheet for the 6 x 16 in Basic block calls for a trench about 16 in wide.

How many cap blocks and how much adhesive?

Caps are the wall length divided by the cap length, rounded up; curves need about 10 percent more because each cap is cut to fit (Anchor's cap table). For adhesive, LOCTITE says to run a 3/8 in bead 2 in from the front and another 2 in from the back of each cap, and a 10 oz cartridge gives about 13.6 ft of that bead (a 28 oz one about 38 ft), so each 10 oz tube caps under 7 ft of wall.

How many concrete blocks and how much mortar for a garden wall?

A nominal 8 x 8 x 16 in block covers 8 by 16 in of wall with its 3/8 in joints, which is 1.125 blocks per square foot, counting a half block as half. An 80 lb bag of QUIKRETE Mortar Mix or Mason Mix lays up to 13 standard blocks, so plan on a bag for every dozen. A 20 ft wall 2 ft high with one course below ground is 58 blocks and 4 half blocks before the extra, and 5 bags of mortar with it.

Related