Garden Soil Calculator for Raised Beds
- Cubic yards
- yd³
- Result
- Liters
- L
- Result
- 1.5 ft³ bags
- bags
- Result
This calculator works out how much soil, compost, or potting mix you need to fill a raised garden bed. You enter the bed’s length, width, and depth (in feet or meters), and it returns the volume in cubic feet, cubic yards, and liters, plus an estimated number of standard soil bags. The first result shown is the total volume in cubic feet, which is the most common unit for buying soil in the US.
Formula
The volume of a rectangular raised bed is length × width × depth. Because depth is usually given in inches, convert it to feet first:
Volume (ft³) = Length (ft) × Width (ft) × [Depth (in) ÷ 12]
Where:
- Length – the longest horizontal side of the bed, in feet (or meters).
- Width – the shorter horizontal side, in feet (or meters).
- Depth – the height of the bed walls, in inches (or centimeters). This is the soil depth, not the total bed height if the bed sits on a hard surface.
To convert to cubic yards, divide cubic feet by 27 (since 1 yard = 3 feet, so 1 yd³ = 27 ft³). To convert to liters, multiply cubic feet by 28.3168. The bag count uses a standard 1.5 ft³ bag (common for retail soil), rounded up to the next whole bag.
Worked Example
Using the default values: length = 6 ft, width = 3 ft, depth = 10 in.
- Convert depth to feet: 10 in ÷ 12 = 0.8333 ft
- Volume = 6 × 3 × 0.8333 = 15 ft³
- Cubic yards = 15 ÷ 27 = 0.556 yd³
- Liters = 15 × 28.3168 = 424.75 L ≈ 425 L
- Bags (1.5 ft³ each) = 15 ÷ 1.5 = 10 bags exactly
The calculator shows 15.00 ft³, 0.56 yd³, 425 L, and 10 bags, matching the steps above.
Why Depth Matters More Than You Think
Many gardeners underestimate how much soil a raised bed actually holds. A 4×8 ft bed with a depth of 6 inches holds 16 ft³, but the same bed at 12 inches deep holds twice that – 32 ft³. That difference changes your cost and your choice of fill material. If you’re building a bed on top of grass or soil, you can often use a thinner layer (6–8 inches) because plant roots can grow into the ground below. But if the bed sits on concrete, a patio, or a balcony, you need the full depth to support root growth – typically at least 12 inches for vegetables like tomatoes or peppers.
Also, soil settles after watering and planting. Most gardeners add 10–15% extra volume to account for compaction, or they plan to top up the bed after a few weeks. This calculator gives the exact volume for a flat fill; if you want the soil to be level with the top of the bed, add a bit more.
How to Choose the Right Soil Mix
The calculator tells you how much soil, but not what kind. For raised beds, a common recipe is “Mel’s Mix� (from the book Square Foot Gardening): 1/3 compost, 1/3 peat moss (or coco coir), and 1/3 vermiculite. This mix is light, drains well, and retains moisture – ideal for most vegetables and herbs. If you prefer a simpler approach, many garden centers sell a “raised bed mix� that is a blend of topsoil and compost. Avoid using pure topsoil alone, as it compacts heavily in a confined bed. For a 15 ft³ bed (like the example), that means roughly 5 ft³ of each component – or about 3.5 bags of each if you buy 1.5 ft³ bags.
For deep-rooted plants (carrots, potatoes), you want a looser mix with more compost. For succulents or Mediterranean herbs (rosemary, thyme), add extra sand or perlite for drainage. The calculator gives the total volume, so you can split it by percentage according to your recipe.
Common Mistakes and How to Avoid Them
- Mixing units: Length and width in feet, depth in inches – forgetting to convert leads to a 12× error. Always convert everything to the same unit.
- Measuring the outside vs. inside: Measure the inside dimensions of the bed, not the outer frame. If the wood is 2 inches thick, the inside is 4 inches shorter on each side.
- Forgetting compaction: Fresh soil is fluffy. After a few waterings, it settles by 10–20%. Buy a little extra or plan to add more later.
- Rounding too early: If you round the depth to 1 ft instead of 0.83 ft, you overestimate by 20%. Use the exact numbers until the final step.
Cost and Buying Options (Bags vs. Bulk)
Soil is sold either in bags (typically 1.5 ft³ or 2 ft³) or by the cubic yard in bulk. For small beds (under 10 ft³), bags are convenient and easy to transport. For larger beds, bulk delivery is usually cheaper per cubic foot, but you must order the right amount – most suppliers have a minimum of 1 cubic yard. Use the calculator’s cubic yard output to compare. For example, a 4×8×1 ft bed is 32 ft³, which is 1.19 yd³ – you’d order 1.5 yd³ to be safe. Bags would cost more per volume but let you buy exactly 32 ft³ (22 bags of 1.5 ft³).
Also consider that many local municipalities offer free compost (check your city’s waste management) – that can replace a portion of your soil mix, but be aware of quality and possible contaminants. Always ask for a test report if available.
Limitations and When to Use a Different Method
This calculator assumes a rectangular bed with straight sides. If your bed is L-shaped, triangular, or has sloping sides, the formula won’t be accurate. For L-shaped beds, divide into two rectangles and add the volumes. For a triangular bed, use (length × width × depth) / 2. For a bed that tapers (wider at top than bottom), you need a more complex formula – but that’s rare in home gardening.
Also, the calculator gives the volume of soil, not the volume of the bed including the frame. It doesn’t account for the space taken up by plants, rocks, or drainage layers. If you add a gravel layer at the bottom (some gardeners do for drainage), subtract that depth from the soil depth before calculating.
Frequently Asked Questions
How much soil do I need for a 4×8 raised bed?
It depends on depth. For 6 inches deep: 16 ft³ (0.59 yd³). For 12 inches deep: 32 ft³ (1.19 yd³). Use the calculator with your exact depth – the default 10 inches gives 26.67 ft³.
Should I fill the bottom of a raised bed with something else to save soil?
Yes, you can put cardboard, leaves, or wood chips at the bottom to fill space, but only if the bed is deep enough (12+ inches) and the fill material is organic and will decompose. Avoid using rocks or gravel, as they can create a perched water table that keeps roots too wet. If you use a filler, subtract its depth from the total depth before calculating soil volume.
How many bags of soil do I need for a 4×8×1 ft bed?
That bed holds 32 ft³. If you buy 1.5 ft³ bags, you need 22 bags (32 ÷ 1.5 = 21.33, round up to 22). If you buy 2 ft³ bags, you need 16 bags.
What is the difference between topsoil, garden soil, and potting mix?
Topsoil is the natural dirt from the ground – it’s dense and often lacks nutrients. Garden soil is topsoil amended with compost, but it’s still heavy and best for in-ground use. Potting mix is a lightweight, soilless mix (peat, perlite, compost) designed for containers and raised beds because it drains well and doesn’t compact. For raised beds, use a raised bed mix or potting mix, not pure topsoil.
How much compost should I add to my raised bed?
A common guideline is 20–30% compost by volume. For a 15 ft³ bed, that’s 3–4.5 ft³ of compost. If you’re using Mel’s Mix, it’s 1/3 compost (5 ft³ for 15 ft³). Compost provides nutrients but breaks down over time, so you’ll need to top-dress with more each season.
Can I use this calculator for circular or oval beds?
No – this is for rectangular beds. For a circular bed, use the formula for a cylinder: π × radius² × depth. For an oval, it’s more complex; a good approximation is π × (length/2) × (width/2) × depth. But for most home gardens, rectangular beds are the standard, and this calculator covers them exactly.
Related
Formula used
in l | Length | ft | 6 | 0 in w | Width | ft | 3 | 0 in d | Depth | in | 10 | 0 out cf | Cubic feet | ft³ | l * w * (d / 12) | 2 out cy | Cubic yards | yd³ | cf / 27 | 2 out lit | Liters | L | cf * 28.3168 | 0 out bags | 1.5 ft³ bags | bags | ceil(cf / 1.5) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.