A garden bed dirt calculator estimates how much soil a bed needs from its length, width, and fill depth. Enter those three measurements in feet and inches, and it returns the volume in cubic yards and cubic feet so you can plan a delivery or compare bag quantities.
Formula
For a rectangular bed, volume equals length multiplied by width multiplied by depth, after converting all measurements to the same unit. With length and width in feet and depth in inches, the calculator uses:
- Volume in cubic feet = length (ft) × width (ft) × depth (in) ÷ 12
- Volume in cubic yards = length (ft) × width (ft) × depth (in) ÷ 324
Here, l is the bed’s length in feet, w is its width in feet, and d is the soil depth in inches. The divisor 12 converts inches of depth to feet. There are 27 cubic feet in one cubic yard, so dividing cubic feet by 27 gives the second formula; 12 × 27 = 324.
Worked Example
Using the calculator’s default measurements—an 8-foot-long bed, 4 feet wide, and 12 inches deep:
- Convert depth: 12 inches ÷ 12 = 1 foot.
- Calculate volume: 8 ft × 4 ft × 1 ft = 32 cubic feet.
- Convert to cubic yards: 32 ÷ 27 = 1.185… cubic yards.
Rounded to the displayed precision, the result is 1.19 yd³ and 32.0 ft³. The cubic-yard figure is rounded for display; the unrounded amount is useful when comparing supplier quantities.
How to Measure a Garden Bed
Measure the area that will actually contain soil, not the outside dimensions of a frame if its sides take up noticeable space. For a straightforward rectangular bed, record the inside length and width. Measure fill depth from the bed’s soil-supporting base to the intended finished surface.
- For a raised bed with a flat base, measure the inside dimensions.
- For a bed placed on existing ground, decide whether the calculation covers only added soil or the full depth of a new growing layer.
- For a sloped or uneven base, estimate an average depth by measuring several spots and averaging them.
- For measurements in centimetres, convert length and width to metres or feet, and convert depth to the matching unit before calculating.
If a bed is not rectangular, divide it into rectangles, calculate each section, and add their volumes. For a circular bed, use a circle-specific calculation; treating its diameter as both the length and width overestimates the area. Irregular beds can also be approximated by smaller shapes, but the estimate becomes less exact.
How Much Soil to Order
The calculator gives geometric volume: the space occupied by soil at the chosen dimensions. It does not determine a product’s weight, composition, settling rate, or exact delivered amount. Use the unrounded result when comparing it with a supplier’s stated volume, and check whether the supplier quotes cubic feet, cubic yards, litres, or another unit.
Bag sizes vary, so use the volume printed on the particular product rather than assuming every bag contains the same amount. To estimate the number of bags, divide the required volume by the volume per bag, keeping both figures in the same units, then round up to a whole bag. For example, a 32-cubic-foot requirement divided by a label showing 2 cubic feet per bag equals 16 bags, before allowing for any extra material you choose to purchase.
Bulk soil is often sold by the cubic yard, while bagged products commonly state volume in cubic feet or litres. One cubic yard equals 27 cubic feet, and one cubic foot is about 28.3 litres. These conversions help compare quotes, but they do not make different soil blends equivalent: check the product description and intended use as well.
Depth, Settling, and Common Mistakes
Depth has a direct, proportional effect on volume. Doubling a bed’s depth doubles the calculated soil amount if its footprint stays the same. A 4-inch layer is one-third of a foot; a 12-inch layer is one foot. Entering 12 as though it were feet instead of inches would produce a result twelve times too large, so verify the calculator’s units before entering measurements.
Freshly moved soil can settle, and the amount depends on its material, moisture, handling, and how it is placed. The geometric result should therefore be treated as a planning estimate rather than a guarantee that the finished surface will remain exactly at the measured height. If a supplier recommends an allowance for settling or ordering, follow that supplier’s guidance for the specific material instead of applying a universal percentage.
- Do not confuse depth in inches with depth in feet.
- Do not mix metres, centimetres, feet, and inches in one calculation without conversion.
- Use interior bed dimensions when the soil fills the inside of a frame.
- Keep extra precision while calculating; round the final display or purchase count, not each intermediate measurement.
What the Calculator Does Not Include
This simple formula assumes a level-topped rectangular prism: straight sides, a consistent width and length, and uniform depth. It cannot account for tapered walls, curved edges, large stones, roots, voids, or a bed whose bottom slopes substantially. For a tapered bed, top and bottom areas differ, so multiplying one footprint by the depth will not represent the exact volume.
It also does not tell you which soil or growing medium to use. Soil needs vary with the plants, drainage, existing ground, and bed design. The calculator only answers the quantity question for the dimensions entered; product suitability is a separate decision. If you are filling a deep raised bed, the bed may be designed with more than one material layer, so calculate each layer separately and add the volumes.
Frequently Asked Questions
How many cubic yards of dirt do I need for a 4-by-8 bed?
A 4-by-8-foot bed filled 12 inches deep holds 32 cubic feet, or about 1.19 cubic yards. A different depth changes the answer proportionally.
How many bags of soil do I need?
Divide the required volume by the volume stated on each bag, using matching units, then round up to a whole bag. Bag capacities vary, so check the label.
Should I measure the bed inside or outside?
Use the dimensions of the space soil will occupy. For a framed bed, that is generally the interior length and width.
Does the calculator account for soil settling?
No. It calculates the bed’s geometric capacity. Settling depends on the material and how it is handled, so consult the supplier if you need an ordering allowance.
How do I calculate soil for an irregular bed?
Split the footprint into manageable rectangles or other simple shapes, calculate each section at its depth, and add the volumes. Treat the result as an estimate if the shape or depth varies.
Related
Formula used
in l | Bed length | ft | 8 | 0 | 100000 in w | Bed width | ft | 4 | 0 | 100000 in d | Fill depth | in | 12 | 0 | 120 out yd | Soil volume | yd³ | l * w * d / 324 | 2 out ft3 | Soil volume | ft³ | l * w * d / 12 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More in this bed
- Planting Calculator: When to Start Your Garden
- Potting Mix Volume: How Much Does a Garden Pot Hold?
- Spacing Collards in a Square Foot Garden16 plants
- Compost Heap for Waste Fertilizer: How to Convert0.050 lb/ft³
- Ratio Fertilizer for Rosewood Trees: Feeding Guide9.26 yd³
- Lime per Acre: How Much to Apply0.50 tons/acre