Physical barriers work better than deterrents alone

The most reliable way to stop dogs from digging in or trampling your raised beds is to put something between the dog and the soil. A fence around the bed itself — even a low one 18 to 24 inches high — signals a boundary most dogs will respect. Wire fencing, plastic garden fencing, or even sturdy tomato cages arranged in a perimeter work. The barrier does not have to be tall; it has to be visible and consistent.

If you have a dog that jumps or climbs, you need 3 to 4 feet of height. If the dog digs under barriers, bury the fencing 6 to 8 inches deep or lay it flat along the ground extending outward from the bed. Dogs that dig typically test the perimeter first; a buried barrier stops them before they develop a habit.

Key Takeaways

  • A physical fence 18 to 24 inches high around the bed stops most dogs without requiring constant reapplication or maintenance.
  • Bury fencing 6 to 8 inches deep if your dog digs, or lay it flat extending outward from the bed to block tunneling.
  • Motion-activated sprinklers and ammonia-soaked rags deter some dogs but work best combined with a barrier, not alone.
  • Covering the soil with netting, chicken wire, or landscape fabric makes the bed less appealing to dig in and protects seedlings.
  • Removing the reward — cleaning up waste promptly and not leaving food or toys near the bed — reduces the dog's reason to return.

Netting and wire over the soil itself

A barrier on top of the bed protects young plants and makes digging harder. Chicken wire or sturdy garden netting laid over the soil and anchored at the edges prevents dogs from pawing down to dig. You can cut holes for plants to grow through, or remove sections as plants mature.

This approach works especially well in spring when seedlings are small and dogs are most tempted. Landscape fabric pinned down also discourages digging, though it is less visible as a boundary and works better as a secondary layer under a perimeter fence. The combination of a fence around the bed and netting over the soil stops nearly all dogs.

Motion-activated sprinklers as a supplement

A motion-activated sprinkler surprises a dog when it enters the bed and can break the habit if the dog is not highly motivated to dig. These devices work best on dogs that are curious or bored rather than dogs that have already established a digging routine. The dog learns that the bed triggers an unpleasant surprise and avoids it.

Sprinklers alone rarely work if the dog is determined or if the reward (cool soil on a hot day, a scent to investigate) is strong enough. They work better as a backup to a physical fence. The dog still needs to see and respect the barrier; the sprinkler reinforces it. Expect to run the sprinkler for two to four weeks before the dog stops testing the boundary.

Ammonia, citrus, and other scent deterrents

Dogs dislike the smell of ammonia and citrus. Soak rags in ammonia or place citrus peels around the bed perimeter and refresh them every few days. Some dogs avoid the area; others ignore the smell entirely. Scent deterrents are inconsistent because individual dogs have different sensitivities, and rain or watering washes the smell away.

These work best as a temporary measure while you install a fence, or as a layer added to a physical barrier. Do not rely on them alone. If your dog has already dug in the bed multiple times, the habit is stronger than the deterrent, and a fence is the only solution that will hold.

Remove reasons the dog returns to the bed

Dogs dig for specific reasons: to cool off, to bury or find something, to escape, or because they have learned it is rewarding. Removing the reward slows the behavior. Pick up waste when ready so the dog does not return to investigate. Do not leave toys, bones, or food near the bed. If the bed is in shade and the dog digs to cool off, provide a shaded spot with a kiddie pool or wet towel elsewhere.

A bored dog digs more than an exercised one. A dog that gets a 30-minute walk or play session is less likely to spend energy digging. Combine exercise with a physical barrier for the best result. If the dog is escaping the yard to dig in the bed, the fence solves the when ready problem, but the underlying escape behavior needs attention too.

Raised beds with built-in dog-proof design

If you are building a new bed or replacing one, consider height and materials. A bed 24 to 30 inches tall is harder for a dog to climb into or dig under than a shallow one. Solid sides (wood, composite, or metal) are better than wire or open frames because they block the dog's view of the soil and make it harder to dig underneath.

Some gardeners add a removable wire or netting lid that sits on top of the frame. This turns the bed into a protective box that keeps dogs and other animals out while allowing light and water through. The lid can be removed during the day and replaced at night or when you are not home to supervise.

Combining methods for stubborn dogs

A dog that has dug in the bed for months will not stop because of a sprinkler or a bad smell. These dogs need a physical barrier they cannot cross, combined with removing the reward and increasing exercise. Start with a perimeter fence at least 24 inches high, bury it 6 inches deep, and add netting over the soil if the dog is a serious digger.

Run a motion-activated sprinkler for the first few weeks to reinforce the boundary. Place ammonia rags at the perimeter if you want an extra layer. The fence is the foundation; everything else supports it. Most dogs stop testing the boundary within two to four weeks once they realize they cannot get through.

Frequently Asked Questions

Will a dog jump over a low fence around the bed?

Most dogs will not jump a fence they can see clearly, especially if it is only 18 to 24 inches high. Dogs that jump are usually trying to escape a yard or chase something on the other side. If your dog jumps the bed fence, raise it to 3 feet or add an angled top that leans outward. Most dogs stop jumping once they realize the barrier is solid.

Can I use chicken wire without burying it?

Chicken wire on top of the soil stops surface digging and protects seedlings, but a dog can dig under the edges if it is not anchored or buried. Bury it 6 inches deep or pin it down with landscape staples and extend it outward from the bed. Without anchoring, the dog will find the edge and tunnel underneath.

How long does it take a dog to stop digging once I put up a fence?

Most dogs stop testing the boundary within two to four weeks if the fence is solid and visible. Some dogs test it longer if they have a strong reason to dig (a scent they are tracking, a cool spot on a hot day). Removing the reward and increasing exercise speeds up the process.

Do ultrasonic dog deterrents work on raised beds?

Ultrasonic devices have mixed results. Some dogs are bothered by the sound; others ignore it entirely. They work better on dogs that are curious rather than determined diggers. A physical fence is more reliable than any sound or scent deterrent.

What if my dog digs under the fence despite burying it?

Bury the fencing deeper (8 to 10 inches) or lay it flat extending 12 inches outward from the bed in an L-shape. This forces the dog to dig a much longer tunnel. If the dog is still determined, add a motion-activated sprinkler and remove any scent that draws it back. Some very persistent dogs need a solid raised bed with a lid.