Calculator · Garden
Soil Calculator
Estimate the soil volume for a garden area or container, then convert the result into cubic yards and whole bags.
Quick Answer
For a rectangular area, cubic feet = length × width × depth in inches ÷ 12. Divide cubic feet by 27 for cubic yards. These are math-derived unit formulas. For a circle, use π × radius² × depth in feet. The calculator converts dimensions and depth consistently, then divides by the stated bag capacity and rounds up to a whole bag.
Example: a 4 ft × 8 ft area with an example fill depth of 10 inches needs 32 × 10 ÷ 12 = 26.67 cubic feet, or 26.67 ÷ 27 = 0.99 cubic yard. At an example bag capacity of 1.5 cubic feet, that is 17.78 bags, so the math-derived whole-bag result is 18. The area, depth, and bag capacity here are illustrative inputs, not a planting prescription.
Volume formula and sample arithmetic are math-derived · choose a planting depth from the cited guidance below.
Calculate soil volume and bags
Choose a footprint, enter the fill depth, and use the capacity printed on your bag.
How much soil do I need? The formula
A soil calculator answers a volume question: how much material will fill a measured space to a chosen depth? Begin by measuring the footprint, then decide how deep the material needs to be for the use you have in mind. Keep those two decisions separate. The calculator can do the arithmetic accurately, but it cannot decide whether a particular planting situation calls for a shallow surface amendment, a container medium, or a deeper root zone.
For a rectangle, multiply length by width to get square feet, then multiply by depth in feet. Since many gardening recommendations describe depth in inches, divide that depth by 12 before multiplying. The compact formula is length × width × depth in inches ÷ 12 = cubic feet. Then divide cubic feet by 27 to get cubic yards. Both divisors are mathematical unit conversions: a foot contains 12 inches, and a cubic yard contains 27 cubic feet.
For a circle, first find its radius by halving the diameter. Multiply π by radius squared to find the circular footprint, then multiply that area by depth in feet. In symbols, volume = π × r² × depth. The calculator asks for diameter because it is often easier to measure across the opening; it performs the radius step for you. Metric inputs use the same geometric idea, with cubic meters as the intermediate volume. All conversions and the circle constant are math-derived.
Not every garden outline is a clean rectangle or circle. Divide an L-shaped or irregular space into simple rectangles, calculate the volume of each section, and add the results. For a round planter, use its inside diameter rather than the outside rim if the wall takes up meaningful space. For a tapered pot, this simple cylinder-style estimate is an approximation; measuring top and bottom widths and using an average footprint can help, but record that as an estimate rather than an exact measurement.
It is also useful to separate connected areas that have different depths or materials. A border with a deeper planting pocket and a shallower path edge should be treated as separate shapes, then summed. If a slope changes the fill height, measure at several points and decide whether you are calculating a level finished surface or following the existing grade. Record the assumptions beside the result. Clear measurement notes make a cubic-yard estimate easier to compare with a delivery and make it possible to repeat the calculation if the plan changes.
Depth is the decision with the biggest practical effect. If a planting guide specifies a root-zone or media depth, use that cited value. For soil improvement, the recommended amount may be described as a surface layer incorporated into existing soil rather than as a full fill. For an empty container, select a medium suitable for that growing method. If the area already contains soil, subtract the material that is already at the desired finished level before ordering. These choices prevent a mathematically correct volume from turning into the wrong purchase.
Recommended soil depth by planting situation
There is no one depth that fits every container, bed, lawn, or soil improvement project. Plant size, root habit, drainage, and whether roots can reach existing ground all change the recommendation. The entries below preserve the conditions attached to each extension recommendation. Ranges belong to their named container or planting situation; they should not be mixed into a universal depth target.
Minnesota Extension describes an unframed, flat-topped mound as usually 6–8 inches high, while Utah State says a framed box should be at least 6–12 inches high; these are structure examples, not interchangeable root-depth rules.
| Situation | Depth or material guidance | Context | Source |
|---|---|---|---|
| Small vegetable and herb containers | 4–6 inches of growing media | Maryland container category | UMD |
| Medium vegetable containers | 8–12 inches | Includes its medium-container group | UMD |
| Large vegetable containers | 12–16 inches | UMD gives this media depth and separately notes a minimum media volume | UMD |
| Shallow framed bed with access to native soil | Less than 12 inches deep should have no bottom | Roots can reach existing soil below | USU |
| Typical framed vegetable bed | At least 6–12 inches high | USU guidance for accommodating most vegetable rooting depth | USU |
| Annual vegetables | 12–18 inches of soil depth | Root vegetables may require greater depth | UConn |
| Hard-surface bed: leafy greens, beans, cucumbers | At least 8 inches | Roots cannot extend into soil below | UMD |
| Hard-surface bed: peppers, tomatoes, squash | 12–24 inches | UMD hard-surface context | UMD |
| In-ground flowers and vegetables | Compost layer 1–2 inches, mixed 6–8 inches deep | Minnesota soil improvement guidance | UMN |
| New garden soil surface preparation | Compost layer 3–4 inches, mixed into the top 8–12 inches | Oregon State new-garden recommendation | OSU |
| Existing lawn topdressing | Compost 1/4–1/2 inch deep | Oregon State guidance, paired with aeration | OSU |
| Existing lawn topdressing | Up to 1/4 inch | Virginia Extension guidance for quality material | Virginia |
Garden soil calculator
For a garden area, calculate the surface footprint first and choose a depth from the situation that matches your site. A shallow bed over open ground may share root access with the soil below; a bed on concrete or another hard surface needs its full rooting depth supplied within the structure. The distinction matters more than the label on a delivery ticket. Use the surface dimensions and fill depth to estimate volume, then check the source row that best matches the planting context.
Potting soil calculator
For pots, measure the usable interior dimensions and use a growing medium intended for containers. Maryland Extension separates small, medium, and large vegetable containers into different depth categories, while Minnesota describes potting mixes as soilless media that can include peat moss, compost, perlite, and vermiculite. A bag marked garden soil is intended for in-ground planting and can be too heavy for pots or elevated boxes. Those are distinct products and uses, so the calculator measures quantity without treating them as interchangeable.
When a guide gives a range, use plant needs and the actual container category to choose within it. A deeper container does not mean every inch must be filled to the rim; allow room for watering and plant growth. For established ground beds, measure from the surface to the intended finished grade. If you are adding material over an existing lawn or planting bed, a thin topdressing recommendation is not the same as constructing a root zone from scratch.
Bulk soil vs bagged soil: converting cubic yards to bags
Bulk suppliers commonly quote soil by cubic yard, while bagged material is labeled by volume. Convert both options to the same unit before comparing quantities. One cubic yard is 27 cubic feet, a math-derived conversion. A bag-count estimate is cubic feet required divided by the cubic feet printed on one bag, rounded up because a partial bag is not a complete purchase unit. Iowa State notes that potting soil is sold in cubic-foot bags; always use the actual label capacity for the product in front of you.
Consider a math-derived example: a 4 ft × 8 ft footprint filled to an example depth of 10 inches has an area of 32 square feet. Its volume is 32 × 10 ÷ 12 = 26.67 cubic feet. Dividing by 27 gives about 0.99 cubic yard. If each illustrative bag holds 1.5 cubic feet, divide 26.67 by 1.5 to get 17.78 bags, then round up to 18. The footprint and depth here demonstrate arithmetic; they do not recommend a fill depth for a real planting bed.
For a second math-derived example, a bulk order of 2 cubic yards contains 2 × 27 = 54 cubic feet. At an example bag capacity of 1.5 cubic feet, 54 ÷ 1.5 = 36 bags. That arithmetic lets a gardener compare a quoted bulk volume with a known package volume. It does not predict compaction, settling, spillage, or whether every last cubic foot will fit the planned space.
If one supplier quotes a delivered amount by cubic yard and another sells bags, normalize the quote to a common volume before comparing. For a price comparison, divide a bulk quote by its cubic yards to get a price per cubic yard. For a bag price, multiply the per-bag price by the number of bags needed to supply 27 cubic feet, or convert it to a per-cubic-yard equivalent; those volume relationships are math-derived. These are comparison formulas only; no typical price is implied. If you use a sample dollar amount in your own spreadsheet, label it “example price” and replace it with a current local quote.
Volume is especially useful for planning the quantity, but it does not tell you the delivered mass. Soil and compost weight can vary with moisture, composition, particle size, and compaction. Since a home-garden topsoil weight per cubic yard was not verified in the source set, this page does not give a weight estimate. Ask the supplier for the product’s current loading information if vehicle capacity or handling limits matter.
Topsoil vs compost vs potting mix: differences and mix ratios
Topsoil, compost, and potting mix describe different materials. Rutgers Extension characterizes bagged topsoil as mineral soil that is often improved with compost, while noting that the product label has no legal specification. The practical consequence is that “topsoil” alone does not promise a fixed texture or recipe. Read the product description and ask what it contains if the material needs to meet a specific purpose.
Oregon State describes compost as partially broken-down organic material. It can be used as an amendment or as one ingredient in a soil blend, but it is not automatically equivalent to mineral topsoil. Oregon State recommends that compost make up no more than 25% by volume for its bed-filling guidance. That explicit measurement basis matters. The same source also lists a three-way mix of equal parts topsoil, sand, and compost as one common mix, while noting it as an example rather than a universal prescription.
Minnesota Extension gives a different bed mixture: around 1/2–2/3 topsoil with 1/3–1/2 plant-based compost. The source does not say whether those proportions are by weight or volume, so they should not be silently reinterpreted as a volume formula or merged with Oregon State’s 25% ceiling. Keep each recommendation attached to its source and intended use. A recipe is useful only when its measurement basis and context are understood.
Minnesota Extension describes potting mixes as soilless growing media, often composed of peat moss, compost, perlite, and vermiculite. Their structure is designed for containers and differs from mineral garden soil. Minnesota also cautions that bagged garden soil should be used for planting in the ground because it can be too heavy for pots or elevated boxes. This is why a “potting soil calculator” search may lead to the same volume math, yet the material decision still depends on the container use.
Other blend advice is context-specific too. Maryland Extension gives a mixture of compost and purchased topsoil in a 1:2 or 1:1 ratio for a poor-quality existing bed, and an alternative blend of compost with soilless growing mix in a 1:1 ratio. Its cited phrasing does not specify a measurement basis, so preserve the ratios as the source states them rather than claiming they are definitely by weight or volume. For hard-surface beds at least 16 inches deep, that guide permits up to 20% topsoil by volume. Each limit remains tied to that setup.
Before ordering a blend, decide whether the project needs mineral soil, organic amendment, or a container medium. Then use the matching source guidance, calculate each component volume if mixing materials, and ask the supplier how its blend is measured. The calculator handles total volume; it does not infer the composition behind a product name.
Should you put gravel or a drainage layer at the bottom?
For a container, do not put a coarse drainage layer such as gravel or broken pot fragments under the growing medium. Washington State University says this kind of “drainage material” hinders water movement. Its explanation is that water does not readily move from finer-textured medium into a coarser layer until the finer material is saturated. A coarse layer can therefore leave a wetter zone above it instead of improving drainage.
For container drainage, use an appropriate potting medium and a pot with open drainage holes, and keep those openings from becoming blocked. The cited evidence supports that container advice. It does not establish a universal statement about every in-ground planting bed, raised structure placed on soil, or landscape design. The source review did not verify a broad rule that every ground-connected bed should or should not have a gravel base, so this page makes no such blanket claim.
Likewise, there is no source-backed need to add an extra gravel layer to every container simply because a pot is deep. The objective is to let excess water leave through the designed outlet while retaining a suitable growing medium for roots. If a pot has no drainage opening, choosing a container with drainage is a more reliable structural fix than inserting coarse material beneath the soil.
Common soil-buying mistakes: volume vs weight, and settling
The first common mistake is comparing volume from one seller with weight from another as if they were interchangeable. A cubic yard describes space occupied, while pounds describe mass. Moisture, material blend, texture, and compaction can change how much a measured volume weighs. The sources reviewed for this page do not establish a home-garden topsoil weight per cubic yard, so no conversion or truckload estimate is presented. Get product-specific loading details from the supplier if you need to plan transport.
A second mistake is assuming that the amount ordered will remain at exactly the same finished height forever. Oregon State notes that newly filled beds can sink over time as compost in the mix decomposes. Iowa State notes that potting soil settles over a period of days to weeks. These are qualitative cautions: the evidence does not provide one settling percentage or a universal extra-fill depth. Avoid adding an invented percentage to the calculator result.
Instead, measure the space carefully, calculate the initial fill volume, and inspect the finished level after the material has settled. Keep a note of the blend and source so you can order a compatible top-up if the surface drops. For a container, leave practical headroom for watering and plant growth rather than packing the pot to its rim. The exact headspace depends on the vessel and plant and is not quantified in the evidence used here.
It is also easy to buy more material than the project requires by measuring the outside dimensions of a planter or forgetting that existing soil already occupies part of the volume. Measure the interior footprint, use the actual depth that must be filled, and subtract any usable material already present. For a non-rectangular footprint, separate it into shapes, calculate each part, and sum the volumes. These simple checks reduce errors without pretending that a calculator can account for unknown voids or settling behavior.
Finally, keep the product intended for the planting location. A bag label can sound broad while the material is designed for one use. Compare the ingredient description with the extension distinction between mineral topsoil, compost, and soilless potting mix. Once that choice is made, the volume calculation becomes much more useful: it tells you the amount of the right category of material to plan for.
It can also help to record what you measured before placing an order: the inside footprint, the fill depth you selected, whether existing soil remains in place, and the volume printed on each bag. That short note makes the estimate reproducible if a delivery arrives in more than one load or if you need to revisit the project later. The calculator expresses an ideal geometric volume; real spaces can have irregular edges, roots, stones, or settled material that make a field measurement slightly different.
For a bed that touches open ground, the amount purchased may not need to fill every inch of the frame if plants can root downward into existing soil. For a structure on pavement, the growing medium must provide the root depth within the structure. Maryland Extension distinguishes these situations in its guidance for beds on hard surfaces, while Utah State advises that a shallow bed over soil remain open underneath. Apply those conditions before using the area-and-depth formula, so the selected depth represents the actual fill needed.
For a dedicated calculation, see how much soil for a raised bed.
Frequently asked
Helpful next steps
Estimate compost volume
Convert an amendment depth into volume and bags.
Plan a watering schedule
Estimate weekly irrigation after accounting for rainfall.
Estimate mulch for the beds
Turn area and depth into cubic yards and bags of mulch.
See a worked compost-volume example
Follow area, depth, volume, and bag conversion together.