How to use the retaining wall calculator
Enter the total length of the wall and its height including the first row that sits below ground. Then enter the size of the face of one block (the part you see), which is printed on the product label. The calculator works out the blocks per row, the number of rows, the cap stones for the top and the gravel for the levelling base.
The retaining wall formula
Rows = wall height ÷ block height (round up)
Blocks = blocks per row × rows × (1 + waste %)
Example: a wall 20 ft long and 3 ft tall using blocks with a 12 × 4 inch face needs 20 blocks per row and 9 rows, which is 180 blocks. With 5% extra order 189 blocks, plus 20 cap stones. The base trench (24 × 6 in × 20 ft) needs about 0.74 cubic yards of gravel.
Common block sizes
| Block type | Typical face size | Blocks per ft² of wall |
|---|---|---|
| Small garden wall block | 12 × 4 in | 3 |
| Medium block | 16 × 6 in | 1.5 |
| Large segmental block | 18 × 8 in | 1 |
Building a solid base
The base is the most important part of any retaining wall. Dig a trench about twice as wide as the block depth and about 6 inches (15 cm) deep, plus enough to bury the first row: a common guide is to bury one row for every 8 rows of wall, and at least one row in all cases. Fill the trench with compacted crushed stone, level it carefully, and set the first row perfectly level. The gravel calculator can size a different trench.
Drainage behind the wall
Water pressure is the main reason retaining walls fail. Backfill at least 12 inches (30 cm) behind the wall with clean drainage stone, lay a perforated drain pipe at the base that leads water away, and use landscape fabric between the stone and the soil so the drain does not clog.
Height limits and safety
Many interlocking block systems are designed for DIY walls up to about 3 to 4 feet (about 1 to 1.2 m). Taller walls, walls holding back a slope, a driveway or a building, and terraced walls usually need geogrid reinforcement, an engineer's design and a building permit. Check the block manufacturer's installation guide and your local rules before you start.
Tips
- Stagger the joints so each block sits over two blocks below.
- Clean the top of each row before setting the next one.
- Glue cap stones with a masonry adhesive designed for landscape blocks.
Frequently asked questions
How many retaining wall blocks do I need?
Divide the wall length by the block length to get blocks per row, then multiply by the number of rows. A 20 ft × 3 ft wall with 12 × 4 inch blocks needs 180 blocks plus waste.
How many blocks are in a square foot of wall?
With 12 × 4 inch blocks there are 3 per square foot; with 16 × 6 inch blocks there are 1.5.
How deep should the base of a retaining wall be?
A typical base is about 6 inches of compacted gravel, plus enough depth to bury the first row of blocks.
How tall can a DIY retaining wall be?
Many block systems allow DIY walls up to about 3 to 4 feet. Taller walls usually need engineering and a permit.
Last updated: November 23, 2026. The figures on this page are typical values for planning. Product sizes, densities and coverage vary, so check the label or ask your supplier before you order.