Retaining Wall Calculator

Last updated: 2026-09-09

Retaining Wall Calculator — Free online retaining wall calculator. Enter wall length and wall height to get instant results.
Inputs
Result
Enter values and press Calculate
Common Examples — Click to Fill
Wall lengthWall heightBlock lengthBlock height
Small wall 30.92020
Medium wall 4.50.92020
Large wall 60.92020
Room 90.92020
House perimeter 120.92020

TL;DR: To calculate the materials for a retaining wall, divide the wall height by the block height and round up to get the number of courses, divide the wall length by the block length and round up to get the blocks per course, then multiply those two numbers together; for a 6 m long by 0.9 m high wall with 0.4 m x 0.2 m blocks, you need 75 blocks and approximately 1.1 tonnes of base gravel.

What Is the Retaining Wall Calculator?

The Retaining Wall Calculator is a free online tool designed to eliminate guesswork when planning a landscaping or hardscaping project. It takes two primary inputs—Wall Length and Wall Height—and instantly returns the number of blocks required, the number of courses (rows) high the wall will be, and the volume and weight of base gravel needed for a proper foundation. This is not a structural engineering tool; it is a materials estimation tool for segmental retaining walls (SRW) commonly used in gardens, driveways, and terraces.

Who needs this calculator? Homeowners planning a DIY weekend project, landscapers quoting a job, and contractors ordering bulk materials will all benefit. Without a calculator, a typical mistake is underestimating the number of blocks by 10–15% because they forget to account for cuts, breakage, or the need to bury the first course. This tool ensures you buy the right quantity the first time, avoiding costly trips to the hardware store and project delays.

How to Use the Calculator

Using the retaining wall calculator is a straightforward process that takes less than a minute. Follow these steps to get accurate results for your specific project.

  1. Enter the Wall Length: Input the total horizontal length of the retaining wall in meters (e.g., 6). This is the distance the wall will span, measured along the ground where the wall will sit. Do not include the buried portion in this measurement; length is a surface dimension.
  2. Enter the Wall Height: Input the total vertical height of the wall above the finished grade level in meters (e.g., 0.9). This is the exposed height of the wall, not including the base course that will be buried underground.
  3. Click Calculate: Press the button to process your inputs. The calculator will instantly compute the number of courses, the number of blocks per course, the total block count, and the base gravel requirements.
  4. Review the Output: Your results will show the total number of blocks (already rounded up to the nearest whole block), the volume of gravel in cubic meters, and the equivalent weight in tonnes. Add a 5–10% overage to the block count when ordering to cover cuts and breakage.

Formula and Calculation Method

The calculator uses a simple geometric method based on standard modular block dimensions. The formula assumes you are using standard retaining wall blocks that are 0.4 meters (400 mm) long and 0.2 meters (200 mm) high. This is the industry standard size for segmental retaining wall units.

The calculation is performed in four distinct steps:

  • Step 1: Calculate Courses High. Divide the wall height by the block height and round up to the nearest whole number. Formula: Courses = CEILING(Wall Height ÷ Block Height). For a 0.9 m wall with 0.2 m blocks, this is CEILING(0.9 ÷ 0.2) = CEILING(4.5) = 5 courses. You cannot have half a course, so you round up to 5, which means the actual built wall will be 1.0 m high (5 × 0.2 m), with the extra 0.1 m buried below grade.
  • Step 2: Calculate Blocks per Course. Divide the wall length by the block length and round up. Formula: Blocks per Course = CEILING(Wall Length ÷ Block Length). For a 6 m wall with 0.4 m blocks, this is CEILING(6 ÷ 0.4) = CEILING(15) = 15 blocks.
  • Step 3: Calculate Total Blocks. Multiply the number of courses by the number of blocks per course. Formula: Total Blocks = Courses × Blocks per Course. In our example: 5 courses × 15 blocks = 75 total blocks.
  • Step 4: Calculate Base Gravel. The calculator assumes a base gravel depth of 200 mm (20 cm) and a trench width that is 600 mm (0.6 m) wide—wider than the block itself to provide a stable footing. Formula: Gravel Volume = Wall Length × Trench Width × Gravel Depth. For our example: 6 m × 0.6 m × 0.2 m = 0.72 cubic meters. To convert volume to weight, the calculator uses an approximate density of 1.5 tonnes per cubic meter for compacted gravel, giving 0.72 m³ × 1.5 = 1.08 tonnes, rounded to 1.1 tonnes for easy ordering.

Worked Example with Real Numbers: Let's say you're building a garden terrace wall that is 4.8 meters long and 0.8 meters high.

  • Courses: CEILING(0.8 ÷ 0.2) = CEILING(4) = 4 courses.
  • Blocks per Course: CEILING(4.8 ÷ 0.4) = CEILING(12) = 12 blocks.
  • Total Blocks: 4 × 12 = 48 blocks.
  • Gravel Volume: 4.8 × 0.6 × 0.2 = 0.576 m³ (approximately 0.86 tonnes).

Practical Examples

To help you understand how the calculator applies to different scenarios, here are three realistic examples. Each uses the standard block size of 400 mm × 200 mm.

Project TypeWall Length (m)Wall Height (m)CoursesBlocks per CourseTotal BlocksGravel (m³ / tonnes)
Flower Bed Border3.00.428160.36 m³ / 0.5 t
Driveway Terrace9.00.6323691.08 m³ / 1.6 t
Sloped Garden Support12.01.26301801.44 m³ / 2.2 t

Interpretation: In the flower bed example, a 3 m long by 0.4 m high wall requires only 16 blocks—a manageable weekend project. In contrast, the sloped garden support at 1.2 m height requires 180 blocks. Note that the wall height of 1.2 m triggers the critical engineering rule: any wall over 0.9 m (3 feet) typically requires a geogrid reinforcement or an engineered design, which the calculator does not account for. Always consult a structural engineer for walls taller than 90 cm.

Tips for Accurate Results

To get the most reliable estimates from the calculator, follow these practical tips based on common field errors and unit considerations.

  • Bury the First Course: A common mistake is to ignore the burial depth. The calculator rounds up the courses, which inherently handles some burial, but for a 0.9 m exposed wall, you should plan to bury at least 0.1 m (10% of the height) below grade. In our example, the 5 courses give you 1.0 m total height; the extra 0.1 m is your buried course. If your height is exact (e.g., 0.8 m wall producing exactly 4 courses), you must plan to dig a trench and add a partial or extra buried course manually.
  • Always Add 5–10% Overage: The calculator returns exact numbers, but reality requires cuts at corners and ends. For a 75-block wall, order 80–83 blocks. This covers breakage and allows for slight miscalculations in field layout.
  • Include Drainage Material: For walls taller than 0.6 m, you need drainage gravel behind the wall (not just underneath) and a perforated drain pipe at the base. The calculator only estimates the base gravel. A good rule is to add 0.5 m³ of drainage aggregate for every 3 meters of wall length for proper backfill.
  • Use Approved Blocks for Tall Walls: For walls exceeding 0.9 m in height, the calculator's assumption of standard 400×200 blocks may be inadequate. You must switch to engineered retaining wall blocks or add reinforcement. Never use standard landscaping edging blocks for a 1.5 m tall wall—this is a serious safety hazard.
  • Check Your Units: The calculator uses metric units exclusively. If you measure in feet and inches, convert to meters first. For example, a 6-foot wall is 1.83 meters; a 20-foot wall is 6.1 meters. Miscalculating by a factor of 3 (feet vs. meters) will drastically affect your block count.
  • Sloped Ground Adjustments: The calculator assumes a level surface. If your wall is built on a slope, you may need to "step" the wall. This increases material needs by roughly 5% per every 10 cm of elevation change across the wall length. Adjust your length input up by this factor.

Frequently Asked Questions

How many retaining wall blocks do I need for a 20-foot by 3-foot wall?

First, convert to metric: 20 feet is 6.1 meters, and 3 feet is 0.9 meters. Using the calculator: Courses = CEILING(0.9 / 0.2) = 5 courses. Blocks per course = CEILING(6.1 / 0.4) = 16 blocks (since 6.1 / 0.4 = 15.25, rounded up). Total blocks = 5 × 16 = 80 blocks. With the 10% overage allowance, you should purchase 88 blocks. For the base gravel, you need 6.1 m × 0.6 m × 0.2 m = 0.73 m³, which is roughly 1.1 tonnes of gravel. Remember, because your wall height is exactly 0.9 m, the 5-course wall will be 1.0 m high, meaning the extra 0.1 m will be buried below grade, satisfying the 10% burial requirement automatically.

Do I need a drainage pipe behind a retaining wall?

Yes, for walls exceeding 0.6 m (2 feet) in height, a drainage system is critical. Hydrostatic pressure from water-saturated soil is the number one cause of retaining wall failure. The calculator only estimates base material. You need to install a 100 mm (4 inch) perforated drainage pipe along the base of the wall, wrapped in geotextile fabric to prevent clogging. Additionally, place 150–300 mm of clear crushed rock (10–20 mm aggregate) directly behind the wall blocks to allow water to travel down to the pipe. For walls under 0.6 m, you can skip the pipe but still add gravel backfill. Failure to add drainage leads to bulging, cracking, or catastrophic collapse after heavy rainfall.

Can the calculator handle curved or angled retaining walls?

No, this calculator is designed for straight, level walls only. For a curved wall, you need to measure the centerline length of the curve (the longest path) and enter that into the "Wall Length" field. However, curved walls require more blocks because the inside radius uses the block's narrower edge, creating sawtooth gaps that must be filled with either mortar or specially shaped blocks. A typical rule of thumb is to increase the total block count by 10–15% for curved walls. For angled walls (e.g., L-shapes or corners), you will need to calculate each leg separately and then add them together, accounting for the corner block which will be shared. Always physically lay out the first course of blocks on the ground before buying the full quantity to verify the fit and count.

Related Calculators