Retaining Wall Calculator

Calculate materials needed for your retaining wall

Wall Specifications

Walls over 4' may require engineering
Important Notes
• Excavate and compact base
• Use 6" gravel base
• Install drainage behind wall
• Check local codes for walls over 4'

Materials Needed

Wall Coverage
80 sq ft
Standard Block
240
Cap Blocks
20 blocks
Base Gravel
1.04 tons
0.74 cubic yards
Backfill Gravel (drainage)
4.15 tons
2.96 cubic yards
Drain Pipe (4")
20 feet
Estimated Total Cost
$1075.56
Materials only, labor not included

What is a Retaining Wall Calculator?

A retaining wall calculator is a construction estimation tool that determines the materials needed to build a retaining wall, including the number of blocks or stone, cap blocks, base gravel, backfill drainage material, and drain pipe. Retaining walls hold back soil on sloped properties, create level terraces for landscaping, and prevent erosion on hillsides. Accurate material estimation is critical for these projects because under-ordering leads to costly delays while over-ordering wastes money on materials that cannot always be returned.

The calculator takes into account the wall dimensions (length and height), the type of wall construction (concrete block, landscape timber, or natural stone), and whether cap blocks are needed to finish the top of the wall. It computes the total wall face area, then determines how many blocks are required based on the block dimensions and coverage rate. For stone walls, the calculator estimates the total tonnage needed based on the coverage per ton.

Beyond the visible wall structure, a properly built retaining wall requires significant foundation and drainage work that many homeowners overlook. The calculator estimates the gravel base needed for a stable foundation (typically 6 inches deep and 2 feet wide), backfill gravel for drainage behind the wall (usually 1 foot wide), and perforated drain pipe to relieve hydrostatic pressure. These hidden components are essential for wall longevity, as water pressure is the leading cause of retaining wall failure.

Cost estimation is built into the calculator, providing approximate material costs based on current market prices. This helps property owners budget accurately and compare quotes from contractors. The estimates cover block or stone costs, cap blocks, base and backfill gravel, drain pipe, and landscape fabric.

The Retaining Wall Formula

The primary calculation determines the total wall face area by multiplying the wall length by the wall height. This area is then used to compute the number of blocks or the tonnage of stone needed, depending on the wall type selected. For block and timber walls, the number of blocks per row and the number of rows are calculated separately, then multiplied to get the total block count.

The gravel base volume is calculated as the wall length times the base width (2 feet) times the base depth (6 inches), converted to cubic yards. Backfill gravel is estimated as the wall length times 1 foot width times the wall height, also converted to cubic yards. Both volumes are then converted to tons using a standard gravel density of 1.4 tons per cubic yard.

Retaining Wall Material Formula

Blocks = ceil((L × 12) / blockW) × ceil((H × 12) / blockH)

Where:

  • L= Wall length in feet
  • H= Wall height in feet
  • blockW= Block width in inches
  • blockH= Block height in inches

Retaining Wall Types and Materials

There are three primary retaining wall construction methods supported by this calculator, each with distinct advantages, cost profiles, and engineering requirements.

Concrete Block walls are the most common for residential projects. Standard concrete retaining wall blocks are typically 12 inches wide, 4 inches tall, and 8 inches deep. They interlock with a lip system and are relatively easy to install without mortar for walls under 4 feet. The calculator estimates approximately 1.125 blocks per square foot of wall face. Cost runs about $3 per block on average.

Landscape Timber walls use treated wood beams stacked and pinned together. Timbers are typically 8 inches wide, 6 inches tall, and come in 8-foot lengths. They have a more natural appearance and work well in garden settings. The calculator estimates approximately 4 timbers per square foot at a cost of about $8 per timber. Timber walls typically have a shorter lifespan than concrete or stone.

Natural Stone walls provide the most attractive and longest-lasting option. Stone coverage varies significantly by stone type and size, but the calculator uses a standard estimate of 40 square feet per ton. Natural stone walls cost significantly more at approximately $100 per ton but create a premium appearance that increases property value.

For all wall types, cap blocks are recommended to finish the top of the wall. Cap blocks protect the wall from water infiltration and provide a finished appearance. The calculator automatically determines the number of cap blocks needed based on the wall length and block width.

How to Use This Calculator

Follow these steps to estimate materials and costs for your retaining wall project:

  1. Enter Wall Length: Measure the total length of the retaining wall in feet. This is the horizontal distance the wall will span along the slope.
  2. Enter Wall Height: Measure the vertical height of the wall from the bottom of the base to the top of the wall. Note that walls over 4 feet typically require engineering and permits in most jurisdictions.
  3. Select Wall Type: Choose between Concrete Block, Landscape Timber, or Natural Stone. The calculator adjusts block dimensions, coverage rates, and material costs accordingly.
  4. Choose Cap Blocks: Select Yes or No for cap blocks. Cap blocks are highly recommended for both appearance and durability, as they prevent water from entering the top of the wall.
  5. Review Results: The calculator displays the total wall area, number of blocks or tons of stone, cap blocks needed, base gravel, backfill gravel, drain pipe length, and total estimated cost. The cost estimate includes all materials but excludes labor.

Real-World Applications

Retaining walls serve numerous practical purposes in residential and commercial construction. The most common application is creating level yard space on sloped properties. By terracing a hillside with one or more retaining walls, homeowners can create usable flat areas for gardens, patios, play areas, or additional structures. This effectively increases the usable square footage of a property.

Erosion control is another critical application. Retaining walls prevent soil from washing away during heavy rains, protecting foundations, driveways, and landscapes. In areas with steep slopes or unstable soil, properly engineered retaining walls can prevent landslides and protect property from damage.

Driveway and walkway construction often requires retaining walls to create level approaches or to manage grade changes. Commercial projects use retaining walls for parking lot construction, building pads, and stormwater management. The structural requirements for commercial retaining walls are significantly more demanding than residential applications and typically require licensed engineering.

Worked Examples

Basic Concrete Block Wall

Problem:

Calculate materials for a 20-foot long, 4-foot high concrete block retaining wall with cap blocks.

Solution Steps:

  1. 1Wall area = 20 × 4 = 80 sq ft
  2. 2Blocks per row = ceil(20 × 12 / 12) = 20 blocks
  3. 3Rows = ceil(4 × 12 / 4) = 12 rows
  4. 4Total blocks = 20 × 12 = 240 blocks
  5. 5Cap blocks = 20 blocks
  6. 6Base gravel = (20 × 2 × 6/12) / 27 = 0.74 cu yd = 1.03 tons

Result:

240 blocks, 20 cap blocks, 1.03 tons base gravel, 0.37 tons backfill gravel, 20 ft drain pipe

Landscape Timber Wall Cost

Problem:

What is the estimated material cost for a 15-foot long, 3-foot high landscape timber wall with caps?

Solution Steps:

  1. 1Wall area = 15 × 3 = 45 sq ft
  2. 2Timbers per row = ceil(15 × 12 / 8) = 23 timbers
  3. 3Rows = ceil(3 × 12 / 6) = 6 rows
  4. 4Total timbers = 23 × 6 = 138 timbers
  5. 5Timber cost = 138 × $8 = $1,104
  6. 6Add caps, gravel, drain pipe, and fabric for total cost

Result:

Estimated total cost approximately $1,350 for all materials

Stone Wall Estimation

Problem:

How many tons of natural stone are needed for a 25-foot long, 5-foot high stone wall?

Solution Steps:

  1. 1Wall area = 25 × 5 = 125 sq ft
  2. 2Stone coverage = 40 sq ft per ton
  3. 3Tons needed = ceil(125 / 40) = 4 tons
  4. 4Stone cost = 4 × $100 = $400
  5. 5Add base gravel, backfill, and drain pipe costs

Result:

4 tons of stone required, estimated material cost approximately $850 total

Tips & Best Practices

  • Always excavate the base trench at least 6 inches deeper than the base gravel depth to allow for proper compaction.
  • Compact the gravel base in 2-inch lifts using a plate compactor for maximum stability.
  • Install the drain pipe at the base of the wall with perforations facing down, covered with filter fabric.
  • Backfill behind the wall with clean gravel, not native soil, to ensure proper drainage.
  • Check local building codes before starting, as permits may be required for walls over 3-4 feet.
  • Add 10-15% extra material to account for cuts, breakage, and waste during installation.

Frequently Asked Questions

Most local building codes require engineering for retaining walls over 3 to 4 feet in height, depending on the jurisdiction. Walls under 4 feet are generally considered safe for gravity-based construction without professional engineering. However, soil conditions, water drainage, and surcharge loads (such as driveways or structures above the wall) may require engineering even for shorter walls. Always check with your local building department before beginning construction.
Crushed stone or road base gravel with particles ranging from 3/4 inch down to dust is the ideal base material. This type compacts tightly and provides excellent drainage. Avoid rounded river rock or pea gravel, as these do not compact well and can shift under load. The base should be 6 inches deep for walls up to 4 feet and compacted in 2-inch lifts for maximum stability.
Yes, a perforated drain pipe behind the retaining wall is essential for long-term wall stability. Water pressure buildup behind a wall is the leading cause of retaining wall failure. The drain pipe should be placed at the base of the wall in a gravel-filled trench, with the perforations facing down. The pipe should outlet to daylight or connect to a storm drainage system.
Material costs for a DIY retaining wall range from $5 to $15 per square foot for block walls, $8 to $20 per square foot for timber walls, and $20 to $50 per square foot for natural stone. Professional installation typically doubles these costs. A typical 20-foot long, 4-foot high concrete block wall costs approximately $1,200 to $2,400 for materials only.
Retaining walls under 4 feet in height can often be built by experienced DIYers, though they require significant physical labor and careful attention to base preparation and drainage. Walls over 4 feet, walls supporting structures, or walls in challenging soil conditions should be designed by a licensed engineer and built by experienced contractors. Permits are typically required for walls over a certain height.

Sources & References

Last updated: 2026-06-06

💡

Help us improve!

How would you rate the Retaining Wall Calculator?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: Standard Mathematical References

by Various

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.

Privacy choices

MyCalcBuddy uses necessary storage for the site to work. Optional analytics, notifications, and future advertising features stay off unless you allow them.