Soil Volume Calculator

Soil orders go wrong for two predictable reasons: the bed is measured casually, or the result is treated as more precise than the site deserves. A raised bed, planter box, border, or mulch ring is a three-dimensional space. Once you know its length, width, and fill depth, the math is simple. The harder part is choosing the right depth, understanding what bag sizes mean, and leaving enough margin for settling, uneven grade, and supplier rounding.
The Soil Volume Calculator turns those measurements into cubic feet, cubic yards, and common bag counts. Use it before you buy raised-bed mix, topsoil, compost, mulch, gravel, or sand. It is especially useful when you are comparing bagged material at a garden center with bulk delivery from a landscape yard, because those two purchasing paths usually use different units.
What the calculator does
The calculator estimates the geometric volume of the space you want to fill. For a rectangular bed, it multiplies length by width by depth. Because many gardeners measure length and width in feet but think about depth in inches, the calculator converts depth into feet first. It then converts cubic feet to cubic yards by dividing by 27, because one cubic yard contains 27 cubic feet; LSU AgCenter uses the same cubic-feet-to-cubic-yards conversion in its landscape mulch guidance (cubic yards by dividing).
It also converts the volume into 1.0, 1.5, and 2.0 cubic foot bags. That matters because bag labels are usually printed in cubic feet, while bulk products are commonly sold by the cubic yard. A result of 1.19 cubic yards may not mean much at the store, but 32 cubic feet or 22 bags of 1.5 cubic foot mix is easy to act on.
What it does not do
The calculator does not measure soil quality, drainage, nutrient content, pH, contamination risk, or whether a mix is appropriate for a crop. It also does not know whether your bed has a sloped bottom, bowed sides, buried logs, old soil already in place, or a supplier that loads generously or lightly.
Treat the number as a purchase estimate, not a lab result. If you are filling a food garden with imported topsoil, ask where the soil came from and whether the seller can provide test information. University of Maryland Extension warns that topsoil sales may be loosely regulated in some places and recommends buying from reputable sources, examining bulk topsoil, and asking about its origin and test results (buy topsoil in bulk).
Use this formula when length and width are in feet and depth is in inches:
Cubic feet = length in feet x width in feet x depth in inches / 12
Then convert to cubic yards:
Cubic yards = cubic feet / 27
The same math can also be written as:
Cubic yards = square feet x depth in inches / 324
That version works because 324 square feet covered 1 inch deep equals 27 cubic feet. A public soil and mulch guide from Beaufort County, South Carolina gives the same coverage logic: one cubic yard covers 324 square feet at 1 inch deep, or 108 square feet at 3 inches deep (324 square feet).
A quick worked example
Suppose you have a 4 foot by 8 foot raised bed and want to fill it 12 inches deep.
Length x width gives you 32 square feet. A 12 inch fill depth is 1 foot. So the bed holds:
4 x 8 x 12 / 12 = 32 cubic feet
Now convert cubic feet to cubic yards:
32 / 27 = 1.19 cubic yards
For bags, divide 32 cubic feet by the bag size and round up. With 1.5 cubic foot bags:
32 / 1.5 = 21.33, so buy 22 bags
The round-up is intentional. You cannot buy one-third of a sealed bag, and a slightly low bed is usually more annoying than a small leftover amount.
Measure the inside space, not the outside lumber
For framed raised beds, measure the inside length and width of the space that will actually hold soil. A bed built from 2-inch-thick lumber is not the same inside size as its outside footprint. If you calculate from the outside dimensions, you may over-order by a small but noticeable amount, especially on narrow beds.
Depth should also be the actual fill depth, not the height of the side board. If a 12 inch board sits 1 inch below grade or you plan to leave a 1 inch watering lip at the top, the usable fill depth is closer to 10 or 11 inches. That difference is not trivial. On a 4 foot by 8 foot bed, every extra inch of depth adds 2.67 cubic feet, or almost two 1.5 cubic foot bags.
Choose depth based on the job
The right depth depends on whether you are filling a raised bed, refreshing a border, top-dressing with compost, or laying mulch. For raised beds on hard surfaces, University of Maryland Extension gives minimum depths of 8 inches for leafy greens, beans, and cucumbers, and 12 to 24 inches for pepper, tomato, and squash (minimum of 8 inches). Beds open to native soil can often rely on the loosened soil below, but beds on concrete, patios, rooftops, or compacted subsoil need more careful depth planning.
For mulch, the target is usually shallower. LSU AgCenter recommends maintaining organic mulch at a total depth of 2 to 3 inches and warns that mulch piled too deeply can interfere with oxygen exchange around roots (2-3 inches). For fine compost used as a surface dressing, 1 to 2 inches is often enough for many landscape beds; the Beaufort County guide lists compost, leaves, sawdust, and medium or fine-ground bark at 1 to 2 inches deep (one to two inches).
Bagged soil versus bulk soil
Bagged soil is convenient for small projects. It fits in a car, stacks neatly, and lets you buy a known labeled product. It is often the cleanest choice for a single planter, a balcony box, or a small raised bed where delivery fees would dominate the cost.
Bulk soil makes more sense as volume rises. University of Minnesota Extension notes that high-quality topsoil is commonly available in bulk from garden centers and that buying by the cubic yard is generally much cheaper than buying individual bags (buying in bulk). Bulk ordering also reduces plastic bag waste and repeated hauling, but it introduces practical constraints: delivery access, driveway space, weather, wheelbarrow distance, and the need to move the pile before it compacts or washes.
If the calculator returns less than half a cubic yard, bags may be simpler. Between about half a yard and two yards, compare both options. Above two yards, bulk usually deserves a serious price check, but local delivery charges can still change the answer.
Why soil mix matters even when volume is right
A perfect volume estimate can still lead to a poor bed if the material is wrong. Raised beds need a mix that holds water, drains well, and supports roots. University of Minnesota Extension describes a raised-bed mixture of roughly one-half to two-thirds topsoil and one-third to one-half plant-based compost, with adjustments for heavy clay topsoil (raised-bed mixture).
That recommendation is useful because it separates volume from composition. The calculator can tell you that a bed needs 32 cubic feet, but it cannot decide whether all 32 cubic feet should be topsoil, compost, raised-bed mix, or a blended product. In most vegetable beds, straight compost is not the same as a balanced soil mix. Straight potting mix can also behave differently outdoors, especially in tall beds that dry quickly.
Use the calculator to size the order, then use local extension guidance, crop needs, and soil-test results to choose what fills that volume.
Allow for settling and uneven fill
Fresh soil mixes settle. Compost-rich blends, fluffy bagged raised-bed mixes, and screened topsoil can all shrink after watering, foot traffic around the bed, and the first few weeks of weather. The calculator does not add a universal settling factor because settling depends on texture, organic matter, moisture, how loosely the material was loaded, and how firmly you place it.
A practical margin is to order a little more than the exact geometric result when filling a new bed from empty. Ten percent extra is usually reasonable for small to medium garden beds; 15 percent may be safer for very fluffy mixes or beds that must finish level with the top edge. For an established bed that you are only topping up, measure the actual low spots instead of assuming the whole bed needs the same depth.
Bulk deliveries add another wrinkle: many suppliers sell in quarter-yard or half-yard increments. If your result is 1.19 cubic yards, the real purchase may be 1.25 or 1.5 cubic yards depending on the supplier’s minimums.
Account for soil density and weight
Volume tells you how much space the material occupies. It does not tell you how much the material weighs. Wet topsoil, dry compost, bark mulch, sand, and gravel can have very different weights at the same volume. This matters for vehicle payload, raised decks, rooftop planters, balconies, and anyone moving material by hand.
Soil compaction and bulk density are closely related. USDA NRCS explains that bulk density is tied to compaction, and that practices reducing disturbance and increasing organic matter can help address poor bulk density over time (bulk density). University of Minnesota Extension also notes that as pore space decreases, bulk density increases, and compacted soils affect water movement and root growth (bulk density increases).
For ordinary ground-level beds, weight is usually a handling issue. For elevated structures, it can become a structural issue. Do not use a soil volume calculator as a load-bearing calculator for a balcony, roof, deck, retaining wall, or planter attached to a building. Get the load limit first, then choose a lightweight engineered mix if the structure allows planting at all.
Rectangular beds, round beds, and irregular areas
This calculator is built around rectangular or square spaces because most raised beds, planters, and garden strips can be measured that way. If your bed is L-shaped, break it into rectangles, calculate each section, and add the results. If it is triangular, estimate the rectangle that would contain it and divide that part by two.
For round beds, use a circle formula: radius x radius x 3.14 x depth. A 6 foot diameter round bed has a 3 foot radius. At 12 inches deep, it holds about 28.3 cubic feet, or 1.05 cubic yards. If the shape is oval, use length x width x 0.785 x depth. These approximations are usually close enough for soil ordering because material is sold in rounded quantities anyway.
For curved borders, do not fight the geometry too hard. Split the area into rough rectangles and triangles, then add a modest margin. The goal is not survey-grade precision. The goal is to avoid being short by ten bags or paying delivery for a pile you cannot use.
Raised-bed example: new vegetable bed
Imagine a new vegetable bed that measures 3 feet wide, 10 feet long, and 14 inches deep inside the boards. You want to leave 1 inch at the top so water and mulch do not wash over the edge. Your real fill depth is 13 inches.
The volume is:
3 x 10 x 13 / 12 = 32.5 cubic feet
Converted to cubic yards:
32.5 / 27 = 1.20 cubic yards
If you are buying 2.0 cubic foot bags, the minimum bag count is:
32.5 / 2 = 16.25, so buy 17 bags
If this is a brand-new fill with a fluffy raised-bed blend, buying 18 or 19 bags may be more realistic. If you are ordering bulk, ask whether the supplier can deliver 1.25 yards. If the minimum is 1.5 yards, make sure you have a place to use the extra soil.
Mulch example: landscape border
Now imagine a shrub border that is 5 feet wide and 24 feet long. You want a 3 inch mulch layer.
The area is 120 square feet. Three inches is one-quarter of a foot. The volume is:
120 x 3 / 12 = 30 cubic feet
Converted to cubic yards:
30 / 27 = 1.11 cubic yards
If mulch comes in 2.0 cubic foot bags:
30 / 2 = 15 bags
Because mulch depth affects plant health, do not solve a shortage by piling mulch against stems or trunks. Keep mulch away from tree trunks and shrub crowns, and treat 2 to 3 inches as a maintained layer rather than permission to bury the base of the plant.
Compost example: topping an existing bed
For an established 4 foot by 12 foot bed that needs a 1 inch compost top-dressing, the volume is much smaller than a full refill.
The area is 48 square feet. The depth is 1 inch:
48 x 1 / 12 = 4 cubic feet
That is only 0.15 cubic yards. It is also three 1.5 cubic foot bags, rounded up from 2.67. If you accidentally calculate this bed as a 12 inch refill instead of a 1 inch top-dress, you would order 48 cubic feet instead of 4. That is the kind of unit mistake the calculator helps prevent.
Top-dressing is not the same as rebuilding the whole root zone. For fertility decisions, use a soil test. Clemson HGIC notes that soil testing provides fertilizer and lime recommendations and gives a practical sampling method for garden soils (soil test provides).
The most common mistake is mixing inches and feet. If you enter 12 as feet instead of 12 as inches, the answer becomes twelve times too large. If you enter 0.5 inches when you meant 0.5 feet, the answer becomes twelve times too small.
The second mistake is using the wrong depth for the job. A 3 inch mulch layer, a 1 inch compost top-dress, a 6 inch refresh, and a 12 inch raised-bed fill are different projects. They may cover the same square footage, but they do not use the same volume.
The third mistake is ignoring what is already in the bed. If an old raised bed already has 7 inches of usable soil and you want a final depth of 12 inches, you need 5 inches of new material, not 12. Measure the gap from the current settled surface to the target surface.
The fourth mistake is forgetting access. A cubic yard is not a small object. It may arrive as a heavy pile at the curb, and the calculator cannot move it through a narrow gate, up steps, across wet turf, or onto a rooftop.
Use this page when the main question is “how much material fills this space?” If the question shifts to what blend should go into a container or raised bed, use the Soil Mix Calculator to compare ingredient ratios. If the job is specifically compost volume or compost application, the Compost Calculator is the better next stop.
For bulk topsoil comparisons, the Dirt & Topsoil Calculator can help keep soil, fill dirt, and topsoil decisions separate. For vegetable spacing and seed planning after the bed is filled, use the Vegetable Seed Calculator or Plant Population Calculator. If poor drainage or stress shows up later in container plants, the Root Rot Risk Checker can help you evaluate the plant-care side of the problem.
When to slow down before ordering
Slow down when the project has structural, food-safety, or drainage consequences. Do not guess soil volume for a rooftop bed, balcony planter, retaining-wall backfill, or large raised bed built over a hard surface. Confirm load limits, drainage paths, and waterproofing before material arrives.
Slow down when imported soil will be used for edible crops and you do not know its source. Ask the supplier what the product contains, whether it is screened, whether compost is blended in, and whether recent test information is available. If your existing soil may be contaminated because of old paint, industrial activity, flooding, heavy traffic, or past chemical use, contact your local extension office or environmental health department before mixing it into a food garden.
Slow down when the calculator’s result is close to a supplier breakpoint. If 1.01 yards forces a 1.5 yard delivery, check whether a slightly shallower depth is acceptable or whether the extra material can be used elsewhere.
Conclusion
The Soil Volume Calculator gives you the clean math behind soil, compost, mulch, and topsoil orders: length times width times depth, converted into cubic feet, cubic yards, and bag counts. The result is strongest when you measure the inside dimensions, choose a depth that matches the job, and leave a realistic margin for settling and supplier rounding.
Use the number to avoid under-ordering, compare bags with bulk delivery, and plan the labor before material lands in your driveway. Then apply judgment where the calculator cannot: soil quality, crop needs, drainage, weight, contamination risk, and whether the space can safely hold what you plan to put there.