How the Soil Calculator Works
This tool calculates the volume of soil needed for a rectangular bed or planter in three simple steps. First, it converts your fill depth from inches to feet by dividing by 12. Next, it multiplies the length, width, and converted depth to find the total volume in cubic feet. Finally, it converts that volume to cubic yards (dividing by 27) and divides by your chosen bag size to determine how many bags you'll need, rounding up so you never run short.
The cubic yards result is especially useful if you're ordering bulk soil, since garden centers and landscape suppliers typically sell soil by the cubic yard. The bags result is handy for smaller projects where picking up bags at the store makes more sense.
Formula Used
Volume (cu ft) = Length × Width × (Fill Depth / 12)
Volume (cu yd) = Volume (cu ft) / 27
Bags Needed = ceil(Volume (cu ft) / Bag Size)
Worked Example
Let's say you're filling a standard 8 ft × 4 ft raised bed:
- Length: 8 feet
- Width: 4 feet
- Fill Depth: 12 inches (1 ft)
- Bag Size: 1.5 cu ft
- Volume: 8 ft × 4 ft × 1 ft = 32 cu ft
- Cubic yards: 32 / 27 = 1.19 cu yd
- Bags needed: ceil(32 / 1.5) = 22 bags
A 8×4 raised bed filled to 12 inches needs about 1.19 cubic yards of soil, which works out to 22 bags of the 1.5 cu ft size.
Topsoil, Garden Soil, or Potting Mix?
Choosing the right soil type matters as much as the quantity. Topsoil is the natural upper layer of earth — it's best for large fill projects, leveling ground, or mixing into existing beds. Garden soil is enriched with compost and organic matter, making it a good choice for amending in-ground beds. Potting mix is a lightweight, soilless blend designed for containers and raised beds where drainage and aeration are critical.
How Deep Should a Raised Bed Be?
Most raised beds need 6–12 inches of fill. Shallow-rooted crops like lettuce, radishes, and herbs are happy in 6 inches. Deep-rooted vegetables such as tomatoes, peppers, and carrots prefer 10–12 inches. Keep in mind that soil settles over time — it's completely normal for a freshly filled bed to drop an inch or two during the first season. Slightly overfilling when you start is standard practice, and a spring top-up of 1–2 inches keeps beds at the right level.
Practical Buying Guidance
Soil is sold in two very different ways, and your calculator result works directly for both:
- Bagged soil — typically 1.5, 2, or 3 cubic foot bags. A 4×8 bed at 8 inches deep needs about 21 cubic feet, or roughly 14–15 bags at 1.5 cu ft each. Bags are convenient for small projects and easy to transport, but they cost more per cubic foot and create plastic waste. Bags in the 1.5–2 cu ft range are what most home centers stock.
- Bulk delivery — landscape suppliers sell by the cubic yard. For projects needing half a cubic yard or more, bulk is usually cheaper per cubic foot and produces less waste. A cubic yard is 27 cubic feet — about 18 bags of 1.5 cu ft soil. Order a little extra; suppliers often round up, and the delivery fee is the same whether you order 0.7 or 1.0 cubic yards.
If you're ordering bulk, ask whether the price includes delivery and whether the soil is screened (free of large clumps and debris) — unscreened soil can contain rocks, roots, and clumps that make filling a raised bed frustrating. Bagged soil is almost always screened and blended.
Common Mistakes When Measuring and Ordering Soil
- Guessing the depth instead of measuring — a 4-inch depth versus a 12-inch depth triples the soil requirement. Measure the actual depth you want for your plants, not what feels convenient.
- Forgetting that soil settles — fresh soil can drop 1–2 inches in the first season as air pockets compress and water flushes through. Plan to top up once a year, or overfill slightly at the start.
- Ordering exactly the calculated volume — always add a buffer. Spillage, uneven filling, and settling mean you'll almost always use more than the calculator says. Rounding up your bag count or adding 10–15% to a bulk order is cheap insurance.
- Mixing bagged and bulk without a plan — if your bed needs 0.7 cubic yards, ordering 1 cubic yard of bulk leaves you with leftovers, but ordering 25 bags of 1.5 cu ft soil is 37.5 cubic feet — about 1.4 cubic yards — which is nearly double. Match the bag count to the actual volume, not a round number.
- Using the wrong soil type for the application — potting mix in a large in-ground bed is expensive and unnecessary; topsoil in a container will compact and drain poorly. Match the product to the use.
- Not checking what's underneath — if your raised bed sits on concrete or compacted soil rather than open ground, drainage will differ and root depth may be limited. Consider this when choosing depth.
Limitations
Depth is not one-size-fits-all. The right fill depth depends on what you're growing, what's below the bed, and the soil type you're using. The calculator gives you volume; choosing the depth and the soil mix is your call. Always check seed packets, plant tags, or gardening references for the specific depth requirements of your crops, and verify bag yields with the manufacturer — bag sizes and actual contents can vary.
Measure the Space That Will Actually Hold Soil
Outside bed dimensions are not the same as internal capacity. For example, the interior of a nominal 8 × 4-ft frame built with nominal 2 × 6 lumber is roughly 7 × 3 ft; at 12 inches deep it holds about 21 ft³, not the 32 ft³ produced from the outside footprint. Posts, liners, root balls, drainage layers, and uneven corners can reduce that volume again.
- Measure inside the frame at more than one point, and use the smallest relevant dimension if the sides are not parallel.
- Set the target after settling for the finished root-zone depth rather than the height of a loose fill pile.
- Subtract permanent space occupied by roots, posts, drainage material, or another base layer before converting the remaining capacity to bags.
- Match the supplier’s unit basis—a nominal bag volume, loose bulk cubic yard, and settled cubic yard are not interchangeable without an adjustment.
Frequently Asked Questions
What is the difference between topsoil, garden soil, and potting mix?
Topsoil is the natural upper layer of soil, best for filling large areas or leveling the ground. Garden soil is enriched topsoil blended with compost and organic matter, ideal for amending in-ground beds. Potting mix is a lightweight, soilless blend (peat moss, perlite, compost) designed for containers and raised beds where drainage and aeration matter most.
What fill depth should I use for a raised bed after it settles?
Plan for 6–12 inches of finished root-zone depth: 6 inches can suit lettuce and herbs, while tomatoes and carrots usually need 10–12 inches. Fresh mixes can settle 1–2 inches, so fill slightly above the target and measure inside the frame. The calculator uses the entered depth geometrically and does not model settling.
Why does soil settle after filling a raised bed?
Fresh soil contains air pockets that compress as it settles and as water flushes through it. It's normal for a new raised bed to drop 1-2 inches over the first season. Slightly overfilling when you first fill the bed is common practice, and topping up in the spring is a normal annual task.
How do I use inside bed dimensions to get a soil bag count?
Measure the inside length, inside width, and settled fill depth—not the outside frame. A 7 × 3-ft interior filled to 12 inches holds 7 × 3 × 1 = 21 ft³; at 1.5 ft³ per bag, that is 14 bags. The 8 × 4-ft outside footprint would give 32 ft³, but it overstates capacity once posts, liners, or uneven corners are present.
When is a bulk soil order better than 1.5-ft³ bags?
For a 0.79-yd³ requirement, 1.5-ft³ bags round up to 15 bags; a bulk order avoids handling 15 packages, but delivery minimums and loading access can erase the savings. Use the cubic-yard result for bulk, while remembering that the supplier’s loose or settled volume and the bed’s inside dimensions must match.