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.
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.
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.
Base and drainage
A compacted gravel base under the first course, clean crushed stone behind the blocks.
Prices (optional)
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
- Blocks
- Cap
- Compacted base
- Drainage stone
- Filter fabric
- Drain pipe (circle)
| Section | Length | Courses | Blocks | Caps |
|---|---|---|---|---|
| Along the patio2' 3" above ground | 24 ft | 4 + 1 | 90 | 18 |
| Curve by the steps1' 9" above ground, curved | 10 ft | 3 + 1 | 32 | 9 |
How to use it
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
| Block | Size (in) | Weight | Setback | Unreinforced height |
|---|---|---|---|---|
| Anchor LedgeWall | 4 × 12 × 7 | 22 lb | 0.75 in | Anchor rates LedgeWall for walls up to 2 ft, buried course included, cap not |
| Basic, Keystone | 6 × 16 × 10 | 42 lb | 1.5 in | The 6 x 16 in Basic and Keystone sheets rate this block for walls up to 3 ft |
| Allan Block AB Classic | 8 × 18 × 12 | 75 lb | 0.84 in | Allan 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
- Call 811, then mark the wall line and the step-downs with stakes and string.
- Dig the trench at the lowest point first: deep enough for the base plus the buried courses, about 24 in wide.
- 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.
- Set the first course on the base, level each block both ways and to its neighbours. This course decides how the wall looks.
- 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.
- 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.
- 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
| Section | Length (ft) | Courses | Blocks | Caps |
|---|---|---|---|---|
| Along the patio | 24 | 4 + 1 buried | 90 | 18 |
| Curve by the steps | 10 | 3 + 1 buried | 32 | 9 |
- 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:
- Anchor Diamond Group, LedgeWall 4 in x 12 in Retaining Wall System product sheet (4 x 12 x 7 in block, 22 lb, 0.33 sq ft, 3/4 in setback; walls up to 2 ft including the buried course; bury half the first course up to three courses, the full course from four) (read 2026-10-10)
- Lowe's use and care guide, 6-in x 16-in Basic Retaining Wall block (6 x 16 x 10 in, 42 lb, 1.5 units per sq ft, walls up to 3 ft) (read 2026-10-10)
- Lowe's installation instructions, 6-in x 16-in Basic Retaining Wall block (trench about 16 in wide, 6 in compacted base, 1.5 in setback per course, 3 in cap set with exterior concrete adhesive, clean crushed stone in the cores and behind the wall) (read 2026-10-10)
- Keystone Retaining Wall Systems, 6-in x 16-in Wall Block sheet (6 x 16 x 10 3/8 in, 42 lb, 1.5 units per sq ft, gravity walls up to 3 ft) (read 2026-10-10)
- Allan Block, AB Collection specifications (AB Classic 8 x 18 x 12 in, 75 lb, 6° setback, about 1 sq ft; AB Capstone 4 x 18 x 12 in, 55 lb) (read 2026-10-10)
- Allan Block, Designing a Retaining Wall: gravity wall heights, exposed and with the cap (6° blocks in clay: 3 ft 2 in with level ground above, 2 ft 4 in under a 3:1 slope, 1 ft 4 in under a 100 psf surcharge; in silty sand 4 ft 7 in, 4 ft 1 in and 3 ft 1 in) (read 2026-10-16)
- Angelus Block, CMU sizes: an 8 x 8 x 16 unit is specified at 7 5/8 x 7 5/8 x 15 5/8 in; nominal size is the specified size plus the mortar joint (read 2026-10-10)
- QUIKRETE, How to Build a Block Wall (footing at least twice the block width, 16 in for an 8 x 8 x 16 block, below the frost line; 8 x 8 x 8 half blocks at the ends; 3/8 in joints; rebar in every other core) (read 2026-10-10)
- Allan Block, Basic Installation (24 in base trench, at least 6 in of compacted wall rock as the base, 12 in of wall rock behind the block, drain pipe at the back of the trench vented to daylight every 50 ft) (read 2026-10-10)
- Allan Block, Gravity Retaining Wall Construction (drain pipe required for walls over 4 ft or in silty or clay soils; 8-12 in of low-permeability fill on the last lift) (read 2026-10-10)
- Allan Block, Material Estimation Worksheet (buried block at least 6 in or 1 in per foot of wall height; order 5% extra; drain pipe the length of the wall; one 29 oz adhesive tube per 60 ft of capped wall) (read 2026-10-10)
- Allan Block, Proper Embedment Guidelines (at least 6 in of buried block; more for walls over 6 ft and where the ground slopes away in front) (read 2026-10-10)
- Rockwood Retaining Walls, Premier 6 and 8 Installation Guide (1 in of block buried per 8-10 in of wall height, at least 6 in; 24 in trench; 6 in base with 6 in in front of and behind the block; 12 in of drainage rock, 1.6 cu ft per sq ft of Premier 8 wall with its cores; filter fabric; walls over 4 ft or with a surcharge evaluated by an engineer) (read 2026-10-10)
- LOCTITE PL 500 Landscape Construction Adhesive technical data sheet (3/8 in bead: 13.6 ft per 10 fl oz cartridge, 38 ft per 28 fl oz; caps get a bead 2 in from the front and 2 in from the back) (read 2026-10-10)
- ICC, 2021 International Residential Code, Section R404.4 Retaining walls (engineered design over 48 in of unbalanced fill, or over 24 in with loads in addition to soil; safety factor 1.5 against sliding and overturning) (read 2026-10-10)
- ICC, 2021 International Residential Code, Section R105.2 Work exempt from permit (retaining walls up to 4 ft from the bottom of the footing to the top of the wall, unless supporting a surcharge), as quoted by the City of Port Townsend, WA (read 2026-10-10)
- QUIKRETE, Building a Dry Stack Block Wall with QUIKWALL (first course set in a 1/8 in bed of QUIKWALL on the footing; a 1/8 to 1/4 in coat on both sides, covering the entire surface of the wall) (read 2026-10-16)
- QUIKRETE Mortar Mix (No. 1102) data sheet: an 80 lb bag lays up to 13 standard 8 x 8 x 16 in blocks (read 2026-10-10)
- QUIKRETE Mason Mix (No. 1136, Type S) data sheet: an 80 lb bag lays up to 13 standard 8 x 8 x 16 in blocks (read 2026-10-10)
- QUIKRETE QUIKWALL Surface Bonding Cement data sheet (a 50 lb bag covers about 50 sq ft at 1/8 in; applied to both sides of block dry-stacked above a first course set in mortar) (read 2026-10-10)
- CMHA (formerly ICPI) PAV-TEC-002, Construction of Interlocking Concrete Pavements (read 2026-10-05)
- Lowe's listing: QUIKRETE HardScapes Paver Base, 0.5 cu ft, 50 lb (read 2026-10-05)
- Sakrete Paver Base technical data sheet (described by Sakrete as a bedding sand; 50 lb bag yields about 0.5 cu ft) (read 2026-10-05)
- Home Depot listing: Pavestone 0.5 cu. ft. Paver Base 98001 (listed product weight 52.86 lb) (read 2026-10-05)
- FHWA-HRT-15-034, Strength Characterization of Open-Graded Aggregates, Chapter 3 (Table 7) (read 2026-10-05)
- Utah State University Extension, Water-Wise Landscaping: Mulch (organic 3-4 in, inorganic 2-3 in) (read 2026-10-05)
- QUIKRETE Concrete Mix (No. 1101) data sheet (read 2026-10-05)
- Sakrete High-Strength Concrete Mix technical data sheet (read 2026-10-05)
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
- Paver calculatorThe patio at the foot of the wall, with its base and bedding sand.
- Gravel calculatorBase gravel and drainage stone for other jobs, in tons and yards.
- Concrete calculatorFootings for a block garden wall, post holes and steps.
- Fence calculatorPosts, rails and pickets for the fence along the top of the wall.