Free tool
Soil calculator, cubic yards and bags for beds.
Type your garden beds as simple shapes, pick a depth, and get the topsoil, compost, mulch or sand to order in cubic yards, cubic feet, cubic metres and bags. Give any bed its own depth, set the extra for settling, add the weight, truck size and prices from your supplier, or work backwards to see how far a load will go.
Need a custom tool, app or website? Contact us →What to find
20 x 4 is a rectangle, circle 6 uses the diameter, triangle 6 x 4 is base and height, area 450 is a number of square units, and a line that starts with − is taken away. Add @ and a depth to give one line its own depth, like 20 x 4 @ 6.
Mix (percent, empty for none)
Worked out in your browser. Nothing is sent anywhere.
Guide
How much soil you need, with worked examples.
A soil calculator turns the size of your garden bed and the depth you want into the amount of topsoil, compost, garden soil, mulch or sand to order, in cubic yards, cubic feet and cubic metres, and in bags of the size printed on your bag. This one reads a list of beds (rectangles, circles and triangles, with any part taken away), lets each line have its own depth, handles raised beds and a mix such as 60% topsoil to 30% compost, and works backwards to tell you how far a load will go. It also gives the weight, the truck loads and the cost when you type the figures from your supplier.
How to use the soil calculator
- Pick Garden beds, Raised beds or How far will it go?, and the Material. The material only changes the labels.
- For garden beds, type one area per line: 20 x 4, circle 6, triangle 6 x 4 or area 450. A line that starts with a minus, like − 2 x 2, is taken away.
- To give one line its own depth, end it with @ and a number: 20 x 4 @ 6 uses 6 inches for that bed. Add a unit to change it, like @ 15 cm. Lines without @ use the main depth.
- Type the Depth, or press 1 in to 6 in, and choose the unit.
- Leave Extra for settling and spills at 10 or change it. Type the Bag size from the bag, in cubic feet or litres, to see the number of bags.
- Type a price per bag or per cubic yard for the cost. Type the weight your supplier gives to see tons, and the size of a truck or trailer load to see how many loads.
- Read the big card. When there are several lines, a table shows the area, depth and cubic feet of each. Steps shows the working, and Copy link keeps your inputs.
The formula
Volume = area × depth. With area in square feet and depth in feet you get cubic feet, and dividing by 27 gives cubic yards. Depth is usually in inches, so divide it by 12 first: 3 inches is 0.25 ft. This is the same method Iowa State University Extension gives for mulch: find the area, change the depth to feet, multiply, then divide the cubic feet by 27 (Iowa State University Extension, checked 24 Oct 2026). A cubic yard is 27 cubic feet, as in NIST Handbook 44, Appendix C (checked 24 Oct 2026).
Worked example: a garden bed
A bed 20 ft by 4 ft is 80 square feet. At a depth of 3 inches (0.25 ft) it needs 80 × 0.25 = 20 cubic feet, which is 20 ÷ 27 = 0.74 cubic yards. With 10% extra the order is 22 cubic feet, or 0.81 cubic yards. If the bags say 1.5 cubic feet, that is 22 ÷ 1.5 = 14.7, so 15 bags.
Worked example: different depths in one job
A yard has a bed 20 ft by 4 ft that gets 6 inches, a round bed 6 ft across that gets 3 inches, a 10 ft square that gets 2 inches, and a 2 ft square inside the first bed that stays empty. Type the four lines as 20 x 4 @ 6, circle 6, − 2 x 2 @ 6 and 10 x 10 @ 2. The volumes are 40 + 7.07 − 2 + 16.67 = 61.74 cubic feet. With 10% extra it is 67.91 cubic feet, or 2.52 cubic yards. In 50 litre bags (1.766 cubic feet each) that is 39 bags. The empty square takes away its own 6 inches, not the main depth.
Worked example: raised beds and a mix
Two raised beds, each 8 ft by 4 ft and filled 12 inches deep, need 2 × 32 = 64 cubic feet, or 2.37 cubic yards. With 10% extra it is 2.61 cubic yards. A mix of 60% topsoil, 30% compost and 10% other splits that into 1.56, 0.78 and 0.26 cubic yards. The page shows each part with its bags.
Weight and truck loads
Soil, compost and mulch weigh different amounts, and wet material weighs more than dry. The page does not guess, so type the weight your supplier quotes, in pounds per cubic yard, pounds per cubic foot or kilograms per cubic metre. As an example, suppose a supplier says 2,200 lb per cubic yard. For 2.52 cubic yards that is 5,533 lb, which is 2.77 US tons, 2,510 kg or 2.51 tonnes. A US ton here is 2,000 pounds (NIST Handbook 44, Appendix C, checked 24 Oct 2026). Type the size of the truck load in cubic yards to see how many loads the job needs, rounded up.
How much covers how far
| Depth | Cubic feet per 100 sq ft | Cubic yards per 100 sq ft | Sq ft per cubic yard |
|---|---|---|---|
| 1 inch | 8.33 | 0.31 | 324 |
| 2 inches | 16.67 | 0.62 | 162 |
| 3 inches | 25.00 | 0.93 | 108 |
| 4 inches | 33.33 | 1.23 | 81 |
| 6 inches | 50.00 | 1.85 | 54 |
Use How far will it go? to turn it around: type what you have, in cubic yards, cubic feet, cubic metres or bags, and the depth, and read the area it covers.
How deep should it be?
Depth depends on the job, and this page does not set one for you. For mulch, Iowa State University Extension says many hardwood chipped or shredded mulches are spread 2 to 4 inches thick. For topsoil, compost and raised bed mixes, follow the supplier, the plant label or your local extension office, since the right depth changes with the soil underneath and what you are planting.
Bags or bulk
Bags are easy to carry and good for small beds. Bulk by the cubic yard is usually how bigger jobs are bought. To compare, type both prices. The page works out the cost by the bag from the number of bags, rounded up, and by the cubic yard from the exact volume. The bulk price does not include delivery unless you add it yourself, and the bag count is rounded up, so check the two on the same job before you decide.
Common problems
- Mixing units. A depth of 3 means inches here, not feet. Check the Depth unit.
- Bag sizes. Bags are sold in many sizes. Type the size printed on yours, in cubic feet or litres, or the bag count will be wrong.
- Loose against settled. Soil and compost settle after watering, which is what the extra percent is for. It is your choice, not a rule.
- Forgetting the holes. A tree, a pond or a path inside a bed should be a minus line.
For stone and sand see the gravel calculator, and for slabs the concrete calculator. To change units use the unit converter.
Questions
Good to know.
How much soil do I need?
Multiply the area by the depth. In feet that gives cubic feet, and dividing by 27 gives cubic yards. The page does it for beds of any shape.
How do I use different depths for different beds?
Add @ and a depth to the end of a line, like 20 x 4 @ 6. Lines without @ use the main depth.
How many bags of soil is that?
Type the bag size printed on your bag, in cubic feet or litres. The page divides the volume by it and rounds up.
How many cubic feet are in a cubic yard?
27, because 3 × 3 × 3 = 27.
How much does it weigh?
The page does not know your material. Type the weight your supplier gives, per cubic yard, per cubic foot or per cubic metre, and it works out pounds, US tons, kilograms and tonnes.
How deep should topsoil, compost or mulch be?
The page does not set it. Iowa State University Extension says many chipped hardwood mulches are 2 to 4 inches thick. For soil, follow the supplier or your local extension office.
How much extra should I order?
You choose. The page starts at 10% for settling and spills.
How far will a cubic yard go?
At 3 inches deep, about 108 square feet. Use How far will it go? for any depth and amount.
Is the material choice important?
It only changes the labels. Topsoil, compost, garden soil, mulch and sand all use area times depth.
Does it work in metric?
Yes. Use centimetres or metres for the depth and sizes, and the answer also shows cubic metres.