Enter your wall length, height, and block dimensions to instantly calculate block count, courses, wall face area, total weight, and material cost estimate.
Free to use
·
No sign-up required
·
Buried course, base & drainage included
·
Imperial & metric supported
✓ Block count with waste factor✓ Courses & wall area included✓ Base stone, drainage stone & caps✓ Last verified October 2026
Written by Rachel Sousa· Reviewed by Daniel Merritt, P.E. — burial depth, base trench and drainage zone from Allan Block's installation guide; block data from the Allan Block and Versa-Lok product sheets; height limits from the CMHA segmental retaining wall guidance and IBC Section 105.2, October 2026.
Enter Your Wall Dimensions & Block Size
Total linear length of the wall face.Enter a length greater than 0, up to 5,000 ft.
Height you will see above the ground in front of the wall. The calculator adds the buried part of the base course.Enter a height greater than 0, up to 50 ft.
The height of one course, from the block maker's sheet. The buttons set height and length together.
Enter a block height from 1 in to 3 ft.
Width of one block along the wall face — not its depth front to back.Enter a block length from 1 in to 6 ft.
How far the base course sits below the ground. Leave blank for 1 in per foot of wall height, the figure in Allan Block's installation guide.Enter a buried depth of 0 or more, up to 5 ft.
Length of one cap along the wall. Leave blank if the wall has no caps or you will count them separately.Enter a cap length from 1 in to 6 ft.
Per block, from the maker's sheet. Leave blank to skip the total weight.Enter a weight greater than 0.
From your supplier. Leave blank to skip the pallet count.Enter a whole number of blocks, 1 or more.
Add 5% for straight walls; 10% for curves or cuts; 15% for complex shapes. Enter 0 for none.Enter a waste factor from 0 to 50.
$
Leave blank to skip the cost estimate. Enter your supplier's price for the block you have chosen.Enter a price of 0 or more, or leave it blank.
Results appear instantly and update as you type. No sign-up required.
Your Retaining Wall Estimate
Blocks Required (with waste)
—
Total Blocks
—
Courses (Rows)
—
Wall Face Area (ft²)
Material Breakdown
—
Blocks per Course
—
Net Blocks (no waste)
—
Waste Allowance
Base, Drainage & Caps
—
Base Stone (tons)
—
Drainage Stone (tons)
—
Cap Units
—Wall Length
—Wall Height
—Total Weight
—Waste Factor
—Buried Depth
—Drain Pipe
—Pallets
—Block Face
Estimated Block Cost
—
Block material cost only, at the price you entered. Base stone, drainage stone, pipe, caps, geogrid and labor are extra: HomeAdvisor's 2026 guide puts a block retaining wall at $60–$200 per linear foot installed.
Step 1: Buried depth = 1 in per foot of exposed wall height, unless you enter your own
Step 2: Courses = CEIL((Exposed Height + Buried Depth) ÷ Block Height)
Step 3: Blocks per Course = CEIL(Wall Length ÷ Block Face Length)
Step 4: Net Blocks = Courses × Blocks per Course
Step 5: Final Blocks = CEIL(Net Blocks × (1 + waste% ÷ 100))
Step 6: Wall Face Area (ft²) = Wall Length (ft) × Exposed Height (ft)
Step 7: Total Weight = Final Blocks × Block Weight (lb or kg)
Base stone: Length × trench width × depth × 139 lb/ft³ — trench 24 in × 6 in, or 18 in × 4 in for walls under 4 ft
Drainage stone: Length × (Exposed Height + Buried Depth) × 12 in × 100 lb/ft³
Cap units = CEIL(Wall Length ÷ Cap Length)
How to Use This Retaining Wall Block Calculator
Measure the wall length and exposed height.
Measure the total linear length of the wall face and the exposed height — how much wall you will see above the ground in front of it. The calculator adds the part of the base course that is buried. If your wall steps up or down, break it into sections and run separate calculations, then add the block counts together.
Find your block's face dimensions.
Check the product label or manufacturer spec sheet for the face height and face length of your specific block. These vary by brand: Allan Block's AB Classic has an 8 × 18 inch face, Versa-Lok Standard a 6 × 16 inch face, and many home-center blocks are about 6 × 12 or 4 × 12 inches. Enter the exact values for your block, not generic averages — and the face length, not the depth front to back.
Set waste factor and optional weight/cost.
Use 5% for a straight wall with no cuts. Use 10% for any curved sections, corners, or step-downs where you'll need to cut blocks. Enter the per-block weight from the product spec if you want a total weight output — useful for planning delivery and handling. Enter the cap length to count cap units, the blocks per pallet to count pallets, and the per-block price to get a material cost estimate.
Use the results to order materials.
Order blocks by the pallet, using your supplier's count per pallet, which differs from product to product. Order the base stone and the drainage stone at the same time: the calculator gives both, for a compacted base in a trench under the first course and a 12-inch zone of clean crushed stone behind the wall. Walls over 4 feet also need a perforated drain pipe at the base, and an engineered design.
⚠ Pro Tip: The base course is the most important part of any retaining wall. It sits on a compacted stone base in a trench, level in both directions, and it is partly buried: Allan Block's installation guide gives 1 inch of burial for each foot of wall height, on a base 6 inches deep (4 inches for walls under 4 feet). If the base isn't level and firm, no block will make up for it. Spend the time there — it's the one part of the job you can't fix later without taking the wall down.
Retaining Wall Block Formula
The calculation counts the number of blocks per horizontal course (row), multiplies by the number of courses needed to reach the wall height plus the buried part of the base course, then applies a waste factor for cuts and breakage. Here is the step-by-step process:
Step
Formula
Example (20 ft long × 3 ft exposed, 6×12 in block)
1. Wall height with buried depth
ft × 12 + 1 in per ft
3 × 12 + 3 = 39 in
2. Courses needed
CEIL(height in ÷ block height in)
CEIL(39 ÷ 6) = 7 courses
3. Convert wall length to inches
ft × 12
20 ft × 12 = 240 in
4. Blocks per course
CEIL(wall length in ÷ block face length in)
CEIL(240 ÷ 12) = 20 blocks
5. Net blocks (no waste)
courses × blocks per course
7 × 20 = 140 blocks
6. Apply waste factor (5%)
CEIL(net × 1.05)
CEIL(140 × 1.05) = 147 blocks
7. Wall face area
length (ft) × exposed height (ft)
20 × 3 = 60 ft²
Common Retaining Wall Size Reference Table
Block counts for 6-inch-tall × 12-inch-wide blocks, with the base course buried 1 inch per foot of exposed height. 5% waste included.
Wall Length
Exposed Height
Courses
Blocks (5% waste)
Face Area (ft²)
10 ft
2 ft
5
53
20 ft²
10 ft
3 ft
7
74
30 ft²
20 ft
2 ft
5
105
40 ft²
20 ft
3 ft
7
147
60 ft²
20 ft
4 ft
9
189
80 ft²
30 ft
3 ft
7
221
90 ft²
30 ft
4 ft
9
284
120 ft²
50 ft
3 ft
7
368
150 ft²
50 ft
4 ft
9
473
200 ft²
100 ft
4 ft
9
945
400 ft²
Based on 6-in-tall × 12-in-wide blocks. A 4 ft exposed wall is more than 4 ft of block once the buried part is counted, which puts it over the height where the model building code requires a permit. Adjust for your actual block dimensions using the calculator above.
How Tall Can a Retaining Wall Be Without Engineering?
Wall height is the single most important factor governing what you can build without an engineer. Height is measured from the top of the base (leveling pad) to the top of the uppermost block, so it includes the buried part of the wall. The table brings together the model building code, the hardscape industry's guidance and a block maker's installation guide — always check local codes before building.
Retaining wall height categories and construction requirements.
Wall Height
Permit Required?
Engineering Required?
Base Burial Depth
Notes
Under 2 ft
Not under the model code
No
About 2 in
Base 4 in deep in a trench 18 in wide
2–3 ft
Not under the model code
No
2–3 in
Within the height unreinforced block walls are typically built to
3–4 ft
Not under the model code, unless there is a load above
Check the block maker's limit
3–4 in
At the top of the unreinforced range (typically 3 to 4 ft); drainage stone behind the wall matters more as the wall gets taller
4–6 ft
Yes — over 4 ft from the bottom of the footing
Yes
4–6 in
Engineered design with geogrid; base 6 in deep in a trench 24 in wide; drain pipe at the base
Over 6 ft
Yes
Yes
Per the design
Engineered design; tiers count as one wall unless they are far enough apart
If your wall exceeds 4 feet, one alternative is a tiered wall — two or more shorter walls set back from each other. Tiers only behave as separate walls when they are far enough apart: the hardscape industry's guidance is a spacing of at least twice the height of the lower wall. Closer than that, the upper wall loads the lower one and the pair has to be designed as a single taller wall. Many building departments also add the tiers together when deciding whether a permit is needed, so ask before you rely on tiers to stay under a threshold.
Common Mistakes When Building a Retaining Wall
⚠️
Skipping the compacted gravel base.
Sitting your base course directly on undisturbed soil or on a thin bed of sand is a common cause of retaining wall failure. Allan Block's installation guide calls for a trench 24 inches wide with at least 6 inches of compacted stone — 18 inches wide and 4 inches deep for walls under 4 feet — compacted with a plate compactor and checked for level before the first block goes down. The calculator gives the tonnage.
💧
No drainage behind the wall.
Water held in the soil behind a wall adds pressure the wall was never meant to take. The installation guide calls for 12 inches of clean crushed stone directly behind the block (and in the cores of hollow block), and a perforated drain pipe at the base for walls over 4 feet, reinforced walls and sites that drain poorly, vented to daylight at least every 50 feet. The calculator gives the stone and the pipe length.
📐
Not burying the base course deep enough.
The base course is set partly below the finished ground in front of the wall — not sitting on the surface. Allan Block's figure is 1 inch of burial for each foot of wall height: 3 inches for a 3-foot wall, 4 inches for a 4-foot wall. A wall that starts at grade has nothing in front of its toe to stop it sliding forward. Those buried inches are blocks you have to buy, which is why the calculator adds them.
📏
Measuring the wrong dimension when ordering blocks.
Manufacturers publish three block dimensions — depth (how far back it goes), face height (the exposed rise), and face length (how wide it looks from the front). When entering values in this calculator, use face height and face length only. Using the full block depth as the face length will drastically underestimate your block count.
🔄
Forgetting to account for setback (batter).
Segmental block walls are not vertical — each course sits back a little from the one below (called batter or setback), and the amount is built into the block. Allan Block's AB Classic gives 6 degrees and AB Stones 12 degrees; Versa-Lok Standard steps back ¾ inch per course, about 7 degrees. Do not try to build a plumb wall with blocks made for a setback, and allow for the lean when you set out the base: a 4-foot wall at 6 degrees ends up about 5 inches behind where it started.
Frequently Asked Questions
Add the buried part of the base course to the exposed wall height, then divide by the block's face height to get the number of courses, rounding up. Divide the wall length by the block's face length to get blocks per course, rounding up. Multiply courses by blocks per course for your net block count, and add 5–10% for waste. For example, a 20-foot wall 3 feet high using 6×12-inch blocks, buried 3 inches, needs 7 courses × 20 blocks per course = 140 blocks net. With 5% waste, order 147 blocks. This calculator does all of that automatically.
The number varies by brand, block size and producer, so take it from your supplier. As an example, Versa-Lok Standard units — 6 inches high, 16 inches wide — are packed 40 to a pallet, which is 26.7 square feet of wall face. Enter your supplier's count in the Blocks per Pallet field and the calculator rounds your order up to whole pallets. Ask whether part pallets can be bought or returned before you order.
Under the model building code (IBC Section 105.2, and the same wording in the residential code), a retaining wall needs a permit when it is over 4 feet high measured from the bottom of the footing to the top of the wall, or when it supports a surcharge — a slope, a driveway or a structure above it — at any height. Because the measurement starts at the bottom of the footing, a wall with less than 4 feet showing can still be over the limit. Many towns set lower thresholds. Always check with your local building department before starting.
Allan Block's installation guide calls for a base trench 24 inches wide with at least 6 inches of compacted stone, or 18 inches wide and 4 inches deep for walls under 4 feet, plus the buried depth of the block. Use well-graded crushed stone that compacts — the guide calls it wall rock — rather than rounded pea gravel. Fill the trench, compact it with a plate compactor in at least two passes, then check for level before setting your first block.
Geogrid is a plastic mesh laid between courses and run back into the compacted fill behind the wall, tying the wall face to a block of soil. Whether you need it depends on height, soil and what is above the wall. The hardscape industry's guidance is that unreinforced block walls are typically built up to 3 to 4 feet; taller walls, and shorter walls with a slope, a driveway or a structure above them, are reinforced. The length of the grid and the courses it goes on come from an engineered design or the block maker's design tables for your soil — not from a rule of thumb.
Retaining wall blocks (segmental retaining wall units) are made to be stacked dry, without mortar: a lip, pin or lug locks each course to the one below and sets the wall's lean back into the slope. Some are solid and some are hollow and filled with crushed stone. Standard CMU (concrete masonry unit) blocks are laid in mortar. A CMU retaining wall can be built, but it works differently — it is reinforced with steel, grouted and tied into a concrete footing, and it has to be engineered. Do not dry-stack ordinary CMU to hold back soil.
HomeAdvisor's 2026 guide puts a concrete block retaining wall at $60 to $200 per linear foot installed, depending on height, access and what is behind it; the same guide notes that walls over 4 feet need an engineer. For the materials, enter your block price in this calculator and price the base stone, drainage stone, pipe and caps from the quantities it gives.
Use the arc length of the curve as your wall length input — not a straight-line measurement from end to end. Arc length = radius × angle in radians (angle in degrees × π ÷ 180). For a 90-degree curve with a 10-foot radius, the arc is 10 × (π/2) ≈ 15.7 feet. Use this in the calculator, and increase your waste factor to 10–15% for the cuts that curves need. Each block has a minimum radius it will turn without cutting, and because the wall leans back, the radius tightens or opens with every course — check the maker's installation guide for both.
Yes. Enter the exposed height of the wall and the calculator adds the buried part of the base course — 1 inch per foot of wall height unless you enter your own figure — before it works out the courses. Those blocks are below the ground in front of the wall, but they are still installed and still have to be bought. On most walls the buried depth adds one course to the count.
Allan Block's installation guide gives 1 inch of burial for each foot of wall height: 2 inches for a 2-foot wall, 3 inches for 3 feet, 4 inches for 4 feet. That is in addition to the compacted stone base under the block. Local practice and engineered designs often call for more, especially on slopes; enter your own figure in the Buried Depth field if they do.
The same guide calls for 12 inches of clean crushed stone directly behind the block, for the full height of the wall. That is one cubic foot per square foot of wall: a 20-foot wall with 3 feet exposed and 3 inches buried takes 65 cubic feet, or 2.41 cubic yards — about 3.25 tons. Hollow blocks need more to fill their cores.
Divide the wall length by the length of one cap and round up: a 20-foot wall with 18-inch caps takes 14. Enter the cap length in the calculator. Caps are not counted in the wall height — height is measured to the top of the last wall block — and curves and corners need extra caps for cutting.
It is how far each course steps back from the one below, and it is built into the block. Allan Block's AB Classic gives a 6 degree lean, AB Stones 12 degrees and AB Vertical 3 degrees; Versa-Lok Standard steps back ¾ inch per 6-inch course, about 7 degrees. More setback makes a more stable wall but takes up more ground behind the face.
Yes, if they are far enough apart. The hardscape industry's guidance is that tiers act as separate walls only when the distance between them is at least twice the height of the lower wall — 6 feet behind a 3-foot wall. Closer together, the upper wall adds load to the lower one and the two have to be designed as one taller wall, with the permit and engineering that go with it.
Worked Examples
Five walls worked by hand. Enter the same inputs in the calculator and the results will match.
Example 1: 20 ft wall, 3 ft exposed, 6 × 12 in blocks, 5% waste, $4.50 a block
Buried: 3 in. Height of block: 36 + 3 = 39 in. Courses: 39 ÷ 6 = 6.5, so 7. Blocks per course: 240 ÷ 12 = 20. Net: 140; with 5%, 147. Base stone: 20 × 1.5 × 0.333 = 10 ft³, 0.70 tons. Drainage stone: 20 × 3.25 × 1 = 65 ft³, 3.25 tons. Cost: 147 × $4.50 = $661.50.
Example 2: 30 ft wall, 3 ft 6 in exposed, 8 × 18 in blocks weighing 75 lb, 18 in caps, 5% waste
Buried: 3.5 in. Height of block: 42 + 3.5 = 45.5 in. Courses: 45.5 ÷ 8 = 5.7, so 6. Blocks per course: 360 ÷ 18 = 20. Net: 120; with 5%, 126. Weight: 126 × 75 = 9,450 lb. Caps: 360 ÷ 18 = 20.
Example 3: 40 ft wall, 2 ft 6 in exposed, 6 × 16 in blocks, 40 to a pallet, 5% waste
Buried: 2.5 in. Height of block: 32.5 in. Courses: 32.5 ÷ 6 = 5.4, so 6. Blocks per course: 480 ÷ 16 = 30. Net: 180; with 5%, 189. Pallets: 189 ÷ 40 = 4.7, so 5.
Example 4: 25 ft wall, 5 ft exposed, 8 × 18 in blocks, 5% waste
Buried: 5 in. Height of block: 65 in, which is 5.42 ft — over 4 ft, so this wall needs a permit and an engineered design. Courses: 65 ÷ 8 = 8.1, so 9. Blocks per course: 300 ÷ 18 = 16.7, so 17. Net: 153; with 5%, 161. Base: a 24 × 6 in trench, 25 ft³, 1.74 tons. Drain pipe: 25 ft.
Example 5: 12 m wall, 0.9 m exposed, 15 × 30 cm blocks, 5% waste
Wall: 39.4 ft long, 2.95 ft exposed. Buried: 2.95 in. Height of block: 38.4 in; courses: 6.5, so 7. Blocks per course: 1,200 ÷ 30 = 40. Net: 280; with 5%, 294.
Calculator Assumptions, Sources and Limits
The block count is geometry. The burial, base and drainage figures come from one block maker's installation guide and the height limits from the model code and industry guidance; each is listed here with its source.
Values used by the calculator and where they come from.
Item
Value
Source or Basis
Courses
(exposed height + buried depth) ÷ block height, rounded up
Geometry. Wall height is measured from the top of the leveling pad to the top of the uppermost unit, not counting the cap (CMHA SRW-FAQ-001).
Buried depth
1 in per foot of exposed wall height, unless entered
Allan Block residential installation guide: an additional 1 in of buried block for each 1 ft of wall height.
Blocks per course
Wall length ÷ block face length, rounded up
Geometry.
Waste factor
Net blocks × (1 + factor%), rounded up
Default 5%. An entered 0 is used as 0. The factor is the site's working allowance.
Base stone
Trench 24 in wide × 6 in deep; 18 in × 4 in when the block height is under 4 ft; at 139 lb/ft³ compacted
Allan Block installation guide for the trench; FHWA Federal Lands Highway estimating table for the weight.
Drainage stone
12 in behind the block for the full block height, at 100 lb/ft³
Allan Block installation guide: 12 in of wall rock behind the block. Loose crushed stone at 2,700 lb/yd³ from Caterpillar's material table. Core fill for hollow block is not included.
Drain pipe
Wall length
Allan Block installation guide: required for reinforced walls, gravity walls over 4 ft and poorly drained sites; vented to daylight every 50 ft.
Cap units
Wall length ÷ cap length, rounded up
Geometry. No waste is added.
Height notes
Over 3 ft and over 4 ft of block
CMHA SRW-FAQ-001: unreinforced walls typically up to 3 to 4 ft. IBC Section 105.2: permit for retaining walls over 4 ft from the bottom of the footing, or supporting a surcharge.
Block examples
AB Classic 8 × 18 in face, 12 in deep, 75 lb, 6° setback; Versa-Lok Standard 6 × 16 in face, 12 in deep, 82 lb, ¾ in setback, 40 per pallet
Allan Block and Versa-Lok product sheets. Sizes and weights vary by producer.
Accepted inputs
Wall length up to 5,000 ft; exposed height up to 50 ft; block 1 in to 3 ft high and to 6 ft long; waste 0–50%
Outside these the field shows an error instead of a result.
The calculator counts materials for a straight wall of one height. It does not design the wall. Soil, slopes, water and loads above the wall decide whether it stands, and above about 3 to 4 feet — or with anything bearing on the ground behind it — that is an engineer's job. For a poured concrete wall, use the Concrete Retaining Wall Calculator.
The people behind this calculator
Rachel Sousa · Writer
B.S. Civil Engineering, Purdue University. 10+ years turning construction and engineering standards into clear, usable calculator documentation; former documentation lead at a national ready-mix supplier.
Licensed Professional Engineer (Civil/Structural), M.S. Structural Engineering, Texas A&M University. 18 years across commercial, municipal, and residential concrete. Reviews every structural calculator against ACI 318, ACI 332, and ASCE 7.