You can build a raised bed yourself with basic tools and materials from a hardware store
A DIY raised garden box is a wooden or composite frame you build and fill with soil, rather than buying a pre-made kit. Most people use untreated cedar, composite lumber, or galvanized metal — materials that cost between $40 and $150 for a 4-by-8-foot bed, depending on what you choose and how deep you go. You need a drill, a saw (or ask the store to cut pieces), a level, and fasteners. The actual building takes two to four hours for a first-timer, and the bed lasts five to fifteen years depending on material and weather.
The main reason to build instead of buy is cost and customization. A pre-made kit for the same size often runs $200 to $400. Building yourself also lets you make the bed exactly the depth and dimensions your space needs — a corner bed, a narrow strip along a fence, or a very deep box for root vegetables. You control the wood type, which matters if you have pets or children and want to avoid pressure-treated lumber.
Key Takeaways
- Cedar and composite lumber are the most common choices; cedar costs less upfront but rots faster, while composite costs more but lasts longer.
- A basic 4-by-8-foot bed 12 inches deep requires about $60 to $100 in materials and a drill, saw, and level from tools you may already own.
- Untreated wood is safe for vegetables; pressure-treated lumber from before 2004 can leach chemicals and should not be used for food gardens.
- The bed itself takes two to four hours to assemble; filling it with soil and compost takes longer and costs $30 to $80 depending on size.
- Wood beds need replacement every five to ten years; composite and metal last longer but cost more to start.
Choosing your material: wood, composite, or metal
Cedar is the most popular choice for DIY beds. It resists rot better than pine or spruce, costs $1 to $3 per linear foot for 2-by-10 or 2-by-12 boards, and looks finished without stain. A 4-by-8-foot bed needs 24 linear feet of boards, so roughly $24 to $72 in lumber alone. Cedar lasts five to eight years in most climates before the wood begins to break down, especially at the corners where boards meet soil.
Composite lumber (wood fiber mixed with plastic) costs $2 to $5 per linear foot but lasts 15 to 20 years. It does not rot, does not need stain, and requires no maintenance. The trade-off is weight — composite is heavier to move and harder to cut, and some people find the appearance less natural. It also expands and contracts slightly with temperature, so you need to leave small gaps between boards.
Galvanized metal (steel coated with zinc) costs $3 to $6 per linear foot and lasts 20+ years. It heats up in direct sun, which can stress plant roots in very hot climates, and it requires no fasteners — most metal beds use a tongue-and-groove system that slots together. Metal is lighter than composite and easier to move if you need to relocate the bed.
Pressure-treated lumber is inexpensive ($0.50 to $1.50 per linear foot) but should not be used for vegetable gardens. Lumber treated before 2004 contained arsenic; modern pressure-treated wood uses copper compounds that can still leach into soil over time. If you already have a pressure-treated bed, it is safe for ornamental plants and flowers, but many gardeners avoid it for food.
Tools and fasteners you will need
You do not need a workshop. A power drill (corded or cordless, $50 to $150) and a circular saw or miter saw ($80 to $200) are the main tools. If you do not own them, you can rent both from a hardware store for $15 to $25 per day, or ask the store to cut your boards to length when you buy them — most stores offer this for free or a small fee.
For fasteners, use exterior-grade wood screws (3 to 3.5 inches long) rather than nails. Screws hold better as wood shrinks and swells with moisture, and they are easier to remove if you need to repair or disassemble the bed later. A box of 100 screws costs $8 to $15. Avoid interior drywall screws — they snap under the stress of holding heavy soil.
You will also need a level (a 2-foot level costs $15 to $30) to make sure the bed sits flat, and a tape measure and pencil for marking. A square ($10 to $20) helps you cut corners at 90 degrees. If you are building on uneven ground, a shovel and a few minutes of leveling the site will save you headaches later.
Step-by-step assembly for a basic rectangular bed
Start by cutting your boards to length. For a 4-by-8-foot bed, you need two 8-foot pieces and two 4-foot pieces. If the store cuts them, verify the cuts are square (90 degrees at the ends) before you leave.
Lay the boards flat on the ground in a rectangle and check that the corners are square using a tape measure: measure diagonally from corner to corner in both directions. If both diagonals are the same length, the corners are square. Adjust until they match.
Drill pilot holes (small holes to guide the screw) at each corner, about 1 inch from the edge and 1 inch down from the top. Use a drill bit slightly smaller than your screw diameter. This prevents the wood from splitting. Drill two pilot holes per corner — one near the top and one near the bottom.
Drive 3.5-inch exterior screws through the pilot holes, fastening the short boards to the ends of the long boards. Use at least two screws per corner. Check with your level as you go; the bed does not have to be perfectly level, but major slopes will cause water to pool on one side.
Once the frame is assembled, move it to its final location. Trying to move a full bed is difficult and risks breaking the joints. Set it on level ground and check again with your level. If the ground is uneven, you can dig out high spots or add soil under low spots to level it.
Filling and preparing your bed for planting
A 4-by-8-foot bed that is 12 inches deep holds about 32 cubic feet of soil. Most gardeners fill with a mix: a bottom layer of compost or aged manure (4 to 6 inches), a middle layer of topsoil (4 to 6 inches), and a top layer of potting mix or additional compost (2 to 4 inches). This layering improves drainage and gives plants access to nutrients at different depths.
Buying soil by the bag is expensive for large beds — a 2-cubic-foot bag costs $4 to $8, so you would need 16 bags and spend $64 to $128. Buying in bulk from a landscape supply yard costs $30 to $60 per cubic yard (27 cubic feet), so a full bed runs $35 to $80. Call ahead to confirm they deliver or allow pickup, and ask whether the soil is screened (free of rocks and debris) and whether it includes compost.
Before you fill, consider adding a barrier at the bottom if you are concerned about weeds or pests. Cardboard or landscape fabric (not plastic, which traps water) allows drainage while blocking weeds from below. Lay it flat on the ground inside the frame, overlapping pieces by 6 inches, then add your soil on top.
After filling, water the bed thoroughly and let it settle for a few days. The soil will compact, and you may need to add more to bring it back to the top. This settling is normal and does not mean you did anything wrong.
Maintenance and when to replace your bed
Wood beds need minimal upkeep. Cedar does not require stain or sealant, though some gardeners explore a natural oil finish for appearance. Do not paint the inside of the bed — paint can chip into the soil. Check the corners and bottom edges each spring for soft spots or rot, especially if your climate is wet. If you catch rot early, you can replace just the affected board rather than the whole bed.
Composite beds need no stain or sealant. Wipe them down with a hose if they look dirty, but they do not require annual maintenance. Metal beds may develop surface rust over time, which is cosmetic and does not affect function. If rust bothers you, you can wire-brush it off or explore a rust-inhibiting spray.
Most wood beds last five to eight years before the wood becomes too soft to hold fasteners securely. When that happens, you can disassemble the bed, salvage the fasteners, and build a new frame using the same footprint. Composite and metal beds typically last 15 to 20 years, making them a better long-term investment if you plan to garden in the same spot for many years.
Frequently Asked Questions
Can I use pressure-treated wood from my shed or old deck?
If it was treated before 2004, no — it contains arsenic and should not touch vegetable soil. Modern pressure-treated wood (post-2004) uses copper compounds and is safer, but many gardeners still avoid it for food gardens. It is fine for ornamental beds or as a temporary solution while you source untreated cedar or composite.
What if my yard is very uneven or has clay soil underneath?
Uneven ground is fine — you can level the bed itself with a shovel and level tool. Hard clay underneath does not prevent a raised bed from working; the whole point of a raised bed is that you fill it with good soil rather than relying on what is below. If water pools around the outside, dig a shallow trench to redirect it away from the bed.
How deep does a raised bed need to be?
Most vegetables need 8 to 12 inches of soil. Shallow-rooted plants like lettuce and herbs do fine in 6 inches; root vegetables like carrots and parsnips need 12 to 18 inches. A 12-inch bed is a good middle ground. Deeper is always better if you have the space and budget, because it gives roots more room and holds more moisture.
Do I need to line the bottom of the bed to keep out pests?
Cardboard or landscape fabric stops weeds from growing up through the bottom, but it is not necessary. If you have a serious problem with burrowing pests like voles or gophers, hardware cloth (metal mesh) stapled to the underside of the frame works better than fabric. For most gardens, a cardboard layer is enough.
Can I build a bed without screws, using just nails or corner brackets?
Yes, but screws hold better over time. Nails work for temporary beds, but as wood shrinks and swells with moisture, nails loosen and the frame becomes wobbly. Metal corner brackets (L-shaped pieces bolted to the inside corners) are very strong and are a good choice if you do not want to drill pilot holes, though they cost $5 to $10 per corner.