Garden Soil Calculator
The Garden Soil Calculator estimates how much topsoil, compost, or garden soil blend you need to fill a bed at your desired depth, in cubic yards or cubic meters and bags. Bag counts are always rounded up to the nearest whole bag, since you can't buy a partial bag, so the total you see is enough to fill your bed at the depth you specified. Switching to metric doesn't just relabel the units — the calculator converts your entered meters and centimeters to feet and inches internally, runs the same volume math, then converts the result back to liters and cubic meters.
Switch between U.S. Customary and Metric units.
How This Tool Works
Pick your units, then enter your garden bed's length, width, and desired soil depth to see the total volume needed in cubic feet/yards (or liters/cubic meters) and bags.
Formula & Method
Volume = area × depth. Cubic yards = cubic feet ÷ 27. Bags needed = total volume ÷ bag size (cubic feet in U.S. units, liters in metric; default 1.5 cu ft or 40 L).
Example Calculation
A 6×10 ft raised bed filled to 8 inches deep needs 40 cubic feet of soil (60 sq ft area × 8/12 ft depth), which is about 1.48 cubic yards (40 ÷ 27) — that's 27 bags when buying 1.5 cu ft bags (40 ÷ 1.5 = 26.7, rounded up). In metric, a 2×3 m bed filled to 20 cm deep needs about 1.20 cubic meters of soil, or 30 bags of 40 L soil.
About the Garden Soil Calculator
Filling a raised bed, building up a border, or topping off a vegetable plot always starts with the same question: how much soil is that, really? The answer is a volume, and volume is the one thing people tend to misjudge by eye. A bed that looks small can swallow a surprising amount once you multiply the footprint by a depth of ten or twelve inches. This calculator does the multiplication for you. Enter the bed length, the bed width, the depth you want to fill, and the size of the bags you plan to buy, and it returns the bed area, the volume, and the number of bags.
Under the hood the method is a straight volume calculation. The tool multiplies length by width for the area, then by the depth converted to feet, to give cubic feet. In U.S. mode it divides by 27 to show cubic yards, the unit used by landscape suppliers who deliver by the truckload. In Metric mode it shows liters and cubic meters. The bag count divides the total volume by your bag size and rounds up, since you cannot buy a fraction of a bag.
The result is useful in two ways. For small projects, the bag count tells you exactly what to load into the cart. For larger ones, the cubic yard or cubic meter figure is what you tell a bulk supplier, which is often cheaper per unit than bagged product. Either way, knowing the volume before you shop keeps you from the two common outcomes of guessing: a half-filled bed or a heap of leftover soil on the driveway.
When to Use It
Filling a new raised bed
A gardener builds a 4 by 8 foot cedar bed and wants a 10 inch fill for tomatoes and peppers. They enter the bed size and depth, choose a 1.5 cubic foot bag, and read the number of bags, then compare it against the delivered price of bulk soil before deciding how to buy.
Planning a long border
Someone is turning a 30 by 4 foot strip along a fence into a flower border and wants a 3 inch layer of compost-rich soil worked into the existing ground. The calculator shows the volume in cubic yards so they can order a small bulk delivery instead of making dozens of trips.
Topping up beds in spring
Established beds sink after a season of watering and harvesting. A grower measures the gap, enters a shallow depth such as two inches across several beds, and finds the amount of fresh compost to buy before planting, instead of guessing and running short midway through the job.
Working in liters and cubic meters
A gardener outside the United States designs a 2.4 by 1.2 m bed with 30 cm of soil and sees bagged soil sold in 50 liter sacks. Switching to Metric mode and entering the bag size in liters gives a count that matches the way local garden centers sell product.
How to Use It, Step by Step
- Choose U.S. or Metric. U.S. mode uses feet for the bed, inches for depth, and cubic feet for bag size. Metric mode uses meters, centimeters, and liters.
- Enter the Bed length of the planting area, measured on the inside of the frame, because soil only fills the space within the boards.
- Enter the Bed width the same way. For a round or irregular bed, measure the longest length and the average width, or break the shape into rectangles and add the results.
- Set the Soil depth. The field starts at 6 inches (15 cm), but many vegetable beds are filled to 10 to 12 inches, while a top-dressing of compost may only need an inch or two.
- Enter the Bag size from the label on the product you will buy. Standard bags vary between roughly 0.75 and 3 cubic feet, or 20 to 100 liters, so check the product rather than assuming.
- Calculate and read Bed area, Volume needed, the volume in cubic yards or cubic meters, and the number of bags.
- Compare the bag total with a bulk price. If the volume is close to one cubic yard or more, delivered bulk soil is often more economical than bags.
- Plan for a small extra. Add a little to allow for settling, and keep a bag or two to fill dips after the first watering.
Understanding Your Results
Bed area confirms that your length and width were entered correctly, since it is just the product of the two. Volume needed is the area times the depth, and it is the most important line, because the bag count and the cubic yard figure are both derived from it. If the volume seems far too high or low, the usual cause is a depth typed in the wrong unit, such as feet in place of inches.
The cubic yard figure in U.S. mode is the volume divided by 27, and it is the unit bulk suppliers use. In Metric mode, the output shows both liters and cubic meters, which is helpful because bags are labeled in liters while deliveries are in cubic meters. The bag count is the volume divided by the size of your bag, rounded up. A 4 by 8 ft bed at 10 inches deep needs about 26.7 cubic feet, which is 18 bags of 1.5 cubic feet, and close to a full cubic yard.
As a rule of thumb, once you need more than about 15 to 20 bags, price bulk delivery for comparison. A cubic yard is 27 cubic feet, so it equals 18 bags of the 1.5 cubic foot size. Remember that the number shown is the soil that fits the space, not what you must buy if you plan to mix in material you already have, such as a compost pile or leftover soil from a previous season.
More Worked Examples
Deep raised bed
Scenario: U.S. mode, 4 ft by 8 ft bed, 10 inches deep, 1.5 cubic foot bags.
Bed area = 4 times 8 = 32 sq ft. Volume = 32 times 10 divided by 12 = 26.67 cubic feet. Cubic yards = 26.67 divided by 27 = 0.99. Bags = 26.67 divided by 1.5 = 17.8, rounded up to 18 bags. Because 0.99 cubic yards is almost a whole yard, a small bulk delivery of one cubic yard would cover the bed with a few inches of margin for settling.
Compost layer over a long border
Scenario: U.S. mode, 30 ft by 4 ft strip, 3 inches deep, 2 cubic foot bags.
Area = 30 times 4 = 120 sq ft. Volume = 120 times 3 divided by 12 = 30 cubic feet. Cubic yards = 30 divided by 27 = 1.11. Bags = 30 divided by 2 = 15 bags. The tool shows 1.11 cubic yards, which suggests ordering 1.25 or 1.5 yards in bulk if the supplier sells in quarter-yard steps, so there is enough to even out low spots.
Metric raised bed with 50 liter sacks
Scenario: Metric mode, 2.4 m by 1.2 m bed, 30 cm deep, 50 liter bags.
Area = 2.4 times 1.2 = 2.88 m2. Volume = 2.88 times 0.30 = 0.864 m3, shown as 864 L. Bags = 864 divided by 50 = 17.28, rounded up to 18 bags. The tool reports 0.86 cubic meters. Eighteen bags give 900 L, so there is about 36 L of spare soil to fill any slumping in the first month.
Tips for Better Results
- Measure inside the frame, not outside it. The thickness of the boards on a raised bed can add up to a couple of inches on each side and inflate the bag count by a noticeable amount.
- Fill to a little below the rim rather than flush with it. A gap of an inch or two at the top keeps water and mulch from spilling over when you irrigate.
- Mix sources to save money. Many gardeners fill the bottom of a deep bed with branches, leaves, or other coarse organic matter and put quality soil in the top layers, which reduces what you buy. If you do this, enter only the depth of purchased soil.
- Ask the supplier what the bag volume really means. Some bags are labeled by weight, and some by dry quarts. One cubic foot is about 25.7 dry U.S. quarts, so convert a quart label before you enter the bag size.
- Order slightly more than the calculation shows when the bed is new. Fresh soil and compost compress as they get wet and as roots take hold, and topping up later is easier when you already have some on hand.
- Compare cost per cubic foot across bags and bulk. A bagged product that looks cheap per bag may hold less than its competitor, so divide the price by the bag volume before choosing.
Common Mistakes to Avoid
- Entering the depth in the wrong unit. Six inches is 0.5 feet, so typing 6 in a feet field would give a volume twelve times too large.
- Calculating on the outside dimensions of the frame, which counts the board thickness as planting space and leads to an over-order.
- Assuming every bag holds the same amount. Bag sizes vary by brand and product, and a switch from 1.5 to 0.75 cubic feet doubles the bag count.
- Forgetting that soil is not the only filler. If you add compost, sand, or amendments, split the total volume across them rather than ordering the full amount of each.
- Ignoring the base of a deep bed. A tall bed on a hard surface may need drainage material, and a bed on soil may need loosening of the ground first, which affects how much you actually need to buy.
Assumptions and Limits
- The calculator computes the volume of a rectangular box and nothing else. Mounded, sloped, or curved beds need to be measured by average depth or divided into sections.
- Soil is treated as an incompressible volume. In reality, loose soil and compost settle after watering, and a freshly filled bed can drop by a noticeable amount.
- The tool does not know your soil type or mix. Topsoil, compost, and potting blends differ in weight and in how well they hold water, so check with a nursery for a recipe that suits your plants.
- Bag sizes on labels can vary slightly from the actual volume, and moisture changes density. Treat the bag count as a good estimate and budget for a little more.
Key Terms
- Cubic yard
- A volume equal to a cube one yard on each side, or 27 cubic feet. It is the standard unit for bulk soil, mulch, and compost deliveries.
- Topsoil
- The upper layer of natural soil, rich in organic matter. Bagged or bulk topsoil is often blended with compost before sale.
- Compost
- Decomposed organic material that adds nutrients and improves soil structure. It is typically mixed into native soil or a raised bed fill.
- Raised bed mix
- A blend made for containers and framed beds, often combining topsoil, compost, and an aerating material such as perlite or bark.
- Top-dressing
- A thin layer of compost or soil spread over the surface of an existing bed or lawn, usually an inch or two deep.
- Settling
- The gradual sinking of loose fill as air pockets collapse after watering and rain, lowering the surface of a newly filled bed.
Related guides
Frequently Asked Questions
How deep should raised bed soil be?+
Most vegetable raised beds do best with 10–12 inches (25–30 cm) of quality soil, while shallow-rooted flowers can get by with 6–8 inches (15–20 cm).
Can I calculate soil in liters and cubic meters?+
Yes — switch the unit toggle to Metric and enter your bed in meters with the depth in centimeters and bag size in liters. The result is returned in liters and cubic meters.
Should I mix in compost?+
Many gardeners blend 60–70% topsoil with 30–40% compost for the best structure and nutrients — enter your bed size once and buy that ratio across products.
How many bags of soil fill a raised bed?+
It depends on bed size and depth — use the calculator above with your exact dimensions rather than a rule of thumb, since raised beds vary widely in size.
Does the bag count account for soil settling after watering?+
No — the calculator gives the raw volume needed to fill the bed at your target depth. Soil typically settles 10–20% once watered in, so many gardeners buy slightly extra or plan to top off the bed a few weeks after filling it.
Does it matter if I'm buying topsoil, garden soil blend, or raised bed mix?+
The calculator only computes volume, not soil type. Topsoil, garden soil blends, and raised bed mixes typically come in similar bag sizes (commonly 1–1.5 cu ft or 40 L) — enter whichever bag size is printed on the product you're actually buying.
Should I buy bagged soil or a bulk delivery?+
Bags are convenient for small jobs and easy to move, but they usually cost more per cubic foot. Bulk is typically cheaper once you need roughly a cubic yard or more, which equals 18 bags of 1.5 cubic feet. Delivery fees and minimum order sizes vary by supplier, and you will need a place to dump the pile and a wheelbarrow, so compare the total cost both ways.
How do I calculate soil for a round or irregular bed?+
For a circular bed, find the area with pi times the radius squared, then multiply by the depth. A bed that is 6 ft across has a 3 ft radius, so its area is about 28.3 sq ft. For irregular shapes, split the outline into rectangles, triangles, and circles, add the areas, and use an average depth. You can enter a rectangle with the same area into this calculator.
How much compost should I add to an existing bed each year?+
Many gardeners spread about one to two inches of compost on the surface of a vegetable bed each year, either at the start or end of the growing season, and lightly work it in. Use the Soil depth field for that thin layer. A 4 by 8 foot bed at 2 inches needs roughly 5.3 cubic feet, which is only a few bags and helps replace the organic matter plants use up.
Can I fill the bottom of a deep raised bed with something other than soil?+
Yes, many gardeners put logs, branches, or leaves in the bottom of a tall bed to save on soil, a method sometimes called hugelkultur. The coarse material breaks down and shrinks over time, so the bed sinks and needs a top-up. If you do this, enter only the depth of purchased soil. Avoid treated wood and anything that may leach chemicals into the root zone.
My bag is labeled in quarts or liters. How do I convert it?+
One cubic foot equals about 28.3 liters or about 25.7 U.S. dry quarts. So a 40 liter bag is about 1.4 cubic feet, and a bag labeled 38 quarts holds about 1.5 cubic feet. In U.S. mode, divide the quart number by 25.7 before entering it. In Metric mode, enter the liter number directly in the Bag size field.
Found this useful? Share it
Help someone else out — or link to it from your own site.
Link to this tool
Writing about garden soil calculator? Paste this on your site to link here.
<a href="https://everyfix.net/tools/garden-soil-calculator/">Garden Soil Calculator</a> by <a href="https://everyfix.net">EveryFix</a>Related Tools
Mulch Calculator
Calculate cubic yards, cubic meters, and bags of mulch for your garden beds.
Use tool →Lawn Seed Calculator
Calculate how many pounds or kilograms of grass seed you need for your lawn.
Use tool →Sod Calculator
Calculate how many rolls or pallets of sod you need for a new lawn.
Use tool →Paint Calculator
Estimate how many gallons or liters of paint you need for any room.
Use tool →