How to Calculate Soil Volume for Beds, Containers, and Bags

10–15% extra soil is a practical purchasing allowance after you calculate the space, because soil settles and compacts. The basic calculation is length × width × fill depth, with the answer expressed as cubic feet, cubic yards, gallons, liters, or bags. Measure the space you actually plan to fill, keep all measurements in one unit system, and convert the final volume to the form of soil you are buying.

Use this table to choose the right calculation for the space you have.

Space You Are Filling Measurements Needed Calculation
Rectangular bed, planter, or lawn area Length, width, fill depth Length × width × depth
Round pot or circular bed Inside radius and fill depth π × radius² × depth
Tapered pot Top inside diameter, bottom inside diameter, and fill depth Use a tapered-pot volume calculator or frustum formula
Soil sold in cubic yards Volume in cubic feet Convert cubic feet to cubic yards.
Bagged soil Required volume and bag capacity Required volume ÷ bag volume, rounded up

Understanding Soil Volume

Soil volume is the amount of three-dimensional space soil will occupy. Area tells you the size of the surface; volume includes the depth of soil needed beneath that surface.

For a garden bed, raised planter, or level patch of lawn, measure:

  • Length: one end to the other
  • Width: side to side
  • Fill depth: the depth of new soil you want to add

Use inside measurements for containers and raised beds. Outside dimensions include the thickness of the walls and can make you overestimate the soil needed.

In U.S. measurements, use feet for length, width, and depth to get cubic feet. If you measure in inches, convert all measurements to the same unit before multiplying.

For metric measurements, use meters to get cubic meters. If you measure a container in centimeters, calculate its volume in cubic centimeters or convert it to liters.

How to Calculate Soil Volume

Measure the fill area, multiply length, width, and depth, then convert and adjust the result for the soil unit you are buying.

Step 1: Measure the Space You Will Fill

  1. Measure the length and width of the bed, planter, or soil area.
  2. Measure the intended soil depth, not necessarily the full height of the structure.

A raised bed that is 8 feet long, 4 feet wide, and filled to a depth of 1 foot uses measurements in feet. A shallow topdressing, by contrast, may require a depth conversion before you multiply.

Large rocks, drainage layers, plant pots, and buried structures take up space in the area being filled.

Step 2: Multiply Length, Width, and Depth

For a rectangular space, use:

Multiply length by width by fill depth to find the soil volume.

To convert cubic feet to cubic yards, divide by 27:

The 32-cubic-foot raised-bed example converts to 1.19 cubic yards: 32 ÷ 27 = 1.19 cubic yards.

For a metric raised bed, multiply the measurements in meters. A bed measuring 1.2 meters long, 2.4 meters wide, and 0.4 meters deep has a volume of:

1.2 × 2.4 × 0.4 = 1.152 m³

If a space is not one simple rectangle, break it into smaller rectangles, calculate each volume, and add the results together.

Step 3: Convert the Result Into the Soil Unit You Are Buying

Bulk landscape soil is commonly sold by the cubic yard. Bagged potting soil may be sold in cubic feet, quarts, or liters.

Useful conversions include:

  • 1 cubic yard = 27 cubic feet
  • Compare cubic-foot and gallon capacities using a consistent unit.
  • 1 cubic foot = about 28.3 liters

Convert the bed’s calculated cubic-foot volume to cubic yards when ordering bulk soil. If a supplier sells only whole or partial cubic-yard loads, order enough to cover the calculated amount plus your settling allowance.

Step 4: Add a Purchasing Allowance and Fill the Space

Add extra soil before buying to allow for compaction. This adds 10–15% extra soil to compensate for compaction.

For the calculated bed volume:

  • 32 × 1.10 = 35.2 cubic feet
  • Use the adjusted volume as the amount to buy.

Convert the adjusted volume to cubic yards if needed.

For bagged soil, divide the adjusted volume by the bag’s stated capacity and round up to a whole bag.

Convert by the capacity of the bag you are buying, not a generic bag size.

For example, Master Nursery’s Professional Potting Soil is sold in 8-quart, 20-quart, and 2-cubic-foot bags.

When the soil arrives, fill the bed or container to the planned level, spread it evenly, and water as appropriate for the plants you will add. Keep unopened bags aside until the soil has settled, then use any surplus for containers, low spots, or future planting.

Calculate Soil for Pots and Containers

Container calculations work best when you measure the pot. Leave room at the top for watering if the container will not be filled to its rim.

Round Containers

For a round pot, find the radius by dividing the inside diameter by two. Then calculate:

Multiply π by the radius squared and then by the fill depth to find the container’s soil volume.

A round container with a 40-centimeter inside diameter has a 20-centimeter radius. At a 30-centimeter fill depth, it needs 37.7 liters of soil.

Measure the diameter for the exact container, since pots with the same advertised diameter can have different wall thicknesses or shapes.

Tapered Pots

A tapered pot is wider at the top than at the bottom, so a simple cylinder calculation can overestimate its capacity. Measure the container’s top inside diameter, bottom inside diameter, and fill depth before using a tapered-pot calculator.

Calculate the soil volume, then convert the result to liters. Treat that as an example rather than a standard capacity: the exact amount depends on the pot’s interior shape and your intended fill line.

Containers With Drainage Layers

Calculate soil and rock quantities separately when a container has separate layers. Gravel, pumice, drainage rock, and other non-soil material occupy part of the container.

For a rectangular planter, calculate each layer from its own depth. For a round container, use the same diameter but calculate the rock layer and soil layer separately. This prevents overbuying potting mix and helps you choose materials with less waste.

Calculate Soil for Irregular Areas and Slopes

Irregular beds, curved borders, and sloped spaces are easier to calculate when divided into simple shapes.

For an L-shaped bed:

  1. Split the L into two rectangles.
  2. Calculate the volume of each rectangle.
  3. Add the two volumes.
  4. Add the purchasing allowance before ordering soil.

For a curved or circular garden, measure the widest diameter, divide it by two for the radius, then use the circle calculation. For an oval bed, divide it into sections or use the average length and average width for a reasonable household-scale estimate.

For a sloped bed being filled with soil, measure the planned depth in several places. Use the average depth with the bed’s surface area if the slope changes gradually. If the project involves retaining walls, major grading, drainage changes, or structural fill, get site-specific guidance rather than relying on a household garden calculation.

Excavation is different from ordering topsoil. A length-by-width-by-depth estimate for a pool excavation can be much lower than a contractor’s projected fill quantity.

Measure Soil Samples and Loose Dirt

The right method depends on your project.

Bulk Volume of a Soil Sample

For a loose soil sample, bulk volume is the space the soil occupies, including air gaps between particles. The simplest method is to place the sample in a container with a known internal volume, such as a marked measuring bucket or graduated container.

Do not pack the sample down unless your project specifically requires compacted volume. Packing changes the result and makes it less useful for estimating loose potting soil, compost, or garden soil.

Scientific Soil Volume

Scientific soil testing may distinguish between bulk volume and the volume of the solid soil particles themselves. Particle volume requires laboratory methods because water displacement can be distorted by soil pores, moisture, and absorption.

For home gardening, use measured container volume or calculated bed volume. For laboratory, permitting, or construction work, use the measurement method required by the lab, agency, or project specifications.

Check Your Result Before Buying Soil

Before placing an order or opening bags, confirm these points:

  • Measurements are inside dimensions for beds and containers.
  • Rock, drainage material, nursery pots, and other voids are excluded from soil volume.

For a project connected to local grading, landscaping, or post-construction soil requirements, use the applicable local rules. King County’s Compost and Topsoil Calculator can calculate compost, topsoil, and stockpiled soil quantities for site-development projects.

Frequently Asked Questions

How Do You Measure Out a Gallon of Soil?

Use a marked 1-gallon container or measure four 1-quart portions. Fill loosely for potting soil unless you specifically need a compacted volume.

How Much Soil Fills a 5-Gallon Bucket?

Use the bucket’s marked capacity to determine how much soil it holds. The usable amount may be less if you leave headspace for carrying, watering, or a plant’s root ball.

How Many Cubic Feet Are in a 40-Pound Bag of Potting Soil?

Soil weight can vary with moisture content and soil type. Use the cubic-foot, quart, or liter capacity printed on that particular bag rather than converting from pounds.

How Many Bags Are in One-Half Cubic Yard of Soil?

Convert the cubic-yard amount to cubic feet before calculating bags. Divide the total volume by the capacity of the bag you are buying, then round up.

How Do You Calculate Dirt Volume for a Garden Bed?

Multiply the bed’s length by its width and intended soil depth. An 8-foot by 4-foot bed filled 1 foot deep needs 32 cubic feet of soil before adding a purchasing allowance and converting to bags or cubic yards.