Plant care calculator

Raised Bed & Garden Soil Calculator

Calculate garden-bed soil volume, estimate how many bags to buy, and optionally divide the volume into a soil blend.

Quick Answer

For a rectangular bed, multiply the internal length by width by the soil-fill depth using the same units, then convert the result to cubic feet or cubic yards. For a circular bed, multiply π by the radius squared and by the fill depth. One cubic yard equals 27 cubic feet. Bag counts are rounded up to whole bags.

Updated Reviewed Reading time: 4 min

Enter your details

Enter your details below to generate a custom recommendation.

Scenario Presets

Bed Dimensions & Shape

cm
cm

Used for rectangular or square beds. Measure the usable internal dimensions.

cm
cm

Used for rectangular or square beds. Measure the usable internal dimensions.

cm
cm

Used for circular beds; enter the internal diameter, not the radius.

cm
cm

Enter the depth that will be filled with soil (in inches for US, or cm for Metric).

Bag & Purchase Options

L
L

Enter custom bag volume in cubic feet (US) or litres (Metric).

Optional planning buffer for extra fill, spill, or future top-up. It is not a universal settling recommendation.

Soil Blend Formulation

Units

Recommended Output

Required Soil Volume (Geometric) Net Bed Capacity
--
Purchase-Planning Volume:
--
Estimated Bags Needed
--

Rounded up to next whole bag

Bulk Cubic Yards
--

1 cubic yard = 27 cubic feet

Total Volume in Cubic Feet
--
Soil Blend Component Breakdown
--

The Problem

Gardeners need to estimate how much soil a raised bed or garden box holds, compare the volume with retail bag sizes, and optionally plan ingredient quantities for a chosen soil blend.

When to Use This Tool

When filling a new raised bed or garden box.,When topping up a bed after measuring the remaining depth to fill.,When converting bed dimensions into cubic feet or cubic yards.,When estimating the number of soil bags using a selected bag volume.,When dividing a planned soil volume among the ingredients in a selected blend.

Who is this for?

  • US home gardeners filling raised beds and garden boxes
  • Vegetable gardeners planning soil purchases
  • Gardeners comparing bagged soil with bulk soil volume
  • Gardeners preparing a soil blend from multiple ingredients

How to calculate soil volume for a raised bed

Measure the usable internal dimensions of the bed and the depth you intend to fill with soil. Use internal dimensions because the soil occupies the space inside the bed walls.

  1. Choose the bed shape: Select rectangular/square or circular.
  2. Enter the dimensions: For a rectangular bed, enter internal length, width, and soil-fill depth. For a circular bed, enter the internal diameter and depth.
  3. Review geometric volume: This is the volume of the space to be filled before any optional purchase allowance.
  4. Choose a bag size: Select a listed bag volume or enter a custom bag size. Actual product sizes vary, so check the bag label.
  5. Optionally add extra material: A user-selected allowance increases the estimated purchase quantity. It is a planning choice, not a universal settling factor.
  6. Choose a soil blend: If using a preset recipe, the calculator allocates the planned volume among its ingredients by relative parts.

Soil volume formulas

For a rectangular or square bed, volume equals internal length × internal width × soil-fill depth. For a circular bed, volume equals π × radius² × soil-fill depth, where radius is half the internal diameter. Keep all dimensions in the same unit before calculating.

One cubic yard equals 27 cubic feet. A bag count is calculated by dividing the purchase-planning volume by the selected bag volume and rounding up to the next whole bag.

Choosing a bag size

Bag sizes vary by material, product, and retailer. Use the volume printed on the bag rather than assuming every topsoil, compost, or raised-bed mix uses the same size. If your bag size is not listed, select Custom and enter its volume in cubic feet.

Optional extra-material allowance

The allowance is an optional purchase-planning buffer for factors such as spillage, uneven filling, or a planned top-up. It is separate from the geometric volume and should not be interpreted as a universal recommendation for soil settlement or compaction.

Using a soil blend

Recipe presets divide the planned volume by relative ingredient parts. For example, a 60/30/10 blend allocates 60% to topsoil, 30% to compost, and 10% to an aeration material. These are planning ratios, not guaranteed growing-media prescriptions; select ingredients based on the plants, local materials, drainage, and soil guidance appropriate to your garden.

Bagged soil or bulk delivery?

Compare the total cost of the required bag volume with a local bulk quote that includes delivery and any minimum order. There is no universal volume at which bulk soil is always cheaper; the break-even point depends on local prices, delivery charges, and the product being purchased.

Calculating topsoil, fill dirt, and garden soil

Whether calculating bulk topsoil, specialized garden blends, or fill dirt, the volume formula is identical: multiply internal length by width by depth. One cubic yard always equals 27 cubic feet. For standard bed sizes such as a 4 × 8 ft bed (32 ft³ or ~1.19 yd³) or a 4 × 4 ft bed (16 ft³ or ~0.59 yd³), use our quick presets above.

Need guidance on soil depth, settling allowances, or bag count tables? Read our companion guide on How Much Soil Do I Need for a Raised Bed. If you are blending topsoil, compost, and aeration amendments, explore our guide to the Best Soil Mix for Raised Beds.

What this calculator does not estimate

The calculator estimates volume, not weight. Soil and compost weight vary substantially with composition, particle size, and moisture content, so a reliable weight estimate requires material-specific density information.

Recommended next actions

Use the result in a real care workflow with plant profiles, guides, and personalized quizzes.

Troubleshooting & Diagnostics Guide

1 The result seems too large

Diagnosis: The entered depth may include the full outside bed height or space that will not be filled with soil.

Treatment: Use internal dimensions and enter only the depth that will actually contain soil.

2 The bag count differs from a store estimate

Diagnosis: The product may use a different bag volume, or the estimate may include an optional extra-material allowance.

Treatment: Check the volume printed on the product bag, select the matching bag size or enter a custom size, and review the allowance field.

3 A circular bed result seems incorrect

Diagnosis: The diameter may have been entered as the radius, or dimensions may have been entered in mixed units.

Treatment: Enter the full internal diameter and keep length and depth units consistent with the selected unit system.

Glossary of Terms

Cubic Foot
A volume unit equal to a cube measuring one foot on each side.
Cubic Yard
A volume unit equal to 27 cubic feet.
Purchase Allowance
An optional additional quantity chosen for planning. It is not the same as geometric volume and is not a universal settlement factor.
Soil Blend
A growing-medium mixture made from ingredients in selected relative proportions. The suitability of a blend depends on ingredient properties and the plants being grown.

Frequently Asked Questions

How do you calculate soil for a raised bed?
For a rectangular bed, multiply its internal length by internal width and soil-fill depth using the same unit. For a circular bed, multiply π by the square of half the internal diameter and by the fill depth.
How many cubic feet are in a cubic yard?
One cubic yard equals 27 cubic feet.
How does the calculator estimate the number of bags?
It divides the purchase-planning volume by the selected bag volume and rounds up to a whole bag. Check the volume printed on your product because bag sizes vary.
Should I add a settling allowance?
The calculator provides an optional extra-material allowance for planning. The appropriate amount, if any, depends on the materials and project; the allowance is not a universal settling recommendation.
Is bulk soil always cheaper than bags?
No. Compare the price of enough bags with a local bulk quote including delivery fees and minimum-order requirements. The break-even point varies by location and supplier.
Can I use the calculator for soil weight?
This calculator reports volume rather than weight because soil density changes with composition and moisture. Use material-specific density information if a weight estimate is required.
How much soil do I need for a 4 × 8 ft raised bed?
A standard 4 × 8 ft raised bed with a 12-inch soil depth holds 32 cubic feet of soil (about 1.19 cubic yards). If you use standard 1.5 cubic foot bags, you will need 22 bags. For a shallower 8-inch depth, it requires approximately 21.3 cubic feet (about 0.79 cubic yards, or 15 bags of 1.5 cu ft).
Can I use this as a topsoil, dirt, or fill dirt calculator?
Yes. Soil volume geometry remains identical whether calculating topsoil, compost, garden blend, or fill dirt. Enter the internal length, width, and depth of your bed or trench to obtain cubic feet, cubic yards, and equivalent bag counts.