Retaining Wall Calculator
Enter your wall’s length, height, and block size below to calculate how many retaining wall blocks and how much drainage gravel backfill you need, together rather than as two separate guesses. A retaining wall isn’t just stacked block: the gravel zone behind it is what keeps water pressure from building up and pushing the wall over, so skipping it is a common and serious mistake.
⚠️ Walls over about 4 feet in exposed height commonly require an engineered design and a permit. Soil pressure, plus hydrostatic water pressure if drainage fails, is a genuine structural load. A wall that’s built too thin, set on a poorly prepared base, or missing drainage can lean, crack, or collapse, which is a real safety hazard to anyone standing near it. If your wall approaches or exceeds 4 feet, or sits close to a structure, slope, or property line, check with your local building department before you dig.
Blocks
- Blocks per row
- 20
- Rows
- 9
- Blocks needed (incl. waste)
- 198
180 blocks before waste, plus a 10% allowance for cuts and breakage.
Drainage backfill gravel
- Gravel needed
- 2.22 cu yd
Based on a 1 ft wide drainage zone running the full length and height of the wall. This is what carries water away from behind the wall instead of letting pressure build up against it.
Why a Permit Threshold Exists at All
A retaining wall isn’t decorative. It’s holding back the full weight of the soil (and, if drainage fails, water) behind it, which is why jurisdictions draw a line above which an engineer has to sign off. Below roughly 4 feet, the soil pressure a typical segmental block wall generates is modest enough that a well-built gravity wall (one that holds back the load through its own weight and batter, with no engineering or reinforcement) is generally considered safe using standard manufacturer specs. Cross that threshold, add a slope above the wall, or build near a structure or property line, and the pressure, or the consequences of getting it wrong, escalates enough that most codes require a stamped design. That’s not bureaucracy for its own sake; it’s the same physics the block count and backfill gravel below are trying to get right at any height.
Counting Blocks and Backfill Together
Get the wall’s footprint in blocks first: blocks per row comes from wall length divided by block width, rows come from wall height divided by block height, and multiplying the two gives you a raw block count before waste.
Blocks per row = (Wall length ft × 12) ÷ Block width in, rounded up Rows = (Wall height ft × 12) ÷ Block height in, rounded up Total blocks = Blocks per row × Rows, then add a waste allowance for cuts and breakage
Behind that block face, size a vertical zone of clean, free-draining gravel running the wall’s full length and height. This is what carries water safely away instead of letting it saturate the soil and build hydrostatic pressure against the back of the wall.
Backfill gravel (cubic yards) = (Wall length ft × Wall height ft × Backfill width ft) ÷ 27
The standard convention for segmental retaining wall systems is a 12-inch-wide (1 ft) backfill zone; that width is adjustable in the calculator above if your design or manufacturer specifies something different. Most systems also pair this gravel zone with a perforated drain pipe at the base that daylights out to open air, so the water this gravel collects actually has somewhere to go. Gravel without an outlet just becomes a bathtub.
Example: A 20 ft long, 3 ft tall wall, using a common 12 in wide × 4 in high face block, a 1-ft-wide backfill zone, and 10% block waste.
Blocks per row: (20 × 12) ÷ 12 = 20 Rows: (3 × 12) ÷ 4 = 9 Blocks before waste: 20 × 9 = 180 → with 10% waste: 198 blocks Backfill gravel: 20 × 3 × 1 ÷ 27 = 2.22 cubic yards
A Note on the Height Input
Enter your wall’s total height, including any base course that will end up buried below grade, not just the portion that will be visible once the project is finished. Segmental retaining walls are typically set with their first course buried a few inches to a foot below grade for stability, and that buried course still needs blocks and still adds to your row count. If you only measure the exposed face, you’ll under-order.
Waste Allowance and Block Selection
10% is a reasonable default for a straight run with square corners. Push that closer to 15–20% if your wall curves, steps up a slope, or wraps corners, since angled and stepped cuts waste more material than a straight run. Block width and height vary by manufacturer. Always check the actual face dimensions of the specific product you’re buying rather than assuming a nominal size, since even small differences compound across dozens of courses.
Drainage Is What Decides Whether the Wall Lasts
The load a retaining wall has to resist is not just the weight of the soil behind it. Saturated soil is far heavier than dry soil, and water trapped behind a wall adds hydrostatic pressure that pushes outward with no relief. Most failed residential walls did not fail because the blocks were wrong. They failed because the water had nowhere to go.
Three things handle it, and all three are ordered separately from the blocks:
- Free-draining backfill directly behind the wall, usually 12 inches of clean angular stone. This is the same material distinction covered on the gravel calculator: use a uniform washed stone that keeps its voids, not a well-graded crusher run whose fines would blind the drainage you just installed.
- A perforated drain pipe at the base of that stone, sloped to daylight or to a drain, so collected water actually leaves rather than pooling at the bottom course.
- Geotextile fabric between the drainage stone and the retained soil, which stops fine soil particles migrating into the stone and silting it up over a few seasons.
Skipping the fabric is the quiet failure. The wall drains perfectly for two or three years while silt gradually fills the voids, and then stops draining at the point where nobody connects the bulge in the wall to a decision made during construction.
Frequently Asked Questions
- How tall can a retaining wall be without an engineered design or permit?
- In most U.S. jurisdictions, walls up to about 4 feet in exposed height can typically be built without an engineered design or permit, though this varies by location. Anything taller, or a wall near a structure, slope, or property line, commonly requires stamped engineering drawings and a permit. Always confirm the exact threshold with your local building department before you dig.
- Why does a retaining wall need gravel backfill behind it?
- Soil holds water, and saturated soil pushes on a wall with far more force than dry soil (hydrostatic pressure). A zone of free-draining gravel directly behind the wall, paired with a drain pipe or weep holes, lets that water escape instead of building up pressure, which is one of the most common reasons under-engineered retaining walls lean or fail.
- What's a standard size for retaining wall blocks?
- Segmental retaining wall blocks vary by manufacturer, but a common face size is about 12 inches wide by 4 inches high, which is what this calculator defaults to. Always check the actual dimensions of the block you're buying, since sizes and setback (the back-to-front lean built into each course) differ between product lines.
- How much extra should I order for block waste?
- 10% is a reasonable default for a straight wall with square corners. Budget more, 15% or higher, for walls with curves, corners, steps in grade, or if you're a first-time installer, since cuts and breakage add up faster than expected.
This calculator provides planning estimates only. Retaining wall design carries real structural loads from soil and water pressure, and a wall that's undersized or missing drainage can fail. Always verify code-critical dimensions with your local building department or a licensed professional before construction.
Written by: The CubedCalc Team. We research and fact-check every calculator using manufacturer specs, building codes, and industry references. We are not licensed contractors or engineers; always verify code-critical dimensions with your local building department or a licensed professional before construction.