Retaining wall calculator
Work out blocks per course, courses and total blocks for a retaining wall from wall dimensions and block size, including the buried base course.
Blocks needed
Enter your measurements and the result updates as you type.
Overview
A block retaining wall adds up in two directions: how many blocks span the wall length per course, and how many courses tall the wall stands. This calculator returns blocks per course, courses and the total block count from your wall dimensions and block size.
The first course is traditionally buried below grade, a full course taller than the finished height, and that extra course is built into the total so your order is really enough to build the wall.
Assumptions
- Block dimensions are entered in inches and every course starts and ends on a whole block (each row rounds up).
- The number of courses is the finished wall height rounded up to a whole block height, plus one buried base course.
- Total blocks are blocks per course times the number of courses.
Common mistakes
- Forgetting the buried base course, which means the delivered blocks fall one course short on day one.
- Dividing the wall length by the block length and rounding down, which leaves the last span short.
- Planning the block order without the drainage gravel behind the wall, which is where failure starts on a simple wall.
Next step
- Fence post concrete calculator Work out how many bags of concrete mix each fence post footer needs, accounting for the post itself, based on hole and post dimensions.
- Fence cost calculator Estimate total fence cost from run length, height and your local material and labor rates, with the budget math shown.
Related calculators
- Gravel calculator Compute gravel volume in cubic feet and yards, then tons by material type, for driveways, pad work and fence post bases.
- Fence post depth calculator Get the right embedment depth for a fence post from frost line and above-ground height, so corner posts hold and winter frost cannot heave them.
- Concrete bags calculator Turn hole diameter, depth and the number of holes into a bag count for 50, 60 and 80 pound mixes, with the volume math shown.
In-depth guides
Buying guide
A retaining wall built from blocks adds up along two axes at once: how many blocks span the wall horizontally per course, and how many courses stack to reach the finished height. This calculator takes wall length, wall height and block dimensions and returns blocks per course, course count and a total block count, rounding each row up to a whole block rather than allowing a fractional block at the end of a span. The total deliberately includes one extra course beyond what the visible finished height would suggest, because the bottom course of a block retaining wall is traditionally buried below grade rather than resting on the surface.
That buried course exists for a structural reason, not a cosmetic one: soil behind the wall pushes forward over time, and a wall resting directly on grade with nothing below it can walk forward and out as that pressure builds. Burying the first course anchors the base below the point where lateral soil pressure would otherwise find the path of least resistance. Taller engineered walls need real footings and professional sign-off well before block-scale methods like this one apply, and many municipalities start requiring permit review somewhere around 4 feet of retained height, though the exact threshold is local and worth confirming with your building department rather than assuming a number.
Blocks are only part of a working retaining wall; drainage is the part that most commonly gets skipped, and skipping it is where most simple block wall failures start. A common spec runs roughly a foot of clean, free-draining stone behind the wall face along with gravel-filled block cores, which is the same crushed stone this site's gravel calculator prices out by volume and weight once you know the area behind the wall that needs filling. This calculator's output covers only the block count; running the gravel numbers alongside it before ordering keeps the project from stalling on a drainage material nobody budgeted for.
Base preparation below the buried course matters almost as much as the drainage stone behind the wall. Level, compacted soil or a shallow gravel leveling pad is the usual approach for the block-scale walls this calculator models, and the fence post depth calculator and its accompanying post depth and setting guide cover the same frost and embedment logic that applies to any below-grade footing, wall or post alike. For the concrete side of a project that combines a wall with fence posts, the concrete bags calculator and fence post concrete calculator handle the footing math for the posts specifically. Material and labor costs vary enough by region and block type that this tool stops at the block count rather than guessing a price; the fence cost calculator and the fence cost guide are the right next stop for turning a block total into a budget, and block choice itself is covered in the fence materials guide alongside the rest of the foundation calculators category.
Block style and interlock system also affect how directly the course count from this calculator maps onto a real order. Many landscaping block systems use an interlocking lip or pin between courses that sets each course back slightly from the one below it, which creates a battered, leaning-back wall face for added stability against soil pressure. That setback does not change the blocks-per-course or course-count math here, since it is a function of the block's own design rather than the wall dimensions, but it does mean the finished wall footprint at the base will be wider than the footprint at the top, which is worth accounting for when marking out the excavation and the gravel bed beneath the buried course. Wall length broken up by curves or corners needs to be handled as separate straight runs rather than one continuous figure, since the block-per-course math assumes a straight wall face; a curved or stepped retaining wall is really several straight segments stitched together, each with its own block and course count from this same calculator. Capstones, if the chosen block system uses them, are typically ordered separately by linear foot of finished wall top rather than by the course-based math used for the structural blocks below them, so they are worth budgeting as an addition to, not a replacement for, the total this calculator returns. Keeping a running tally of blocks, drainage stone and any capstones in one place before ordering avoids the common gap where a wall project has blocks and gravel on site but no capstones for the final course. Adhesive or mechanical pins between courses, depending on the block system, are a separate small line item worth checking against the manufacturer's own installation instructions rather than assumed, since not every block style needs them and buying the wrong fastener for a given system wastes a trip back to the supplier.
Frequently asked questions
How many blocks do I need for a 20 by 2 foot wall with 16-inch blocks?
Each course needs 15 blocks (240 inches divided by 16 inches), the wall stands 3 courses tall at 8-inch block heights, and with the buried base course that is 4 courses, so 60 blocks total.
What is the retaining wall block formula?
Blocks per course is the wall length (in inches) divided by the block length, rounded up. Courses is the wall height (in inches) divided by the block height, rounded up, plus one buried base course. Total is the product of the two.
Why is there an extra buried course?
The bottom course is set below grade so the wall does not work its way up and out as the soil behind it pushes forward. Standard practice for the block walls this calculator models is one full buried course under the finished height.
How much drainage gravel goes behind a wall?
A common spec is roughly a foot of clean drainage stone behind the block plus gravel-filled cores, the same crushed stone this site's gravel calculator measures. The block count here covers only the blocks; run the gravel calculator for the behind-wall tonnage.
How deep should a retaining wall footer be?
For small block walls, level compacted soil or a lightly dug trench is the usual base, with the buried course sitting on it. Taller engineered walls need real footings and engineer sign-off, so this calculator's models cap at the block-scale wall and defer to a professional above it.
Is there a height limit on retaining walls without a permit?
Many municipalities start requiring review around 4 feet of retained height, but the exact limit is local, so check with your building department rather than trusting a universal number.
How much does a retaining wall cost?
Block type and region swing the number widely, and drainage gravel and base are real line items. Run your block tally and the gravel volume, then apply your local block and gravel prices for a defensible total.
Do blocks at course ends need to be cut?
The formula rounds up so every course is whole blocks, which means a cut block at one end only when the span does not divide evenly. Keeping the wall length in whole block increments avoids those cuts entirely.