The Handy Calculators logoTheHandyCalculators

    Retaining Wall Calculator

    Blocks, courses, caps, base and drainage gravel tons, and material plus installed cost.

    Autosave on
    Wall face area (sq ft)
    90
    Courses of block
    5
    Blocks per course
    30
    Total blocks with waste
    158
    Cap blocks (top course)
    30
    Base + drainage gravel (cu yd)
    4.44
    Base + drainage gravel (tons)
    6.22
    Block cost
    $711
    Gravel cost
    $199
    Total material cost
    $910
    Installed cost estimate range
    $2,250 – $5,400
    Engineering / permit likely
    Usually not required

    A segmental block retaining wall is deceptively simple to price and genuinely easy to build wrong: the block count is straightforward arithmetic, but the base trench, the drainage gravel behind the wall, and the height at which an engineer becomes legally necessary are the parts that decide whether the wall stands for thirty years or bulges after two wet winters. This calculator converts wall length and exposed height into courses, blocks per course, total blocks with waste, cap blocks, base and drainage gravel in cubic yards and tons, and both a material cost and an installed cost range — plus a flag for when the height puts you into engineered-wall and permit territory.

    How the block and gravel quantities are calculated

    Course count is exposed wall height converted to inches and divided by the block height, rounded up. A 3-foot wall built from 8-inch-tall block needs 36 ÷ 8 = 4.5, rounded to 5 courses. In practice the bottom course is buried, so the total course count is usually one more than the exposed height alone suggests — a point covered in the base burial guidance below.

    Blocks per course is wall length in inches divided by the block's face length, rounded up. A 30-foot wall built from 12-inch-face block needs 360 ÷ 12 = 30 blocks per course. Blocks with a tapered or trapezoidal face have a face length shorter than their overall length; use the face dimension the manufacturer publishes for straight runs, since that is what determines linear coverage.

    Total blocks is courses multiplied by blocks per course, plus a waste allowance. Five percent is reasonable for a straight wall; 8% to 10% is safer for walls with curves, corners, or step-downs, because every curve requires cutting and every cut wastes part of a block. Cap blocks are counted separately as one additional course across the full length, since caps are a different product at a different price.

    Leveling base gravel fills the trench under the first course. Volume is wall length multiplied by trench width multiplied by trench depth, all in feet. A 30-foot wall with a 24-inch-wide, 6-inch-deep trench needs 30 × 2 × 0.5 = 30 cubic feet. The base should extend at least 6 inches beyond the block face on both the front and back sides, which is why the default trench width is roughly twice the block depth.

    Drainage backfill sits directly behind the wall for its full height, and this calculator allows a 12-inch-wide column of clean angular gravel from the base to the top of the wall — 30 × 1 × 3 = 90 cubic feet on the example wall. Total gravel is base plus drainage, converted to cubic yards by dividing by 27, and to tons using roughly 2,800 pounds per cubic yard for crushed stone.

    Worked example: a 30-foot, 3-foot-tall block wall

    Consider a garden terrace wall 30 feet long and 3 feet of exposed height, built from a common 12-inch-face by 8-inch-tall segmental retaining wall block priced at $4.50 each, with a 24-inch-wide by 6-inch-deep leveling base and a 5% waste allowance.

    Courses: 36 inches of exposed height ÷ 8 inches per block = 4.5, rounded up to 5 courses. Blocks per course: 360 inches ÷ 12 = 30. Base block count is 5 × 30 = 150, and adding 5% waste gives 158 blocks. Cap blocks add another 30 units across the top.

    Wall face area is 30 × 3 = 90 square feet, which is the figure most contractors use to bid the job. Block cost at $4.50 each is 158 × 4.50 = $711 before caps, and caps typically run $6 to $9 each, adding roughly $180 to $270 more.

    Gravel: base trench volume is 30 × 2 × 0.5 = 30 cubic feet, and the drainage column behind the wall is 30 × 1 × 3 = 90 cubic feet, totaling 120 cubic feet or 4.44 cubic yards. At 2,800 pounds per cubic yard, that is (4.44 × 2,800) ÷ 2,000 = 6.22 tons. At $32 per ton, gravel costs about $199.

    Total materials land near $1,090 including caps, plus perforated drain pipe, geotextile fabric, and construction adhesive for the cap course — figure another $100 to $200. Installed, at the $25 to $60 per square foot range typical for segmental walls in 2026, the same 90-square-foot wall would bid between $2,250 and $5,400, which is a useful reminder that on retaining walls the labor and excavation, not the block, dominate the price.

    Base preparation, drainage, and burial depth

    The rule of thumb professionals use is to bury one inch of wall for every foot of exposed height, with a minimum of one full course below finished grade. A 3-foot wall gets roughly 3 to 8 inches buried, which usually means the entire bottom course sits below grade. Burial resists the soil's tendency to kick the base of the wall outward, and it is not optional on any wall that retains real load.

    The leveling pad beneath the first course should be 6 inches of compacted crushed stone, extended at least 6 inches beyond the block on both faces, and it must be flat and level to within a fraction of an inch. Every error in the first course is amplified in every course above it, which is why experienced installers spend a disproportionate share of the project's time on the base and consider it time well spent.

    Drainage is what actually kills failed walls. Soil behind a wall becomes dramatically heavier when saturated, and the hydrostatic pressure from trapped water can exceed the lateral earth pressure the wall was designed for. A 12-inch column of clean, angular, free-draining gravel behind the block, separated from the native soil by a geotextile fabric so fines cannot migrate in and clog it, gives water a path down.

    A perforated drain pipe — 4-inch corrugated or rigid PVC, holes facing down, wrapped in filter sock — should sit at the base of that gravel column and daylight to open ground at the wall's low end or into a drainage system. A gravel column that drains into a sealed trench simply relocates the problem to the bottom of the wall.

    Backfill should be placed and compacted in lifts of no more than 8 inches as the wall rises, with compaction done using a hand tamper within 3 feet of the wall face rather than a heavy plate compactor, which can push the block forward. Compacting the full height at the end, rather than in lifts, leaves voids that settle later and pull the wall backward at the top.

    Geogrid reinforcement — layers of structural mesh extending back into the retained soil at specified vertical intervals — is what allows a segmental wall to exceed about 3 to 4 feet safely. Geogrid length, spacing, and strength are engineering decisions based on soil type, surcharge loads, and wall height, and are exactly what an engineer's design specifies.

    When you need an engineer and a permit

    Most U.S. jurisdictions require a building permit and an engineered design for retaining walls above 4 feet in total height measured from the bottom of the footing to the top of the wall — note that this is total height, not exposed height, so a wall showing 3.5 feet with 8 inches buried is already at the threshold. Some cities set the trigger at 3 feet, and a few require permits for any retaining wall.

    Surcharge loads lower the threshold sharply. If a driveway, parking area, pool, structure, or slope sits above the wall, the additional load pressing on the retained soil can require engineering at heights well below 4 feet. Walls supporting a driveway are a common case where a homeowner-buildable height becomes an engineered wall.

    Tiered walls are treated by most codes as a single wall when the horizontal separation between tiers is less than roughly twice the height of the lower tier. Building two 3-foot walls a few feet apart to avoid the 4-foot engineering trigger generally does not work as an evasion and creates a genuinely more complex loading condition.

    Engineered designs typically cost $500 to $2,500 depending on wall complexity, and the design will specify geogrid layers, block type, base depth, drainage detail, and backfill material. Building without required engineering exposes the owner to stop-work orders, forced removal, insurance denial after a failure, and disclosure obligations at sale — a poor trade for the design fee saved.

    Property lines, easements, and setbacks matter as much as height. A retaining wall near a boundary can trigger survey requirements, neighbor notification, or setback compliance, and a wall that alters drainage onto an adjoining property creates liability regardless of whether it was permitted.

    Costs, materials, and common mistakes

    Standard segmental retaining wall block runs $3 to $8 per unit in 2026 depending on size, face texture, and manufacturer, with large-format and premium-face units running higher. Cap blocks typically cost $6 to $12 each. Poured concrete walls cost more per square foot but can be thinner and taller; treated timber walls are the cheapest option up front and the shortest-lived, generally 15 to 20 years.

    Installed pricing for segmental block walls generally runs $25 to $60 per square foot of wall face in 2026, with the low end applying to simple, short, accessible garden walls and the high end to tall engineered walls requiring geogrid, extensive excavation, or difficult access. Excavation and haul-away of spoil is frequently the largest single cost surprise on a residential wall project.

    The most common building mistake is skipping or shortcutting the drainage gravel and pipe, usually to save a few hundred dollars. It is the single strongest predictor of failure, because a wall with no drainage path holds water, and saturated soil weighs roughly 20% more than dry soil while also exerting hydrostatic pressure the wall was never designed to resist.

    Using the wrong backfill is closely related. Native clay backfilled directly against the block holds water, swells when wet, and transmits frost pressure straight into the wall. Clean angular crushed stone in the drainage zone is not a place to economize with whatever soil came out of the excavation.

    Building on an uncompacted or unlevel base is the mistake with the most visible consequences. A base that settles unevenly makes the wall lean, and because segmental walls rely on the interlocking geometry of stacked units, a lean that begins in the base course grows with every course above it.

    Finally, underestimating waste on curved walls catches many homeowners mid-project. Curves require cutting nearly every block on the inside radius, and a 5% allowance sized for a straight run will leave a curved wall short. Order 10% extra when the wall curves, and confirm the manufacturer's minimum radius before designing a tight curve at all.

    Frequently asked questions

    How many blocks do I need for a retaining wall?

    Divide the wall height in inches by the block height to get courses, divide the wall length in inches by the block face length to get blocks per course, then multiply the two and add 5% to 10% for waste. This calculator does that and counts cap blocks separately.

    How tall can a retaining wall be without an engineer?

    Most U.S. jurisdictions allow up to 4 feet of total height — measured from the bottom of the footing, not from grade — before requiring an engineered design and permit. Some cities set the trigger at 3 feet, and surcharge loads above the wall lower it further.

    How much gravel do I need behind a retaining wall?

    Plan on a 12-inch-wide column of clean angular gravel behind the block for the full wall height, plus a 6-inch-deep leveling base extending 6 inches beyond the block on each face. This calculator totals both in cubic yards and tons.

    How deep should the base of a retaining wall be?

    The leveling pad should be 6 inches of compacted crushed stone. Additionally, bury about 1 inch of wall per foot of exposed height, with a minimum of one full course below finished grade.

    How much does a retaining wall cost per square foot?

    Installed segmental block walls typically cost $25 to $60 per square foot of wall face in 2026. Simple short garden walls sit at the low end; tall engineered walls with geogrid and heavy excavation reach the top of the range or beyond.

    Do retaining walls need drainage?

    Yes, essentially always. Saturated soil weighs about 20% more than dry soil and adds hydrostatic pressure. A clean gravel drainage column, geotextile fabric, and a perforated drain pipe that daylights to open ground are what keep a wall standing.

    What is geogrid and when is it required?

    Geogrid is structural mesh laid in horizontal layers extending back into the retained soil, tying the soil mass and the wall together. It is generally required above about 3 to 4 feet, with spacing, length, and strength set by an engineer's design.

    Can I build two short walls instead of one tall one?

    Not as a way around engineering requirements. Most codes treat tiered walls as a single structure when the horizontal separation is less than roughly twice the lower tier's height, and tiering creates a more complex loading condition, not a simpler one.

    How many cap blocks do I need?

    One course across the full wall length — the same count as blocks per course. Caps are a separate product typically costing $6 to $12 each and are usually set with masonry construction adhesive rather than dry-stacked.

    What is the best backfill for a retaining wall?

    Clean, angular, free-draining crushed stone in the drainage zone directly behind the block, separated from native soil by geotextile fabric. Never backfill with the clay that came out of the excavation — it holds water and swells.

    How much waste should I add to a retaining wall block order?

    Five percent for a straight run, and 8% to 10% for walls with curves, corners, or step-downs, since curves require cutting nearly every block on the inside radius.

    How long does a block retaining wall last?

    A properly built segmental block wall with correct base preparation and drainage commonly lasts 50 to 100 years. Treated timber walls generally last 15 to 20 years, and poorly drained block walls can begin bulging within a few seasons.

    Do I need a permit for a retaining wall?

    Usually yes above the local height threshold, commonly 4 feet, and sometimes for any retaining wall. Permits are also frequently triggered by surcharge loads above the wall, proximity to property lines, or changes to drainage patterns.

    Why do retaining walls fail?

    Overwhelmingly because of water. Missing or clogged drainage, clay backfill against the block, and no perforated drain pipe are the leading causes, followed by an uncompacted or unlevel base and insufficient burial at the bottom course.

    By Larius software engineer, NC real estate broker & CRE/business appraiserLast reviewed: August 2026Reviewed by the Handy Calculators editorial teamHow we build calculators

    More in Exterior & Structures

    Outdoor builds and replacements: roofing squares, fence panels and posts, deck boards and joists, and asphalt driveway tonnage.

    See hub →
    Browse all Home →