Raised Bed Soil Calculator

Quick answer

A raised bed soil calculator turns the bed length, width and depth into the cubic yards, cubic feet and bags of soil to fill it, split by your mix. Pick a topsoil and compost blend or Mel’s Mix; it multiplies the dimensions and divides into components. A 4 by 8 foot bed 10 inches deep needs about 1 cubic yard.

Updated 2026-10-17By Shakeel Muzaffar | Reviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Your details
Site Work and Gardening
ft
Inside length of the bed in feet.
ft
Inside width of the bed in feet.
inches
How deep to fill the bed in inches. Beds are usually 6 to 12 in; fill to 1 to 2 in below the rim.
How many identical beds. Leave at 1 for a single bed.
Splits the total volume into components. A 70/30 topsoil-compost blend suits most beds; Mel’s Mix is the square-foot gardening recipe. Adjust to your soil.
Cubic feet per bag, used to count bags. Bulk by the yard is cheaper above a cubic yard.
Your results

Total Cubic Yards

—
Total Cubic Feet—
Or Bags—
Mix Breakdown—
Per Bed—
Fill Note—

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)
Calculator GuideMethod, worked examples, factors and FAQ

How to Use the Raised Bed Soil Calculator

  1. Enter the bed length, width and fill depth.
  2. Enter the number of beds if you have more than one of that size.
  3. Pick a soil mix, which splits the volume into components.
  4. Pick a bag size and read the cubic yards, bags and mix breakdown.

Here is what each result line means:

ResultWhat it means
Total Cubic YardsTotal soil volume for all beds.
Total Cubic FeetThe same volume in cubic feet.
Or BagsWhole bags of the chosen size.
Mix BreakdownEach component volume for the mix.
Per BedVolume for one bed, times the count.
Fill NoteDepth and fill guidance.

Buying the parts separately? Size them with the topsoil and compost calculators.

What Is a Raised Bed Soil Calculator?

A raised bed soil calculator is a garden tool that works out how much soil fills a raised bed, and splits that volume into the parts of your chosen mix. It turns the bed dimensions into cubic yards, cubic feet and bags.

Raised beds are filled with a blend, not plain dirt: usually topsoil loosened with compost, or a soilless mix like Mel’s Mix for square-foot gardening. The calculator sizes the whole fill and each ingredient.

It uses the same volume math as the topsoil and mulch calculators.

How the Raised Bed Soil Calculator Works

each mix component = total volume x its fraction
cu ft = L x W x depth in / 12 x beds; cubic yards = cu ft / 27

Length times width times the depth in feet gives the cubic feet in a bed. Here the depth is in inches, so it is divided by 12, and the total is divided by 27 for cubic yards.

How raised-bed soil volume is calculatedL x W x depth/12per bedcubic feet/ 27cubic yards/ bag sizebagsbulkbags
Multiply length by width by depth for the cubic feet in each bed, times the number of beds. Divide by 27 for cubic yards or by the bag size for bags, then split by the mix.
  1. Per bed = length times width times depth in inches, divided by 12.
  2. Total = per bed times the number of beds; cubic yards = total divided by 27.
  3. Each mix component = the total volume times its fraction.

Bags are the total cubic feet divided by the bag size. A cubic yard is 18 of the 1.5-cubic-foot bags, so bulk delivery is cheaper for several beds.

Raised Bed Soil Calculation Example

One 4 x 8 ft bed filled 10 in deep with a 70/30 topsoil and compost mix.

one 4 x 8 ft bed, 10 in deep
cu ft = 4 x 8 x 10 / 12 = 26.67; cubic yards = 26.67 / 27 = 0.99

Calculation: Volume = 4 x 8 x 10 / 12 = 26.67 cubic feet = 0.99 cubic yards, or 18 bags of 1.5 cubic feet. The mix is about 0.69 cubic yards topsoil and 0.30 cubic yards compost.

A 4 x 4 ft bed at 12 in in Mel’s Mix is 16 cubic feet, about 5.3 cubic feet each of compost, peat and vermiculite.

Factors That Affect How Much Soil You Need

Bed Size and Depth

Volume scales with length, width and depth. A deeper bed for root crops needs proportionally more soil; most beds are 6 to 12 inches.

Number of Beds

Several identical beds multiply the volume fast, which usually tips the order from bags to bulk.

Mix Ratio

The blend sets how much of each ingredient you buy. A 70/30 topsoil-compost mix is common; Mel’s Mix uses equal thirds of compost, peat and vermiculite.

Settling

Fresh soil settles after watering, so fill to the rim and expect to top up, or fill to 1 to 2 inches below and let it settle level.

Bags vs Bulk

A cubic yard is 18 of the 1.5-cubic-foot bags. For several beds, bulk soil and compost by the yard are far cheaper.

Raised Bed Mixes Comparison

Common raised-bed mixes and what each volume splits into.

Common raised-bed soil mixesthe mix splits the total volume into componentstopsoil 70%compost 30%topsoil + compost blendcompost 1/3peat 1/3vermiculite 1/3Mel’s Mix (equal thirds)
A topsoil-and-compost blend is roughly 70 percent topsoil to 30 percent compost. Mel’s Mix for square-foot gardening is equal thirds of compost, peat moss and coarse vermiculite by volume.
MixComponentsBest for
Topsoil 70 / compost 3070% topsoil, 30% compostMost vegetable and flower beds
Topsoil 50 / compost 5050% topsoil, 50% compostRicher beds, heavy feeders
Mel’s Mix1/3 compost, 1/3 peat, 1/3 vermiculiteSquare-foot gardening, soilless
Single material100% of one productTopping up an existing bed

These are starting points from extension guidance and the Square Foot Gardening recipe. Adjust the blend to your soil, crop and drainage; a little coarse sand or perlite helps heavy mixes drain.

When to Use a Raised Bed Soil Calculator

Filling New Beds

Size the soil to fill one or several new raised beds to depth.

Square-foot Gardening

Work out Mel’s Mix thirds for a classic square-foot bed.

Topping Up

Figure the single-material volume to top up a bed that has settled over a season.

Buying the Parts

Split the order into topsoil and compost, then price each with its own calculator.

Planning a Kitchen Garden

Scale the soil for a whole bank of beds before ordering bulk.

Common Raised Bed Soil Mistakes

1. Filling with Plain Topsoil

Straight topsoil compacts and drains poorly in a bed. Blend in compost, about 30 to 50 percent.

2. Using the /27 Shortcut with Inches

The 27 divisor needs depth in feet. With inches, divide by 12 for cubic feet first, then by 27.

3. Buying Bags for Several Beds

A cubic yard is 18 bags of 1.5 cubic feet. For a few beds, bulk is far cheaper and quicker.

4. Forgetting Settling

Soil drops after watering. Fill a little proud or plan to top up so plants are not left in a sunken bed.

5. Too Shallow for Roots

Root crops want 10 to 12 inches. A shallow bed over hard ground limits what you can grow.

6. Over-rich Mix

All compost holds too much water and can burn seedlings. Keep compost to a third to half of the blend.

Accuracy and Limitations

The calculator estimates fill volume and a mix split from the bed dimensions.

What it calculates

  • Cubic yards and cubic feet for all beds
  • Whole bags of the chosen size
  • Each component of the mix
  • Volume per bed

What it does not cover

  • Soil weight (soil is sold by volume)
  • Settling beyond your fill margin
  • Fertilizer and amendments
  • Delivery and pricing

How We Estimate Raised Bed Soil

Method
Cu ft = L x W x depth/12 x beds; cubic yards = cu ft / 27; bags = round up cu ft / bag size; components = volume x fraction.
Inputs used
Bed length, width, depth, number of beds, mix and bag size.
Mixes
Topsoil 70/compost 30, 50/50, Mel’s Mix thirds, or single material.
Bags
1.0 (27/yd), 1.5 (18/yd), 2.0 (14/yd) cu ft.
Data basis
Iowa State, Penn State and Maryland Extension raised-bed guidance; Square Foot Gardening for Mel’s Mix.
Not included
Soil weight, settling beyond the margin, amendments, delivery and pricing.
Sources
See the Sources list below.
Last reviewed
2026-11-06.

Frequently Asked Questions About Raised Bed Soil

How much soil do I need for a raised bed?

Multiply length by width by depth in feet. A 4 by 8 ft bed 10 in deep is 4 x 8 x 10/12 = 26.67 cubic feet, about 1 cubic yard, or 18 bags of 1.5 cubic feet.

What soil mix is best for a raised bed?

A common blend is about 70 percent topsoil and 30 percent compost. For square-foot gardening, Mel’s Mix is equal thirds of compost, peat moss and coarse vermiculite.

How deep should a raised bed be?

Most beds are 6 to 12 inches. Leafy greens are fine at 6 inches; root crops and tomatoes prefer 10 to 12. Deeper beds need proportionally more soil.

How many bags of soil fill a cubic yard?

About 18 of the 1.5-cubic-foot bags, 27 of the 1-cubic-foot bags, or 14 of the 2-cubic-foot bags. A cubic yard is 27 cubic feet.

What is Mel’s Mix?

The square-foot gardening recipe: equal parts by volume of blended compost, peat moss and coarse vermiculite. It is a light, soilless mix that drains well and holds moisture.

Should I buy raised bed soil in bags or bulk?

Bags suit one small bed. For several beds or more than a cubic yard, bulk topsoil and compost by the yard are far cheaper than bags.

How much compost in a raised bed?

About 30 to 50 percent of the blend. All compost holds too much water and can burn seedlings, so keep it to a third or half with topsoil.

Will raised bed soil settle?

Yes. Fresh soil settles after watering, so fill a little proud of the rim or plan to top up, and avoid a sunken bed.

How much soil for a 4×4 raised bed?

At 12 inches deep, 4 x 4 x 1 = 16 cubic feet, about 0.59 cubic yards or 11 bags of 1.5 cubic feet.

Is my data saved?

No. The calculator runs entirely in your browser and nothing is stored or sent.

Sources

Related Calculators

Filling a raised bed?

Explore all framing calculators

Volumes and mix splits are planning estimates. Bagged soil and compost come in several cubic-foot sizes, so check the rating on the bag; above a cubic yard, bulk delivery is cheaper. Mix ratios vary by gardener, soil and crop, so adjust the blend to your beds. Fill to an inch or two below the rim and expect the soil to settle after watering, so keep some to top up. Spotted an error? Let us know.