How to Put In Garden Edging for Garden Beds? | Trench, Set, Tamp

Installing garden edging means digging a trench along the bed’s edge, setting the edging inside it, anchoring it with spikes, then backfilling and tamping the soil tight so the line holds.

A crisp edge between lawn and planting bed does more for a yard than most plants do, and a loose, heaved, wavy line undoes it instantly. The difference between an edge that still looks sharp in three years and one that pops out after the first freeze comes down to two things: trench depth and how hard you compact the soil behind the edging.

The process below covers plastic, rubber, metal, stone, and brick edging, because the four core steps are the same for all of them and only the anchoring hardware changes. Plan on a couple of hours for a typical 20-foot bed.

What You Need Before You Break Ground

Gather everything first, because the trench dries out and crumbles if you stop halfway through to hunt for a tool. For a basic bed edge you need a trenching shovel or flat spade, a rubber mallet, edging stakes or yard staples, a tamper, and garden shears.

  • Trenching shovel, spade, or half-moon edger — for cutting a clean, straight-sided trench.
  • Rubber mallet — the tool that drives spikes without denting plastic or rubber edging.
  • Edging stakes, spikes, or yard staples — the anchoring hardware for your material.
  • Connectors — needed any time you join two lengths of edging.
  • Garden shears or snips — for trimming the last piece to length.
  • Tamper — for compacting the base and the backfill.
  • Mason’s line, rope, or spray paint — for marking the bed line and keeping it straight.

How to Put In Garden Edging, Step by Step

Mark the bed line first, then dig, set, anchor, and backfill in that order — skipping the marking step is why most DIY edges end up visibly crooked by the time the last piece goes in. Run a mason’s line or rope along the curve or straight you want, or lay down spray paint, and follow it with the shovel.

  1. Mark the perimeter. Stake the line so it flows around curves instead of kinking. Check it from a few angles before you cut sod.
  2. Dig a narrow trench. For plastic edging, dig 3 to 4 inches deep so the edging ends up standing about a half inch above ground level — that lip is what holds the soil back. Deeper materials like brick or steel want more depth, in the 3-to-6-inch range, and brick trenches should have straight sides.
  3. Set the edging into the trench. Start at one end and work toward the other. Join multiple lengths with connectors, and cut the final piece with shears or snips. On stone or steel edging, seat the pieces about halfway into the trench and lock them at the clip before moving on.
  4. Drive the spikes. Use a rubber mallet to drive edging spikes or yard staples through the front face of plastic or rubber edging, or secure it with plastic or steel pegs. Space them close enough that the edging cannot rock.
  5. Backfill and compact. Fill the trench with soil and compact it as tightly as you can with your feet, then water the area lightly, top up any low spots, and rake it smooth.

When the run is longer than one length, position the joints toward the middle of the stretch rather than near either end — centered joints read as intentional, while end joints look like a mistake.

If you’re still deciding between plastic, steel, brick, and rubber before you pick up a shovel, the tested edging for garden beds roundup breaks down cost, lifespan, and which material suits curved beds versus straight runs.

Choosing and Cutting Your Edging Material

Every material installs with the same four moves, but the anchoring detail changes enough that you should read the manufacturer’s guide for your specific product before you dig. The trench and backfill workflow holds across all of them.

Edging Material Anchoring Method Trench Depth
Plastic Spikes driven with a rubber mallet 3–4 in
Rubber Spikes or yard staples through the face 3–4 in
Steel Clips locked between sections 3–6 in
Stone Clips, pieces seated halfway down 3–6 in
Brick Paver base, tamped, bricks set by mallet Straight-sided trench
Metal (aluminum) Steel pegs or clips 3–6 in
Any material, long run Connectors at each joint Match the material

Brick edging needs one extra planning step: measure the perimeter and add 10% to your order so you have spare units for cuts and replacements. Spread a paver base in the trench, tamp it down, then set each brick with a rubber mallet and keep the tops level with the surrounding line.

Why Edging Shifts, and How to Stop It

Edging moves for three reasons: the trench was too shallow, the backfill was never compacted, or the spikes were spaced too far apart. Fix all three during installation and you will not be re-setting the edge next season.

Poor compaction is the most common culprit. Loose backfill lets water and frost work the edging loose, so compact the soil tightly with your feet, water the area lightly, then fill and rake any low spots that appear once it settles.

Depth matters just as much. A too-shallow trench leaves plastic edging unstable, which is why the 3-to-4-inch figure exists — it buries enough of the edging to resist frost heave while leaving that half inch of lip above the soil line. Test the finished run by pressing down on the edging with your foot; if it rocks, drive another spike at that spot before you walk away. Details vary by product, so treat the manufacturer’s installation guide as the final word on spiking for your specific edging.

FAQs

How deep should the trench be for plastic edging?

Dig the trench 3 to 4 inches deep so the edging stands roughly half an inch above the soil surface once backfilled. That shallow lip is what holds the bed’s soil back while the buried portion resists movement. Deeper trenches in the 3-to-6-inch range suit brick, stone, and steel edging, which need more buried body to stay level.

Do I need to use a rubber mallet instead of a hammer?

A rubber mallet is the right tool because it drives spikes and pegs without cracking plastic or denting metal edging. A steel hammer concentrates force on a small face and can split plastic edging or mar painted finishes. If you own only a hammer, place a scrap of wood between the head and the edging to spread the blow.

How do I keep the edging straight along a curve?

Run a mason’s line or rope along the entire perimeter and step back to check it from several angles before cutting any sod, since a line that looks straight up close often kinks when viewed from a distance. Flexible plastic and rubber follow gentle curves; brick and stone suit straight runs better. Connectors join separate lengths.

References & Sources

Please use a real email you check. If it's fake or mistyped, your message won't reach us and we can't reply — wrong addresses are rejected automatically.