Staking landscape timber means driving wooden or metal stakes into the ground against the back of each timber and fastening the timber to them, rather than nailing through the face of the wood. The stake hides behind the timber, the fasteners stay out of sight, and the wall holds its line against frost heave and soil pressure. This method works for single-course edging, stacked two- or three-course beds, and short retaining walls under about 18 inches high. Above that height, timber walls need engineering and a building permit; this guide covers the low garden walls that homeowners build themselves.

The work goes faster if you plan the layout and buy the right fasteners first, because a timber wall is only as strong as the stakes holding it back. You'll need the timber itself, stakes long enough to reach below the frost line, a drill, and either galvanized spikes or exterior structural screws.

What "Staking" Actually Means for Timber Edging

There are two ways to hold landscape timber in place. You can drill down through the timber and drive a long spike into the soil below, which pins each piece vertically. Or you can drive a separate stake into the ground tight against the timber's back face and screw or nail the timber to that stake horizontally. The second method is what most references mean by staking, and it's the stronger option for walls that hold back soil.

The difference matters because soil pressure pushes outward and slightly downward. A stake driven behind the timber resists that outward push along its whole buried length, like a fence post. A spike driven through the timber only resists it at the point of contact. For a single course of 4x4 or 6x6 timber sitting flat as garden edging, spikes alone are often enough. For two or more courses stacked up, or any wall holding a raised bed, use stakes.

A third variation, the deadman, adds a horizontal timber or concrete block buried perpendicular to the wall and attached to a stake or the wall itself. Deadmen anchor the wall against tipping and are standard practice for retaining walls roughly 2 feet and taller. For walls under 18 inches, stakes set deep and spaced closely usually do the same job.

Tools, Materials, and Prerequisites

Gather everything before you dig. Running out of fasteners halfway through a course is the most common reason a weekend wall turns into a two-weekend wall.

Timber: pressure-treated 4x4 or 6x6, or 4x6, in 8- or 10-foot lengths. Choose ground-contact-rated lumber (typically labeled for ground contact) because the bottom course sits in soil. Avoid railroad ties unless you've confirmed they're untreated; older creosote ties are restricted for residential use in many places and shouldn't be handled bare-handed. Stakes: 2x2 or 2x4 pressure-treated stakes, or 1/2-inch to 5/8-inch galvanized steel rebar. Wooden stakes should reach at least 12 inches below the base of the wall and at least 6 inches above the top course you're fastening. In cold climates, get below the frost line, which may be 30 to 48 inches in northern states. Fasteners: 3-inch to 3.5-inch exterior structural screws or 10d to 16d hot-dip galvanized nails for wood-to-wood. For attaching timber to rebar, use pre-drilled holes and galvanized lag screws or specialty rebar clips; don't try to drive a screw into rebar. Tools: drill with bits long enough to pre-drill, a 4-pound sledge or a fence-post driver, a level (4-foot minimum), a string line or mason's line, a spade and digging bar, a circular saw or chainsaw for cuts, and a tape measure. Safety: safety glasses, gloves, and hearing protection when driving stakes.

Check local rules before you dig. Call the utility locate service (811 in the US) a few days ahead; a stake through a gas or irrigation line is a bad afternoon.

Step 1: Lay Out the Line and Check the Slope

Drive two stakes at the ends of the planned wall and stretch a string line between them at the height of the top of the first course. This gives you a reference for both line and level. If the ground slopes, decide whether the wall follows the slope in steps or stays level and the grade changes behind it.

For garden edging on a gentle slope, stepping the timber is usually better than cutting angles. Each 8-foot timber sits level, and the next one starts a few inches higher. For a raised bed on flat ground, keep the first course dead level; a wall that starts out of level gets worse with every course you stack.

Mark the trench line on both sides of the string with landscape paint or flour, offset by the timber's width. A 6x6 timber is actually 5.5 inches wide, so the trench should be about 6 inches wide to leave room to work.

Step 2: Dig a Trench and Compact the Base

Dig a trench 4 to 6 inches deep and wide enough for the timber plus a little working room. Remove roots and rocks. The bottom of a timber wall should sit on undisturbed soil or compacted gravel, never on loose fill.

For a wall one course high, a 4-inch trench on firm native soil is fine. For two or three courses, dig 6 inches, fill with 3/4-inch crushed stone, and compact it with a hand tamper or plate compactor in 2-inch lifts. Gravel spreads the load and drains water away from the wood, which slows rot. Set the first timber in the trench and check it with the level along its length and across its width. Adjust by adding or removing gravel, not by wedging stones under the corners.

A simple check: lay a 4-foot level on the timber in both directions. If you can rock the timber, the base isn't flat. Fix it now.

Step 3: Set the First Course and Fasten It

Place the first timber against the string line and check it for level and line. Butt joints should be tight; if two timbers meet end to end, offset the joint in the next course so it doesn't line up, the same rule as laying brick.

Now stake it. Drive a stake behind the timber (on the soil side) so its face is tight against the back of the timber and its top is just below or level with the timber's top. Space stakes every 4 feet for a single course, and every 3 feet for a wall that will carry a second or third course. Drive the stake until it's firm; a sledge or post driver works, and a pilot hole made with a digging bar or a long drill bit helps in hard soil.

Pre-drill through the timber into the stake with a bit slightly smaller than the screw shank, then drive a 3-inch exterior screw or a galvanized nail through the timber into the stake. Two fasteners per stake, one high and one low, hold better than one. Countersink screw heads slightly so they don't stand proud.

Success check: grab the timber and push. It shouldn't move more than a fraction of an inch. If it rocks, the stake wasn't deep enough or the base wasn't compacted.

Step 4: Stack Additional Courses

Set the second course on top of the first, offsetting end joints by at least 12 inches from the joints below. Check level along the wall every few feet; stacked timber tends to drift. Fasten the second course to the same stakes the first course uses, or add new stakes behind it if the first ones don't reach high enough. A stake that spans both courses is stronger than two short stakes, because the courses are tied together.

For a three-course wall, add a stake every 3 feet and consider a deadman every 6 to 8 feet: bury a 2-foot length of timber or a concrete block behind the wall, perpendicular to it, and fasten it to a stake with a screw or a length of galvanized strap. The deadman acts like an anchor, resisting the wall's tendency to tip forward as soil settles behind it.

Drill drainage holes through the bottom course if the wall retains soil, spaced every 4 to 6 feet near the base. Water trapped behind a timber wall is the main cause of bulging and rot.

Step 5: Backfill and Compact Behind the Wall

Backfill behind the wall with the soil you removed, mixed with gravel if the soil is heavy clay. Add it in 6-inch layers and tamp each layer. Don't dump all the backfill at once and walk away; loose fill settles, leaves a gap behind the wall, and the wall leans into it.

Fill to within an inch or two of the top of the highest course. If you're building a raised bed, leave the top course proud by an inch so mulch doesn't spill over. Water the backfill lightly as you go to help it settle, then top off any low spots after a few days.

Step 6: Cap the Wall and Finish the Edges

A cap course, a flat timber laid across the top, protects the end grain from water and gives the wall a finished look. Fasten it with screws driven down into the course below, pre-drilled to avoid splitting. If you skip the cap, at least treat the exposed top of the last course with an exterior wood preservative; end grain soaks up water faster than the faces.

Cut the ends of timbers square and chamfer or round them slightly with a sander so splinters don't catch hands. Where a wall meets a slope, step the timbers and cut each end to fit; don't leave a jagged overhang.

Stakes vs. Spikes vs. Deadmen: Choosing the Right Fastening

Method Best for Holding strength Typical spacing Main drawback
Spikes through timber into soil Single-course edging, flat borders Moderate; resists vertical movement only One spike per timber, or every 4 ft Doesn't resist outward soil pressure well
Stakes behind timber Two or three courses, raised beds Good; resists outward push along buried length Every 3–4 ft Stakes visible from behind until backfilled
Stakes plus deadmen Walls 18–24 in. holding soil Best; resists tipping Deadman every 6–8 ft More digging and material

The comparison assumes pressure-treated timber on firm soil, stakes buried at least 12 inches (deeper in frost areas), and walls under about 2 feet. For taller walls, the spacing and depth change, and engineered designs or permits typically apply.

In frost-prone regions, stakes must extend below the frost line or frost heave will lift and tilt the wall each winter. That can mean 3 to 4 feet of burial in northern climates, which makes steel rebar the practical choice because it can be driven that deep without a wide hole.

Common Mistakes and How to Catch Them Early

Skipping the compacted base. The wall sinks unevenly within a season. Check: press down hard on the first timber; if it moves, recompact.

Stakes too short or too shallow. The wall leans outward after the first heavy rain. Check: push the top of the wall; movement over a quarter inch means the stakes need to go deeper or closer.

Fastening only through the face. Screws driven horizontally through the front of the timber into a stake show their heads and weaken the visible face. Keep fasteners on the back side.

Ignoring drainage. Water pools behind the wall, freezes, and pushes it out. Check: after a rain, look for standing water behind the top course.

Butting joints aligned between courses. The wall cracks along a vertical seam. Stagger joints like brickwork.

Using untreated wood in the ground. Rot starts at the soil line within a few years. Use ground-contact-rated timber for the bottom course.

How Tall Can You Go Before It Needs an Engineer?

As a rule of thumb, timber walls up to about 18 inches high, holding a garden bed and built with stakes every 3 feet and a deadman every 6 to 8 feet, are within reach of a careful homeowner. At 2 feet and above, soil pressure rises quickly, and many jurisdictions require a permit or a design by a qualified engineer, especially if the wall holds a driveway, a structure, or a slope above a house. The exact threshold varies by state, county, and city, so check with the local building department before building anything taller than knee height.

If a wall shows bulging, leaning, or a gap opening behind the top course, stop and address it: unload the soil behind the wall, add stakes or deadmen, and rebuild. A leaning timber wall can fail suddenly after a heavy rain.

How Long Does the Job Take?

A 20-foot, single-course border with stakes every 4 feet is a half-day job for one person with the materials on hand: an hour to lay out and dig, an hour to set and fasten the first timbers, an hour to backfill and cap. A 20-foot, three-course raised bed with deadmen is a full weekend, mostly because of digging and compaction. Frost-depth stakes in cold climates add time, because driving rebar 3 feet into clay takes patience and a heavy sledge.

Budget for the fasteners to cost more than you expect: exterior structural screws in the 3-inch range run roughly 15 to 25 cents each in small quantities, and a 20-foot wall with two screws per stake every 3 feet needs about 28 screws. That's a small line item, but running out mid-course is the classic delay.

Frequently Asked Questions

Can I stake timber directly into the ground without a trench?

For a single course of 4x4 edging on flat ground, yes: set the timber on a shallow scraped base and stake it. But any wall holding soil needs a trench and compacted base, or it will settle and lean.

Do I need to pre-drill the timber?

Yes for screws near the ends of a timber or in dry, dense wood, because pressure-treated lumber splits easily. Pre-drilling with a bit slightly narrower than the screw shank also makes driving easier in 6x6 stock.

What's the best stake for rocky soil?

Steel rebar driven with a sledge, or a 2x2 wood stake set in a hole made with a digging bar. In very rocky ground, a shorter stake with a deadman anchor may hold better than trying to drive deep.

How do I keep stakes from showing above the wall?

Drive each stake so its top sits at or just below the top of the course it fastens, or cap the wall so the cap covers the stake tops. Backfill hides the rest.