sodcalculator

02 Yard and Garden

Raised Bed Dirt Calculator: Soil Volume

Tag 02-4064 · 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 bed dirt calculator works out how much soil you need to fill a garden bed by multiplying the bed’s length, width, and depth, then converting the result into cubic yards or cubic feet. You enter the bed’s inside dimensions and the depth of soil you want, and the calculator returns the volume in both cubic yards and cubic feet, which you can then use to order soil by the bag or by the truckload. This article explains the formula, gives a worked example, and covers the practical details of buying and filling raised beds.

Formula

The calculator uses the standard rectangular volume formula:

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

Since depth is entered in inches, the formula first converts it to feet by dividing by 12. Then, to get cubic yards, divide the cubic feet by 27 (because 1 yard = 3 feet, so 1 yd³ = 3 × 3 × 3 = 27 ft³). In the calculator block, the expression l * w * d / 324 combines both steps: it multiplies length and width in feet, multiplies by depth in inches, then divides by 12 (to get ft³) and by 27 (to get yd³) in one go. The second output, l * w * d / 12, gives the volume in cubic feet directly.

  • l = length of the bed inside (feet)
  • w = width of the bed inside (feet)
  • d = depth of soil you want (inches)
  • Volume in yd³ = (l × w × d) / 324
  • Volume in ft³ = (l × w × d) / 12

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. Calculate cubic feet: 40 × 25 × 0.25 = 250 ft³
  3. Convert to cubic yards: 250 ÷ 27 = 9.26 yd³

The calculator rounds to two decimals, giving 9.26 yd³ and 250.0 ft³. That matches the block’s output for the defaults.

Why Depth Matters More Than You Think

The most common mistake when filling a raised bed is measuring the outside dimensions instead of the inside. The walls of a bed—especially if they are made of thick timber or stone—can take up several inches on each side. If you measure outside, you overestimate the volume, and you’ll order too much soil. Always measure the interior width and length at the top, because beds often taper slightly toward the bottom.

Depth is another frequent source of error. A bed that is 4 ft long and 2 ft wide might seem small, but if you fill it 12 inches deep, that’s 8 cubic feet of soil—about six 1.5-cubic-foot bags. Many gardeners underestimate how much soil a deep bed needs. Also, soil settles after watering and rain, so it’s wise to add 10–15% extra volume to account for compaction, or plan to top up the bed after a few weeks.

How to Use the Result: Bags vs. Bulk

Once you have the volume in cubic feet or yards, you can decide how to buy soil. Bagged soil is sold in cubic feet (typically 1.5 or 2 ft³ per bag). To find the number of bags, divide the total cubic feet by the bag size and round up. For example, 250 ft³ ÷ 2 ft³ per bag = 125 bags exactly. Bulk soil is sold by the cubic yard, and one yard covers about 108 square feet at 3 inches deep, or 324 square feet at 1 inch deep. For a large bed, buying in bulk is usually cheaper and involves fewer trips, but you need a place to dump the soil and a wheelbarrow to move it.

If you’re filling a bed that sits on top of grass or weeds, you might not need to fill the entire depth with premium soil. Many gardeners use a layer of cardboard or landscape fabric at the bottom, then fill the lower portion with cheaper fill dirt or compost, reserving the top 6–12 inches for a high-quality soil mix. The calculator gives you the total volume, but you can adjust the depth input to match only the top layer if you plan to use a filler below.

Common Mistakes and How to Avoid Them

  • Mixing units: Always keep length and width in feet, depth in inches. If you measure in centimeters or meters, convert everything to one system before calculating.
  • Forgetting to subtract wall thickness: Measure inside the bed, not outside.
  • Ignoring settling: Soil compacts, so add 10–15% or plan a top-up.
  • Rounding too early: Do the full calculation, then round at the end. Rounding intermediate steps can shift the final result by a noticeable amount.
  • Confusing cubic feet and cubic yards: A cubic yard is 27 cubic feet, not 3. This is the most common unit mix-up.

Alternatives to a Rectangular Bed

This calculator assumes a rectangular, straight-sided bed. If your bed is round, triangular, or has sloped sides, the formula changes. For a round bed, use the formula for a cylinder: π × radius² × depth. For a triangular bed, multiply base × height × depth ÷ 2. For a bed that is wider at the top than the bottom (a trapezoid), the volume is the average of the top and bottom areas multiplied by the depth. If your bed has an irregular shape, you can approximate it by dividing it into rectangles and adding the volumes, or use a soil calculator that accepts multiple shapes.

Cost and Ordering Considerations

The calculator gives you volume, but not cost. Soil prices vary widely by region, supplier, and quality. Bagged soil often costs more per cubic foot than bulk soil, but it’s easier to transport and you can buy exactly what you need. Bulk soil is usually delivered by the cubic yard, and many suppliers have a minimum delivery amount (often 1–2 yards). To estimate cost, multiply the cubic yards by the price per yard, and add delivery fees if any. For a 4×8 ft bed at 12 inches deep, you need 32 ft³, which is about 1.2 yd³—that’s under the typical minimum for bulk delivery, so bags might be more practical for a single small bed.

Frequently Asked Questions

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

For a 4×8 ft bed that is 12 inches deep, the volume is 4 × 8 × 1 = 32 cubic feet. If you buy 2-cubic-foot bags, you need 32 ÷ 2 = 16 bags. If the bags are 1.5 cubic feet, you need 32 ÷ 1.5 = 21.3, so round up to 22 bags.

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

It depends on the bed’s height and what’s underneath. If the bed is tall (over 18 inches) and sits on a hard surface, you can fill the bottom with lightweight filler like plastic bottles or logs to save soil, but only if the bed is deep enough for plant roots. For beds over grass, you can lay cardboard at the bottom to suppress weeds, then fill with soil. Avoid using rocks or gravel at the bottom because they can create a perched water table that keeps roots too wet.

What is the best soil mix for a raised bed?

A common mix is about 60% topsoil, 30% compost, and 10% other amendments like perlite or vermiculite. The exact ratio depends on what you’re growing. Vegetables generally prefer a loamy, well-draining mix with plenty of organic matter. You can buy pre-mixed raised bed soil, or blend your own from bulk materials.

How much does a cubic yard of soil weigh?

A cubic yard of dry topsoil weighs roughly 2,000 to 2,500 pounds, but wet soil can weigh more. This matters if you’re moving soil by hand or if you’re concerned about the weight on a deck or rooftop. For reference, a cubic foot of dry soil weighs about 75–100 pounds.

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

Yes, the same formula works for any rectangular container. Just measure the inside dimensions of the container in feet and inches, and enter them. For a round pot, use a cylinder volume calculator instead.

Why does my soil settle so much after filling?

Soil, especially compost and loose topsoil, contains air pockets that collapse when watered. The organic matter also decomposes over time, reducing volume. To minimize settling, water the bed thoroughly after filling and add more soil as needed after a few weeks. You can also tamp the soil lightly as you fill, but avoid compacting it too much because plant roots need air.

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 →