sodcalculator

03 Mulch, Soil and Stone

Topsoil Calculator for Raised Bed: How Much You Need

Tag 03-4652 · 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 topsoil calculator tells you exactly how many cubic feet or cubic yards of soil you need to fill a raised garden bed. Enter the bed’s length, width, and desired soil depth, and you’ll get the volume in both units, plus a clear formula for doing it by hand. It works for any rectangular bed, whether it’s a small herb box or a large vegetable plot.

Formula

The calculator uses the basic volume formula for a rectangular prism: Volume = Length × Width × Depth. All three measurements must be in the same unit before you multiply. Here, length and width are entered in feet, and depth is entered in inches, so the formula first converts depth to feet by dividing by 12.

  • Vft³ = volume in cubic feet (ft³)
  • L = length of the bed in feet (ft)
  • W = width of the bed in feet (ft)
  • D = depth of soil in inches (in)

To get cubic feet: Vft³ = L × W × (D / 12)

To get cubic yards (the unit soil is often sold in), divide cubic feet by 27: Vyd³ = Vft³ / 27. The calculator combines these steps into one expression: L × W × D / 324, because 12 × 27 = 324.

Worked Example

Using the default values from the calculator: a bed that is 40 feet long, 25 feet wide, and you want 3 inches of soil.

  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³

The calculator shows 9.26 yd³ and 250.0 ft³ for these inputs. That matches the manual calculation.

How to Measure Your Raised Bed

Getting accurate measurements is the most important step. Use a tape measure and measure the inside dimensions of the bed, not the outside. The inside width is often a few inches narrower than the outer frame if you’re using thick lumber or stone.

  • Length and width: Measure from the inside edges, in feet. If your bed isn’t perfectly rectangular, measure at the widest and longest points and use those numbers; the calculator will slightly overestimate, which is usually fine for soil.
  • Depth: Decide how deep you want the soil to be. This is a choice, not a fixed measurement. For shallow-rooted herbs, 6 inches may be enough. For tomatoes, peppers, or carrots, 12 inches is common. Some gardeners go 18 inches for deep-rooted crops.
  • Irregular shapes: For L-shaped or U-shaped beds, break them into rectangles, calculate each one, and add the volumes together. For circular beds, use a different formula (Ï€ × radius² × depth), which this calculator doesn’t cover.

Choosing the Right Depth

The depth you choose dramatically affects how much soil you need. Doubling the depth doubles the volume, so it’s worth thinking about what you’re growing before you order.

  • 4–6 inches: Lettuce, radishes, spinach, and other shallow-rooted greens.
  • 8–12 inches: Most vegetables, including beans, cucumbers, and peppers. This is the most common range for raised beds.
  • 12–18 inches: Root crops like carrots and potatoes, or if your bed sits on a hard surface like concrete, where roots can’t go deeper.

If your bed sits directly on native soil, you can often use a shallower depth because plant roots can grow down into the ground below. If the bed has a solid bottom, the full depth must come from your added soil.

Common Mistakes and How to Avoid Them

Even experienced gardeners make these errors when calculating soil volume:

  • Mixing units: Multiplying feet by inches without converting. Always convert everything to feet (or everything to inches) first. The calculator does this for you, but if you’re doing it by hand, remember 1 ft = 12 in.
  • Forgetting to convert to cubic yards: Soil is often sold by the cubic yard, but your first calculation gives cubic feet. Divide by 27. A cubic yard is 3 ft × 3 ft × 3 ft.
  • Measuring outside dimensions: The frame thickness adds volume you don’t need. Measure inside the frame.
  • Ordering exactly the calculated amount: Soil settles and compacts after watering. It’s wise to order 10–15% extra, especially if you’re filling a new bed. You can also fill the bed, water it, and add more later.

Cost and Buying Considerations

This calculator gives you volume, not cost, because prices vary widely by region and supplier. However, knowing your volume lets you compare prices effectively.

  • Bulk soil (by cubic yard): Typically the cheapest per unit volume. You’ll need a place to dump it and a wheelbarrow to move it. Delivery fees may apply.
  • Bagged soil (by cubic foot): More expensive per unit volume but easier to handle and available at garden centers. A typical bag is 1 or 2 cubic feet. Divide your total cubic feet by the bag size to get the number of bags you need.
  • Soil blends: Many suppliers sell a “raised bed mix” that’s a blend of topsoil, compost, and other organic matter. This is often better than pure topsoil for vegetable beds because it drains well and has more nutrients.

For the example above (250 ft³), you’d need about 10 cubic yards (rounding up from 9.26) or roughly 250 one-cubic-foot bags. That’s a lot of bags, so bulk delivery is usually the practical choice for beds this large.

Alternatives to Filling the Whole Bed

If you want to save money on soil, consider these methods that reduce the volume you need to buy:

  • Hugelkultur: Fill the bottom third of the bed with logs, branches, and wood chips. These break down slowly, adding organic matter, and they reduce the amount of soil needed.
  • Cardboard and compost: Lay cardboard at the bottom to suppress weeds, then add a layer of compost or unfinished organic material before topping with soil.
  • Partial fill: If your bed is deep but your plants are shallow, you can fill the bottom with a cheaper fill material like gravel or landscape fabric, though this limits root depth.

These methods work best when the bed is deep (12+ inches) and you’re growing shallow-rooted plants. For deep-rooted crops, it’s better to fill the bed fully with quality soil.

Frequently Asked Questions

How many bags of soil do I need?

Divide the cubic feet result by the bag size (usually 1 or 2 cubic feet). For example, 250 ft³ ÷ 2 ft³ per bag = 125 bags. Round up to the nearest whole bag. Bagged soil is more expensive per cubic foot, but it’s easier to transport and store.

Should I use topsoil or potting mix in a raised bed?

For most outdoor raised beds, a blend of topsoil and compost is better than pure topsoil, which can be dense and low in organic matter. Potting mix is designed for containers and is lighter and more expensive; it’s not necessary for a large raised bed. A 50/50 mix of topsoil and compost is a common starting point.

How much does a cubic yard of topsoil weigh?

Dry topsoil weighs about 2,000–2,200 pounds per cubic yard. Wet soil can weigh significantly more. If you’re hauling it yourself, check your vehicle’s payload capacity. Bulk delivery avoids this concern.

What if my bed isn’t a perfect rectangle?

Break it into rectangles, calculate each one separately, and add the volumes. For a triangular section, use 0.5 × base × height × depth. For a circular bed, use π × radius² × depth. This calculator handles rectangular beds only, but the formula is easy to adapt.

Do I need to replace the soil in my raised bed every year?

No. Soil in a raised bed doesn’t need to be replaced annually. Instead, add 1–2 inches of compost to the top each spring to replenish nutrients and organic matter. Over time, the soil level may drop as organic material breaks down, so top up as needed.

Can I use this calculator for a planter box or container?

Yes, the same formula works for any rectangular container. Just enter the inside dimensions and the depth of soil you want. For round pots, use a different calculator that handles cylinders.

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 Mulch, Soil and Stone bed →