Retaining Wall Calculator
This retaining wall calculator works out how many blocks, caps, gravel and drain pipe you need, and what the wall will cost. It works as a retaining wall block calculator for stacked block walls and a concrete retaining wall calculator for poured walls, and it draws a side view that flags the 4 ft height some building departments use for permits. Tap the i button beside any field for an explanation.
Quick answer: blocks = blocks per course × courses, where courses include the buried first course (the greater of 6 in or 10% of the wall height). A wall 20 ft long and 2.5 ft high in 18 × 6 in blocks needs 89 blocks and 21 caps with 5% waste.
Retaining wall calculator: blocks, gravel and cost
Example values are loaded so you can see a result straight away. Change any field and the numbers, the drawing and the charts update.
1. Choose your units and wall type
i
i
i
2. Your wall
i
i
i
3. Your blocks
i
i
i
i
i
i
i
i
i
i
3. Your concrete wall
i
i
i
4. Drainage
i
5. Prices (optional)
i
i
i
i
i
i
Side view of your wall
The drawing redraws as you change the numbers. The dashed line is 4 ft above the bottom of the base. It is green when the wall is under that height and red when it is over. Layers are drawn to scale, but the wall is simplified, with no setback.
Checks against the manufacturer guidance
What if the wall were taller or shorter?
Cost breakdown
Estimates for planning only. The layer sizes follow one block maker’s installation manual, so check your own product’s manual. Prices shown are examples you can edit, not quotes. This is not engineering or code advice, so confirm your design with your local building department. See our Disclaimer.
How the retaining wall calculator works
A retaining wall holds soil back, and every one of them is built from the same few layers: a compacted gravel base, a buried first course, the visible courses, usually a cap, and a drainage zone behind it all. The block count drives the rest of the order, so the first question is how many you need.
This retaining wall calculator answers that question and the ones that come with it. Enter the wall length and height, pick your block size, and it counts the wall blocks and cap blocks, the courses, the gravel for the base and the drainage zone, and the drain pipe. Add your prices and it becomes a retaining wall cost calculator, with a cost breakdown. If you are building in poured concrete instead, switch the wall type and it works as a concrete calculator for retaining wall projects, giving you cubic yards and bags for the stem and the footing.
The page also draws a side view of your wall with the layers labelled, and a line showing the 4 ft height that some building departments use as the point where a permit or an engineer comes in. A second chart shows how many blocks you would need if the wall were lower or taller, which is handy when you are deciding between a 3 ft and a 4 ft wall.
Retaining wall calculation formula, step by step
If you want to check the retaining wall block calculator by hand, or you only have a tape measure and a phone, these are the steps. All sizes are in inches.
- Find the buried depth. A segmental wall needs its first course below ground. The Rochester Concrete Products installation manual gives the minimum as 6 inches or 10% of the wall height. Take the larger of the two, then round up to whole courses.
- Count the visible courses. Take the wall height, subtract the cap height if you are using caps, divide by the block height and round up.
- Add the courses. Total courses = visible courses + buried courses.
- Count the blocks in one course. Wall length ÷ block face length, rounded up.
- Multiply. Wall blocks = blocks per course × total courses.
- Count the caps. Wall length ÷ cap length, rounded up.
- Add waste. Multiply each count by 1 plus your waste allowance and round up. Five percent is a common starting point for blocks, because some break and some need cutting at the ends and corners.
That is the whole retaining wall calculation formula for block count. The gravel works the same way: width × depth × length gives cubic inches, and dividing by 46,656 turns cubic inches into cubic yards. The sections below show each layer.
How many retaining wall blocks do I need?
People usually ask this two ways: how many blocks per square foot of wall, and how many blocks for their wall. The calculator does the second, and the first is simply the face area of one block. An 18 inch by 6 inch block covers 0.75 square feet, so it takes about 1.33 of them per square foot of wall face.
Here is the example the calculator loads when you open the page: a wall 20 feet long and 2.5 feet high, built from 18 × 6 × 12 inch blocks with a 2 inch cap and a 5% waste allowance.
- Visible courses: (30 − 2) ÷ 6 = 4.67, rounded up to 5.
- Buried depth: the larger of 6 inches and 10% of 30 inches (3 inches) is 6 inches, which is 1 course of 6 inch blocks.
- Total courses: 5 + 1 = 6.
- Blocks per course: 240 ÷ 18 = 13.3, rounded up to 14.
- Wall blocks: 14 × 6 = 84, and 89 with 5% waste.
- Caps: 240 ÷ 12 = 20, and 21 with waste.
Because whole courses are counted, the finished wall is 32 inches high above ground, not exactly 30. If a particular height matters, pick a block height that divides into it evenly.
How the count changes with height
Height is the biggest lever on cost, because every extra course adds a full row of blocks along the whole length. This table uses the same 20 foot wall and 18 × 6 inch blocks. The last column is the distance from the bottom of the base to the top of the wall, which is the figure the height rule below is measured against.
| Wall height above ground | Courses | Wall blocks to buy | Caps to buy | Gravel (cu yd) | Height from base bottom |
|---|---|---|---|---|---|
| 2 ft 0 in | 5 | 74 | 21 | 2.85 | 3 ft 2 in |
| 2 ft 6 in | 6 | 89 | 21 | 3.24 | 3 ft 8 in |
| 3 ft 0 in | 7 | 103 | 21 | 3.63 | 4 ft 2 in (over 4 ft) |
| 3 ft 6 in | 8 | 118 | 21 | 4.02 | 4 ft 8 in (over 4 ft) |
| 4 ft 0 in | 9 | 133 | 21 | 4.41 | 5 ft 2 in (over 4 ft) |
The buried first course
The first course sits below ground level to anchor the bottom of the wall. The Rochester manual asks for a minimum embedment of 6 inches or 10% of the wall height, and says to increase it for taller walls, sloping fills or poor soil. The calculator works this out for you, and you can override it with 1, 2 or 3 buried courses. If your choice falls below the manufacturer’s minimum, the checks list flags it.
Buried courses are blocks you pay for and never see. That is why a retaining wall blocks calculator that only multiplies the visible height comes up short.
How to calculate backfill for a retaining wall, plus gravel and drainage
Three kinds of material sit behind and under the blocks, and people often mix them up.
Gravel base
The blocks sit on compacted crushed stone. The same manual calls for 6 inches of compacted Class 5 or three-quarter inch crushed stone, at least 6 inches thick, in a trench about 24 inches wide. The calculator makes the base the block depth plus 6 inches on each side, so a 12 inch deep block gets a 24 inch wide base. Volume = length × base width × base thickness. In the example that is 240 × 24 × 6 = 34,560 cubic inches, or 0.74 cubic yards.
Drainage stone
Behind the blocks goes a layer of clean drainage stone, at least 12 inches wide, running the full height of the wall. This gives water a path out of the soil instead of letting it collect behind the wall. The calculator multiplies the length by the stone width by the full height of the stack (courses plus cap). The example needs 2.35 cubic yards.
Backfill soil
The soil behind the drainage stone is what the wall is holding back. How much of it you need depends on the slope and how far back you dig, so the calculator does not guess at it. If you need a number, work out the cubic yards with the cubic yard calculator and use the topsoil calculator if you are finishing the top with soil.
Gravel is sold by the ton or by the cubic yard. Many online calculators use about 1.4 tons per cubic yard for crushed stone, but the real figure depends on the stone and its moisture, so ask your supplier. The calculator prices gravel per cubic yard (or per cubic metre) to avoid that guess. The gravel calculator converts volume to weight if you want the tonnage.
Drain pipe
The manual recommends a 4 inch perforated drain pipe behind the base course, and the calculator counts one run the full length of the wall. Water has to be led somewhere, so plan the outlet before you start. Drainage matters whatever the wall is built from. Washington’s Pierce County says every retaining wall must be properly drained under IRC section R404.4, whether or not it needs a permit.
Concrete retaining wall calculator: poured walls
For a poured wall, set the wall type to poured concrete and the page becomes a retaining wall concrete calculator. The volume has two parts, the stem (the wall itself) and the footing it sits on.
- Stem volume = length × height × thickness.
- Footing volume = length × footing width × footing thickness.
- Total = stem + footing, then add your waste allowance. Poured walls default to 10%, because running short of concrete mid-pour is expensive to fix.
The example is a wall 20 feet long and 4 feet high with an 8 inch stem on a 24 inch wide, 12 inch thick footing. The stem is 92,160 cubic inches and the footing is 69,120, so the raw volume is 3.46 cubic yards. With 10% waste, you order 3.80 cubic yards.
If you mix your own, an 80 pound bag of concrete mix yields about 0.6 cubic feet according to bag labels, which is 172 bags for this wall. Check the label on your brand. For large pours, ready-mix is usually easier than bags; the concrete yard calculator and the concrete bag calculator let you compare. The calculator does not size the wall. The thickness, footing and steel in a poured retaining wall come from an engineered design, so use your own figures from the plan.
Retaining wall price calculator: what the cost includes
The retaining wall calculator cost figure adds up what you can count: blocks, caps, gravel, pipe and any other costs you enter. For a poured wall it replaces the blocks with concrete. The example wall comes to $654.33 using the example prices below, which are placeholders and not quotes. The calculator rounds the total to whole dollars.
| Item | Quantity | Example price | Cost |
|---|---|---|---|
| Wall blocks (18 × 6 × 12 in) | 89 | $4.50 each | $400.50 |
| Cap blocks | 21 | $4.00 each | $84.00 |
| Gravel, base and drainage | 3.24 cu yd | $45 per cu yd | $145.83 |
| Perforated drain pipe | 20 ft | $1.20 per ft | $24.00 |
| Total | $654.33 |
Prices vary widely by region and product, so type your own in. Leave a price at zero to remove the line. Other costs is a single field for what the calculator cannot count: geogrid, filter fabric, backfill soil, adhesive for the caps, delivery, hire of a plate compactor and labour. If you hire a contractor, labour can be a large share, so ask for a quote and put it there. The concrete slab cost calculator can help price a poured pad or footing.
How much does a retaining wall block weigh, and how many are on a pallet?
Block weight varies enormously with size. In Rochester’s Classic 6 line, an 18 × 12 × 6 inch straight-face block weighs 64 pounds and there are 36 on a pallet, which covers 27 square feet of wall face. A half-block of the same line weighs 30 pounds. Large units are in another league: a 40 inch long, 8 inch high, 12 inch deep Palisade block weighs 330 pounds and comes 8 to a pallet, so it needs machinery.
That is why the calculator has a blocks-per-pallet field. The default is 36 only because that is the Classic 6 figure; enter your product’s figure to see how many pallets to order. Weight matters for delivery and for how you move the blocks, so check the product data sheet. Ask the yard whether delivery includes unloading.
Height limits: when a retaining wall needs a permit or an engineer
This is the part most calculators skip. Local rules differ, but a common pattern is a height limit above which you need a permit and an engineer’s design. Pierce County, Washington, for example, requires a permit for a wall over 4 feet tall with no surcharge, or over 2 feet if it carries a surcharge (an extra load on the soil behind it), and it measures the height to the bottom of the footing. Walls that need a permit need site-specific plans from a registered engineer. The Rochester manual likewise says walls taller than 4 feet, or walls with surcharge loads, should be evaluated by a qualified engineer.
That is why the side view has a dashed line 4 ft above the bottom of the base, and why the checks list tells you the total height measured the same way. In the example the wall is 44 inches from the bottom of the base to the top, under the line. Make the wall 3 feet tall and it is 50 inches, over it, even though only 3 feet shows above ground.
This is only a warning, not a legal test. Your own city or county sets the rule, and the answer can change if there is a slope, a driveway or a building above the wall. Ask before you buy blocks.
Common mistakes
- Counting only the visible height. The buried course and cap change the order, so the retaining wall estimator has to include them.
- Skipping the drainage. Water collecting behind a wall adds load, and every manual and code reference I read asks for drainage. Budget for the stone and the pipe.
- Using the nominal block size. Block sizes are often rounded. Measure a real block, or read the data sheet, and enter the actual face length and height.
- Forgetting corners and curves. Corner blocks, half blocks and curves change the count. Treat the result as a base and add extra for the ends.
- Building tall without a design. Above about 4 feet, or with a slope or load above, get the engineering done first.
- Using the price from a different product. Block prices differ by face, size and colour. Use the price of the block you will buy.
Retaining wall calculator FAQ
How many retaining wall blocks do I need?
Divide the wall length by the block face length and round up to get the blocks in one course. Count the courses by dividing the wall height by the block height, rounding up, and adding the buried courses. Multiply the two, then add a waste allowance. A wall 20 feet long and 2.5 feet high in 18 × 6 inch blocks needs 89 blocks plus 21 caps, including 5% waste.
How to calculate blocks for retaining wall projects by hand?
Work in inches. Blocks per course = length ÷ block face length, rounded up. Courses = (height − cap height) ÷ block height, rounded up, plus the buried courses. Wall blocks = blocks per course × courses. Then add waste and round up.
How deep should the first course be buried?
The Rochester Concrete Products manual gives a minimum of 6 inches or 10% of the wall height, and says to bury more for taller walls, sloping fills or poor soil. Your block maker’s manual comes first.
How much gravel do I need behind a retaining wall?
The manual calls for at least 12 inches of drainage stone behind the blocks, along the full height, plus a base of at least 6 inches under them. The calculator multiplies each width by the length and height, and converts to cubic yards.
How tall can a retaining wall be without a permit?
It depends on your city or county. Pierce County, Washington, uses 4 feet measured to the bottom of the footing when there is no surcharge, and 2 feet with one. Other places use different numbers, so ask your building department.
Does a retaining wall need drainage?
Yes. Pierce County says every retaining wall must be properly drained under IRC section R404.4, whether or not it needs a permit. Block walls usually get drainage stone and a perforated pipe.
How much does a retaining wall block weigh?
It depends on the size. An 18 × 12 × 6 inch block in Rochester’s Classic 6 line weighs 64 pounds, a half-block weighs 30 pounds, and a 40 inch long Palisade block weighs 330 pounds. Check the data sheet for your block.
How many retaining wall blocks are on a pallet?
It depends on the product. The Classic 6 line has 36 of the 18 × 12 × 6 inch blocks on a pallet, covering 27 square feet. Enter your product’s figure in the blocks-per-pallet field.
Can I use this as a concrete retaining wall calculator?
Yes. Choose poured concrete as the wall type, then enter the length, stem height and thickness, and the footing size. It gives cubic yards with a waste allowance and the bag count. It does not design the wall, so the sizes must come from your plan or an engineer.
Sources and further reading
The counting is arithmetic. The installation details, the weights and the permit rule come from the published sources below, which I read when writing this page. Where they differ from your local code or your block maker’s manual, follow those.
- Rochester Concrete Products, Palisade wall installation manual (base thickness and trench width, embedment of 6 inches or 10% of height, 12 inches of drainage stone, perforated pipe and the 4 ft engineering note)
- Rochester Concrete Products, Classic 6 cut sheet (block size, weight and pallet quantity)
- Rochester Concrete Products, Palisade cut sheet (large block size, weight and pallet quantity)
- Pierce County, Washington, retaining wall permit guidance (an example of a local height rule, measured to the bottom of the footing)
Products, prices and local rules vary, so check them with your supplier and your building department.
Plan the rest of the project
A retaining wall is usually part of a larger job. The gravel calculator and the paver base calculator cover the base and any patio next to it, and the topsoil calculator helps with the planting above. For a wall built from standard masonry units, see the concrete block calculator. The deck board calculator and the fence cost calculator cover the rest of the yard, and the concrete calculators hub lists every concrete tool on the site.