Retaining Wall Block Calculator

Retaining wall blocks = ⌈wall length ÷ block length⌉ × (⌈height ÷ block height⌉ + buried courses). A 30 ft wall, 3 ft exposed, with 12 × 4 in blocks needs 30 blocks per course and 9 + 1 buried courses: 300 blocks, 315 with 5% waste, plus 32 caps.

Units
Your result will appear here.

Segmental retaining wall blocks stack without mortar, each course set back slightly into the slope. The count depends on how many blocks fit along the wall and how many courses reach the height, including at least one buried below grade. This calculator also counts cap units for the top.

The formula

Blocks per course = ⌈length × 12 ÷ block face length⌉

Courses = ⌈height × 12 ÷ block height⌉ + buried courses

Blocks = ⌈per course × courses × (1 + waste %)⌉; caps = ⌈length × 12 ÷ cap length × (1 + waste %)⌉

Coverage and yield assumptions

Defaults describe a common small garden block about 12 in long and 4 in high. Larger commercial units may be 16–18 in long and 6–8 in high. The Concrete Masonry & Hardscapes Association recommends burying the first course; a common rule is 1 in of embedment per 8 in of wall height, with a 6 in minimum.

Base and drainage

Dig a trench wide enough for the block plus 12 in behind it and deep enough for 6 in of compacted gravel base plus the buried course. Level the base carefully: the first course sets the line for the whole wall. Behind the wall, place at least 12 in of clean drainage stone and a perforated drain pipe at the base that exits to daylight. Water pressure is the main reason small walls fail.

Height limits and permits

Many jurisdictions require a permit and an engineered design for retaining walls over 4 ft, measured from the bottom of the footing, or for walls with a surcharge such as a driveway or slope above. Taller walls usually need geogrid reinforcement layers that extend back into the soil. Terraced walls are an option for steep slopes; space them at least twice the height of the lower wall apart.

Curves and corners

Tapered blocks make curves easy; inside curves need fewer blocks per course and outside curves slightly more. Corners need special corner units or cut blocks. Steps can be built from wall blocks with caps as treads.

Building tips

Common mistakes to avoid

Waste factor

5% covers chipped blocks and cuts on straight walls. Use 10% for walls with curves, steps or corners where blocks must be split.

Imperial and metric

Switch the toggle above the inputs to enter ft ↔ m, in ↔ cm. The page converts metric entries to imperial before calculating, using NIST factors (1 ft = 0.3048 m, 1 in = 2.54 cm), and shows key results in both systems.

Worked examples

Garden wall 30 × 3 ft

Inputs: wall length 30 ft; exposed wall height 3 ft; block face length 12 in; block height 4 in; cap length 12 in; buried courses 1; waste factor 5%.

Result: You need 315 wall blocks and 32 caps.

Patio wall with larger units

Inputs: wall length 40 ft; exposed wall height 2.5 ft; block face length 16 in; block height 6 in; cap length 16 in; buried courses 1; waste factor 5%; cost per unit $4.6.

Result: You need 189 wall blocks and 32 caps.

Raised bed border

Inputs: wall length 24 ft; exposed wall height 1 ft; block face length 12 in; block height 4 in; cap length 12 in; buried courses 0; waste factor 10%.

Result: You need 80 wall blocks and 27 caps.

Quick reference for common sizes

The table repeats the first worked example at smaller and larger sizes, keeping every other setting the same, so you can see how the retaining wall block calculator result scales.

InputsResult
wall length 15.0 ft; exposed wall height 1.5 ft; block face length 12 in; block height 4 in; cap length 12 in; buried courses 1; waste factor 5%You need 95 wall blocks and 16 caps
wall length 22.5 ft; exposed wall height 2.25 ft; block face length 12 in; block height 4 in; cap length 12 in; buried courses 1; waste factor 5%You need 194 wall blocks and 24 caps
wall length 45.0 ft; exposed wall height 4.5 ft; block face length 12 in; block height 4 in; cap length 12 in; buried courses 1; waste factor 5%You need 709 wall blocks and 48 caps
wall length 60 ft; exposed wall height 6 ft; block face length 12 in; block height 4 in; cap length 12 in; buried courses 1; waste factor 5%You need 1,197 wall blocks and 63 caps
wall length 90 ft; exposed wall height 9 ft; block face length 12 in; block height 4 in; cap length 12 in; buried courses 1; waste factor 5%You need 2,646 wall blocks and 95 caps

Limitations

Counts are for a straight wall of uniform height. Stepped bases, curves and corners change the count. Walls over 4 ft or carrying a load need professional design.

Frequently asked questions

How many retaining wall blocks do I need?

Divide wall length by block length for one course, multiply by the number of courses including one buried.

How tall can I build without an engineer?

Often up to about 3–4 ft, but rules vary. Check local code.

Do I need gravel behind a retaining wall?

Yes, at least 12 in of clean drainage stone plus a drain pipe.

How deep should the first course be buried?

At least 6 in or about one eighth of the wall height.

How many caps do I need?

Wall length divided by cap length, plus a little for cuts.

Sources

  1. Concrete Masonry & Hardscapes Association (formerly NCMA and ICPI). TEK notes and paver installation guides. https://masonryandhardscapes.org/
  2. Common Ground Alliance. Call 811 before you dig. https://call811.com/
  3. International Code Council. 2021 International Residential Code (IRC). https://codes.iccsafe.org/content/IRC2021P2

Method details: how we calculate.