Calculator · Garden
Raised Bed Soil Calculator
Find out how much soil to buy for your raised beds and how much of each ingredient to measure if you mix your own.
Quick Answer
Cubic feet = inside length (ft) × inside width (ft) × fill depth (in) ÷ 12 × number of matching beds. Divide by 27 for cubic yards. To find how many bags to buy, divide by the volume printed on each bag and round up.
Example: A 4 ft × 8 ft bed with 12 in of fill takes 32.00 cubic feet, or about 1.19 cubic yards. At an example bag capacity of 1.5 cubic feet, the total is 21.33 bags before rounding, so buy 22 whole bags.
Calculate raised bed soil volume and bags
Enter the inside dimensions for beds of the same size and the depth you want to fill.
How much soil for a raised bed? The formula
Measure the space the soil will actually occupy. For a rectangular raised bed, take the length and width between the inside faces of the walls. Lumber thickness, overlapping corners, and braces can make the planting space smaller than the footprint on the box. If you are working from a product listing, look for inside dimensions or measure the assembled frame before ordering. On a bed you have already built, take those measurements at the height where the soil will sit.
Multiply the inside length and width to get the footprint. Multiply that area by the fill depth in the same units to get the volume. When length and width are in feet and depth is in inches, divide the depth by 12 because a foot contains 12 inches. With length and width in meters, divide the depth in centimeters by 100 to put all the dimensions in meters and get cubic meters. Keep the units beside the measurements on your notes so you can check the conversion later.
Measure from the surface you are filling over up to the soil line you want. An empty frame on level ground starts at the bottom of the frame. When there is usable soil already in the bed, start from that existing surface. If you plan to leave space above the soil for mulch or watering, stop your depth measurement at the intended soil line. For an illustrative 12-inch frame with 2 inches of open space above the soil, use a 10-inch fill depth in the formula.
Use the bed count for rectangles with the same inside dimensions and fill depth. When the beds differ, calculate the volume for each size and add the results in the same units. If you will fill them all from the same product, add the volumes before rounding to whole bags. An opened bag from the first bed can finish the next one. If different beds need different mixes, keep a subtotal for each mix so you can buy the right quantities.
For a bed with a shaped footprint or varying depth, divide the space into sections you can measure and add their estimated volumes. When topping up an uneven bed, measure the gap to the target soil line in several places across the planting area. Use a representative depth for each section. For circles or other garden projects, use the general soil calculator for containers and garden areas.
How deep should raised bed soil be?
Start by looking at what is under the bed. A bottomless frame over garden soil can give roots access to the ground below the fill. A bed on paving has to provide the growing depth inside the bed itself. The guidance below describes several planting situations. Use the row that matches the bed you are building and the crops you plan to grow when you choose a fill depth.
| Bed or planting situation | Depth guidance |
|---|---|
| Unframed, flat-topped soil mound | University of Minnesota Extension describes mounds usually 6–8 inches high. |
| Framed bed for most vegetables | Utah State University Extension recommends a box at least 6–12 inches high to accommodate rooting. |
| Shallow framed bed over existing soil | Utah State University Extension recommends leaving beds shallower than 12 inches bottomless so roots can enter the soil below. |
| Most annual vegetables | UConn Extension gives 12–18 inches of soil depth and says root vegetables need more depth. |
| Leafy greens, beans, and cucumbers on a hard surface | University of Maryland Extension gives a minimum of 8 inches. |
| Peppers, tomatoes, and squash on a hard surface | University of Maryland Extension gives a range of 12–24 inches. |
The University of Minnesota figure describes the height of a mound above the ground. Utah State gives a height for a frame and explains when roots need access to the soil below it. UConn gives a depth of soil available to the crop, and Maryland specifies beds on hard surfaces. Those measurements can lead to different shopping quantities even when the same vegetables are on the planting list. In a ground-connected bed, count only the depth of new material you are bringing in when you calculate the order.
For beds on a patio, plan the finished soil line around the crop groups you expect to plant, including what might go in the bed after the first crop comes out. Check how much room remains inside the walls once you have allowed for any headroom above the soil. If you have a shallow bed and a deep bed, measuring and calculating each separately helps you assign crops and see how much soil each bed will use.
Raised bed soil mix ratios
Choose the fill before you turn the total volume into a shopping list. Use Single material for a premixed product or when the job calls for a single material. To make your own blend, divide the total into ingredient volumes. For example, a volume-based recipe can be scaled with the same bucket throughout the job. Use a consistent fill level in the bucket so the small batches add up to the intended mix.
The Square Foot Gardening Foundation describes Mel's Mix as 1/3 coarse vermiculite, 1/3 sphagnum peat moss or coconut coir, and 1/3 blended organic compost, measured by volume, with equal scoops even when they differ in weight. The calculator gives a volume for each of those ingredients. If each product comes in a different package size, check each label when turning the ingredient volumes into whole bags.
University of Minnesota Extension describes a raised bed mixture of about 1/2–2/3 topsoil and 1/3–1/2 plant-based compost, without specifying whether those proportions are by weight or by volume. The calculator uses the compost endpoints from that guidance as volume options and assigns the remainder to topsoil. When you choose the smaller compost share, a larger portion of the same bed volume goes to topsoil. The total volume stays the same.
For beds with poor existing soil, University of Maryland Extension gives a compost-to-purchased-topsoil ratio of 1:2 or 1:1 for the top of the bed, without stating a measurement basis. As an alternative, Maryland Extension gives a compost-to-soilless-growing-mix ratio of 1:1, also without stating a measurement basis. In its guidance for beds on hard surfaces, Maryland Extension says that beds at least 16 inches deep may include up to 20% topsoil by volume.
Oregon State University Extension gives a separate recommendation of up to 25% compost by volume when using existing soil to fill the bed. Keep the starting material in mind when comparing recipes. A blend you buy to fill an empty frame has a different starting point from a bed you fill with soil that is already on site. Use the amount of new material the project needs to work out what to buy, and keep a note of the mix you choose for later top-ups.
Bags vs. bulk: How many bags of soil for a raised bed?
Use the volume printed on the bag. Iowa State Extension describes potting soil sold in cubic-foot bags. Divide your total cubic feet by the cubic feet shown on the bag and round up to the next whole bag whenever there is a remainder. In metric, convert your cubic meters to liters and divide by the capacity in liters. A cubic meter contains 1,000 liters. Use the same unit for the bed volume and the package volume.
Illustrative bag calculation: A 4 ft × 8 ft bed with 12 in of fill takes 4 × 8 × 12 ÷ 12 = 32.00 cubic feet. One cubic yard equals 27 cubic feet, so 32 ÷ 27 is about 1.19 cubic yards. Divide 32 by the example capacity of 1.5 cubic feet per bag to get about 21.33 bags. Round up to 22 bags. Use the original volume when calculating bags, since rounding the volume first can change a count near a whole-bag boundary.
If you are buying the ingredients separately, round each ingredient's quantity up after dividing by the capacity on its own bag. A partly used bag of vermiculite cannot cover a shortfall in compost. When you buy the same ingredient for several matching beds, total its volume across those beds before rounding. If all ingredients have the same bag capacity, the calculator can do that split directly. The overall whole-bag estimate applies to a single fill material sold in the entered bag size.
Use the cubic-yard result when a landscape supplier quotes bulk material by the yard. Ask what increments the supplier sells and how it handles delivery or pickup. Compare that order with the number of bags you would actually buy. For several beds filled with the same mix, a bulk order gives you one pile to distribute. For a top-up or a blend with several separately purchased ingredients, bag labels let you match a small volume to the material you need.
Should you put gravel at the bottom of a raised bed?
Skip the gravel or other coarse drainage layer. Washington State University explains that coarse drainage material hinders water movement in containers. Gravity-driven water stays in the fine-textured layer until it saturates before moving into the coarser material underneath. WSU Jefferson County Extension also advises against coarse material at the bottom of a container because it can inhibit drainage.
The research cited by WSU concerns containers. The same water-movement principle applies where fine bed soil lies over a coarse layer. The gravel would also occupy part of the space you measured for growing soil. In a frame over native soil, leave direct contact with the ground so roots and water can move into the existing soil. Utah State University Extension specifically recommends an open bottom for shallow framed beds to give roots access to that soil.
For a bed on a hard surface, check where water can leave the structure. If the bed has a built-in floor, look at the drain openings and keep the path to them clear. Then select a fill depth that fits the crop and measure the full space you intend to devote to growing medium.
Settling: How much extra soil to plan for
Oregon State University Extension says newly filled beds sink over time as compost in the mix continues decomposing. Iowa State Extension says potting soil can settle over a few days to weeks. Iowa State's timing applies to potting soil. The extension guidance gives no universal settling percentage or amount to overfill.
Fill close to the top at the intended soil line, allow the soil to settle, then add more if the level drops. To estimate that top-up, measure from the settled surface to your intended line. Take readings around the bed if the surface has fallen unevenly, and multiply the footprint by the average gap or calculate smaller sections separately. The new result is the volume needed at that point, based on the bed you have in front of you.
Keep a record of the fill product or the ingredients you used so you can match a later top-up. If initial bag rounding leaves you with usable material, keep it for low spots or use it to finish another bed with the same mix. Recheck the soil line when the bed is easy to reach, such as after harvest or before the next planting.
Refreshing raised bed soil each year
Look at the surface of an established bed before deciding what to add. Restoring a settled bed uses the volume between the current and desired soil levels. A compost topdressing uses the thickness of the layer you plan to spread. If you decide to do both, work out how much room the topdressing will occupy before ordering extra fill.
For an existing vegetable bed, Oregon State University Extension recommends applying 1/4–1 inch of compost to the surface each year. University of Maryland Extension says adding 1 inch of compost per year can help maintain garden productivity. Use the stated depth for the purpose described by each source, then multiply it by the bed's inside area to find the volume of compost for that layer.
To keep up with soil settling in raised beds, Illinois Extension describes an annual topdressing of a few inches of compost or high-quality topsoil. In separate guidance, Oregon State University Extension recommends covering the bed each winter with 2 inches of leaves or other organic material. That winter covering recommendation is for leaves or comparable organic material. Use the compost guidance above for the depth of a finished compost layer.
Write down what you applied and where. If the surface is already at your target level after the growing season, there may be little fill volume to replace. If the level has dropped, use the current measurements for your top-up. That also helps you avoid paying to fill the same measured space twice when you plan to add compost afterward.
How much compost vs. how much soil?
Use this page to size the entire fill or split a new mix into ingredients. When the bed is already filled and you want to add a surface layer, start with the thickness of that amendment. See how much compost to add to a raised bed for the compost-only calculation and a worked example.
Frequently asked