How to use the retaining wall calculator
- Measure the wall length along its face.
- Enter the height you want above ground.
- Enter the face size of your block: its length and height.
- Keep the buried base row on. The first course sits below grade to lock the wall in.
The formula
Blocks per row = wall length (in) ÷ block length, rounded up. Rows = wall height (in) ÷ block height, rounded up, plus one buried base row. Blocks = blocks per row × rows. Caps = one row.
Worked example
A 20 ft long, 3 ft tall wall with 16 × 6 inch blocks needs 15 blocks per row and 6 rows above ground plus 1 buried row: 105 blocks and 15 caps.
Good to know
- Dig a trench and lay 4 to 6 inches of compacted gravel under the first row.
- Backfill behind the wall with drainage gravel and a perforated pipe so water pressure does not push it over.
- Tapered blocks used on curves need the cap count checked against the manufacturer chart.
Common questions
How many retaining wall blocks do I need?
Divide the wall length by the block length for blocks per row, divide the height by the block height for rows, and multiply. Add a buried base row.
How high can I build a retaining wall without a permit?
Many areas allow walls up to 3 or 4 feet without a permit or engineering, measured from the bottom of the footing. Rules vary, so check with your building department.
Do retaining walls need drainage?
Yes. Gravel backfill and a drain pipe behind the wall let water escape. Trapped water is the most common reason these walls fail.
Related guides
Related calculators
More concrete & masonry calculators → All calculators →
Estimates are a starting point for shopping, not a substitute for a contractor's exact measurement. Always round up, check the coverage printed on your product, and keep your receipt for returns.