Home / Retaining wall

Retaining wall block calculator

Enter the length and height of the wall and the size of the blocks. The calculator counts the rows, the blocks, the caps on top and the drainage gravel behind the wall.

Retaining wall
Include the buried first course.
0 for no caps.

Blocks

95 blocks

Rows
6 rows
Blocks
15 per row
Caps
15 caps
Drain gravel
2.22 yd³

Up to 4 ft: check your local code and the block maker's guide.

Nothing you type leaves your browser. The numbers are kept on this device so they are still there next time.

How the blocks are counted

The height of the wall divided by the height of one block gives the rows; the length divided by the length of a block gives the blocks in each row. Both are rounded up, since a part row or part block still means one more block. For a wall 20 feet long and 3 feet high, with blocks 16 inches long and 6 inches high:

rows = 36 in / 6 in = 6
per row = 240 in / 16 in = 15
blocks = 6 × 15 = 90, + 5% = 95 blocks

Caps are the flat units on top, counted along the length. A curved wall, corners and steps need more blocks and some cuts; the extra field covers that.

Wall2 ft high3 ft high4 ft highCaps
10 ft long32 blocks48 blocks64 blocks8 caps
20 ft long60 blocks90 blocks120 blocks15 caps
30 ft long92 blocks138 blocks184 blocks23 caps
50 ft long152 blocks228 blocks304 blocks38 caps

The table uses blocks of 16 by 6 inches with no extra. Larger blocks, 18 inches long and 8 high, need fewer pieces; type their size in the calculator.

The buried course and the leveling pad

The first row sits below ground. The National Concrete Masonry Association's design manual for segmental retaining walls puts the minimum embedment at one twentieth of the wall height and never less than 6 inches, on a leveling pad of compacted gravel at least 6 inches thick. Count the buried row in the height you enter, since you buy those blocks too.

Drainage behind the wall

Water trapped behind a wall pushes on it, and a wall that does not drain is the usual reason one leans or fails. Block makers call for a zone of clean gravel behind the blocks, often with a drain pipe at the base. The calculator counts a zone 1 foot deep for the whole height: for the default wall that is 2.22 yd³. Follow the block maker's guide when it asks for a different depth.

When a wall needs an engineer

The International Residential Code requires an engineered design for a retaining wall holding back more than 4 feet of soil, and for a shorter wall carrying a load such as a driveway or a slope above it. Many towns also need a permit below that height. The calculator shows a warning above 4 feet; it does not design the wall.

Questions

How many retaining wall blocks do I need per square foot?

With 16 by 6 inch blocks, 1.5 blocks per square foot of wall face, since each covers 96 square inches.

Are caps glued on?

Usually, with a masonry adhesive made for the purpose. Check the block maker's instructions.

Can I use the blocks for a raised bed?

Yes. A low bed wall works the same way. The raised bed soil calculator then gives the soil to fill it.

Other calculators

Gravel & Stone

Cubic yard calculatorCubic yards, cubic feet and tons for any area and depth.10×10 ft at 3 in → 0.93 yd³Gravel calculatorDriveways and paths: cubic yards and tons of gravel or stone.40×10 ft at 4 in → 6.67 tonsDecorative rockTons and yards of river rock or pebbles for a bed or path.10×10 ft at 2 in → 0.79 tonsSand calculatorSand by the ton, the yard or the 50 lb bag.10×10 ft at 2 in → 0.83 tons

Lawn & Garden

Mulch calculatorBags or cubic yards of mulch for a garden bed.200 sq ft at 3 in → 1.85 yd³Raised bed soilCubic feet and bags of soil to fill raised garden beds.8×4 ft bed, 12 in → 32.0 ft³Sod calculatorSquare feet, square yards, pieces and pallets of sod.50×20 ft lawn, 5% extra → 117 sq ydGrass seed calculatorPounds of seed by grass type, new lawn or overseeding.1,000 sq ft of tall fescue → 6 to 8 lb

Concrete

Concrete calculatorSlabs and patios: 40, 60 and 80 lb bags, or ready-mix yards.10×10 ft slab, 4 in → 56 bagsPost hole concreteBags of concrete for fence and deck posts, hole by hole.10 posts in 10 in holes → 25 bags

Paving & Walls

Paver calculatorPavers for a patio, with the base gravel and bedding sand.10×12 ft, 4×8 in → 567 paversConcrete block calculator8x8x16 blocks and mortar for a wall, openings left out.20 ft long, 4 ft high → 90 blocksAsphalt calculatorTons of hot-mix asphalt for a driveway or a patch.40×12 ft at 3 in → 8.80 tons

Measure

Square footageArea of a rectangle, circle or triangle, in sq ft, sq yd and acres.12×10 ft room → 120.0 sq ftAcreage calculatorAcres and hectares of a lot from its length and width.300×150 ft lot → 1.033 acres

Sources

Figures checked on 2026-12-02. Page updated 2026-12-02.