Home & Garden,
Clear Answers
Menu

Raised beds · Quantity tool

Raised-bed soil calculator

Calculate a rectangular bed's total soil volume or the extra amount to add, in cubic feet, cubic yards or your bag size.

Go to the calculator
On this page (6)

Calculate your soil volume

This version is for one rectangular or square bed with nearly vertical sides and reasonably level surfaces. A curved, tapered, tiered or irregular bed needs a different volume calculation. It estimates the rectangular space you measure, without subtracting posts, root balls or other objects. This is a quantity calculation, not a soil recipe.

The interactive calculator is unavailable. You can still use the formula and worked example below for either total volume or the extra amount to add.

Measure the inside space

Measure length and width between the inside faces of the bed, not the outside frame or the size in its product name. The depth starts at a different surface depending on what you are calculating.

Measure between inside facesConceptual cutaway of a rectangular bed. The front wall is partly removed. Length and width arrows end at the inside faces. Choose total or extra volume to show the matching depth region. 1233 Wall thicknessTotal soilBottom of soil spaceSoil lineExtra soilSoil already thereFinished lineChoose a basisBottom of soil space
Conceptual cutaway, not to scale. Part of the front wall is removed to show the measurement endpoints. Highlighting explains a volume, not a recommended layer recipe or distance below the rim.
  1. Inside length: measure between the opposing inside wall faces.
  2. Inside width: measure between the other two inside wall faces.
  3. Depth: for total volume, measure from the bottom of the soil space to the current or planned soil line. For extra soil, measure only the gap from the existing surface to the chosen finished line.

For an empty bed in extra-soil mode, start at the bottom of the space to be filled. Do not measure from the ground below an elevated planter to its rim.

A single depth is only an approximation if the surfaces are uneven. This simple calculation does not cover strongly uneven surfaces. Substantial posts, reservoirs, root balls or irregular filler within the measured region can reduce the actual soil volume; they are not automatically deducted. Soil below your chosen starting surface is not included.

How to calculate it

Use the inside length and width. Multiply length in feet × width in feet × depth in inches ÷ 12 to get cubic feet. Divide by 27 for cubic yards. For total volume, use the full current or planned soil depth. For extra soil, use only the gap you want to fill.

A 4-by-8-foot inside area at a total soil depth of 12 inches represents 32 cubic feet, about 1.185 cubic yards. If it already contains 6 inches and the target is 12 inches, the additional 6-inch gap represents 16 cubic feet, about 0.593 cubic yard.

At 1.5 cubic feet per bag, those are respectively 22 and 11 rounded-up bag equivalents. The 22-bag total equivalent is not another 22 bags to add to the existing fill. For the 6-inch addition, 11 bags have a labeled total of 16.5 cubic feet, which is 0.5 cubic foot above the estimate.

Cubic feet and cubic yards measure how much space the soil takes up, not how much it weighs. One cubic yard is 27 cubic feet. Ask your supplier about its minimum order and selling increment.

Calculation details and input limits

We convert your measurements to feet, multiply length × width × depth, and divide by 27 for cubic yards. Bag equivalents round up using your entered bag volume. Package totals and the volume above the estimate use the unrounded values; displayed decimals do not determine the whole-bag count.

Use ordinary decimals with no more than 12 digits after the decimal point and no number above 1,000,000 in its selected unit. Length, width and bag volume must be greater than zero; depth can be zero. Write 4.5 feet or 54 inches, not “4 1/2,” “4 x 8” or unit text. Exponents, commas and negative values are not supported.

If the bag count is beyond the calculator’s supported range, check your measurements and bag volume. The volume calculation remains available. Very small positive quantities are shown with a positive bound instead of being rounded to zero.

Conversions use 12 inches per foot, 27 cubic feet per cubic yard, 67.200625 cubic inches per U.S. dry quart, and 28.316846592 liters per cubic foot. A U.S. liquid quart is a different unit and is not accepted here.

Several beds and other shapes: calculate by hand

Manual method, not an extra calculator mode. The tool above still handles one rectangle only. Use the following method separately for several beds or the supported shapes below.

For each bed, label the quantity first: current volume uses the existing soil depth; planned total uses the full intended depth; additional fill uses only the gap above existing soil. No top-up needed means zero additional fill, not zero soil already present. Use inside measurements, not frame size or wall height.

Use one length unit throughout. These formulas require vertical sides, an unchanged footprint through the measured depth and level starting and finishing surfaces. Multiply footprint area by perpendicular fill depth:

  • Rectangle or square: area = inside length × inside width.
  • Circle: area = π × radius²; radius is half the inside diameter. Radius² means radius × radius. Use a calculator’s π key for the circle constant.
  • Triangle: area = base × perpendicular triangle height ÷ 2. That height lies across the footprint, not through the soil.

Split a compound footprint into nonoverlapping measurable pieces. Calculate each piece separately, including its own depth. Subtract only measurable objects occupying the selected fill region; do not subtract existing soil again when measuring a gap above it. Overlaps double-count volume. Tapers, rounded bottoms or strongly uneven surfaces need another supported method unless they can be separated into the supported regions.

Example: one purchase for two beds

Suppose both beds need the same material, with no objects in the added space. These are measured additional gaps, not recommended growing depths:

  • Rectangle: inside 2 feet × 1 foot; gap 0.5 foot. Additional volume = 2 × 1 × 0.5 = 1 cubic foot.
  • Circle: inside diameter 2 feet, so radius 1 foot; gap 0.25 foot. Additional volume = π × 1² × 0.25 = π/4 cubic foot.

Keep the exact sum, 1 + π/4 cubic feet (about 1.7854). If one bag is labeled 2 cubic feet, divide the sum by 2 and round upward once: 1 bag. Rounding each bed separately would incorrectly suggest 2 bags for this shared purchase.

For your own order, sum unrounded volumes for the same material, then use the actual package volume and bag-label guidance. Use the existing conversions if units differ. Keep different materials or separate purchases in separate totals. Missing units, negative dimensions, unknown displacement or a negative net volume mean the estimate needs correcting, not rounding. A zero gap adds no volume. No universal settling allowance is included.

How to read the bag count

The whole-bag equivalent is the smallest whole number of bags whose stated total volume reaches the selected estimate. The volume above the estimate compares the printed bag volumes with your estimate. It is not a guarantee of soil left over.

Use the volume printed on the bag, not its weight. If the label gives two equivalent volumes, use its primary volume unit; the second number may be rounded. If it says only “qt,” verify whether it means U.S. dry quarts. Do not use a liquid-quart conversion for a dry-quart label.

Near a whole-bag boundary, recheck your measurements and use the package's primary volume declaration. A small difference caused by a rounded secondary label is not proof that a physical bag is short. No extra amount for settling is added.

This tool estimates how much, not which soil to use or how to construct or layer the bed.

Sources

Read the source list
  • NIST, Handbook 44 (2026), Appendix C.
  • Espoma, Organic Potting Soil Mix.
  • ScottsMiracle-Gro, Mulches & Soils FAQs.
  • OpenStax — prism and cylinder geometry; checked October 29, 2026.

Source review: October 25, 2026. Manufacturer information supports the package-unit explanation, not a product recommendation.