Retaining Wall Block Calculator

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

—
Total Blocks
—
Courses (Rows)
—
Wall Face Area (ft²)
—
Blocks per Course
—
Net Blocks (no waste)
—
Waste Allowance
—
Base Stone (tons)
—
Drainage Stone (tons)
—
Cap Units

— Wall Length
— Wall Height
— Total Weight
— Waste Factor
— Buried Depth
— Drain Pipe
— Pallets
— Block Face

—

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

  1. 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.
  2. 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.
  3. 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.
  4. 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 depthft × 12 + 1 in per ft3 × 12 + 3 = 39 in
2. Courses neededCEIL(height in ÷ block height in)CEIL(39 ÷ 6) = 7 courses
3. Convert wall length to inchesft × 1220 ft × 12 = 240 in
4. Blocks per courseCEIL(wall length in ÷ block face length in)CEIL(240 ÷ 12) = 20 blocks
5. Net blocks (no waste)courses × blocks per course7 × 20 = 140 blocks
6. Apply waste factor (5%)CEIL(net × 1.05)CEIL(140 × 1.05) = 147 blocks
7. Wall face arealength (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 ft2 ft55320 ft²
10 ft3 ft77430 ft²
20 ft2 ft510540 ft²
20 ft3 ft714760 ft²
20 ft4 ft918980 ft²
30 ft3 ft722190 ft²
30 ft4 ft9284120 ft²
50 ft3 ft7368150 ft²
50 ft4 ft9473200 ft²
100 ft4 ft9945400 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 ftNot under the model codeNoAbout 2 inBase 4 in deep in a trench 18 in wide
2–3 ftNot under the model codeNo2–3 inWithin the height unreinforced block walls are typically built to
3–4 ftNot under the model code, unless there is a load aboveCheck the block maker's limit3–4 inAt 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 ftYes — over 4 ft from the bottom of the footingYes4–6 inEngineered design with geogrid; base 6 in deep in a trench 24 in wide; drain pipe at the base
Over 6 ftYesYesPer the designEngineered 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

Frequently Asked Questions

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.
ItemValueSource or Basis
Courses(exposed height + buried depth) ÷ block height, rounded upGeometry. 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 depth1 in per foot of exposed wall height, unless enteredAllan Block residential installation guide: an additional 1 in of buried block for each 1 ft of wall height.
Blocks per courseWall length ÷ block face length, rounded upGeometry.
Waste factorNet blocks × (1 + factor%), rounded upDefault 5%. An entered 0 is used as 0. The factor is the site's working allowance.
Base stoneTrench 24 in wide × 6 in deep; 18 in × 4 in when the block height is under 4 ft; at 139 lb/ft³ compactedAllan Block installation guide for the trench; FHWA Federal Lands Highway estimating table for the weight.
Drainage stone12 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 pipeWall lengthAllan Block installation guide: required for reinforced walls, gravity walls over 4 ft and poorly drained sites; vented to daylight every 50 ft.
Cap unitsWall length ÷ cap length, rounded upGeometry. No waste is added.
Height notesOver 3 ft and over 4 ft of blockCMHA 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 examplesAB 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 palletAllan Block and Versa-Lok product sheets. Sizes and weights vary by producer.
Accepted inputsWall 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
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.

Daniel Merritt, P.E.
Daniel Merritt, P.E. · Reviewer

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.

Related Calculators