sodcalculator

02 Yard and Garden

Raised Garden Bed Calculator: Soil Volume

Tag 02-4066 · Updated · Standard formula, shown below

Volume 9.26 yd³
Volume
250.0 ft³
Result
Lawn length
40 ft
You entered
Lawn width
25 ft
You entered
You enter
Lawn length, Lawn width, Depth
You get
Volume, Volume
Rounding
2 dp · 1 dp

A raised garden bed calculator works out how much soil, compost, or mix you need to fill a bed by multiplying its length, width, and depth. You enter the bed’s inside dimensions in feet and the depth in inches, and the calculator returns the volume in cubic feet and cubic yards. This lets you order the right amount of soil in bulk or by the bag, avoiding both shortages and expensive leftovers.

Formula

The calculator uses the standard rectangular prism volume formula:

Volume (ft³) = Length (ft) × Width (ft) × Depth (ft)

Since depth is entered in inches, the formula converts it to feet by dividing by 12:

Volume (ft³) = L × W × (D / 12)

To get cubic yards, divide the cubic feet by 27 (because 1 yard = 3 feet, so 1 yd³ = 3 × 3 × 3 = 27 ft³). The calculator combines these steps:

Volume (yd³) = L × W × D / 324

where L and W are in feet, D is in inches, and 324 = 12 × 27.

Worked Example

Using the default values from the calculator: length = 40 ft, width = 25 ft, depth = 3 in.

  1. Convert depth to feet: 3 in ÷ 12 = 0.25 ft
  2. Compute volume in cubic feet: 40 × 25 × 0.25 = 250 ft³
  3. Convert to cubic yards: 250 ÷ 27 ≈ 9.26 yd³

The calculator shows 9.26 yd³ and 250.0 ft³, matching the manual calculation.

Why Depth Matters More Than You Think

The most common mistake when filling a raised bed is underestimating depth. Many people measure the outside height of the bed, but the actual soil depth is the inside height minus any frame lip, and it’s also affected by what you put underneath. If you add cardboard, landscape fabric, or a layer of gravel for drainage, that reduces the soil depth by an inch or more. The calculator’s depth input should be the actual soil depth, not the bed’s external height.

Another depth nuance: different plants need different root depths. Leafy greens like lettuce can grow in 6 inches of soil, but tomatoes, peppers, and carrots need at least 12 inches, and some root crops like parsnips prefer 18 inches. If you’re planning a mixed bed, use the deepest requirement for the plants you intend to grow, or plan to build a deeper bed.

How to Measure Your Bed Correctly

To get an accurate volume, measure the inside dimensions of the bed, not the outside. The frame boards take up space, so using outside dimensions will overestimate the soil needed. Use a tape measure and record:

  • Inside length in feet (or inches, then convert)
  • Inside width in feet
  • Desired soil depth in inches (not the height of the frame)

If your bed is not a perfect rectangle—for example, an L-shape or a circle—break it into rectangular sections and calculate each separately, then add the volumes. For a circular bed, use the formula π × r² × depth, where r is the radius in feet.

Common Mistakes and How to Avoid Them

  • Mixing units: Always convert all measurements to the same unit before multiplying. If you measure length in feet and depth in inches, divide the depth by 12 first.
  • Using outside dimensions: Measure inside the frame, not the outer edge.
  • Forgetting to account for settling: Soil settles after watering and time. It’s wise to add 5–10% extra to your calculated volume, or plan to top up the bed after a few weeks.
  • Ordering by the bag vs. bulk: Bagged soil is usually sold in cubic feet (often 1.5 or 2 ft³ per bag), while bulk soil is sold by the cubic yard. If you order bags, divide the total cubic feet by the bag size and round up. If ordering bulk, you’ll need to know how many cubic yards—most suppliers deliver in whole or half yards.

When to Use This Calculator vs. a Soil Mix Calculator

This calculator gives you the total volume of soil needed. But many gardeners want to mix their own soil using a recipe like “1 part compost, 1 part peat moss, 1 part vermiculite.� In that case, you still start with the total volume, then divide it by the number of parts to get the volume of each ingredient. For example, if your bed needs 12 ft³ and you use a 3-part mix, each part is 4 ft³.

Some online calculators also let you input the number of beds and the mix proportions. This calculator is the foundation—it gives you the total volume, which you can then split however you like.

Limits of the Formula

The rectangular prism formula assumes the bed has straight sides and a flat bottom. If your bed is tapered (wider at the top than the bottom, like some galvanized steel beds), the actual volume is slightly less than the formula gives. For a tapered bed, measure the top and bottom dimensions and use the average, or use a more complex formula for a truncated pyramid. The error is usually small (a few percent) unless the taper is extreme.

Also, the calculator doesn’t account for the soil settling that happens after the first watering. Fresh soil is loose and contains air pockets; after a few weeks, it can settle by 10–20%. It’s common to fill the bed to the top, water it, and then add more soil a week later. To avoid a second order, add 10% to your calculated volume.

Frequently Asked Questions

How many bags of soil do I need for my raised bed?

First, calculate the volume in cubic feet using the calculator. Then divide that number by the size of the bag you plan to buy (commonly 1.5 or 2 ft³ per bag). For example, if your bed needs 12 ft³ and you buy 2 ft³ bags, you need 6 bags. Always round up to the next whole number, because you can’t buy a fraction of a bag.

Should I fill the entire bed with soil?

No, not necessarily. Many gardeners fill the bottom 6–12 inches with bulky organic material like logs, branches, or leaves (a technique called hugelkultur) to save money and improve drainage. If you do this, subtract that fill depth from the total soil depth before calculating. For example, if your bed is 24 inches tall and you put 6 inches of wood at the bottom, the soil depth is 18 inches.

How deep should a raised bed be for vegetables?

Most vegetables need at least 12 inches of soil, but deep-rooted crops like tomatoes, carrots, and potatoes do better with 18–24 inches. If you’re building a bed on a hard surface like concrete, you’ll need at least 18 inches to give roots enough room. For shallow-rooted greens, 6–8 inches can work, but a deeper bed is more forgiving.

How much soil do I need for a 4×8 raised bed?

A 4×8 bed with a soil depth of 12 inches needs 4 × 8 × 1 = 32 cubic feet, or about 1.19 cubic yards. If you’re buying 2 ft³ bags, that’s 16 bags. If you’re ordering bulk soil, you’d likely order 1.5 yards (since 1.19 rounds up to 1.5) to have a little extra for settling.

Can I use this calculator for a round raised bed?

No, this calculator is for rectangular beds. For a round bed, use the formula for a cylinder: π × radius² × depth. For example, a bed with a 3-foot radius and 1-foot depth needs π × 9 × 1 ≈ 28.3 ft³. You can also approximate by treating the circle as a square with side length equal to the diameter, but that overestimates by about 21%.

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

The whole Yard and Garden bed →