Raised Garden Bed Calculator
Enter the bed's outside dimensions and how tall you want it. We'll size the soil and the lumber to build it.
Advanced options
- Internal volume
- 0 cu ft
- Bed area
- 0 sq ft
- Lumber courses (rows)
- 0
- Boards needed
- 0
- Corner stakes / brackets
- 4
- Deck screws (3" / 75 mm)
- 0
- Soil bags (1 cu ft)
- 0
- Estimated cost
- —
How the raised bed calculator works
A standard 8 × 4-ft raised bed 12 inches tall takes 1.13 cubic yards of soil — about 31 one-cubic-foot bags — plus 6 eight-foot 2×8 boards and roughly 56 deck screws. The inside of the frame measures 7'9" × 3'9", which is 29.1 cubic feet of soil, or 30.5 with a 5% settling allowance. Two courses of 2×8 get you to 14½ inches of frame height, a little over the 12 inches of fill.
Soil: internal volume = (length − 2 × board thickness) × (width − 2 × board thickness) × bed height. Then convert to cubic yards (or m³). Add 5% waste for settling and gaps. The calc assumes 1½" / 3.8 cm board thickness for standard 2× lumber.
Lumber: rows of boards = bed height ÷ board face width, rounded up. Boards per row = (2 × length + 2 × width) ÷ board length, rounded up. Corner brackets or 4×4 stakes at each corner; 3" deck screws every 12" along seams.
Soil mix recipes
The calculator gives you a total volume. What goes into that volume is the decision that determines whether the bed grows anything. Three components do three different jobs: mineral soil supplies structure, mineral nutrients, and water-holding capacity; compost supplies organic matter, biology, and slow-release fertility; an aeration amendment keeps the mix from compacting into a brick. Ratios are by volume.
| Mix | Mineral soil | Compost | Aeration | Best for |
|---|---|---|---|---|
| Square-foot / "Mel's Mix" | 0% | 33% (5 sources) | 33% vermiculite + 33% peat | Shallow intensive greens. Light and fluffy, but dries fast and needs constant feeding |
| Balanced garden mix (recommended default) | 50–60% topsoil | 30% | 10–20% coarse perlite, pumice, or bark fines | General vegetable growing. Holds water and nutrients, resists slumping |
| Deep-bed / budget fill | 70% screened topsoil | 25% | 5% | Beds over 18″, where the bottom half is structural fill and the top 12″ carries the crop |
| Container-style (for beds on a hard surface) | 20% | 40% | 40% bark, perlite, or coir | Beds on patios or decks with no soil contact and no drainage below |
| Compost-only (avoid) | 0% | 100% | 0% | Nothing. Excess salts, shrinks by half in a season, nitrogen swings |
That last row is the correction worth making. "Just fill it with compost" is common advice online and it is a reliable way to lose a season. Pure compost is often high in soluble salts, mineralises quickly and then slumps to half its volume, and swings between nitrogen excess and deficiency as it finishes decomposing. University extension horticulture programs — Cornell, Penn State, and UMN Extension all publish raised-bed guidance along these lines — consistently recommend a blend built on mineral soil with compost as an amendment, typically in the range of a quarter to a third of the volume, rather than compost as the growing medium.
Two more things extension guidance is consistent about, and both are worth doing before you order soil. First, get a soil test — most state extension services run one cheaply, and it tells you pH and nutrient levels rather than making you guess. Second, if the bed sits on ground near an old painted structure, a former orchard, or a roadside, test for lead before you grow root crops in it; a raised bed with a barrier layer is one of the standard remediations for contaminated urban soil, but only if you know what you are working around.
Whatever ratio you pick, buy about 10–15% more than the bed's nominal volume. The calculator's 5% waste allowance covers settling during filling; it does not cover the further drop you will see over the first season as organic matter breaks down. Plan to top a new bed up once at the end of year one — that is normal, not a mistake.
Lumber choice
| Material | Typical life | Cost per linear ft (2×8) | Food-safety notes |
|---|---|---|---|
| Western red cedar | 10–15 yrs | $4–$9 | Naturally rot-resistant, no added chemicals. The default premium choice |
| Redwood | 10–20 yrs | $5–$12 | As cedar; regionally priced, often cheaper on the west coast |
| Modern pressure-treated (ACQ, MCA, CA-B) | 20+ yrs | $2–$5 | Copper-based preservatives; widely considered acceptable for food gardens. Not the old arsenic formulation |
| Older CCA-treated (pre-2003) | — | — | Do not use. Chromated copper arsenate; withdrawn from residential sale in the US at the end of 2003. Reclaimed lumber of unknown age is the risk |
| Composite / recycled plastic lumber | 25+ yrs | $5–$12 | Inert, will not rot. Flexes in heat — needs stakes every 3–4 ft |
| Untreated pine or fir | 4–7 yrs | $1.50–$3 | Cheapest. Fine for a bed you expect to rebuild; false economy otherwise |
| Galvanized steel (bought assembled) | 20+ yrs | — | Not sized by this calculator. Heats the soil edge in full sun |
| Railway sleepers / creosote ties | — | — | Do not use. Creosote is a known contaminant and leaches into soil |
The pressure-treated question comes up constantly and deserves a straight answer. The lumber that earned PT its bad reputation in vegetable gardens was CCA-treated — chromated copper arsenate — which was phased out of residential use in the United States at the end of 2003. Everything sold at a home centre since then uses copper-based preservatives without arsenic, and extension guidance generally treats it as acceptable for raised beds. If you want belt and braces, line the inside faces of the boards with heavy plastic sheeting, leaving the bottom open for drainage. Where you should be genuinely careful is with salvaged lumber: old decking, reclaimed ties, and mystery timber of unknown vintage. If you cannot date it, do not grow food in it.
Bed depth by crop
Depth is the input that moves your soil cost most, because volume scales linearly with it. The right answer is set by root depth, and by whether the bed sits on open ground — a 12-inch bed over loosened native soil effectively gives roots far more room than 12 inches over a patio.
| Depth | Suits | Soil for an 8 × 4 bed | Notes |
|---|---|---|---|
| 6″ / 15 cm | Lettuce, spinach, radish, most herbs, arugula | 0.57 cu yd (16 bags) | Cheapest to fill. Only viable over decent native soil — dries out fast |
| 12″ / 30 cm | Beans, peppers, brassicas, onions, chard, strawberries | 1.13 cu yd (31 bags) | The all-round sweet spot and the calculator's default |
| 18″ / 45 cm | Tomatoes, carrots, parsnips, potatoes, squash | 1.70 cu yd (46 bags) | Also the depth where the bed edge becomes a comfortable seat |
| 24″+ / 60 cm+ | Anything, plus standing or wheelchair access | 2.26 cu yd (62 bags) | Accessibility depth. Fill the bottom third with coarse material to cut cost |
Width matters too, and it is not a soil-volume question. Keep beds 4 feet or less across if you can reach both sides, or 2–2.5 feet against a wall or fence — the point of a raised bed is that you never step in it, and soil you never compact is soil you never have to till. Length is limited only by lumber; leave at least 2 feet between beds for a person, or 3 feet if a wheelbarrow needs to pass.
Worked example: a compact 4 × 4-ft herb bed, 18 inches tall
Enter 4 ft × 4 ft, 18 inches tall, 2×6 lumber, 8-ft boards, 5% waste. The frame is 1½ inches thick on each side, so the inside measures 3'9″ × 3'9″; 3.75 × 3.75 × 1.5 ft = 21.1 cubic feet, or 22.1 with waste — 0.82 cubic yards, 23 one-cubic-foot bags. On the lumber side, 18 inches ÷ 5.5-inch board face rounds up to 4 courses; the 16-foot perimeter takes 2 eight-foot boards per course, so 8 boards and 112 deck screws.
Notice that four courses of 2×6 gives a 22-inch frame for an 18-inch fill — the calculator always rounds courses up, so you end up with freeboard rather than a short wall. That is usually what you want (soil settles, and a lip keeps mulch in), but if the extra 4 inches bothers you, one course of 2×12 plus one of 2×6 gets you to 16¾ inches with far fewer seams. Also note the screw count: 112 screws for a 4-foot bed is a lot of driving, which is the honest cost of stacking narrow boards.
Worked example: a long, shallow 12 × 3-ft bed against a fence
Enter 12 ft × 3 ft, 10 inches tall, 2×12 lumber, and set board length to 12 ft in Advanced options. Inside dimensions are 11'9″ × 2'9″; 11.75 × 2.75 × 0.833 ft = 26.9 cubic feet, or 28.3 with waste — 1.05 cubic yards, 29 bags. Because 10 inches fits inside a single 11¼-inch 2×12 face, this is 1 course. The 30-foot perimeter divided by 12-foot boards rounds up to 3 boards, with 24 screws.
Read the board count carefully, because this is where the calculator's simplification shows. Three boards is the right total length — 36 feet of lumber for a 30-foot perimeter — but you cannot cut two 12-foot sides and two 3-foot ends out of it without one board yielding both short ends, which it does comfortably. On a bed with a less convenient perimeter the length-based count can come up a board short once real cuts are assigned, so sketch the cut list before you go to the yard. Also: a 12-foot span of 2×12 will bow outward under wet soil. Add a cross-tie or an outside stake at the midpoint — a few dollars that keeps the bed square for a decade.
Filling deep beds without buying a mountain of soil
A 24-inch bed holds twice the soil of a 12-inch one, and almost no annual vegetable roots into the bottom foot. For deep or accessible beds, fill the bottom third with coarse organic material — logs, branches, wood chips, autumn leaves, straw — and the top 12–18 inches with your real soil mix. The technique is often sold under the name hügelkultur; the practical version is simply that the lower layer decomposes slowly, holds water, and costs nothing. Expect it to settle noticeably in the first two years and plan to top up. Do not use this trick in a bed shallower than 18 inches, where you would be stealing root zone to save a few bags.
Frequently asked questions
How much soil does a 4 × 8-ft raised bed need?
At 12 inches deep: 1.13 cubic yards, or about 31 one-cubic-foot bags. The inside of the frame measures 7'9″ × 3'9″ once you account for 1½-inch board thickness, which is 29.1 cubic feet before the 5% settling allowance. At 6 inches deep it is 0.57 cu yd; at 18 inches, 1.70 cu yd.
What is the best soil mix for a raised bed?
Roughly 50–60% screened topsoil, 30% compost, and 10–20% coarse aeration such as perlite, pumice, or bark fines. Mineral soil gives the mix structure and water-holding capacity; compost supplies fertility and biology; the aeration keeps it from compacting. Avoid filling a bed with pure compost — it carries excess soluble salts, swings in available nitrogen, and shrinks by roughly half in the first season.
Is pressure-treated lumber safe for a vegetable bed?
Modern pressure-treated lumber is generally considered acceptable. The arsenic-based CCA treatment that gave PT its reputation was withdrawn from residential sale in the US at the end of 2003; everything sold since uses copper-based preservatives such as ACQ, MCA, or CA-B. If you want extra separation, line the inside faces with plastic sheeting and leave the bottom open. Never use reclaimed lumber of unknown age, and never use creosote-treated railway ties.
How deep should a raised bed be?
12 inches handles the large majority of vegetables and is the best value per cubic yard. Six inches is enough for lettuce, herbs, and radishes if the bed sits on decent native soil. Eighteen inches suits tomatoes, carrots, potatoes, and squash, and puts the edge at a comfortable sitting height. Twenty-four inches and above is about accessibility for standing or wheelchair use rather than about the plants.
What should go on the bottom of a raised bed?
Cardboard or several layers of newspaper laid straight onto the grass. It smothers the sod for a season and then composts in place, letting roots and earthworms move freely between your mix and the native soil below. Skip landscape fabric — it blocks that exchange permanently and eventually clogs. For beds deeper than 18 inches, add a bottom layer of logs, branches, or wood chips to cut the volume of purchased soil.
Can I stack 2×6 boards instead of using one 2×12?
Yes, and it is often easier to handle — two courses of 2×6 gives an 11-inch wall against a single 2×12's 11¼ inches. The trade-offs are more screws, more seams, and slightly less rigidity against outward soil pressure. Stacked boards are fine on beds up to about 6 feet long; beyond that, either use solid 2×12 walls or add a cross-tie at the midpoint to stop the long sides bowing.
Why did my raised bed soil drop several inches after the first year?
Because organic matter decomposes — that is what it is supposed to do. A bed built with a healthy share of compost will lose 10–20% of its volume in the first season, and one filled with pure compost can lose closer to half. Top it up each spring with an inch or two of fresh compost, which handles both the settling and the annual fertility at the same time. The calculator's 5% waste factor covers settling during filling, not this longer-term drop.
For the soil itself, see the topsoil calculator. For mulch around or on top of beds, use the mulch calculator.
Planning the full project?
These calculators usually get run in the same afternoon.