Soil Calculator
Work out how much topsoil, garden soil or raised-bed mix you need, in cubic yards or bags, for one bed or several, with settling and a mix split into topsoil and compost.
How to Use
- Pick the shape: rectangle (most raised beds), circle, or a known area such as a lawn to top-dress.
- Enter the inside sizes, the soil depth, and how many identical beds you are filling.
- Keep about 10% for settling in new beds; loose soil sinks as it is watered.
- Choose a mix to see how much topsoil, compost and other parts to buy.
- Pick a bag size to count bags, and read the total in cubic yards (or m³) and its approximate weight.
Worked Example
Two raised beds, each 8 × 4 ft inside, filled 12 in deep. One bed holds 8 × 4 × 1 = 32 ft³, so two hold 64 ft³. Add 10% for settling: 64 × 1.1 = 70.4 ft³, which is 70.4 ÷ 27 = 2.61 yd³. In a 60/40 mix that is 42.2 ft³ of topsoil and 28.2 ft³ of compost; in 2 ft³ bags, 22 of topsoil and 15 of compost.
The common mistake: measuring the outside of the bed. With 2 in thick boards, an 8 × 4 ft bed measured outside is 7 ft 8 in × 3 ft 8 in inside. Using the outside size overstates the soil by about 14%; measure inside the boards.
Show Work
Formulas
Topsoil, Compost and Mixes
Topsoil is the upper layer of mineral soil, the sand, silt and clay that give a bed its body and hold water. Compost is decomposed organic matter: it feeds soil life, improves the structure of clay and sand alike, and holds nutrients. Most raised-bed mixes combine the two, because pure compost shrinks quickly as it breaks down and pure topsoil can pack hard in a raised bed.
The one-third mix of compost, peat moss and vermiculite comes from Mel Bartholomew’s Square Foot Gardening (1981), designed for shallow beds where every square foot is planted. Coco coir is now often used in place of peat, whose harvesting drains peat bogs that store large amounts of carbon.
About This Calculator
This calculator finds the soil for one or more raised beds, round planters, or any area you top-dress, with an allowance for settling. It splits the total into the parts of the mix you choose, counts bags in US or metric sizes, and estimates the weight so you know whether a delivery or a few car trips makes more sense.
Everything runs in your browser; nothing is sent anywhere. Weights are approximate and change a lot with moisture.
Related calculators: Mulch Calculator, Sod Calculator, and Lumber Calculator.
Frequently Asked Questions
How much soil do I need for a raised bed?
Multiply the inside length, width and depth. An 8×4 ft bed 12 inches deep holds 8 × 4 × 1 = 32 ft³, which is 1.19 yd³ or about 16 bags of 2 ft³. Add about 10% because new soil settles.
How deep should soil be in a raised bed?
Most vegetables grow well in 10 to 12 inches (25–30 cm) of good soil; root crops such as carrots and parsnips like 12 to 18 inches. If the bed sits on loosened ground, roots can go deeper, so a shallower bed works.
What is a good raised-bed soil mix?
A common mix is about 60% topsoil and 40% compost, which drains well and holds nutrients. The square-foot gardening mix is one third each of compost, peat moss or coco coir, and vermiculite: very light and fertile, but more expensive to fill a big bed with.
How much does a cubic yard of topsoil weigh?
Roughly 2,000 to 2,400 lb when moist, about a ton; wet clay soil can be heavier. That is why a yard of topsoil is a full load for most pickup trucks. Compost is roughly half that weight.
How many bags of soil are in a cubic yard?
A cubic yard is 27 ft³: 36 bags of 0.75 ft³, 27 of 1 ft³, 18 of 1.5 ft³ or 13.5 of 2 ft³. A cubic metre is 25 bags of 40 litres or 20 bags of 50 litres.
How do I use the Soil Calculator?
Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
Raised beds
Two 8×4 ft beds 12 in deep hold 64 ft³; with 10% for settling, 70.4 ft³ (2.61 yd³): 22 bags of topsoil and 15 of compost in a 60/40 mix.
Square-foot garden
A 4×4 ft bed 6 in deep in the 1/3 mix needs 8.8 ft³ with settling: about 2.9 ft³ each of compost, peat or coir, and vermiculite.
Lawn top-dressing
A quarter inch of topsoil over 2,000 ft² is 41.7 ft³, about 1.54 yd³.
New lawn base
4 in of topsoil over 1,500 ft² is 500 ft³, 18.5 yd³: a bulk delivery, not bags.
Round planter
A 3 ft round planter filled 18 in deep holds 10.6 ft³; with settling, 4 bags of topsoil and 3 of compost (2 ft³ bags).
Last updated: