Construction calculator

Free retaining wall block calculator

Planning a segmental retaining wall? Enter your wall length and height plus the block size, and this calculator counts the courses, the blocks per row, the standard wall blocks (buried base course included), and a separate cap course — with a waste margin folded in — so you know exactly how many of each to order, updated live, as you type.

InputsLive
Block size (face L × H)
Units
Wall length
ft
Wall height
ft
Waste factorrecommended 10%
%
How the result is calculated
Block walls stack in full courses, so the count is pure geometry:total = (rows × blocks per row) + caps
  • rows — wall height ÷ block height, rounded up (base course included)
  • blocks per row — wall length ÷ block length, rounded up
  • caps — one finishing course, ordered separately
The waste factor is then added on top of the total.
Check our examples
20 ft × 3 ft, 12×6 block → garden wall30 ft × 2 ft, 12×6 block → bed border40 ft × 4 ft, 12×8 block → grade wall
Result
Blocks needed
154 blocks
That's 132 standard and 22 cap blocks for a 20 ft long × 3 ft high wall in 12 × 6 in block, including a 10% waste margin.
Rows (courses)6
Blocks per row20
Standard blocks (with waste)132
Cap blocks (with waste)22
What it costs (estimate)
ItemQuantityEst. cost
Standard blocks132$594
Cap blocks22$132
Total material154$726

Prices are regional estimates: standard block ≈ $4.50, cap block ≈ $6.00. Excludes the gravel base, drainage stone, adhesive and any geogrid reinforcement.

Counts assume a straight wall; block dimensions and prices vary by product. How accurate is this?

Results are estimates. Consult a professional.

How it's calculated

How the retaining wall block calculator works

Segmental retaining walls are built from concrete blocks dry-stacked in full horizontal courses, so the block count is pure geometry — no mortar, no volume math. This retaining wall calculator works out how many courses tall the wall is by dividing the wall height by the block height, then how many blocks span the length by dividing the wall length by the block length. Multiply the two and you have the body of the wall; add one finishing course of caps on top, then a waste margin for breakage and end cuts.

rows = ceil(wall height ÷ block height)
blocks per row = ceil(wall length ÷ block length)
standard blocks = rows × blocks per row
total = standard blocks + caps (one top course)
Course-and-length counting is the method published in Allan Block's and other manufacturers' segmental retaining wall installation guides. Standard block dimensions follow common SRW product lines: a 12 in face length with a 4, 6, or 8 in course height, plus a matching beveled cap unit.

What the result means

The standard-block figure is the count of identical wall units you order — the same SKU for every course from the buried base to the top of the wall body. The cap figure is a separate order of finishing units that close off the top. The waste-adjusted total is what you buy, because every job loses a few blocks to corners, curves, breakage and the cuts at each end of a row.

Component breakdown

What goes into your retaining wall estimate

A block estimate is built from three counts: how many courses tall, how many blocks long, and a finishing course of caps. Get each right and the pallet that shows up matches the wall you drew.

Rows — how many courses tall

Divide the wall height by the block's course height and round up. A 4-inch block gives you fine height control but doubles the course count of an 8-inch block for the same wall. Remember that the first course is buried for stability, so the height you enter should include that base course — typically about one block, or roughly 10% of the exposed height, below grade.

Blocks per row — how many blocks long

Divide the wall length by the block's face length and round up. With a 12-inch (1-foot) block, this is simply the wall length in feet. The same number repeats on every course, so it is the multiplier that drives the whole order.

Caps — the finishing course

Cap units are beveled blocks that close off the top of the wall and are usually glued down with masonry adhesive. They are a distinct product, ordered separately, at one block per foot of length — the same count as a single course. The calculator adds them as their own line so you don't accidentally order wall units where you need caps.

Block height moves the order the most
Wall length is fixed by your site, but block height is a choice. An 8-inch block needs half the courses of a 4-inch block, so for tall walls it cuts both the block count and the labor — at the cost of finer height adjustment.
Example

A worked example using the retaining wall calculator

Example: a 20 ft long, 3 ft high garden wall in 12 in × 6 in block

Maria is building a 20 ft long, 3 ft high segmental retaining wall along a garden bed using a standard 12 in long × 6 in high block, with a cap course on top and a 10% waste margin.

Step 1 — Find the number of rows

Wall height in inches first: 3 ft = 36 in. Then 36 ÷ 6 = 6 rows. The bottom row is the buried base course.

Step 2 — Find the blocks per row

Wall length 20 ft = 240 in, divided by the 12 in block: 240 ÷ 12 = 20 blocks per row.

Step 3 — Multiply for the wall body

6 rows × 20 blocks = 120 standard blocks. That count already includes the buried base course.

Step 4 — Add caps, then the waste margin

One cap course is another 20 blocks, so 120 + 20 = 140 blocks. With 10% added for breakage and end cuts, 140 × 1.10 = 154 blocks to order.

120 standard + 20 cap blocks — order ~154 with waste
Order standard wall units and cap units as two separate quantities. The 10% margin covers the inevitable cuts at the ends of each course and a few cracked units on the pallet — running short halfway up a course means a second delivery.
Quick reference

How many retaining wall blocks do I need?

For a quick ballpark before you measure, this table gives the standard-block count (wall body, base course included) for common wall sizes using a 12 in × 6 in block. Add one cap per foot of length, then 10% for waste.

Wall size (12×6 block)RowsBlocks/rowStandard blocks
10 ft long × 2 ft high41040
20 ft long × 2 ft high42080
20 ft long × 3 ft high620120
30 ft long × 3 ft high630180
40 ft long × 4 ft high840320
50 ft long × 4 ft high850400

Standard blocks only (base course included). Add one cap per foot of wall length and a 10% waste margin before ordering. Figures assume a 12 in (1 ft) face length and a 6 in course height.

Block sizes

Common segmental retaining wall block sizes

Segmental wall blocks come in a handful of standard face heights. The face length is most often about 12 inches, but the height is the dimension that decides how many courses — and how much block — your wall needs.

Block (face L × H)Courses per foot of heightBest for
12 in × 4 in3 coursesLow garden walls, tight height control, curves
12 in × 6 in2 coursesThe common all-rounder for residential walls
12 in × 8 in1.5 coursesTaller walls; fewer courses, less labor
18 in × 6 in captop course onlyBeveled finishing units, glued down

Dimensions follow common Allan Block / segmental retaining wall product lines. Always confirm the exact face length and height printed on your chosen block — it sets both counts.

Most manufacturers also publish an engineered height limit for a gravity (no-reinforcement) wall — often around 3 to 4 feet. Past that limit, the wall needs geogrid soil reinforcement and frequently an engineer's design, which is about stability, not block count.

When to use

When to use this retaining wall calculator

Reach for it whenever you are pricing or ordering a dry-stacked segmental block wall and need to know how many units — and which kinds — to put on the pallet.

  • Garden and planter walls — low decorative walls along beds, paths and patios, usually one to three feet high.
  • Grade-change retaining walls — holding back a slope to create a level yard, terrace or driveway edge.
  • Terraced walls — a series of shorter walls stepped up a hillside, each priced as its own length and height.
  • Raised beds and seat walls — short freestanding or retaining walls where the cap course doubles as a finished top.
True cost

Waste factor: how many extra blocks to order

Order the exact calculated count and you will come up short. Every course needs a partial block cut at each end, some blocks crack during splitting or handling, and curves and corners consume extra units. A modest overage covers all of it.

The 10% rule

For a straight wall, add 10%. Trim it toward 5% only if the wall length divides evenly by the block length and the run is dead straight. Push it to 15% for curved walls, walls with several corners, or split-face blocks that you'll be cutting frequently — each cut is a chance to waste a block. The calculator defaults to 10% and adjusts up to 20%.

Why running short is worse than running over

A few leftover blocks are cheap insurance and handy for future repairs. Running out mid-wall means a second trip or delivery, and if your blocks came from a different production lot the color may not match — a visible seam in a finished wall. Order to the high side.

Order caps and standard blocks separately
Caps and wall units are different products. Apply the waste margin to each, and confirm both are in stock from the same lot before you order so the color stays consistent across the whole wall.
Definitions

Retaining wall definitions

A wall built from interlocking concrete blocks dry-stacked in courses without mortar, relying on the blocks' weight and setback to hold back soil. Allan Block, Versa-Lok and Keystone are common product lines.
One horizontal layer of blocks running the full length of the wall. The number of courses is the wall height divided by the block height, rounded up.
The bottom course, set on a compacted gravel leveling pad and usually buried below grade for stability — typically about one block, or 10% of the exposed wall height. It is counted as the first row in this calculator.
A beveled finishing unit that closes off the top of the wall, ordered separately from the standard wall blocks and usually bonded down with masonry adhesive. One cap per foot of wall length.
The small backward lean built into each course as the blocks step back, which leans the wall into the slope it retains. It is a stability feature and does not change the block count.
A synthetic soil-reinforcement mesh laid between courses and extending back into the retained soil, required for taller walls beyond the gravity-wall height limit. It affects engineering, not the block estimate.
Common questions

Retaining wall block questions

Do I count the buried base course?

Yes. Enter the full wall height including the portion below grade, and the row count will include the buried base course as row 1. Burying the first course — about one block, or 10% of the exposed height — is what keeps the wall from sliding, so it is part of the order, not an extra.

Are caps included in the block count?

No — caps are listed as a separate quantity. They are a different product (beveled, glued down), so the calculator keeps the standard wall blocks and the cap blocks on separate lines. If your design leaves the top course exposed instead, turn caps off.

How tall can I build without an engineer?

Most manufacturers and many local codes cap an unreinforced gravity wall at around 3 to 4 feet. Above that you generally need geogrid reinforcement and often a permit or an engineer's design. That is a structural question — the block count itself is the same arithmetic at any height.

What about the gravel base and drainage behind the wall?

Those are separate materials this block count does not size. Manufacturers call for a level leveling pad of about 6 inches of compacted crushed gravel under the base course — deeper, 8 inches or more, for walls past 4 feet — extending roughly 6 inches beyond each end of the blocks. Behind the wall, plan on about 12 inches of free-draining gravel against the full height to carry water away and keep pressure off the blocks. Estimate that fill from your wall length and height with a gravel or aggregate calculator; the block count here covers only the wall units and caps.

Accuracy

How accurate is this retaining wall calculator?

The block count is exact for a straight wall. Courses equal wall height divided by block height, blocks per row equal wall length divided by block length, both rounded up, and the product is the precise number of units the wall body needs. If your measurements and block dimensions are right, the standard and cap counts are right.

The waste margin is an estimate by design. Curves, corners, split-face cutting and the production lot you happen to receive all push the real extra a little higher or lower than the 10% default, so treat the waste-adjusted total as a planning figure and lean high when the wall is curved or full of corners. The calculator also handles only the visible block — it does not size the gravel base, drainage stone or geogrid, which depend on soil and height and belong to a structural design, not a material count. Confirm your block's exact face length and height, and confirm the gravity-wall height limit, before you order.

Sources

Sources and references

The course-and-length counting method, standard block dimensions, base-burial guidance and gravity-wall height limits follow published segmental retaining wall (SRW) installation and best-practice literature from the block manufacturers and the National Concrete Masonry Association.

Questions

Frequently asked questions about the free retaining wall block calculator

A retaining wall block calculator is a free online tool that helps you estimate concrete blocks for a segmental retaining wall from wall length, height, and block size, plus caps and waste. Segmental wall blocks stack in full courses, so the count is pure geometry — no mortar, no volume math. It runs entirely in your browser with instant results and no sign-up.
Yes. Enter the full wall height including the portion below grade. The bottom course is buried (about one block, or 10% of the exposed height) for stability and is counted as row 1, so it's already in the standard-block total.
Caps are listed separately. They're a different product — beveled and usually glued down — so the calculator keeps standard wall blocks and cap blocks on separate lines. One cap per foot of wall length. Turn caps off if your design leaves the top course exposed.
Add 10% for a straight wall to cover end cuts and breakage, and 15% for curved walls, multiple corners, or split-face blocks you'll cut often. Running short mid-wall means a second delivery and a possible color-lot mismatch.
Most manufacturers and local codes cap an unreinforced gravity wall around 3–4 feet. Taller walls need geogrid soil reinforcement and often a permit or engineer's design. That's a structural limit — the block arithmetic is the same at any height.
A 4-inch block gives fine height control for low garden walls; a 6-inch block is the common residential all-rounder; an 8-inch block needs the fewest courses and least labor for taller walls. The face length is typically 12 inches either way.
About

About this retaining wall block calculator

This retaining wall block calculator runs entirely in your browser — nothing you type is sent anywhere, and every figure updates instantly as you change the wall dimensions, block size, cap option, or waste factor. It turns four simple measurements into a clean order: rows, blocks per row, standard wall blocks, cap blocks, and a waste-adjusted total.

It is one of the construction estimators on calculator-s.cloud. Browse the rest on the construction calculators shelf — including the related concrete calculator for the gravel base and footings — or see every tool in the full calculator directory.

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.