Home › Calculators › Soil Calculator

Soil Calculator

Add your raised beds, rectangular, round or triangular garden beds and the soil depth to see exactly how many cubic feet, cubic yards, liters and bags of soil you need, plus the weight and whether bulk or bagged soil is cheaper. It runs entirely in your browser.

Last updated:

Garden beds

Cost comparison (optional)
Advertisement

How to use the Soil Calculator

  1. Choose the bed shape: raised bed, rectangle, round or triangle.
  2. Enter the dimensions and the soil depth, each with its own unit (for example feet and inches).
  3. Add more beds with + Add bed, or set How many for identical beds.
  4. Set prices for bulk soil, delivery and bags to compare the cost, and add a settling allowance if you like.
  5. Press Calculate soil and copy the summary for your shopping list.

Soil volume formulas

Every calculation is area × depth. Work in feet to get cubic feet, then divide by 27 for cubic yards or multiply by 28.317 for liters.

Bed shapeAreaExample (depth 10 in)
Raised bed / rectanglelength × width6 ft × 3 ft = 18 ft² → 15 ft³
Round bedπ × (diameter ÷ 2)²5 ft circle = 19.63 ft² → 16.36 ft³
Triangle bedbase × height ÷ 26 ft × 4 ft = 12 ft² → 10 ft³

Soil needed for common raised bed sizes

Bed sizeDepthCubic feetCubic yards1.5 cu ft bags
2 × 4 ft12 in80.306
3 × 6 ft12 in180.6712
4 × 4 ft12 in160.5911
4 × 8 ft6 in160.5911
4 × 8 ft12 in321.1922
4 × 12 ft18 in722.6748

Tips for filling garden beds

  • Depth: 6–8 in for flowers and shallow-rooted greens, 10–12 in for most vegetables, 12–18 in for root crops and perennials. Top-dressing a lawn needs only ¼–½ in.
  • Mix: a common raised bed recipe is about 60% topsoil and 40% compost by volume. Potting mix is light and pricey, so it is usually reserved for containers.
  • Deep beds: to save soil in beds deeper than 18 in, fill the bottom with logs, branches or leaves (hügelkultur style) and calculate soil only for the top 12 in.
  • Weight: a cubic yard of bulk topsoil weighs about a ton, more when wet, so check your truck or trailer payload before hauling it yourself.

Need mulch on top? Use the Mulch Calculator. For gravel paths or other materials, see the Cubic Yard Calculator.

Frequently asked questions

How much soil do I need for a 4×8 raised bed?

A 4 ft × 8 ft bed filled 12 inches deep needs 32 cubic feet of soil, which is 1.19 cubic yards or about 906 liters. That is 22 bags of 1.5 cu ft, 32 bags of 1 cu ft or 43 bags of 0.75 cu ft. At 6 inches deep you need half as much: 16 cu ft.

How do I calculate soil volume?

Multiply the bed area by the depth, using the same unit. For a rectangle that is length × width × depth in feet, which gives cubic feet; divide by 27 for cubic yards. Convert inches to feet by dividing by 12, so 8 inches is 0.667 ft.

How many bags of soil make a cubic yard?

A cubic yard is 27 cubic feet, so it takes 36 bags of 0.75 cu ft, 27 bags of 1 cu ft, 18 bags of 1.5 cu ft or 14 bags of 2 cu ft (13.5 rounded up). In liters a cubic yard is about 765 L, or 20 bags of 40 L.

Is it cheaper to buy soil in bulk or in bags?

For small jobs bags are often cheaper because bulk yards usually have a minimum order and a delivery fee. Beyond roughly 1–2 cubic yards bulk soil is normally much cheaper per cubic foot. Enter your local prices to compare.

How deep should soil be in a raised bed?

Most vegetables grow well in 8–12 inches of good soil; root crops like carrots and potatoes prefer 12 inches or more. Lawns need about 4–6 inches of topsoil and flower beds 6–8 inches.

Why should I add extra soil?

Fresh soil and compost settle by 10–20% after watering, and beds are rarely perfectly level. Adding 10% extra avoids a second trip to the store.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Mulch CalculatorFind how much mulch you need in cubic yards and bags.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Gravel & Crushed Stone CalculatorWork out cubic yards, tons and bags of gravel or crushed stone.Square Footage CalculatorTotal sq ft and m² for rooms of any shape, with cost estimate.Companion Planting ChartPick vegetables and herbs to see good and bad companions and check your garden for conflicts.Grass Seed CalculatorFind how much grass seed you need by lawn area and grass type, for a new lawn or overseeding.Pool Volume CalculatorFind pool volume in gallons and liters for rectangular, round, oval and kidney pools.Paver CalculatorCount pavers for a patio or path, with joints and waste, plus gravel base and sand volumes.Retaining Wall CalculatorBlocks, caps, base gravel and drainage stone for a block retaining wall.Pool Chlorine CalculatorHow much liquid chlorine, bleach or shock to add to reach a target free chlorine.Fertilizer CalculatorPounds of fertilizer and bags for your lawn from N-P-K and a target rate per 1,000 sq ft.Raised Bed Soil CalculatorSoil for raised garden beds in cubic feet, cubic yards, liters and bags, with mix recipes.Plant Spacing CalculatorHow many plants fit an area at a given spacing, in a square, triangular or row pattern.Rainwater Harvesting CalculatorGallons or liters of rainwater a roof collects from its area, rainfall and surface.Drip Irrigation CalculatorTotal GPH and GPM, gallons per run and max emitters per zone for a drip system.Lawn Watering CalculatorMinutes per sprinkler session and days per week from your precipitation rate or a can test.Pond Liner CalculatorPond liner size, pond volume in gallons and pump GPH from length, width and depth.Potting Soil CalculatorPotting mix for your pots in quarts, liters and cubic feet, and how many bags to buy.Sod CalculatorSquare feet, sod slabs or rolls, pallets and cost for your lawn, with multi-section areas.Tree Height CalculatorFind the height of a tree or building from distance and angle, or with the shadow method.Firewood Cord CalculatorTurn a woodpile's length, height and depth into cords, face cords, price per cord and BTUs.Garden PlannerLay out vegetable beds on a grid with plant spacing, counts and companion planting warnings.Land Area CalculatorOutline a lot or field on a map or enter GPS points to get acres, square feet, hectares and perimeter.Artificial Turf CalculatorSquare feet, roll lengths, seams, infill pounds, base rock and cost for an artificial lawn.Compost C:N Ratio CalculatorCarbon-to-nitrogen ratio, moisture and how much brown or green to add to hit 30:1.Crop Yield CalculatorCorn and soybean bushels per acre from ear, kernel, plant and pod counts before harvest.Flagstone CalculatorTons of flagstone, gravel base, sand and joint filler for any patio or path.French Drain CalculatorGravel in cubic yards and tons, perforated pipe and landscape fabric for a French drain trench.Frosting CalculatorHow much buttercream a cake or cupcakes need, with a recipe scaled to the right batch.Grow Light CalculatorTarget PPFD and DLI for your plants, plus grow light wattage and fixture count.Hay CalculatorWork out how much hay and how many bales your horses, cattle, sheep or goats need.Polymeric Sand CalculatorBags of polymeric sand from paver area, paver size, joint width and depth.Pool Alkalinity CalculatorHow much baking soda or muriatic acid to add to reach your target total alkalinity.Pool Fill Time CalculatorHow many hours a hose takes to fill your pool, from size and flow rate, plus water cost.Pool Salt CalculatorHow many pounds and 40 lb bags of salt to add to reach your target salt ppm.Shelf Sag CalculatorSee how much a wood, plywood or MDF shelf will sag under load, with creep and edge strips.Wood Weight CalculatorEstimate lumber or log weight in lb and kg from species, moisture and size or board feet.
See all 36 Garden, Lawn & Farm Calculators →