Raised Garden Bed Calculator
Calculate exactly how much soil you need to fill a raised garden bed. Enter your bed dimensions, depth, soil mix type, and bag size to get total volume in cubic feet and cubic yards, plus bag count and cost estimate.
Soil volume estimates are based on nominal bed dimensions and do not account for wood thickness, corner joints, or liner material. Actual soil needed may vary. Add 10–15% for settling. Prices vary by region and supplier.
What Is a Raised Garden Bed?
A raised garden bed is a framed growing area built above the natural ground level and filled with a custom soil mix. Unlike in-ground gardens, raised beds give you complete control over the growing medium — its composition, drainage characteristics, fertility, and pH. The result is a more productive, lower-maintenance growing environment that outperforms in-ground planting in almost every metric: earlier spring planting, better drainage, fewer weeds, and significantly higher yields per square foot.
Raised beds range from simple frames made of 2×10 cedar boards to elaborate permanent structures built from stone, brick, or galvanized steel. Heights vary from 6 inches (for herbs and lettuces) to 24 inches or more (for deep root crops, accessible gardening, or contaminated-soil remediation). Width is the most critical design parameter — beds wider than 4 feet force you to step into the bed to reach the center, which compacts the soil and destroys the structure that makes raised beds productive. The universal recommendation is a maximum width of 4 feet for freestanding beds, or 2 feet when the bed is against a wall or fence.
The most important pre-build calculation is soil volume. Underestimating leads to multiple store trips or underfilled beds that limit plant root depth. This calculator gives you the exact cubic feet, cubic yards, and bag count before you buy a single bag of soil.
Raised Garden Bed Calculator
Enter bed dimensions and depth, then click Calculate
Mel's Mix Explained: The Gold Standard Raised Bed Soil
Mel's Mix is the soil recipe developed by Mel Bartholomew in his influential Square Foot Gardening system, first published in 1981 and updated in 2013. The formula is equal thirds by volume: blended compost, peat moss or coconut coir, and coarse perlite or vermiculite. Unlike any standard bagged soil product, Mel's Mix is a purpose-built growing medium that addresses every critical growing requirement simultaneously.
Why Each Component Matters
Blended compost (1/3): The fertility engine of the mix. Compost provides a broad spectrum of macro and micronutrients, supports billions of beneficial soil organisms, and improves both water retention and drainage through its crumbly structure. "Blended" means using compost from multiple sources — yard waste, mushroom compost, worm castings, leaf mold — to get the widest possible nutrient and microbial diversity. Single-source compost works but is less complete.
Peat moss or coconut coir (1/3): The moisture-retention component. Peat moss holds 20 times its weight in water and releases it slowly to plant roots. Its slight acidity (pH 3.5–4.5) is moderated by the compost component, bringing the overall mix to approximately pH 6.0–6.5 — ideal for most vegetables. Coconut coir is the sustainable alternative: it has similar physical properties, is renewable (a byproduct of coconut processing), and has a more neutral pH (5.5–6.5). Either works well.
Coarse perlite or vermiculite (1/3):The aeration and drainage component. Perlite is volcanic glass expanded by heat. It is extremely lightweight, holds its shape permanently, and creates the air pockets that root systems require. Vermiculite is expanded mica — it holds slightly more water than perlite while still maintaining good aeration, making it better for water-stressed environments. Mel's original recipe specified vermiculite; either works.
Cost of Mel's Mix
The main drawback of Mel's Mix is cost. For a 4 ft × 8 ft bed filled 12 inches deep (32 cubic feet), you need approximately 10.7 cubic feet of each component. At retail prices:
- Quality compost: $15–$20 per 2 cu ft bag → $80–$110 for the compost portion
- Peat moss: $25–$35 per 3.8 cu ft compressed bale → $75–$100 for the peat portion
- Coarse perlite: $18–$25 per 4 cu ft bag → $50–$70 for the perlite portion
- Total: approximately $200–$280 per 4×8 bed in bagged materials
Sourcing components in bulk from local landscape suppliers reduces this to $60–$120 for the same volume. For gardeners building multiple beds, bulk sourcing makes Mel's Mix economically practical.
Formulas Used
Volume Per Bed
Volume (cu ft) = Length × Width × (Depth ÷ 12)Where:
Length= Bed length in feetWidth= Bed width in feetDepth= Fill depth in inches (divide by 12 to convert to feet)
Example:
4 ft × 8 ft × (12 in ÷ 12) = 4 × 8 × 1 = 32 cu ft
Total Volume
Total Volume (cu ft) = Volume per Bed × Number of BedsWhere:
Volume per Bed= Cubic feet per single bedNumber of Beds= Total beds to fill
Example:
32 cu ft × 2 beds = 64 cu ft
Bags Required
Bags = ⌈Total Volume ÷ Bag Size⌉Where:
Total Volume= Total cubic feet neededBag Size= Cubic feet per bag (1, 1.5, or 2)⌈ ⌉= Ceiling function — always round up to whole bags
Example:
⌈32 ÷ 1.5⌉ = ⌈21.33⌉ = 22 bags
Soil Depth by Crop Type: How Deep Should Your Raised Bed Be?
Depth is the single most important decision in raised bed design because it determines which crops can be grown successfully and how much soil you need (directly affecting cost). A bed that is too shallow limits plant performance indefinitely — there is no easy fix once the bed is built and filled.
Shallow Beds: 6–8 Inches
A 6 to 8-inch bed works well for shallow-rooted crops and makes excellent use of limited vertical space. Suitable crops include lettuce, spinach, arugula, chard, kale (young baby greens), most herbs (basil, cilantro, parsley, chives, thyme, oregano), radishes, green onions, and strawberries. Pansies, marigolds, petunias, and other annual flowers also thrive at 6–8 inches. This depth also suits topdressing applications and ornamental border beds where visual impact matters more than root depth.
Standard Beds: 10–12 Inches
Twelve inches is the universal standard depth for vegetable raised beds and the most cost-effective choice for a productive all-purpose kitchen garden. This depth supports the full range of common vegetables: tomatoes, peppers, eggplant, cucumbers, summer squash, green beans, peas, broccoli, cabbage, cauliflower, Brussels sprouts, and full-size herbs including rosemary and sage. The 12-inch depth allows for adequate root development while minimizing material cost compared to deeper configurations.
Deep Beds: 16–24 Inches
Root vegetables require deep, stone-free soil for full development. Carrots need a minimum of 12 inches for short varieties and 18 inches for full-length types; parsnips and salsify need 18 inches or more. Beets and turnips perform well at 12–16 inches. Potatoes are typically grown in dedicated deep beds or mounded-soil configurations 18–24 inches deep. Leeks, which need deep soil for blanching, also benefit from 14–18 inch beds. If root vegetables are a priority, design specifically for their depth requirements — retrofitting an existing bed is difficult.
Accessible Beds: 24–30 Inches
Raised beds intended for accessible gardening — for gardeners who use wheelchairs, have limited mobility, or prefer to garden without bending — are typically built 24 to 30 inches high. At this height, the bed surface is at a comfortable working height. The extra depth also benefits plant performance. These beds require significantly more fill material: a 4 × 8 ft accessible bed at 24 inches deep requires 64 cubic feet of soil — twice the volume of a standard 12-inch bed.
Bed Size Recommendations: Length, Width, and Arrangement
Beyond depth, the footprint of your raised bed affects both usability and productivity. Getting the proportions right from the start makes the bed more enjoyable to use and more productive over time.
Width: The 4-Foot Rule
The maximum recommended width for a raised bed is 4 feet. This measurement comes from an adult's comfortable reach — approximately 2 feet. A 4-foot-wide bed can be accessed from both sides with a reach of 2 feet each, allowing you to tend every part of the bed without stepping in it. Any wider, and you will inevitably step into the bed to reach the center, which compacts the soil and destroys the loose structure that makes raised beds superior to in-ground growing.
For beds placed against a wall, fence, or structure accessible from only one side, the width should be reduced to 2 feet — one arm's reach. This is also a good width for narrow "herb strips" along walkways.
Length: Flexibility Within Reason
Raised bed length is largely flexible. Common lengths are 4, 8, 12, and 16 feet — corresponding to standard lumber lengths (8-foot boards yield a 4-foot and an 8-foot section with no waste). Eight feet is the most common length for backyard vegetable gardens: long enough for meaningful production, short enough to walk around easily. For long beds, add cross-support boards every 4–6 feet to prevent the sides from bowing outward under soil pressure.
Standard Sizes and Quick Volume Reference
- 3 × 6 ft, 12 in deep: 18 cu ft — 12 bags (1.5 cu ft) — starter size
- 4 × 4 ft, 12 in deep: 16 cu ft — 11 bags — compact square bed
- 4 × 8 ft, 12 in deep: 32 cu ft — 22 bags — standard kitchen garden bed
- 4 × 8 ft, 6 in deep: 16 cu ft — 11 bags — herb/lettuce bed
- 4 × 12 ft, 12 in deep: 48 cu ft — 32 bags — extended bed
- 4 × 16 ft, 12 in deep: 64 cu ft — 43 bags — large production bed
Wood Choices for Raised Bed Construction
The frame material determines how long your raised bed lasts and whether it is safe for growing edibles. Not all wood performs equally in the wet soil conditions of a raised bed.
Cedar
Western red cedar is the most popular choice for raised bed construction in North America. Its natural oils make it resistant to rot, insects, and moisture — untreated cedar boards typically last 15–20 years in ground contact. It is lightweight, works well with hand tools, and has an attractive appearance. The main downside is cost: cedar is 2–3× more expensive than construction-grade pine or fir. For most home gardeners, the longevity justifies the premium. Use 2-inch-thick cedar (2×6, 2×8, or 2×10) rather than 1-inch for beds that will hold significant soil weight.
Redwood
Redwood shares cedar's natural rot resistance and is considered the premium choice where available. Like cedar, it is naturally oil-rich and lasts 15–20+ years untreated. However, it is significantly more expensive than cedar and less widely available outside the western United States. In regions where redwood is locally available, it is an excellent first choice.
Douglas Fir and Pine
Construction-grade lumber — Douglas fir, SPF (spruce-pine-fir), or Southern yellow pine — costs significantly less than cedar or redwood but degrades more quickly in moist soil conditions. Untreated pine or fir in direct soil contact typically lasts 4–8 years before significant rot. Painting or sealing the exterior (not interior) of the boards extends lifespan somewhat. If budget is the primary concern, construction lumber is a reasonable starting point; plan to replace the boards in 5–7 years.
Pressure-Treated Lumber
Modern pressure-treated lumber uses ACQ (alkaline copper quaternary) or copper azole preservatives — not the older CCA (chromated copper arsenate) that was phased out in 2003. Multiple university extension studies have found negligible copper migration from ACQ-treated wood into surrounding soil, and most agricultural authorities consider modern pressure-treated wood acceptable for vegetable gardens when lined with landscape fabric. That said, many gardeners prefer to avoid it in vegetable beds out of caution. It is a practical choice for pathways, borders, and ornamental raised beds.
Liner Options, Drainage, and Bed Bottoms
Whether to add a liner or solid bottom depends on your site conditions and what you are trying to accomplish. Most raised beds are left open on the bottom, which allows water to drain freely and gives deep-rooted plants access to native soil. But there are several situations where adding a bottom liner is beneficial.
Hardware Cloth (Gopher and Mole Protection)
In areas with gophers, moles, or voles, a layer of 1/4-inch hardware cloth stapled to the bottom of the frame before filling is the best investment you can make. These animals can destroy an entire bed of vegetables in a single night tunneling up from below. Hardware cloth is galvanized and lasts many years without rusting. Cut it to size, staple or staple-gun it to the bottom frame, and fold the edges up the sides a few inches for extra protection.
Cardboard and Newspaper (Weed Suppression)
A layer of cardboard or overlapping newspaper at the bottom of a new bed suppresses weeds from growing up into the bed from below. This is the foundation of the "no-dig" gardening approach popularized by Charles Dowding. The cardboard decomposes within 1–2 years, allowing earthworms and plant roots to move freely between the raised bed soil and the native soil below. Remove tape and staples from cardboard boxes before use.
Landscape Fabric
Landscape fabric allows water to drain freely while slowing upward weed growth. It is more durable than cardboard but more expensive. Woven landscape fabric is preferable to non-woven for this application — it allows better water and air movement. Over time, weed seeds that land on top of the soil will still germinate, so landscape fabric eliminates bottom weeds but not surface weeds.
Solid Wood or Plywood Bottom
A solid bottom (plywood or solid boards) is appropriate only for very shallow display beds or portable containers. In a productive raised bed, a solid bottom prevents drainage and causes waterlogged conditions that damage or kill most plants. If you do use a solid bottom for aesthetic reasons (e.g., a rooftop or patio raised bed), drill numerous drainage holes (at least one per square foot) and elevate the bed on feet to prevent the bottom from sitting in water.
Soil pH, Drainage, and Watering in Raised Beds
Raised beds provide an unusual degree of control over growing conditions, but that control comes with responsibility. Two areas that deserve attention in every raised bed are soil pH and watering consistency.
pH in Raised Beds
Raised bed soil mixes — especially those containing peat moss — tend toward slightly acidic conditions (pH 5.8–6.5). Most vegetables prefer pH 6.0–7.0, so this range is generally suitable. However, if you are growing blueberries (prefer pH 4.5–5.5) or brassicas that perform better at pH 6.5–7.0, you may need to adjust. Test raised bed soil pH annually with an inexpensive pH meter or test kit. To raise pH: add agricultural lime at 1–2 lbs per 10 sq ft and mix in. To lower pH: add sulfur or acidifying fertilizer.
Raised beds filled with Mel's Mix or similar peat-based mixes tend to become more acidic over time as organic matter decomposes. Annual compost additions replenish organic matter and slightly buffer pH. Adding a small amount of agricultural lime (dolomitic lime provides both calcium and magnesium) to the annual compost top-dressing helps maintain a stable pH.
Watering Raised Beds
Raised beds drain much more freely than in-ground soil, which means they dry out faster — particularly in hot weather or in beds with significant perlite content. This is a feature (roots never sit in waterlogged soil) but also requires more attentive watering during establishment and dry spells.
A drip irrigation system or soaker hoses are the most efficient watering method for raised beds. They deliver water directly to the root zone, minimize evaporation from the soil surface, and keep foliage dry (reducing fungal disease risk). A basic drip system with a timer costs $30–$80 for a small bed and dramatically reduces the time spent hand-watering. Install it when first building the bed — threading drip tubing through an established, planted bed is much harder.
As a general guideline, raised beds need approximately 1 inch of water per week during the growing season, more in hot or windy weather. A simple moisture test: push a finger 2 inches into the soil. If it is dry at that depth, water deeply. If it is moist, wait. Raised beds dry unevenly — the edges and corners dry faster than the center, so pay attention to variation across the bed.
Companion Planting Basics for Raised Beds
Raised beds are ideal for companion planting — growing multiple species together in mutually beneficial combinations. The intensive space use of raised beds encourages planting densely, which naturally creates conditions where companion relationships work well.
The most famous companion planting combination is the "Three Sisters" — corn, beans, and squash grown together as a polyculture. Corn provides a structure for beans to climb. Beans fix atmospheric nitrogen into the soil, benefiting the other two crops. Squash spreads its large leaves across the soil surface, suppressing weeds and retaining moisture. Together they produce a higher yield per square foot than any single crop grown alone. This system originated with Native American farmers thousands of years ago and remains a highly productive method for warm-season gardens.
Other proven companion combinations for raised beds: tomatoes with basil (improved flavor, pest repellent); carrots with onions or leeks (each repels the other's primary pest); beans with radishes (radishes deter bean beetles); brassicas with dill or celery (attract beneficial parasitic wasps); strawberries with borage (attracts pollinators, may improve strawberry flavor). Plant marigolds (Tagetes) at the bed edges — they produce root exudates that suppress nematodes and attract aphid-eating hoverflies.
For the most intensive production from raised beds, practice succession planting: as one crop is harvested, immediately plant another appropriate for the season. Cool-season crops (lettuce, radishes, peas, spinach) can be grown in spring, replaced with warm-season crops (tomatoes, basil, squash) in summer, then followed by fall cool-season crops (kale, broccoli, carrots) in August. A 4 × 8 ft raised bed managed this way can provide continuous harvests from early March through December in most temperate climates.
Seasonal Care and Annual Maintenance
Raised beds require simple but consistent seasonal care to remain productive year after year. Unlike in-ground gardens, they do not need annual tilling — which would destroy the soil structure that makes them productive. Instead, the focus is on replenishing organic matter and maintaining soil health.
Spring Preparation
In early spring, before planting, add 2 inches of compost to the top of each bed and gently mix it into the top 3–4 inches. This replenishes organic matter that was consumed by soil organisms over winter, restores nutrients leached by winter rains, and compensates for the natural settling that occurs over the growing season. This is also the time to check pH, add any needed amendments, and check the structural integrity of the bed boards.
Summer Management
During the growing season, mulching the surface of raised beds with 2–3 inches of straw, wood chips, or shredded leaves serves multiple purposes: it retains soil moisture (reducing watering frequency by 30–50%), suppresses surface weeds, moderates soil temperature, and adds organic matter as it decomposes. Keep mulch away from plant stems to prevent rot.
Fall Cleanup
At the end of the growing season, remove spent plants, particularly any that showed signs of disease — do not compost diseased plant material. Plant a cover crop (winter rye, clover, hairy vetch) if the bed will be empty through winter; cover crops protect the soil surface from erosion, suppress weeds, and add organic matter when turned in. Alternatively, cover the bed with a thick layer of compost in fall and leave it to be worked in by earthworms and freeze-thaw cycles over winter.
Long-Term Soil Replenishment
Every 3–5 years, raised bed soil benefits from a more significant refresh. Over time, organic matter decomposes and bed volume decreases, perlite or vermiculite migrates to lower layers, and the soil mix becomes increasingly dominated by fine particles from compost decomposition. Top up the bed with fresh soil mix, ideally the same blend used when filling it originally, to restore volume and structure. This is also a good time to assess and replace any deteriorating lumber.
Common Raised Garden Bed Mistakes and How to Avoid Them
- Building the bed too wide: Any bed wider than 4 feet requires you to step into it to reach the center. This compacts the soil and destroys the open, uncompacted structure that makes raised beds far more productive than in-ground growing. Keep all beds 4 feet wide or less — use length to add growing space.
- Using too shallow a depth: A 4-inch bed may look fine initially but limits the crops you can grow and stresses plants during heat and drought due to limited soil moisture capacity. Build at least 10–12 inches deep for vegetable production.
- Using fresh wood chips or mulch inside the bed: Fresh, uncomposted wood chips added to the growing area consume nitrogen as they decompose, creating "nitrogen robbery" that starves plants. Use well-composted organic matter for the growing medium; reserve fresh wood chips for pathways around the beds.
- Skipping the gopher liner: In areas with burrowing rodents, this is the most costly mistake. A family of gophers can consume an entire vegetable bed in weeks. A $15 sheet of hardware cloth prevents years of frustration.
- Not adding enough soil — and not accounting for settling: New soil settles 10–20% after initial watering. Fill the bed to the top board or even slightly above it. Order 10–15% more than the calculated volume to account for settling.
- Planting too soon after filling: Allow newly filled beds to settle and be watered 2–3 times before transplanting. This reveals low spots, lets the soil reach a stable moisture level, and prevents transplants from going into air pockets in the soil.
Pro Tips for Maximum Raised Bed Productivity
- Install irrigation when building: Threading drip lines or soaker hoses through an established, growing bed is messy and disruptive. Install the irrigation system before the first planting; connect it to a timer for fully automated watering.
- Use the hugelkultur base layer in deep beds: For beds 18 inches or deeper, fill the bottom 6–8 inches with logs, large sticks, or wood chips before adding soil. As this material decomposes over 3–5 years, it retains moisture, releases nutrients, and adds organic matter. This reduces the volume of expensive soil needed in deep beds.
- Add corner posts: For beds over 6 feet long, screw or bolt corner posts (lengths of 2×4 or 4×4) at the corners and at 4-foot intervals along the sides. These posts anchor the boards against outward soil pressure and prevent the sides from bowing as the bed ages. This is especially important for tall beds with significant soil weight.
- Orient beds north-south: Orienting long beds along a north-south axis ensures that both sides of the bed receive roughly equal sun exposure throughout the day. East-west orientation puts one long side in the shadow of tall plants on the other side.
- Grow vertically: Raised beds reward vertical growing because the open structure around the bed allows trellises and cages without shading adjacent garden areas. Cucumbers, pole beans, peas, tomatoes, and squash grown vertically on a trellis at the north end of the bed produce more per square foot than sprawling horizontal growth.
- Record your soil mix and amendments: Keep a simple garden journal noting what mix you used to fill each bed, what you amended annually, and how crops performed. This data becomes invaluable for diagnosing problems and improving results year over year.
Safety Notes
Wear gloves: Many soil amendments — especially peat moss, perlite, and compost — contain fine dust particles. Wear gloves during extended handling and wash hands after contact.
Dust mask for dry amendments: Pouring dry perlite or vermiculite in enclosed or windy conditions releases fine silicate dust. Wear an N95 dust mask when working with dry perlite or vermiculite in volume.
Verify lumber treatment: Ensure pressure-treated lumber is ACQ or copper azole treated — not the older CCA (chromated copper arsenate) standard. Avoid railway ties, telephone poles, or reclaimed wood of unknown treatment history for vegetable beds.
Test for contaminated soil below: If building over industrial, urban, or remediated land, test the native soil for heavy metals before choosing an open-bottom bed design. Contaminated native soil can migrate into raised bed soil over time in open-bottom beds.
Frequently Asked Questions
Related Calculators
Authoritative Resources
- Square Foot Gardening Foundation — Mel's Mix
Square Foot Gardening Foundation — Official source for Mel Bartholomew's soil mix formula used in intensive raised bed gardening.
- University Extension — Raised Bed Gardening Guide
Colorado State University Extension — Research-based guidance on raised bed construction, soil preparation, and planting.
- NC State Extension — Building and Filling Raised Beds
NC State University Extension — Comprehensive guide covering raised bed construction, materials, soil mixes, and crop recommendations.
Soil volume estimates are based on nominal bed dimensions and do not account for wood thickness, corner joints, or liner material. Actual soil needed may vary. Add 10–15% for settling. Prices vary by region and supplier.
Calculator Assumptions
- Volume formula: Length (ft) × Width (ft) × (Depth (in) ÷ 12) = Cubic feet per bed
- Total volume = Volume per bed × Number of beds
- Cubic yards = Cubic feet ÷ 27
- Bags needed = Ceiling(Total cubic feet ÷ Bag size)
- Soil settles 10–20% after initial watering — add 10–15% buffer
- Dimensions are interior bed dimensions — lumber thickness reduces interior volume slightly
Pro Tips
- ✓Keep bed width at 4 ft or less so you never need to step in the bed
- ✓Use cedar or redwood lumber — 2-inch thick boards last 15–20 years
- ✓Fill the bottom 4–6 inches of deep beds with logs, wood chips, or straw (hugelkultur) to reduce soil cost
- ✓Order 10–15% more soil than calculated to account for settling
- ✓Add 2 inches of compost to the top of each bed every spring to replenish organic matter
- ✓Install drip irrigation or soaker hoses when building — much easier than retrofitting