Calculate the total volume of soil needed for your raised beds
Choose from predefined soil mix recipes or create your own custom blend and quickly calculate the amount of each ingredient required for your raised bed garden.

The Raised Bed Soil Calculator is a purpose-built tool that tells you exactly how much soil you need to fill your raised garden beds — and breaks it down by ingredient if you are mixing your own blend. No more over-ordering bags of soil or running short mid-planting.
✅ Whether you are planning a single 4×4 bed in your backyard or managing a dozen beds in a community garden, this calculator handles the math so you can focus on the planting.
Who is this for?
The calculator supports both simple volume calculations and detailed soil mix recipes. If you are working with round containers or flower pots instead, check out our Potting Soil Calculator — it handles circular and irregular shapes that a rectangular bed formula cannot.
Using the calculator is straightforward. Here is a walkthrough for a typical raised bed:
How to interpret results
Quick example: a 4 ft × 3 ft bed, 12 inches deep
Enter these values:
If you choose the 60% topsoil - 30% compost - 10% aeration recipe, you will need 7.2 cu ft of topsoil, 3.6 cu ft of compost, and 1.2 cu ft of aeration material.
Scenario: You built a standard 4 ft by 8 ft raised bed and want it filled with ~12 inches (1 ft) of quality soil. This is a classic backyard setup for tomatoes, peppers, cucumbers, and leafy greens.
Inputs:
Ingredient breakdown: You will need roughly 19.2 cu ft of topsoil, 9.6 cu ft of compost, and 3.2 cu ft of aeration material. When buying bagged soil, a typical bag holds around 1.5 cu ft — so you would need about 13 bags of topsoil, 7 bags of compost, and 3 bags of perlite or coarse sand.
Scenario: A community garden coordinator needs to fill six 2 m × 1 m raised beds, each 30 cm deep. They want to use the 40% topsoil - 40% compost - 20% aeration mix.
Inputs:
That is roughly 3.6 cubic meters (or 127 cu ft) of soil total. With the chosen mix, you need 1.44 m³ of topsoil, 1.44 m³ of compost, and 0.72 m³ of aeration material. Ordering in bulk (by the cubic yard) from a landscape supplier would be more economical than buying bags: 3.6 m³ ≈ 4.7 cubic yards.
Scenario: Your raised bed is 24 inches deep — great for deep-rooted crops like potatoes and carrots — but filling the whole thing with premium soil mix gets expensive. You decide to use a bottom filler layer of logs and branches (about 8 inches), then fill the top 16 inches with a soilless mix of 33% compost, 33% peat/coir, 33% aeration.
Inputs (for the top layer):
With the soilless recipe, you need 8 cu ft each of compost, peat/coir, and aeration material. Using bottom fillers saves roughly one-third on soil costs — and the logs and branches will slowly decompose, adding organic matter to the bed over time.
You just built a new raised bed and need an exact soil volume estimate before ordering. Perfect for first-time gardeners setting up their garden layout.
Landscapers and coordinators calculating cubic yards for bulk delivery from suppliers. The calculator's multiple volume units make supplier quotes easy to compare.
Creating a custom soil mix tailored to specific crops. Use the Custom mix option to dial in exact percentages of topsoil, compost, and aeration material.
After a season of growing, soil settles and compacts. Use the calculator to determine how much fresh compost or topsoil you need to top up your beds each spring.
Planning soil volumes for greenhouse benches or multiple raised beds under cover. The quantity multiplier makes scaling across dozens of beds effortless.
Estimating how many bags of soil to buy for a weekend project. Switch to liters or quarts to match bag sizes at your local garden center, and budget accurately.
After calculating your soil needs, you might also find our Compost Calculator useful for estimating compost volumes for your garden, or the Plant Spacing Calculator to figure out how many seedlings your freshly filled raised bed can hold.
Using the precision control
Where to find it: The precision control sits at the top-right of the calculator card — a small button with a number badge on it (default is 10).
How it works: Click the button to open the "Precision Settings" popover, then drag the slider between 1 and 16. The number updates live, and results re-format as soon as you close the popover.
Precision controls internal rounding, display stays clean
The precision slider controls how many significant figures the calculator uses internally. The display automatically strips unnecessary trailing zeros — so an exact result like 32 cu ft always shows as 32, whether precision is set to 3 or 16.
The difference becomes visible with fractional (non-terminating) results. For example, a 6 ft × 4 ft bed that is 7 inches deep gives:
A clean integer. Now try a 5 ft × 3 ft bed with 7 inches of depth:
8.75 is also exact, so all precision levels show . True precision differences appear with repeating decimals — like when using the Custom mix with a 33% ingredient ratio on a non-round volume. Higher precision (10–16) reveals more digits, while lower precision (2–4) rounds more aggressively for a cleaner readout.
Best practices
Precision gotchas
Account for settling
Soil settles over time — expect 10–15% compaction after watering and a few weeks of settling. Order about 10% extra or plan to top up after the first few rains.
Use bottom fillers for deep beds
For beds deeper than 20 in (50 cm), fill the bottom 6–8 in with logs, branches, or wood chips. It saves on soil cost and slowly decomposes into rich organic matter.
Match recipe to crops
Leafy greens (lettuce, spinach) thrive in compost-heavy mixes. Root vegetables (carrots, potatoes) prefer looser soil with more aeration. Use the custom mix option to tailor your blend.
Check before ordering bulk
Suppliers often quote in cubic yards. Use the calculator's unit switcher to convert your result — 1 cubic yard ≈ 27 cubic feet ≈ 202 gallons ≈ 765 liters.
The calculator uses straightforward geometry and proportional mixing. Here is how each part works:
where all dimensions are in the same unit
Variable meanings:
where is the decimal fraction of ingredient
all ingredient proportions must add up to 100%
The calculator uses an intelligent solving engine that lets you edit any field and automatically recalculates the others. For example, if you know the total volume and width but want to find the required length, just type in the values — the calculator works backward through the formula to give you the answer.
These three ingredients form the backbone of almost every raised bed soil mix:
Topsoil
The upper layer of natural soil, rich in microorganisms and minerals. Provides the structural bulk of your mix.
Compost
Decomposed organic matter (food scraps, leaves, manure) that adds nutrients and improves soil structure. The "engine" of your soil.
Aeration material
Perlite, coarse sand, or pumice that keeps the mix loose and prevents compaction. Essential for root health and drainage.
Regular garden soil is too dense for raised beds — it compacts quickly and drains poorly, leading to waterlogged roots. Raised bed mixes are designed to be loose, fertile, and free-draining. The ideal mix has roughly 50–60% "mineral" (topsoil or sand) and 40–50% "organic" (compost, peat, coir), with enough coarse material to prevent settling. If your mix feels heavy and sticky when wet, add more aeration material. If it feels like a dry sponge, add more compost.
Once your beds are filled, here are a few tools that pair perfectly with this calculator:
It is simple — you just need to:
There is no single "best" mix — it depends on what you are growing. Here are popular recipes:
First, calculate the total volume using the calculator. Then check the volume printed on the bag (e.g., 40 L or 1.5 cu ft). Divide the total soil volume by the bag volume to estimate the number of bags. Round up — soil settles and you might need a bit extra for topping up later.
12 cubic feet.
For a 60% topsoil, 30% compost, 10% aeration mix: 7.2 cu ft topsoil, 3.6 cu ft compost, 1.2 cu ft aeration material.
Raised bed soil calculator is designed for rectangular beds. For round containers and flower pots, use our Potting Soil Calculator which handles circular and irregular shapes.
Absolutely! The calculator uses bidirectional solving — you can type a value intoany field (including the volume result) and the other fields will adjust automatically. For example, if you have a specific volume of soil available and want to know what bed dimensions to build, just enter the volume and adjust the other fields.
A minimum of 4–6 inches (10–15 cm) for shallow-rooted crops like lettuce or microgreens. Most vegetables (tomatoes, peppers, squash) need at least 12 inches (30 cm). For deep-rooted crops like potatoes and carrots, aim for 18–24 inches (45–60 cm).
Calculate your cat's Feline Body Mass Index (FBMI) using rib cage circumference and lower back leg length to help assess if your cat is at a healthy weight.
Calculate your dog's Body Mass Index (BMI) based on breed, height, and weight to determine if they are healthy, overweight, or underweight.
The cat pregnancy calculator will compute the due date of your favorite feline.
The dog life expectancy calculator estimates the age of your dog based on their breed and gives their average life expectancy.
Convert your dog's age to human years based on breed and size.
The dog pregnancy calculator provides you with your dog's due date.