Raised bed soil calculator
Soil or compost volume for a rectangular bed, in US or metric units, with a bag count.
How many bags of soil for a 4×8 raised bed?
One bed filled 12 inches deep takes 32 cu ft of soil (about 906 L). That’s 16 bags at 2 cu ft or 11 bags at 3 cu ft, rounded up with no extra allowance.
YOUR VOLUME ESTIMATE
Room for something good.
Enter your measurements and select Calculate volume.
This is a volume calculation, not a compost application recommendation. Choose amendment depth from your soil test and local guidance.
A QUICK WALK-THROUGHMeasure first. Plan the bags.

Measure the inside
Use the inside length and width, plus the depth you still need to fill. Count identical beds separately.

Choose the right inputs
Select US or metric units and full fill or compost layer. Enter the volume printed on each bag.

Read the estimate
The tool shows volume and a rounded-up bag count. Bag weight is not bag volume.
Use your own measurements and conditions in the tool.
The raised bed soil volume formula
Use the inside measurements and the depth still empty in your bed.
US: length (ft) × width (ft) × depth (in) ÷ 12 × number of beds = cubic feet. Divide by 27 for cubic yards. Metric: length (m) × width (m) × depth (cm) ÷ 100 × number of beds = cubic meters. Multiply by 1,000 for liters. Divide by bag volume and round up.
For a compost top-up, measure only the layer being added. A half-inch layer on the same bed needs about 1.33 cubic feet (38 liters), rather than 32 cubic feet of compost. Oregon State Extension explains the area × depth method and why raised beds need a soil mix rather than compost alone.
How much compost does a raised bed need?