
Quick answer
This retaining wall calculator divides the wall height by the block height for courses above grade, then adds the buried course. Wall length divided by block width gives blocks per course. Multiply the two for wall blocks and add caps on top. The base pad is 6 in deep and 24 in wide, packed.
A retaining wall quote fails in two places: the count, and the part nobody sees. The blocks below grade and the pad under them are paid for like the blocks above, and they are the first thing left off a rough count. This retaining wall calculator counts all of it, from the buried course to the cap.
Type the wall length, the height above the ground and your block’s face. You get the courses, the blocks, the caps and the base stone for the pad, and a price at your block and cap rates. The same math comes as a free Excel file and a printable worksheet.
1. The wall
Bury at least 6 in, or 1 in per foot of wall height if that is more (block makers’ guides). With an 8 in block that is 1 course up to a 6 ft wall.
2. The block and caps
Starts at an 8 x 18 in face (about 1 sq ft a block). Type your block’s face.
Starts at 0. Add your own for corners and cuts.
3. The base pad
A block maker’s minimum: 6 in deep by 24 in wide, packed.
Packed dense-graded base about 1.80 to 1.86 tons a cubic yard (a state DOT study).
4. Your prices (optional)
Your numbers
Check the numbers above.
- Wall blocks
- Courses (with the buried one)
- Blocks per course
- Caps
- Wall face above the ground
- Base pad, tons
- Base pad, cubic yards
- Blocks and caps at your prices
Example only: a made-up wall and made-up prices, not typical prices.
Most block walls without grid top out around 3 to 4 ft. Taller walls, slopes or loads above the wall: check with the block maker or an engineer.
Download the free retaining wall calculator
- Excel (.xlsx): the calculator. Type the wall length and height, the block face and the cap length. The courses, blocks, caps and pad work themselves out. A second tab holds the example below.
- Google Sheets: upload the Excel file to your Google Drive and open it in Google Sheets. The formulas and the example tab come with it.
- Printable PDF: a blank wall worksheet with the nine lines of math, for the clipboard.
- Filled-in example (PDF): the backyard wall below, printed with every line worked out.
The calculator and the files need no email. The calculator runs in your browser and sends nothing anywhere.
How many blocks do you need for a retaining wall?
Work out how many courses the wall has, how many blocks sit in one course, and multiply. Then count the caps separately, because they run the length of the wall once.
- Divide the height above the ground by the block’s face height, in inches, and round up. That is the courses you will see.
- Add the buried courses. The block below grade counts as blocks you buy.
- Divide the wall length in inches by the block’s face width, and round up. That is blocks per course.
- Multiply courses by blocks per course. Add your own extra for corners and cuts.
- Divide the length in inches by the cap’s length and round up for the caps.
A retaining wall block calculator is this same arithmetic with your block’s face. Type the face your block has; do not trust a rule of thumb for blocks per square foot unless it matches.
A worked wall: 40 ft long and 36 in above the ground
The made-up company is building a backyard wall 40 ft long and 36 in high above the ground, using a block with an 8 by 18 in face and a cap that is 18 in long. That face is about a square foot of wall a block.
36 divided by 8 is 4.5, so 5 courses show above the ground. Add the 1 buried course for 6 courses in all. 40 ft is 480 in; divided by 18 that is 26.7, so 27 blocks a course. 6 courses times 27 is 162 blocks. The caps are 480 / 18, so 27. The visible face is 40 ft times 3 ft, or 120 sq ft. The pad is 40 ft long, 2 ft wide and 0.5 ft deep: 40 cubic feet, or 1.48 cubic yards, which at 1.8 tons a yard is 2.67 tons. At made-up prices of $4.25 a block and $5.50 a cap, the blocks come to $688.50, the caps to $148.50, and the total to $837.00. The worksheet below shows each line.
| Line | What to measure or work out | Example wall (made up) | Your wall |
|---|---|---|---|
| A | Wall length (ft) and height above the ground (in) | 40 ft x 36 in | |
| B | Block face (in): width x height | 18 x 8 in | |
| C | Courses above the ground = height / block height, rounded up | 5 | |
| D | Courses in all = C + buried courses | 6 | |
| E | Blocks per course = length x 12 / block width, rounded up | 27 | |
| F | Wall blocks = D x E (+ your extra) | 162 blocks | |
| G | Caps = length x 12 / cap length, rounded up | 27 caps | |
| H | Base pad = length x pad width x pad depth (ft) / 27, x tons per yard | 1.48 cu yd = 2.67 tons | |
| I | Blocks and caps = F x your block price + G x your cap price | $837.00 |
How deep do you bury the first course?
Two block makers’ guides agree on the floor: bury at least 6 in of block below the finished grade. One of them adds a rule for taller walls: 1 in of burial for each foot of wall height, whichever is more.
So the buried depth is the larger of 6 in or 1 in per foot of height. With an 8 in block that is one course up to a 6 ft wall, and the calculator starts at one buried course. If your block is shorter or the wall is taller, type the number of courses that gets you to the depth.
Count the buried course in the blocks you order. It is the easiest line to forget, and on a short wall it is one course in six.
How deep and wide is the base pad?
A block maker’s design guide gives 6 in deep by 24 in wide, packed, as the minimum base. A second maker’s guide asks for the leveling pad to be at least 6 in deep after compaction. The calculator starts at 6 by 24 and lets you change both.
The pad is length times width times depth in feet, divided by 27 for cubic yards. Packed dense-graded base weighs about 1.80 to 1.86 tons a cubic yard, so the calculator uses 1.8 to turn the yards into tons. Round up to what your yard sells.
The pad is the part the customer never sees and the part that holds the wall. Give it its own line on the estimate.
How tall can an unreinforced block wall go?
The block wall trade association says unreinforced block walls typically top out around 3 to 4 ft, and less with poor soil or a load behind the wall. Above that, check with the block maker or an engineer before you quote it.
The calculator will count a wall of any height, and that is not the same as saying a wall of that height will stand. A tall wall, a slope above the wall, or a driveway close behind it changes the job. Say so on the estimate and hand the design question to the people who answer for it.
- Drain stone, pipe and fabric behind the wall: their own lines, not in this count.
- Corners and steps: they change the count. Add them as their own blocks.
- Face size: the example uses an 8 by 18 in face. Your block may be different, so type its face.
How do you price the wall on your estimate?
The calculator prices the blocks and caps at your rates. That is material, not the wall. The estimate also carries the dig, the pad stone, the drain stone behind the wall, the haul-away, the labor to set and cap, and your margin on top.
Show the block and cap line to the customer, then the work under it. A hardscape estimate template has room for each line, and the paver calculator counts a patio that sits at the foot of the wall. For the stone behind the wall, the gravel calculator gives you yards and tons.
The $4.25 and $5.50 here are made up. Use the prices on your supplier’s last invoice.
When the block count is the easy part
Vaylor is a business app for service crews, from just you to 16 people. Your block, cap, pad stone and labor rates live in a price book, and quotes go out from there. Join the waitlist today. Founding members save 40% or more. Launching February 2027. Try Vaylor Plus free for 30 days. No surprise charges.
Good fit if
- You want your block, cap and labor rates in a price book, with your margin on every line.
- You want quotes with photos and add-ons, like a step or a drain, that your customer signs on their phone.
- You want the schedule map, where you drag a job to a new day when the pallets are late.
Probably not a fit if
- You need software this season. Vaylor isn’t selling until February 2027.
- You only needed the block count: the calculator and worksheet on this page are free.
Frequently asked questions
How do I calculate retaining wall blocks?
Divide the wall height by the block’s face height and round up for the courses, then add the buried course. Divide the wall length by the face width and round up for blocks per course. Multiply the two. In the example, 6 courses of 27 blocks is 162 blocks.
How many blocks do I need per square foot of wall?
It depends on the face. A block with an 8 by 18 in face covers about 1 sq ft, so one block a square foot. A different face needs its own math: 144 divided by the face’s width times its height in inches. Type your block’s face into the calculator.
How many courses do I bury?
Bury at least 6 in of block, or 1 in for each foot of wall height if that is more. With an 8 in block that is one buried course up to a 6 ft wall. Count it in the blocks you buy.
How much base stone does a retaining wall need?
The pad under the first course is 6 in deep and 24 in wide, packed. For a 40 ft wall that is 1.48 cubic yards, or 2.67 tons at 1.8 tons a yard. Drain stone behind the wall is a separate order.
Is this a retaining wall cost calculator?
It prices the blocks and caps at your rates, and the example comes to $837.00 at made-up prices. It is not the whole wall. Add the dig, pad stone, drain stone, haul-away, labor and your margin on your own estimate.
Sources
- Allan Block Corp., Best Practices for Allan Block Segmental Retaining Wall Design (1 in of embedment per foot of height; 6 in deep by 24 in wide base), opened Nov 11, 2026
- Belgard Commercial, SRW Quick Reference Install Guide 2023 (bury at least 6 in; leveling pad at least 6 in after compaction), opened Nov 11, 2026
- Concrete Masonry & Hardscapes Association, SRW FAQ 001 (unreinforced walls typically up to 3 to 4 ft), opened Nov 11, 2026
- Allan Block, AB Collection (8 by 18 in face, about 1 sq ft; cap 4 in by 18 in), opened Nov 11, 2026
- Wisconsin DOT research report 0092-22-05, Weight-Volume Relationships (compacted dense-graded base 1.80 to 1.86 tons a cubic yard), opened Nov 11, 2026
- Vaylor’s filled-in example (a made-up business; every size, rate and price is made up and worked by the calculator’s engine, checked by hand Nov 11, 2026)
