Quick answer: the 3 raised bed soil mix ratios
All-purpose: 40% topsoil / 40% compost / 20% perlite or vermiculite — works for most vegetables.
High-drainage: 40% topsoil / 30% compost / 30% aeration — for wet climates or clay soil.
Nutrient-rich: 30% topsoil / 50% compost / 20% aeration — for heavy feeders and poor native soil.
Use our Raised Bed Soil Calculator to convert your bed size into exact bag counts.
🧮 Need the exact number of bags for your bed?
Enter your bed dimensions and we'll calculate cubic feet and bag counts for every ingredient — no measuring tape math required.
Everyone agrees raised beds need better soil than what's in the ground. But when you start looking up ratios, the advice splits into camps — Mel's Mix says equal thirds, cooperative extension bulletins say 40/40/20, and your gardener neighbor says "just use compost."
The confusion comes from a simple fact: there's no single perfect ratio. What works depends on your climate, your crops, and your budget.
This guide gives you three proven ratios — each backed by cooperative extension and real-world testing — with the math to convert them into actual bag counts for your specific bed.
The 3 Soil Mix Ratios That Actually Work
The data from cooperative extension and university horticulture programs consistently returns to a standard baseline: 40% compost, 40% topsoil, and 20% aeration material for new raised beds.
The aeration component is typically perlite / vermiculite / bark / coarse sand.
From this baseline, you adjust compost up or down depending on your conditions. Here are the three proven variations.
Recipe 1: All-Purpose Mix (40/40/20)
Best for: Most vegetable gardens in moderate climates. This is your default if you're not sure what to use.
| Component | Percentage | Per 10 cu ft | Per 32 cu ft (4×8×12″ bed) |
|---|---|---|---|
| Topsoil | 40% | 4.0 cu ft | 12.8 cu ft |
| Compost | 40% | 4.0 cu ft | 12.8 cu ft |
| Perlite / vermiculite | 20% | 2.0 cu ft | 6.4 cu ft |
This ratio provides balanced drainage, aeration, and nutrition. The topsoil supplies mineral structure and trace elements that pure soilless mixes like Mel's Mix lack. The compost feeds plants through the season. The perlite or vermiculite keeps everything from compacting.
The compost fraction can flex between 30% and 50% by volume depending on compost quality. Well-rotted homemade compost can be used at the lower end of that range; bagged compost from the garden center may need the higher end.
Cost estimate (32 cu ft / 4×8×12″): $75–$130 using purchased materials, or $45–$80 if you make your own compost.
| Purchase scenario | Topsoil (bought) | Compost | Aeration | Total |
|---|---|---|---|---|
| All purchased | $20–$35 | $35–$55 | $20–$40 | $75–$130 |
| Free compost | $20–$35 | $0 | $20–$40 | $45–$80 |
Recipe 2: High-Drainage Mix (40/30/30)
Best for: Clay soil gardens, rainy climates (Pacific Northwest, Gulf Coast, UK), beds that stay wet after rain, and gardeners who tend to overwater.
| Component | Percentage | Per 10 cu ft | Per 32 cu ft (4×8×12″) |
|---|---|---|---|
| Topsoil | 40% | 4.0 cu ft | 12.8 cu ft |
| Compost | 30% | 3.0 cu ft | 9.6 cu ft |
| Perlite / vermiculite | 30% | 3.0 cu ft | 9.6 cu ft |
The extra aeration material — from 20% up to 30% — creates more pore space. Water drains faster, roots get more oxygen, and you avoid the waterlogged soil that leads to root rot in raised beds.
Important: Coarse horticultural perlite (not fine craft perlite) or coarse vermiculite is critical here. Fine dust particles fill the pores instead of creating them. If you use coarse sand as your aeration material, it must be washed concrete sand (not play sand) to avoid compaction.
Tradeoff: You'll water slightly more often in hot, dry weather, and the compost fraction is lower, so you'll need a mid-season liquid feed for heavy feeders.
Recipe 3: Nutrient-Rich Mix (30/50/20)
Best for: Heavy-feeding crops (tomatoes, corn, squash, melons, brassicas), poor native soil with minimal mineral content, and gardeners who want to minimize fertilizing.
| Component | Percentage | Per 10 cu ft | Per 32 cu ft (4×8×12″) |
|---|---|---|---|
| Topsoil | 30% | 3.0 cu ft | 9.6 cu ft |
| Compost | 50% | 5.0 cu ft | 16.0 cu ft |
| Perlite / vermiculite | 20% | 2.0 cu ft | 6.4 cu ft |
The extra compost delivers more nutrients through the growing season. For tomatoes and other heavy feeders, this often means you won't need supplemental fertilizer until mid-summer, if at all.
Caveat: The high compost content can cause excessive nitrogen for root crops like carrots, beets, and radishes — they'll produce lush tops but small, forked roots. Use the all-purpose mix for root vegetables.
Another caveat: If your compost isn't fully finished (still warm, smells like ammonia, has visible undecomposed material), the nitrogen will keep breaking down rather than feeding plants. Only use fully cured compost for this ratio.
💡 Quick tip: The compost fraction is the lever that adjusts between these three recipes. 40% compost is your sweet spot for most gardens. Go higher (50%) for hungry crops. Go lower (30%) for wet climates. Use the Raised Bed Soil Calculator to find the exact numbers for your bed size.
How the 40/40/20 Baseline Compares to Mel's Mix
If you've read the raised bed articles on this site, you've seen Mel's Mix mentioned — the ⅓-⅓-⅓ formula from Square Foot Gardening. The 40/40/20 ratio is different in one important way: it includes topsoil.
| Factor | Mel's Mix (⅓-⅓-⅓) | 40/40/20 Standard |
|---|---|---|
| Topsoil | ✗ None | ✓ 40% |
| Compost | 33% | 40% |
| Peat/coir | 33% | — |
| Aeration | 33% vermiculite | 20% perlite/vermiculite |
| Cost per 32 cu ft | $150–$265 | $75–$130 |
| Mineral trace elements | Minimal | ✓ From topsoil |
| Weight | Very light | Moderate |
| Best for | Square Foot Gardening method | General raised bed gardening |
When to use each:
- Use 40/40/20 if you want a lower-cost mix that still drains well and provides mineral structure. Great for large beds where cost matters.
- Use Mel's Mix if you're doing Square Foot Gardening (the method assumes this specific mix), need a very lightweight bed (e.g., on a rooftop or deck), or have access to cheap or free vermiculite.
The 40/40/20 ratio isn't "better" than Mel's Mix — it's a different tool for a different situation. For most home gardeners filling 4×8 ground-level beds, 40/40/20 delivers similar performance at roughly half the cost.
Volume Math: How to Calculate Ratios for Your Bed
The most common mistake isn't choosing the wrong ratio — it's misjudging how much volume each component needs for your actual bed size.
The formula is simple:
- Total cubic feet = length (ft) × width (ft) × depth (ft)
- Per component = total cubic feet × percentage (as decimal)
Example: A 4×8 bed at 12 inches deep for the all-purpose mix:
- Total volume: 4 × 8 × 1 = 32 cu ft
- Topsoil: 32 × 0.40 = 12.8 cu ft
- Compost: 32 × 0.40 = 12.8 cu ft
- Perlite: 32 × 0.20 = 6.4 cu ft
Bag math: Compost and topsoil are commonly sold in 1–2 cu ft bags; perlite in 2–4 cu ft bags; vermiculite in 1–4 cu ft bags. For 12.8 cu ft of compost, you'd need roughly 7 standard 2-cu-ft bags or 13 standard 1-cu-ft bags.
🧮 Skip the math. Our Raised Bed Soil Calculator does all this for you — enter your bed dimensions, pick your ratio, and it tells you exactly how many bags of each component to buy.
Quick Reference: 3 Ratios by Bed Size
| Bed Size | Depth | Total Volume | All-Purpose | Hi-Drain | Nutrient |
|---|---|---|---|---|---|
| 4×4 | 12″ | 16 cu ft | 6.4+6.4+3.2 | 6.4+4.8+4.8 | 4.8+8.0+3.2 |
| 4×8 | 12″ | 32 cu ft | 12.8+12.8+6.4 | 12.8+9.6+9.6 | 9.6+16.0+6.4 |
| 4×12 | 12″ | 48 cu ft | 19.2+19.2+9.6 | 19.2+14.4+14.4 | 14.4+24.0+9.6 |
| 3×6 | 12″ | 18 cu ft | 7.2+7.2+3.6 | 7.2+5.4+5.4 | 5.4+9.0+3.6 |
| 2×4 | 12″ | 8 cu ft | 3.2+3.2+1.6 | 3.2+2.4+2.4 | 2.4+4.0+1.6 |
Numbers shown as: Topsoil + Compost + Aeration in cubic feet.
When to Adjust the Ratio
The three recipes above cover 90% of raised bed scenarios. Here are the edge cases:
Beds on Concrete or Pavement
On hard surfaces, raised beds dry out faster and heat up more. Use the all-purpose mix but bump the compost to 50% for better moisture retention. Add an extra inch of mulch on top. See our raised bed depth guide for special considerations when building on hard surfaces.
First-Year Beds with Fresh Compost
If you're using fresh, unfinished compost (still smells earthy-warm, has visible straw or wood chips), drop the compost fraction to 30% and add a nitrogen source (blood meal or alfalfa meal) to compensate for the nitrogen drawdown as the compost continues to break down.
Perennial Beds (Fruit, Herbs, Asparagus)
Perennial beds that won't be dug up annually benefit from the nutrient-rich mix (50% compost) for the initial fill, plus a 2–4 inch compost top-dress each spring. The extra organic matter supports long-term soil biology without annual tilling.
How Much to Top Up Each Year
You don't replace your raised bed soil every season. After the initial fill, the mix settles by 1–2 inches per year as organic matter breaks down.
Annual refresh:
- 2–4 inches of finished compost as a top-dress each spring
- That's roughly 5–6 bags for a 4×8 bed, or equivalent from your compost pile
- Scratch it into the top inch or two without disturbing deeper soil layers
Year 2 and Beyond: What Actually Changes
The first few inches of compost every spring works for the first year. But by year 2, the soil profile has changed enough that a simple top-dress isn't addressing what's actually happening below the surface. Here's what shifts and how to adjust.

1. Volume Loss — You Have Less Soil Than You Started With
Organic matter doesn't last forever. Compost — which made up 40% of your initial mix — continues to break down through microbial activity. By the end of the first growing season, you've lost 20% of your total soil volume on average, with losses ranging from 15% to 25% depending on climate, watering frequency, and compost quality.
That's 5–8 cubic feet missing from a standard 4×8×12″ bed — not just "settling."
What to do: Measure the gap between your current soil level and the top of the bed. If it's more than 2 inches, you need to refill, not just top-dress. Use the Raised Bed Soil Calculator to calculate how many cubic feet you're short.

2. Aeration Material Degradation — Perlite Doesn't Rot, But It Compacts
Perlite and vermiculite don't decompose like compost does, but they do get crushed, compressed, and pushed downward by watering and root pressure. By year 2–3, the aeration layer that made your original 40/40/20 mix work so well has lost much of its effectiveness.
You'll notice:
- Water drains slower than it did the first season
- The soil surface crusts over between waterings
- Roots cluster near the top rather than spreading through the full depth
What to do: Every 2–3 years, add 2–3 inches of coarse perlite or vermiculite to the top layer and work it in. This restores the pore space without a full bed overhaul.
3. Ratio Shift — Stop Using the 40/40/20 Formula for Refills
Here's the mistake almost everyone makes: they refill a 2-year-old bed with the same 40/40/20 ratio they used for the initial fill.
That's wrong — and wasteful.
By year 2, your existing soil already has mineral structure (from the topsoil) and aeration (from the perlite). What it's lost is organic matter. The right refresh ratio is 60% finished compost + 40% existing soil, NOT 40% topsoil / 40% compost / 20% perlite.
| Factor | Initial Fill (40/40/20) | Year 2+ Refresh (60/40) |
|---|---|---|
| Topsoil | 40% | — (already in bed) |
| Compost | 40% | 60% |
| Aeration | 20% | — (re-added every 2–3 yrs) |
| Existing soil | — | 40% |
| Cost per 4×8 bed | $75–$130 | $35–$55 |
The 60/40 refresh costs roughly half what the initial fill did because you're only buying compost — the topsoil and aeration are already in the bed.
Exception: If you're expanding the bed or starting a new bed next to an old one, use the full 40/40/20 for the new section.

4. When to Fully Renovate (3–5 Year Check)
Annual top-dressing and the 60/40 refresh will keep a raised bed productive for 3–5 years — but eventually the soil needs a full reset.
Renovate when you see any of these signs:
- Water pools on the surface longer than 10 minutes after rain
- Root growth is visibly restricted when pulling spent plants
- Soil pH has drifted outside 6.0–7.0 despite annual liming
- The soil feels dense and compacted, not crumbly
Full renovation means: Remove the top 6–8 inches of soil, set it aside, loosen the bottom layer with a garden fork, then remix the removed soil with fresh compost at roughly a 50/50 ratio before returning it to the bed. This is a half-day project for a 4×8 bed, not a full weekend — and it resets the soil biology without replacing everything.
After 3–4 years, test your soil pH. 6–7 is the sweet spot for most vegetables. If it's drifted below 6.0, add dolomitic lime. If you used peat moss in your original mix rather than coco coir, you'll need to monitor pH more closely — 3.5–4.5 is very acidic and may pull your bed pH down over time.
The Bottom Line
The three 40/40/20 family ratios give you a flexible system that adapts to your garden conditions:
- All-purpose (40/40/20): Your daily driver for most vegetables in most climates.
- High-drainage (40/30/30): When water is the enemy — clay soil, rainy climates, or that one bed that never seems to dry out.
- Nutrient-rich (30/50/20): When your crops need more fuel — heavy feeders or poor native soil.
The ratio matters, but the volume math matters more. A perfect ratio applied to the wrong volume won't fill your bed correctly. That's what the calculator is for: enter your dimensions once, and it tells you exactly how many bags of each component to bring home.
How many bags of compost do you actually need?
The Raised Bed Soil Calculator shows exact quantities for topsoil, compost, and aeration — adjusted by your bed's length, width, and depth.
Related Reading
- Best Soil Mix for Raised Beds — Mel's Mix explained, why garden soil fails in raised beds, and how peat vs coco coir affects pH
- Raised Bed Depth Guide — How deep your soil actually needs to be by vegetable type
- How to Compost at Home — Make free compost to cut your mix cost by 40–60%
- Stop Buying Dirt for Raised Beds — Why most bagged topsoil is overpriced for what you get
