Soil over an uneven base needs an area-weighted depth calculation. Divide the project into measured regions and calculate the actual missing space in each before adding a purchasing allowance.
Open the Raised Bed Soil Mix Calculator.
How to calculate soil over an uneven garden base
For each region, multiply its horizontal area by its justified average missing depth. Add the regional volumes to obtain the total. With area in square feet and depth in inches, divide each area-depth product by 12 to obtain cubic feet. This approach keeps shallow and deep regions attached to the amount of ground they represent.
Consider a fictional rectangular garden 12 feet long and 8 feet wide. Measurements support treating the first 4-foot-long section as a uniform 3-inch fill, the next 5-foot section as a uniform 6-inch fill, and the final 3-foot section as a uniform 9-inch fill. These sections cover the entire 96-square-foot rectangle without overlap.
Their respective volumes are 8, 20 and 18 cubic feet. The total is 46 cubic feet, or approximately 1.70370 cubic yards. The average missing depth over the whole rectangle is 46 ÷ 96 feet, equivalent to 5.75 inches. Averaging the three listed depths without their areas gives 6 inches and incorrectly predicts 48 cubic feet.
Establish the intended finished surface first
A depth is the vertical difference between the existing base and a defined target surface. It is not simply the height of an edging board or the distance below an arbitrary tape line. Identify the target used for each measurement, including any project-specific surface slope. Otherwise, readings taken in different places may refer to different imaginary finished levels.
Measure plan dimensions horizontally. A tape following a sloping ground surface measures a different length from the horizontal footprint used in the basic volume formula. For a simple calculation, clearly identify which dimensions and vertical depths belong together. An appropriate project survey may be necessary when the geometry is complicated or the consequences of level changes are significant.
This arithmetic estimates a specified fill space. It does not design grading, drainage, retaining structures, foundations or ground levels near buildings. Nor does it establish whether adding soil around existing plants is appropriate. Resolve those project decisions separately; entering a chosen finished level into a calculator does not validate it.
Build an area and depth table
For the 12-by-8-foot example, keep each section visible rather than entering one unexplained average into the tool.
| Region | Horizontal dimensions | Area | Average missing depth | Volume |
|---|---|---|---|---|
| A | 4 by 8 feet | 32 square feet | 3 inches | 8 cubic feet |
| B | 5 by 8 feet | 40 square feet | 6 inches | 20 cubic feet |
| C | 3 by 8 feet | 24 square feet | 9 inches | 18 cubic feet |
| Total | Entire rectangle | 96 square feet | 5.75 inches weighted | 46 cubic feet |
The calculator can check each actual rectangle using its length, width and listed depth, with fill set to 100%. Sum the three results independently. Its half-inch depth increments cannot represent the exact 5.75-inch weighted depth in one entry, so the regional method is also the more transparent supported tool workflow.
Do not round 5.75 inches to 6 merely to satisfy the field and call the result exact. If you choose a rounded planning scenario, label it as such and retain the 46-cubic-foot measured model beside it. A numerical interface limit should not silently change the measurement record.
Use endpoint averages only for a justified linear slope
If a rectangular base rises steadily along its length while the intended finished surface is level, the missing fill can form a wedge. For a constant-width rectangle whose depth varies linearly from 2 to 8 inches, the mean depth is 5 inches. A 10-by-6-foot region then contains 60 × 5 ÷ 12 = 25 cubic feet.
That average works because the model specifies a linear depth change across equal-width strips. It is not a general rule for an irregular hollow. A bed with a broad deep centre and two shallow endpoints may contain far more material than its endpoint average suggests. Likewise, two isolated deep readings do not mean that the whole intervening area is equally deep.
Take intermediate measurements to assess whether the assumed profile fits the site. If the depth change is not reasonably linear, subdivide it or use a more appropriate measured surface method. Retaining the original readings is useful even when a simplified regional average is eventually selected, because it shows how the model was formed.
Keep equal-area sampling separate from regional sampling
An arithmetic mean of depth readings can represent an area mean when those readings suitably represent equal-area cells. For example, four equal 4-square-foot cells with representative depths of 2, 4, 6 and 8 inches have an average of 5 inches. Their combined volume is 16 × 5 ÷ 12, approximately 6.6667 cubic feet.
The same four readings are not enough if the 8-inch reading represents half the entire site while the others each represent a small corner. In that case, assign each representative depth to its actual area and calculate the weighted sum. More readings in an accessible corner should not automatically give that corner greater influence over the total.
Account for obstructions and regions receiving no new material. A 2-by-3-foot solid feature displacing a 6-inch layer removes 3 cubic feet from that layer. Subtract its actual intersection with the fill space. Do not subtract a full-height object again if its footprint has already been excluded from the regional areas.
Distinguish fill requirement from an excavation balance
Some parts of a planned surface may lie above existing ground while other parts lie below it. Negative depth represents material that would need removing under that geometric plan; it is not a negative bag order. Keep positive fill and proposed excavation in separate totals before considering any reuse.
For example, 30 cubic feet of fill space and 10 cubic feet of excavated volume do not automatically mean buying 20 cubic feet. The excavated material may be unsuitable, unavailable at the required time, or measured in a different material condition. Only subtract compatible, usable stock on a consistent volume basis. The rectangle calculator has no suitability or earthwork material-state model.
The RHS raised-bed guidance supplies general project context. The quantity method here concerns the specific missing space you have defined, without adopting a universal fill depth, base arrangement or material recipe from a generic example.
Convert the total and evaluate uncertainty
The regional total of 46 cubic feet equals approximately 1.70370 cubic yards. If purchasing 2-cubic-foot bags, the exact geometric requirement is 23 bags. If a supplier instead sells bulk material in quarter-yard increments, 1.75 cubic yards supplies 47.25 cubic feet. The 1.25-cubic-foot difference results from that selling increment, not an assumed settlement rate.
Depth uncertainty can dominate the total. Across 96 square feet, an additional half inch everywhere adds 4 cubic feet. By comparison, correcting only an 8-square-foot patch by half an inch adds one-third of a cubic foot. This comparison helps identify where another measurement would most improve the estimate without pretending every region is equally uncertain.
Use compatible conversions from the NIST volume tables, and retain enough precision until the purchasing step. Record any deliberate allowance separately from regional measured volume. Recalculate changed regions after actual base preparation, because removing debris or altering the intended surface can change the space materially.
An effective final worksheet therefore includes the region sketch, horizontal dimensions, depth basis, individual volumes, explicit exclusions, compatible existing stock and the supplier’s selling increment. Those details make the 46-cubic-foot result understandable and allow a changed section to be updated without rebuilding the entire estimate.