sodcalculator

02 Yard and Garden

Raised Garden Bed Depth Calculator

Tag 02-4068 · 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

This calculator works out the volume of soil needed to fill a raised garden bed, based on the bed’s length, width, and the depth you plan to fill. You enter the bed’s inside dimensions in feet and the desired soil depth in inches, and it returns the volume in both cubic yards and cubic feet. Use the result to order the right amount of bagged or bulk soil.

Formula

The volume of a rectangular raised bed is simply length × width × depth. Because the inputs are in feet and inches, the formula converts the depth to feet (divide inches by 12) before multiplying:

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

Where:

  • L = inside length of the bed, in feet
  • W = inside width of the bed, in feet
  • D = desired soil depth, in inches

To get cubic yards, divide the cubic feet by 27 (since 1 yard = 3 feet, and 3³ = 27). The calculator combines both steps: Volume (yd³) = L × W × (D ÷ 12) ÷ 27, which simplifies to L × W × D ÷ 324.

Always measure the inside dimensions of the bed, not the outside. The wall thickness (typically 1.5 to 2 inches for standard lumber) can reduce the usable volume by 5–10% on a typical 4×8 bed.

Worked Example

Using the default values from the calculator above: a bed that is 40 feet long, 25 feet wide, and filled to a depth of 3 inches.

  1. Convert depth to feet: 3 in ÷ 12 = 0.25 ft
  2. Calculate cubic feet: 40 ft × 25 ft × 0.25 ft = 250 ft³
  3. Convert to cubic yards: 250 ft³ ÷ 27 = 9.26 yd³ (rounded to 2 decimals)

The calculator shows 250 ft³ and 9.26 yd³ for those inputs. If you were ordering bulk soil, you’d round up to 10 cubic yards to account for settling and spillage.

How to Choose the Right Depth

The ideal depth depends on what you’re growing and whether the bed sits on soil or a hard surface. Here are general guidelines:

  • 6–8 inches: Lettuce, herbs, radishes, and other shallow-rooted crops. This is the minimum for most vegetables if the bed sits on open ground.
  • 10–12 inches: Tomatoes, peppers, carrots, and most common garden vegetables. This is the sweet spot for most raised beds.
  • 18–24 inches: Deep-rooted plants like potatoes, or beds placed on concrete, patios, or decks where roots can’t reach the soil below.

If your bed sits on lawn or dirt, you can subtract the depth of the existing soil. For example, a 12-inch bed on open ground gives roots about 12 inches of total soil, but only the top 10 inches are the added mix. On a hard surface, the full depth must come from the bed itself.

Common Mistakes and Misconceptions

One frequent error is measuring the outside of the bed. A 4×8 bed made from 2-inch-thick lumber has inside dimensions of about 3.67 × 7.67 feet, not 4 × 8. That difference reduces volume by roughly 12%.

Another mistake is confusing cubic feet with square feet. Soil is sold by volume (cubic feet or cubic yards), not area. A 4×8 bed at 12 inches deep needs 32 cubic feet of soil, not 32 square feet.

People also forget that soil settles. Fresh soil mix can compact by 10–20% after watering and a few weeks. Ordering 10–15% extra, or planning to top up later, is a common practice.

Finally, don’t assume 1 cubic yard of soil weighs the same as 1 cubic yard of compost. A cubic yard of topsoil weighs roughly 2,000–2,700 pounds depending on moisture, while compost is lighter. This matters for delivery and for whether your bed’s frame can support the weight.

Bagged vs. Bulk Soil

Soil comes in two main forms, and the calculator works for both, but the ordering math differs.

Bagged soil is sold in cubic feet, typically 1.5 or 2 cubic feet per bag. Divide your total cubic feet by the bag size to get the number of bags, then round up. For a 4×8×1-foot bed (32 ft³), you’d need 16 bags of 2 ft³ each. This is convenient for small beds but expensive for large ones.

Bulk soil is sold by the cubic yard, usually delivered by truck. For anything larger than about 1 cubic yard, bulk is almost always cheaper per unit volume. Many suppliers have a minimum delivery charge, so for very small amounts, bagged might be more practical.

When ordering bulk, round up to the nearest half or whole yard. It’s better to have a little extra than to run short mid-project.

Cost and Budget Considerations

While this calculator doesn’t include price (soil costs vary widely by region and type), you can estimate cost by multiplying your volume by the local price per cubic foot or cubic yard. Bagged soil often runs $5–$10 per 1.5 ft³ bag, while bulk topsoil might be $20–$50 per cubic yard plus delivery. The calculator’s cubic yard output is the number you’d use for bulk quotes.

To save money, consider filling the bottom of deep beds with coarse wood chips, logs, or leaves (a technique called hugelkultur), then adding soil only for the top 12–18 inches. This reduces the volume of purchased soil significantly. However, avoid using materials that decompose too quickly and cause the bed to sink.

Frequently Asked Questions

How many bags of soil do I need for a 4×8 raised bed?

It depends on depth. At 12 inches deep, the bed needs 32 cubic feet. If you’re using 2-cubic-foot bags, that’s 16 bags. At 6 inches deep, it’s 16 cubic feet, or 8 bags. Always round up because bags are sold in whole numbers.

Should I fill the entire bed with soil or put something at the bottom?

If the bed sits on open ground, you don’t need to fill the entire depth with purchased soil. You can use the native soil for the bottom half, or place cardboard, wood chips, or logs as a filler layer. If the bed is on concrete, you need at least 12–18 inches of actual soil for most vegetables.

Why does my soil volume shrink after I water it?

Fresh soil mix contains air pockets and organic matter that compacts when wet. This is normal and can reduce volume by 10–20%. Adding a bit extra at planting time, or topping up after a few weeks, is a standard practice.

Can I use this calculator for a circular or irregularly shaped bed?

No, this calculator is for rectangular beds. For a circular bed, use the formula for a cylinder: π × radius² × depth. For irregular shapes, divide into rectangles, calculate each, and add them together.

What is the difference between topsoil and raised bed mix?

Topsoil is the natural upper layer of soil, often heavy and dense. Raised bed mix typically includes compost, peat moss or coconut coir, and perlite or vermiculite for drainage and aeration. The calculator gives volume, not weight, so either type can be ordered using the same cubic feet or yards.

How deep should a raised bed be for tomatoes?

Tomatoes have deep root systems and do best with at least 12 inches of soil depth. If the bed sits on open ground, 12 inches is usually enough. On a hard surface, aim for 18 inches or more.

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 →