This calculator works out the volume of soil, compost, or other fill material needed for a raised garden bed. You enter the bed’s inside length, inside width, and the depth of fill you want, and it returns the volume in cubic yards and cubic feet. The result tells you how much bulk soil to order or how many bags to buy.
Formula
The volume of a rectangular raised bed is simply length × width × depth. The only catch is that the depth is usually given in inches while the length and width are in feet, so a unit conversion is built into the formula.
In symbols: V = L × W × D
- V = volume of fill material (cubic feet or cubic yards)
- L = inside length of the bed (feet)
- W = inside width of the bed (feet)
- D = depth of fill (inches)
To get cubic feet: V (ft³) = L × W × (D / 12). Since 1 yard = 3 feet, 1 cubic yard = 27 cubic feet, so to get cubic yards: V (yd³) = L × W × (D / 12) / 27, which simplifies to L × W × D / 324.
Worked Example
Let’s use the default values from the calculator: a bed that is 40 ft long, 25 ft wide, and you want to fill it 3 inches deep.
- Convert depth to feet: 3 in ÷ 12 = 0.25 ft
- Calculate volume in cubic feet: 40 ft × 25 ft × 0.25 ft = 250 ft³
- Convert to cubic yards: 250 ft³ ÷ 27 = 9.26 yd³
The calculator shows 9.26 yd³ and 250.0 ft³, matching the manual calculation.
How to Use the Calculator
Measure the inside dimensions of your bed, not the outside. The frame boards take up space, and using outside measurements will overestimate the soil needed. For a bed that is 4 ft by 8 ft with 2-inch-thick boards, the inside might be 3 ft 8 in by 7 ft 8 in. Enter those numbers.
Decide on the depth. For most vegetables, 12 inches is a good minimum. If you’re growing root crops like carrots or potatoes, go deeper—18 to 24 inches. If the bed sits on top of existing soil, you might only need 6 inches of new soil. The calculator lets you try different depths to see how the volume changes.
Choosing the Right Depth
The depth you choose affects both plant health and cost. Here are some common scenarios:
- 6 inches: Enough for shallow-rooted plants like lettuce, herbs, and radishes, especially if the bed sits on good ground.
- 12 inches: The standard for most vegetables, including tomatoes, peppers, and beans.
- 18–24 inches: Best for deep-rooted crops, permanent beds, or if you want to garden without bending over.
If you’re placing the bed on a hard surface like concrete or a patio, you’ll need at least 12 inches, and 18 inches is better, because the plants can’t send roots into the ground below.
Common Mistakes and Unit Mix-ups
The most frequent error is mixing feet and inches without converting. For example, if you enter length as 8 (feet) and depth as 12 (inches) and just multiply, you get 96, but that’s wrong because the units don’t match. Always convert depth to feet first or use the calculator which does it automatically.
Another mistake is using outside dimensions. A bed made of 2×6 boards has an outside width of 4 ft but an inside width of only 3 ft 8 in. That difference might not seem huge, but for a long bed it can mean an extra cubic foot or two of soil.
Also, be careful when ordering soil. Bulk suppliers usually sell by the cubic yard, while bagged soil is sold in cubic feet (typically 1.5 or 2 ft³ per bag). If you need 250 ft³, that’s about 125 bags of 2 ft³ each—a lot of trips to the store. For large beds, ordering bulk delivery is usually more practical.
When to Use This Calculator
Use this calculator whenever you’re filling a new raised bed, adding soil to an existing one, or planning a garden renovation. It’s also handy for estimating how much compost or mulch you need to top-dress a bed. The same formula works for any rectangular container, like a planter box or a greenhouse bench.
If your bed is not a perfect rectangle—say it’s L-shaped or has curved corners—break it into rectangular sections, calculate each one, and add them together. For a triangular corner, use half the base times the height times the depth.
Bulk vs. Bagged Soil
Once you have the volume, you need to decide how to buy the soil. Bulk soil is sold by the cubic yard and delivered by truck. It’s generally cheaper per cubic foot but you have to order a minimum amount (often 1 yard) and you need a place to dump it. Bagged soil is more expensive per cubic foot but easier to handle and you can buy exactly what you need.
For a small bed (less than 1 cubic yard), bags are fine. For anything larger, bulk is usually worth it. A cubic yard of soil weighs roughly 1,000–2,000 pounds depending on moisture and composition, so moving it by wheelbarrow is hard work—plan accordingly.
Frequently Asked Questions
How many bags of soil do I need for a 4×8 raised bed?
For a 4×8 bed at 12 inches deep, the volume is 4 × 8 × 1 = 32 cubic feet. If you’re using 2-cubic-foot bags, you’ll need 16 bags. At 1.5-cubic-foot bags, you’ll need 22 bags (round up).
Should I fill the whole bed with soil or use a filler?
For deep beds (over 24 inches), some gardeners put logs, branches, or other organic material at the bottom to reduce the amount of soil needed. This is called hugelkultur. However, the organic material will decompose over time, causing the bed to settle, so you’ll need to add more soil later. For beds under 18 inches, it’s better to fill completely with soil to avoid root restrictions.
What’s the difference between garden soil and raised bed mix?
Garden soil is meant to be mixed with existing ground soil and is often too dense for containers. Raised bed mix is typically a blend of topsoil, compost, and aeration materials like perlite or vermiculite. It’s lighter and drains better, making it ideal for raised beds. Check the label or ask your supplier.
How much does a cubic yard of soil weigh?
A cubic yard of dry topsoil weighs about 1,000–1,500 pounds. Wet soil can weigh 2,000 pounds or more. This matters if you’re moving it by hand or if you’re worried about the weight on a deck or rooftop. If your bed is on a structure, consult a professional to ensure it can support the load.
My bed is 3 feet deep—do I really need that much soil?
Probably not. Most vegetables only need 12–18 inches of soil. If your bed is that deep, consider filling the bottom with a drainage layer like gravel or coarse sand, or use the hugelkultur method. Just remember that any filler reduces the usable soil volume, so your plants will have less room for roots.
Can I use this calculator for round or oval beds?
No, this calculator is only for rectangular beds. For a round bed, use the formula for a cylinder: Ï€ × radius² × depth. For an oval, it’s more complex—you can approximate by treating it as a rectangle with the same width and length, but you’ll overestimate slightly. For a precise oval, use an online oval volume calculator.
Related
Formula used
in l | Lawn length | ft | 40 | 0 | 100000 in w | Lawn width | ft | 25 | 0 | 100000 in d | Depth | in | 3 | 0 | 120 out yd | Volume | yd³ | l * w * d / 324 | 2 out ft3 | 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