Retaining Wall Calculator
Test cases replayed : 2 of 2 match · Methodology · Sources
Enter the wall size and the block dimensions to count the blocks, caps and drainage gravel.
Result
Wall blocks with waste
Courses (rows), including buried
Reading the result
At a glance
What moves the result
Method and sources: How this calculator works, Sources
- Blocks per course
- Cap blocks
- Drainage gravel behind the wall (cubic yards)
Estimate for planning only, not tax, legal, financial or medical advice. Check important figures with the official source listed on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Wall length, in ft: enter 0 or more.
- Exposed wall height, in ft: enter 0 or more.
- Block face length, in in: enter 1 or more.
- Block height, in in: enter 1 or more.
- Buried courses below grade: enter 0 or more.
- Waste allowance, in percent: enter a number from 0 to 50.
- Cap blocks: choose Yes or No.
- Cap block length, in in: enter 1 or more.
- Drainage gravel zone behind the wall, in in: enter 0 or more.
- Read the result: Wall blocks with waste; the panel also shows Courses (rows), including buried, Blocks per course, Cap blocks and Drainage gravel behind the wall (cubic yards).
Sources
- Retaining wall City of Portland (OR), Permitting & Development checked on 2026-11-02
How this calculator works
Courses = exposed height ÷ block height, rounded up, plus the buried courses. Blocks per course = wall length ÷ block face length, rounded up. Caps = wall length ÷ cap length.
Drainage gravel = length × full wall height × depth of the gravel zone ÷ 27 for cubic yards. Manufacturers' guides set the buried depth, setback and geogrid; walls above about 4 feet are often designed by an engineer, as many local codes require.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Wall length | ft | |
| Exposed wall height | ft | |
| Block face length | in | |
| Block height | in | |
| Buried courses below grade | ||
| Waste allowance | % | |
| Courses (rows), including buried | ||
| Blocks per course | ||
| Wall blocks with waste | ||
ceil(x) | the smallest whole number not below x. |
Worked example
| Wall length | 30 ft |
|---|---|
| Exposed wall height | 3 ft |
| Block face length | 16 in |
| Block height | 6 in |
| Buried courses below grade | 1 |
| Waste allowance | 5% |
| Cap blocks | Yes |
| Cap block length | 16 in |
| Drainage gravel zone behind the wall | 12 in |
| Courses (rows), including buried | 7 |
|---|---|
| Blocks per course | 23 |
| Cap blocks | 23 |
| Drainage gravel behind the wall (cubic yards) | 3.89 |
Wall blocks with waste 170
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How many blocks for a 30-foot wall 3 feet high?
With 16 × 6 inch blocks and one buried course, 7 courses of 23 blocks: 161, or 170 with 5% waste.
Why bury a course?
A buried course keeps the base from sliding and gives the wall a stable footing on its compacted gravel base.