
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.
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.
| Wall | 2 ft high | 3 ft high | 4 ft high | Caps |
|---|---|---|---|---|
| 10 ft long | 32 blocks | 48 blocks | 64 blocks | 8 caps |
| 20 ft long | 60 blocks | 90 blocks | 120 blocks | 15 caps |
| 30 ft long | 92 blocks | 138 blocks | 184 blocks | 23 caps |
| 50 ft long | 152 blocks | 228 blocks | 304 blocks | 38 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
Lawn & Garden
Concrete
Paving & Walls
Measure
Sources
- NCMA, Segmental Retaining Wall Best Practices
- Residential code R404.4: when retaining walls need engineered design
Figures checked on 2026-12-02. Page updated 2026-12-02.