A raised bed has two costs, the box and what goes in it, and people usually underestimate the second. A 4 by 8 bed filled to 11 inches needs about 1.1 cubic yards of soil, and whether that costs $33 or $150 depends on whether you buy it by the yard or by the bag.
The calculator takes the number of beds, their length, width and height in boards, the price of 2×6 lumber and soil, and an optional liner, and returns the cubic yards of soil, the board feet of lumber and the total. It also prices the in-ground alternative of working compost into the existing soil.
What the calculator does
Enter how many beds you want, the length and width of each in feet, and the height in 2×6 boards, one board for 5.5 inches, two for 11 or three for 16.5. Add your price per linear foot of 2×6 lumber, your price per cubic yard of soil, an optional liner and the price of a 2 cubic foot bag to compare with bulk.
The tool multiplies the perimeter by the number of boards high for linear feet, which for 2×6 lumber is the same number of board feet, and multiplies length by width by height for soil volume, divided by 27 for cubic yards. It reports lumber, soil and liner cost, cost per bed and per square foot, the same soil in bags, and what working 2.5 inches of compost into the ground would cost.
Soil volume in three lines
Volume is length times width times depth, in feet. Mississippi State University Extension’s example is a bed 4 feet wide, 8 feet long and 1 foot deep: 4 times 8 times 1 is 32 cubic feet. There are 27 cubic feet in a cubic yard, so 32 cubic feet is 1.2 cubic yards, which is the figure Lawn Love gives for the same bed. A 2×6 is 5.5 inches tall in practice, so the calculator counts height in boards.
| 4 by 8 bed | Height | Soil | Board feet of 2×6 |
|---|---|---|---|
| One board high | 5.5 inches | 15 cubic feet, 0.5 cubic yard | 24 |
| Two boards high | 11 inches | 29 cubic feet, 1.1 cubic yards | 48 |
| Three boards high | 16.5 inches | 44 cubic feet, 1.6 cubic yards | 72 |
Soil rises in proportion to height, and so does lumber. Mississippi State calls 6 inches the recommended minimum depth, and Utah State says a raised bed should be at least 6 to 12 inches high to accommodate the rooting depth of most vegetables.
Where the money goes
| Build | Lumber | Soil | Total | Per sq ft |
|---|---|---|---|---|
| One 4 by 8 bed, one board high, $6 lumber, $30 soil | $144 | $16 | $160 | $5.01 |
| One 4 by 8 bed, two boards, $6 lumber, $30 soil | $288 | $33 | $321 | $10.02 |
| One 4 by 8 bed, three boards, $6 lumber, $30 soil | $432 | $49 | $481 | $15.03 |
| Two 4 by 8 beds, two boards, $10 lumber, $30 soil | $960 | $65 | $1,025 | $16.02 |
| Four 4 by 8 beds, two boards, $6 lumber, $50 soil | $1,152 | $217 | $1,369 | $10.70 |
At bulk prices, the box is most of the cost. In the table lumber is between 84 and 94 percent of the total, because soil by the cubic yard is cheap and a bed uses a little over a yard of it. The height of the bed matters more than the soil price: moving from one board to three triples the lumber and the soil together.
Bulk or bagged
The soil line changes sharply if you buy bags. Mississippi State says bagged premixed potting mixes will fill your bed but will be the most expensive way, and its example counts 2 cubic foot bags. The calculator does the same: one 4 by 8 bed two boards high needs 15 bags, and at $10 a bag that is $150 against $33 in bulk at $30 a yard. Four beds at a $50 yard and $12 bags are 59 bags and $708 against $217. Bagged soil costs three to nearly five times the bulk price in these examples, and that is only for the filling.
That is the sense in which soil volume is the hidden cost: it is hidden if you buy bags, and small if you buy by the yard. Bulk needs a delivery or a truck, so the site’s bulk versus bagged break-even guide and the mulch, gravel and topsoil calculator cover the delivery fee. Lawn Love’s price for topsoil is $10 to $50 per cubic yard, and the tool starts at the $30 midpoint; blended raised bed mixes can cost more, so use the quote you are given.
What the lumber sources say
Gardenary, in February 2026, says cedar 2×6 boards run $6 to $15 per linear foot and that material costs alone range from $100 to $300 per 4 by 8 bed, about 11 to 12 inches tall. Check the arithmetic: a bed two boards high needs 48 linear feet, which at $6 to $15 is $288 to $720. The $100 to $300 figure fits only cheaper wood or a shorter frame, so read it as a lower-priced material, not as cedar. The calculator uses $10, the midpoint of the cedar range, and lets you change it.
On which wood to use, Utah State says cedar and redwood are naturally rot resistant, that untreated lumber such as fir will rot and break down within a few years and that pressure treated lumber may be used for raised bed construction if a plastic barrier is placed between the lumber and the soil mix to prevent contaminants leaching into the garden soil. Gardenary says pressure-treated lumber is generally not recommended for edible crops and advises untreated materials. The two sources differ, and the choice is yours.
Raised against in-ground
Utah State describes an unframed bed: till the existing soil 6 to 12 inches deep, then add 2 to 3 inches of organic matter and till it in, killing the grass first if the bed is in a lawn. At 2.5 inches over a 4 by 8 area that is about a quarter of a cubic yard of compost, $7 at $30 a yard, against $321 for a raised bed built with $6 lumber and filled with $30 soil. The extra cost of the raised bed in that example is $313.
The comparison is honest only if you look at what the money buys. Mississippi State says research suggests that raised-bed yields are increased, primarily due to much improved drainage compared with in-ground gardening, and that raised beds help gardeners with sore backs and achy knees. Those are real benefits, but they are not free, and in-ground is cheaper if your native soil drains and you can work it. The in-ground figure excludes soil testing, tilling and your time.
Height, width and reach
- Width: Mississippi State says no wider than 4 feet, so the longest reach is 2 feet and you can reach the center from both sides. Utah State says 3 to 4 feet wide. The calculator warns at more than 4 feet.
- Length: whatever suits the site, says Mississippi State. A longer bed costs more in proportion to its perimeter and soil.
- Height: at least 6 to 12 inches according to Utah State; 6 inches as a minimum according to Mississippi State.
- Paths: Utah State suggests walkways wide enough for a wheelbarrow or a gardener to work around, which costs space but not materials.
Board feet and the cut list
Board feet are measured in nominal inches. A 2×6 is 2 inches by 6 inches, and a foot of it is 2 times 6 times 12 divided by 144, which is 1 board foot. So for 2×6 lumber, linear feet and board feet are the same number, and a 4 by 8 bed two boards high is 48 of each.
The cut list for that bed is short. The long sides are two courses of two 8 foot boards, four boards in all. The ends are two courses of two 4 foot boards, four pieces that come from two 8 foot boards cut in half. That is six 8 foot 2×6 boards for the frame, and anything for corner posts is extra. If you build to 8 feet by 4 feet you waste nothing, which is why that size is common.
Liners, kits and extras
If you use pressure-treated lumber, Utah State says to put a plastic barrier between it and the soil. The calculator prices a liner on the inside walls at $0.50 or $1.00 per square foot, which are placeholders, so one 4 by 8 bed with $10 lumber adds $11 or $22. Kits are another route: Gardenary says a comparable 4 by 8 kit often runs $200 to $1,000, and that tools for a first build can add $100 to $300 or more. Neither is in the calculator’s total.
Mistakes that cost money
- Pricing the box and forgetting the soil, or pricing bagged soil as though it were bulk.
- Building taller than the plants need. Each extra board adds lumber and soil.
- Making a bed wider than 4 feet, which you cannot reach across.
- Ignoring settling. Lawn Love notes the soil will settle, so plan a little compost to top it off.
- Not killing the grass under the bed, which Utah State says to do.
- Choosing lumber by price alone. Untreated fir, according to Utah State, rots within a few years.
Worked example: two beds, then four
An illustrative example. The numbers are exactly what the calculator shows with the inputs listed.
A gardener plans two 4 by 8 beds, two 2×6 boards high, with cedar at $10 a linear foot and soil at $30 a cubic yard. The tool shows $1,025 total, 2.2 cubic yards of soil, 96 board feet and $513 a bed, with lumber $960 and soil $65. The same soil in 2 cubic foot bags is 30 bags and $300 at $10 each.
A gardener with cheaper lumber at $6 a foot builds one bed of the same size: $321, 1.1 cubic yards and 48 board feet, $10.02 a square foot, against $7 to improve the ground in place. One board high it is $160, and three boards high it is $481.
A family with a larger plan wants four beds at $6 lumber, $50 a yard soil and $12 bags: $1,369, 4.3 cubic yards, 192 board feet. The soil in bulk is $217, and in 59 bags it would be $708.
Frequently asked questions
How many cubic yards of soil does a 4 by 8 raised bed need?
What does it cost to build a raised garden bed?
Is it cheaper to buy a kit or build?
Is bulk soil cheaper than bagged?
How tall should a raised bed be?
How wide should a raised bed be?
Can you use pressure treated lumber?
When is in-ground cheaper?
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
Related calculators and guides
- Mulch, gravel and topsoil calculator: cubic yards for any bed or fill
- Bulk vs bagged break-even guide: the delivery fee that decides bulk soil
- How to measure square footage: measuring beds and yards
- Paver patio cost calculator: another yard project priced by the foot
