Calculators · Retaining Wall Calculator

Concrete & Masonry

Retaining Wall Calculator

Enter wall length and height, pick a block, and get blocks, caps and gravel. It counts pieces and is not a wall design.

Wall section 1
Length
Height above ground

Pick the block you plan to use.

Versa-Lok says to embed the first course about 1/10th of the exposed height.

Optional. Filled for Versa-Lok. Empty means no caps.

Optional. For cuts and breakage. Empty means 0.

Versa-Lok and Allan Block both give 6. Empty skips the base.

Versa-Lok and Allan Block both give 24.

Versa-Lok and Allan Block both give 12. Empty skips it.

How to calculate how many retaining wall blocks you need

Segmental retaining wall blocks are dry stacked in courses, which are the horizontal rows. So the count is the number of courses times the number of blocks in each one. Work in inches and round up each step, because you cannot buy part of a block. The first course goes below grade, so it counts too.

StepFormula
1. Total heightheight above ground + buried part (in)
2. Coursestotal height ÷ block height, rounded up
3. Blocks per coursewall length ÷ block face length, rounded up
4. Blockscourses × blocks per course
5. Capswall length ÷ cap length, rounded up

The result also shows a check by face area. It divides the wall face by the face of one block, with no rounding. The real count is a little higher, because every course ends in a part block and you cut or lose some. If the wall steps down, add one wall section for each height and the calculator adds them. Corners, curves and stairs need extra pieces that this tool does not count.

Block sizes used by the calculator

Every maker has its own sizes. These come from the maker’s own pages and were checked in October 2026. The Versa-Lok figures are from the Versa-Lok product pages. The Pavestone ones are from its cut sheets, such as the RockWall Large sheet. The Allan Block ones are from an older printing of the AB Classic brochure, which tells you to confirm exact sizes with your dealer. If your block is not here, choose “Custom block” and type its face height and length.

BlockFace, high × longWeightMaximum unreinforced height listed
Versa-Lok Standard6 × 16 in82 lb4 ft
Versa-Lok Square Foot8 × 18 in87 lb3.5 ft
Versa-Lok Nexus8 × 18 in82 lb3 ft
Versa-Lok Cobble6 × 8 in38 lb4 ft
Versa-Lok Accent4 × 12 in36 lb4 ft
Allan Block AB Classic8 × 18 in75 lb1.75 ft, the lowest in the maker’s gravity wall chart (clay with a surcharge). The chart goes up to 4 ft
Pavestone RockWall Small4 × 11.63 innot on sheetnot on sheet
Pavestone RockWall Medium6 × 7.75 innot on sheetnot on sheet
Pavestone RockWall Large6 × 17.44 innot on sheetnot on sheet

The Versa-Lok caps are 3-5/8 inches tall and 14 inches wide at the face, which is the cap length the calculator fills in for Versa-Lok blocks. Versa-Lok adds that its maximum heights are for 12 inch deep units in optimum conditions, and that poor soils, extra loading or slopes lower them. Pavestone’s sheets list pieces per pallet but no maximum wall height, so ask the maker.

Example: a 20 ft wall, 3 ft high

A straight wall is 20 ft long and 3 ft high above ground. You use Versa-Lok Square Foot blocks (8 × 18 inches) with the first course embedded 1/10 of the height, which is 3.6 inches, and 14 inch caps. These are the numbers the calculator shows when you open this page.

StepOperationResult
Total height36 + 3.639.6 in
Courses39.6 ÷ 8 = 4.95, rounded up5
Blocks per course240 ÷ 18 = 13.33, rounded up14
Blocks5 × 1470
Check by face area(20 × 39.6 ÷ 12) ÷ 1.00 sq ft66
Caps240 ÷ 14 = 17.14, rounded up18
Weight of the blocks70 × 87 lb6,090 lb
Base stone20 × 2 × 0.5 ft ÷ 270.74 cu yd
Drainage stone20 × 1 × 3 ft ÷ 272.22 cu yd

With 10% extra the same wall is 77 blocks and 20 caps. If you are buying more than one wall section, the extra is applied to the grand total.

Base and drainage stone

Versa-Lok’s installation tips call for a leveling pad of well-compacted gravel, crushed stone or coarse sand about 6 inches thick and 24 inches wide, and for 12 inches of drainage aggregate compacted behind the units. Allan Block’s tech sheet 996, which covers building steps into a wall face, gives a 6 inch deep by 24 inch wide base trench with 6 inches of compacted granular material, and the same granular material in the block cores and 12 inches behind the blocks. In Versa-Lok’s steps the base course is backfilled with native soil, and the drainage aggregate goes behind the units above it, so the calculator multiplies the drainage zone by the height above ground. The calculator starts with those numbers and lets you change them. It does not count the stone in hollow cores, filter fabric or drain pipe. See the Versa-Lok instructions and your block maker’s guide for the full list. Turn the cubic yards into tons with the gravel calculator.

How tall can a block wall be without an engineer?

Versa-Lok’s FAQ says its walls can be built three to four feet tall without engineering or soil reinforcement. Its installation tips say walls that support heavy loads or exceed four feet in height require special soil reinforcement and often professionally designed plans, and that walls taller than 4 feet typically require a design by a qualified professional engineer. It also says to check local building codes. On the limit itself, it says: “The maximum, stable unreinforced wall height in the best conditions is 4 feet and can be lower, depending on soils, loading, slopes or terraces.” It adds: “Please consult a qualified engineer if unsure about any construction, site or soil conditions.”

The calculator shows a warning when the wall is above 4 feet, and when it is above the maximum height listed for the block you pick. It compares the total stacked height, the part above ground plus the buried course, because a wall 3.8 ft above ground with a tenth buried is 4.18 ft. Rules measure walls in different ways. As one local example, the amended 2018 residential code of Bullhead City, Arizona (Section R105.2, checked October 2026) exempts from a permit retaining walls outside the setback areas that are not over 4 feet “measured from the bottom of the footing to the top of the wall,” unless they support a surcharge. That is one city’s rule. Ask your own building department. A taller wall is not something to build from a block count.

Blocks for common wall sizes

Whole blocks for a straight wall with Versa-Lok Square Foot blocks (8 × 18 inches), no buried course and no extra. Blocks for Versa-Lok Standard (6 × 16 inches) are in the second table.

Wall length2 ft high3 ft high4 ft high
10 ft213542
20 ft427084
30 ft60100120
40 ft81135162
Wall length2 ft high3 ft high4 ft high
10 ft324864
20 ft6090120
30 ft92138184
40 ft120180240

Tips for ordering

  • Confirm the block size with your dealer. The sizes on this page come from the makers’ own pages, but regions and producers can differ.
  • Enter each step of a stepped wall as its own wall section so the courses are counted at the right height.
  • Use the extra box for the allowance your supplier or contractor recommends. It raises blocks and caps together.
  • Prices change by block, region and delivery, so this calculator shows none. Ask for a quote on the pieces it counts.
  • Versa-Lok says walls that support heavy loads or exceed four feet in height often need professionally designed plans, and to consult a qualified engineer if unsure about any construction, site or soil conditions. Count the buried course when you measure the height, and check your local building code.

Frequently asked questions

How do you calculate how many blocks you need for a retaining wall?

Work in inches. Divide the wall height, plus the part of the first course that goes below grade, by the height of one block and round up to get the number of courses. Divide the wall length by the face length of one block and round up to get the blocks per course. Multiply the two. A 20 ft wall 3 ft high with 8 × 18 inch blocks and a 3.6 inch buried part is 39.6 ÷ 8 = 4.95, so 5 courses, and 240 ÷ 18 = 13.33, so 14 blocks per course, which is 70 blocks.

How many blocks do I need for a 10 ft retaining wall?

It depends on the block and the height. With Versa-Lok Square Foot blocks, 8 inches high and 18 inches long on the face, a 10 ft wall needs 7 blocks per course. At 3 ft high that is 5 courses and 35 blocks. With the 6 × 16 inch Versa-Lok Standard it needs 8 blocks per course, so 48 blocks at 3 ft with no buried course.

Does a 4 ft retaining wall need drainage?

The installation instructions we read do not tie drainage to the height of the wall. Versa-Lok says to place and compact 12 inches of drainage aggregate behind the units, and Allan Block tech sheet 996, which is about building steps into a wall face, says to fill the block cores and 12 inches behind the blocks with granular material. Versa-Lok also says walls taller than 4 feet typically need a design by a professional engineer, so a 4 ft wall is at the edge of what a homeowner count can cover. Check local code.

How much does it cost to build a 100 ft retaining wall?

This site shows no prices, because they change by block, region and labor. What the calculator gives is the quantity to price. A 100 ft wall 3 ft high with Versa-Lok Square Foot blocks and a buried first course needs 5 courses of 67 blocks, which is 335 blocks, plus caps and stone. Ask suppliers and contractors for a quote on those quantities.

What is the 1/3 rule for retaining walls?

We could not find a rule by that name in the manufacturer documents we checked, so we do not state one. What Versa-Lok publishes is that the first course should be embedded about 1/10th of the exposed wall height. Ask the maker of your block or a local engineer which rule applies to your wall.

How deep should the first course of blocks be buried?

Versa-Lok says to embed the first course about 1/10th of the exposed wall height, on a leveling pad of compacted gravel, crushed stone or coarse sand about 6 inches thick and 24 inches wide. The Allan Block brochure we found says to bury the first course 3 inches below grade for a gravity wall and 6 inches for a reinforced wall. The calculator lets you choose 1/10, none or your own depth.

How much gravel do I need for a retaining wall?

Add the base and the drainage zone. For the base, multiply length × width × thickness in feet, using 6 inches thick and 24 inches wide from Versa-Lok and Allan Block, and divide by 27 for cubic yards. For the drainage zone, multiply length × 1 ft (12 inches) × the height above ground and divide by 27. A 20 ft wall 3 ft high is 0.74 cubic yards for the base and 2.22 for the drainage, 2.96 in total. For tons, use the gravel calculator.

We use our own technical cookies and, if you allow it, Google Analytics cookies to see which calculators are used most. Press “Accept” to allow analytics, “Reject” to refuse them or “Configure” to choose. If you don’t accept, we still measure visits without cookies and with approximate figures. You can change your mind at any time from the footer. More details in the cookie policy.