If you've ever stood in the garden center parking lot trying to guess how many bags of soil will fill your new raised bed.
Guess low and you're driving back to the store. Guess high and you're storing half-used bags in the garage all summer.
The soil calculator above works for raised beds, pots and containers. Enter your dimensions and it returns your total volume, a full soil blend recipe, and how many bags to buy at your store's bag size.
Below: how to use it, the formulas behind it, and the depth your specific crops actually need.
How to Use the Soil Calculator
For a raised bed
- Choose Raised Bed and pick your shape.
- Enter the inner length and width in feet, or the diameter for a circle.
- Set your fill depth in inches. Presets cover the common cases, or use the depth table below.
- Filling more than one bed? Bump the bed count and it totals everything.
For a pot or container
- Switch to Pot / Container and choose round or square.
- Enter diameter (or length and width) and depth in inches, not feet.
- Results come back in quarts, since that's how potting mix is labeled.
Either way you also get a blend breakdown and a fertilizer amount, so you walk away with a shopping list rather than just a number.
Quick tip: Measure the inside of your bed, not the outside. Walls are usually 1 to 2 inches thick, and that gap multiplies across length, width, and depth.
The Formulas Behind It
If you want to check the math or run it in your head at the store, here it is.
| What you need | Formula |
|---|---|
| Rectangular bed, cubic feet | Length (ft) × Width (ft) × Depth (in) ÷ 12 |
| Round bed, cubic feet | 3.14 × radius (ft)² × Depth (in) ÷ 12 |
| Cubic yards | Cubic feet ÷ 27 |
| Container, dry quarts | Cubic inches ÷ 67.2 |
| Bags needed | Total cubic feet ÷ bag size in cubic feet |
Worked example, a 4x8 bed filled 12 inches deep:
4 × 8 × (12 ÷ 12) = 32 cubic feet, or 1.19 cubic yards.
At 1.5 cubic foot bags, that's 32 ÷ 1.5 = 21.3, so 22 bags. At 2 cubic foot bags, 16 bags.
Container example, a 12-inch round pot, 10 inches deep:
3.14 × 6² × 10 = 1,131 cubic inches ÷ 67.2 = 17 quarts.
One thing to know going in. This is loose fill volume. Bagged soil settles once watered, sometimes by 10 to 20 percent. Fill to the top on day one, let it settle, then top off with an extra bag rather than compensating up front.
Choosing the Right Soil Blend
This is the part most calculators skip, and it matters more than the volume. A bed filled with straight topsoil compacts, drains badly, and starves roots of oxygen.
| Blend | Recipe | Best for |
|---|---|---|
| Classic raised bed | 60% topsoil, 30% compost, 10% potting mix | Most vegetable beds. The default |
| Mel's Mix | ⅓ compost, ⅓ peat moss, ⅓ vermiculite | Square-foot gardening. Consistent and weed-free, but pricier |
| Budget blend | 70% topsoil, 30% compost | Large beds, or decent native topsoil already on hand |
| Custom | Your own percentages | Local topsoil and amendments. Calculator still does the per-ingredient math |
Don't use straight bagged garden soil. It's labeled for in-ground use and compacts hard inside a raised bed. If a bag just says "garden soil" with no blend information, treat it as one ingredient, not the whole mix.
How Deep Should Your Soil Be?
Depth depends on what you're growing. Shallow crops don't benefit from a foot of soil, and deep-rooted crops fork or stall when they hit a hard floor.
| Root depth | Soil depth | Examples |
|---|---|---|
| Shallow | 6 to 8 inches | Lettuce, spinach, radishes, most herbs |
| Medium | 10 to 12 inches | Beans, peas, broccoli, cabbage, peppers |
| Deep | 12 to 18 inches | Tomatoes, carrots, potatoes, squash |
| Extra deep | 18 to 24+ inches | Asparagus, parsnips, sweet potatoes |
A shortcut if your bed sits on soil rather than a patio. Roots don't stop at the bottom of the frame. A 10-inch bed over loosened ground often gives closer to 16 to 18 inches of usable depth. Break up the native soil a few inches before filling and you'll stretch the budget without shorting your plants. Our soil preparation guide covers how to loosen and improve what's already there.
How Many Bags Do I Need?
Bag sizes vary more than you'd expect, and potting mix is sold in dry quarts, not liquid.
| Bag size | Cubic feet | Bags per cubic yard |
|---|---|---|
| 1 cu ft | 1.0 | 27 |
| 1.5 cu ft | 1.5 | 18 |
| 2 cu ft | 2.0 | 13.5 |
| 3 cu ft | 3.0 | 9 |
| 16 qt | 0.62 | 43 |
| 25 qt | 0.97 | 28 |
| 40 qt | 1.56 | 17 |
| 50 qt | 1.94 | 14 |
Anything over about 1 cubic yard, call a local landscape supplier and ask about bulk pricing. Bagged soil is convenient, but you're paying for packaging and handling on top of the material.
Raised Bed Soil vs. Potting Soil
Don't buy one pile for both. Raised bed soil is heavier and holds structure, which works when there's unlimited drainage underneath. In a pot, that same density turns into waterlogging and root rot, because water can only escape through one small hole.
For containers, use a soilless potting mix made from peat or coconut coir, perlite, and compost. It holds moisture without staying soggy in a confined space.
Common Mistakes to Avoid
Measuring the outside of the bed. The single biggest source of over-ordering.
Ignoring settling. Fill to the top, expect an inch or two of drop, plan to top off.
Using straight compost. Compost is an amendment, not a growing medium. Too much and roots sit in something closer to mulch than soil.
Skipping the depth check. A universal "fill it 8 inches" rule works for lettuce and falls apart the moment you plant tomatoes.
Frequently Asked Questions
What does a soil calculator actually tell you?
Total volume in the units soil is sold in, which is cubic feet and cubic yards for beds and quarts for containers. This one also splits that volume into a blend recipe and converts it to a bag count, so you get a shopping list rather than a single number.
How much soil does a 4x8 raised bed need?
32 cubic feet at 12 inches deep, or 21 cubic feet at 8 inches. That's 22 bags of 1.5 cubic foot soil for the deeper fill, or 16 bags of 2 cubic foot.
Should I round up or down on bags?
Round up, always. Soil settles, and running one bag short mid-project means a second trip.
Does the calculator account for settling?
No, and that's deliberate. It gives you loose fill volume, which is what you buy. Settling happens after watering, and topping off later is cheaper than guessing at a compression rate up front.
Can I use it for grow bags and fabric pots?
Yes. Use the round container setting with the bag's flat diameter and its height. Fabric pots bulge slightly when filled, so expect to need a little more than the number shows.
What can I put at the bottom to use less soil?
Untreated logs, sticks, or leaves in a deep bed fill space cheaply and break down over time. Leave at least 8 to 10 inches of real soil on top. Our raised bed guide covers this in more detail.
Use our vegetables spacing calculator for plant spacing guide.
