Most guides tell you the lumber price and stop. The calculation worth doing in January, before the seed catalogs arrive, is the soil: a bed is a box with a volume, and the volume has a price that changes by four or five times depending on how you buy it.
- A 4 by 8 bed filled to 11 inches needs 29 cubic feet, about 1.1 cubic yards; Mississippi State’s 4 by 8 by 1 foot example is 32 cubic feet.
- In bulk at $30 a yard that soil is $33; in 15 two-cubic-foot bags at $10 it is $150, and Mississippi State says bagged mixes are the most expensive route.
- At bulk prices the lumber is 84 to 94 percent of the total in these examples, so the height in boards and the price of a board decide the cost.
- An in-ground bed treated as Utah State describes, 2 to 3 inches of organic matter tilled in, costs about $7 in compost for the same 4 by 8 area, but it does not give the drainage benefit that Mississippi State credits to raised beds.
Start with the volume
Soil is a volume, and volume is length times width times depth. Mississippi State’s example is 4 by 8 by 1 foot, which is 32 cubic feet and about 1.2 cubic yards; Lawn Love’s version of the same bed is 32 cubic feet, about 1.2 cubic yards. A 2×6 board is 5.5 inches tall, so two boards give 11 inches, and 4 times 8 times 11 divided by 12 is 29.3 cubic feet, or 1.09 cubic yards.
That is the number to take to a supplier. Soil is sold by the cubic yard in bulk and by the cubic foot in bags, so you want both. For a 4 by 8 bed, one board high is 0.5 cubic yard, two boards 1.1 and three boards 1.6. Lawn Love notes that the soil will settle and says to top it off with compost, and the calculator ignores settling.
Lumber and soil, priced
| Bed | Lumber | Bulk soil at $30 a yard | Total |
|---|---|---|---|
| 4 by 8, one board high, $6 a foot | $144 | $16 | $160 |
| 4 by 8, two boards, $6 a foot | $288 | $33 | $321 |
| 4 by 8, three boards, $6 a foot | $432 | $49 | $481 |
| 4 by 4, two boards, $10 a foot | $320 | $16 | $336 |
The last row shows that a smaller bed costs more per square foot, $21.02 against $10.02 for a 4 by 8 with cheaper wood, because the perimeter does not shrink as fast as the area. Gardenary says cedar 2×6 boards run $6 to $15 per linear foot, and the first three rows use the bottom of that range. The calculator’s $10 is the midpoint.
The check on a popular number
Gardenary says material costs alone range from $100 to $300 for a 4 by 8 bed 11 to 12 inches tall, and, in the same article, that cedar 2×6 costs $6 to $15 per linear foot. Put those together. A bed that tall is two boards high, which is 48 linear feet, so cedar costs $288 to $720 for the boards alone. The $100 to $300 range can only be true of cheaper wood, a shorter frame or a sale. It is a reminder to price your own cut list, not to trust a round range. The number of boards high is a choice, and it is the largest lever on cost.
Bagged soil is the hidden cost
| Beds | Soil needed | Bulk | Bags of 2 cubic feet |
|---|---|---|---|
| One 4 by 8, two boards | 1.1 cubic yards | $33 at $30 | 15 bags, $150 at $10 |
| Two 4 by 8, two boards | 2.2 cubic yards | $65 at $30 | 30 bags, $300 at $10 |
| Four 4 by 8, two boards | 4.3 cubic yards | $217 at $50 | 59 bags, $708 at $12 |
Mississippi State says bagged premixed potting soil or soilless mixes will fill your bed but will be the most expensive way to do it. The tables show how: the same volume costs 3 to 4.6 times as much in bags. Bulk soil needs a delivery or a trailer, and delivery fees can erase part of the gap on a small order, which the site’s bulk versus bagged break-even guide works through. For the volume itself use the mulch, gravel and topsoil calculator.
Lawn Love gives topsoil as $10 to $50 per cubic yard. A bed mix with compost mixed in may cost more than topsoil, so enter your supplier’s quoted price. The calculator’s $30 is only the midpoint of the topsoil range.
When in-ground is cheaper
An in-ground bed skips the frame and most of the soil. Utah State’s unframed bed is built by tilling the existing soil 6 to 12 inches deep, adding 2 to 3 inches of organic matter and tilling it in, and killing the grass first if the bed is replacing lawn. For a 4 by 8 area, 2.5 inches is 0.25 cubic yard, about $7 at $30 a yard, so the raised bed in the $6 lumber example costs $313 more.
Raised beds buy things that cost money: Mississippi State says research suggests yields are increased, primarily due to much improved drainage, and that raised beds are easier on the back and knees. If your ground drains poorly, a raised bed is one way around it. If your soil drains and you can work it, in-ground is the cheaper way to grow the same plants. The comparison in the calculator leaves out tilling labor, soil testing and any compost you would buy in bags.
Sizes that work
- Pick the width first: no wider than 4 feet, Mississippi State says, so the center is a 2 foot reach from either side.
- Pick the length to fit your boards: 8 feet uses stock lumber with no waste.
- Pick the height by what you grow: 6 to 12 inches according to Utah State, one or two 2×6 boards high.
- Leave paths wide enough for a wheelbarrow, as Utah State suggests.
- Multiply for the number of beds and take the total volume to the supplier.
A 4 by 8 bed two boards high takes six 8 foot 2×6 boards: four for the long sides and two cut in half for the ends. That is 48 linear feet and 48 board feet.
Wood and liners
Utah State says cedar and redwood are naturally rot resistant and that untreated lumber like fir will rot and break down within a few years. It says pressure treated lumber may be used with a plastic barrier between it and the soil mix. Gardenary describes pressure-treated lumber as generally not recommended for edible crops, and gives a hypothetical in which a pine bed needs replacing in 3 to 4 years while a higher-quality bed lasts 10 years or longer. These are different views; neither is a measurement, so treat the lifespans as a reason to ask your local extension office about wood in your climate.
The calculator prices a liner at $0.50 or $1.00 per square foot of wall, which are placeholders. On a 4 by 8 bed with $10 lumber that adds $11 or $22 to $513.
Build or buy
Gardenary says a comparable 4 by 8 bed kit often runs $200 to $1,000, DIY materials $100 to $300 without tools, and tools $100 to $300 or more if you do not own them. Its point is that time, mistakes and durability count. The calculator’s numbers for a DIY bed, $321 to $513 for a 4 by 8 depending on lumber, sit inside the kit range. If you already have a saw and a drill, building saves the markup. If you do not, a kit may cost about what the tools do.
A planning checklist for the off-season
- Measure the spot and mark the beds with string. Utah State says to kill the grass first if the bed is replacing lawn, which is easier in the weeks before you build; the measuring guide covers the method for any area.
- Decide the number of boards high and write the cut list.
- Get a bulk soil quote, with delivery, and a bag price for comparison.
- Enter both in the calculator and see which route is cheaper for your volume.
- Order lumber and soil together, so the box is ready when the soil arrives.
Doing this in the quiet months costs nothing, and it replaces a first trip to the store with a list.
Mistakes that inflate the bill
- Budgeting for the box and not the soil.
- Buying bags for more than a bed or two.
- Building higher than your plants need.
- Making beds wider than you can reach across.
- Treating a round-number range as a quote.
Run your own numbers
This is the calculator on the raised garden bed cost calculator page. Enter your beds, the height in boards, your lumber and soil prices and a bag price, and compare the total with the in-ground option.
Calculator example 1: A gardener planning two 4 by 8 beds, two 2×6 boards high, with $10 cedar and $30 soil, is looking at $1,025, 2.2 cubic yards of soil and 96 board feet. The lumber is $960 and the soil $65; the same soil in bags would be $300.
Calculator example 2: A gardener with $6 lumber builds one bed of the same size for $321, 1.1 cubic yards and 48 board feet. Working compost into the ground instead is about $7, so the extra cost of raising the bed is $313.
Calculator example 3: A family planning four 4 by 8 beds at $6 lumber, $50 a yard soil and $12 bags pays $1,369 and needs 4.3 cubic yards, $217 in bulk and $708 in 59 bags. A 4 by 4 bed two boards high at $10 lumber is $336, or $21.02 a square foot.
Frequently asked questions
How much soil do you need for a raised bed?
What is the cheapest way to fill a raised bed?
How deep should raised bed soil be?
How wide should a raised bed be?
What size boards do you need for a 4 by 8 bed?
Is cedar worth the extra cost?
Is a raised bed cheaper than in-ground?
Can you use pressure treated lumber for vegetables?
Sources
- Utah State University Extension: Raised bed gardening
- Mississippi State University Extension: Constructing raised beds for the Mississippi gardener (P3087)
- Gardenary: Is it cheaper to build or buy a raised bed? (February 2026)
- Lawn Love: How to build a raised garden bed




