Huskies

Husky care, training and breed guides

How to Keep a Dog Out of Your Yard

· 5 min read · Husky Care

Install a fence at least 4 feet high and bury the bottom 6 inches to stop most dogs from jumping or digging under. For persistent diggers, add an L-shaped footer or a buried wire mesh. A fence is the only method that works for all dogs, but you can combine it with repellents and training for faster results.

  1. Measure your yard perimeter and mark the fence line. For most breeds, a 4-foot fence is enough; for jumpers like Huskies or Greyhounds, go 6 feet.
  2. Choose a fence type: solid wood or vinyl blocks sight lines, chain-link lets dogs see through (which can trigger barking), and welded wire mesh is cheapest. Avoid horizontal rails that dogs can climb.
  3. Bury the bottom 6–8 inches of the fence or install a metal or plastic barrier. For diggers, lay a 12-inch-wide L-shaped wire mesh flat on the ground outward from the fence bottom.
  4. Install a self-closing gate with a latch that dogs can’t paw open. Check the latch height—dogs can jump up to 5 feet, so place it high or use a spring-loaded hook.
  5. Apply a dog repellent along the perimeter. Use a commercial spray containing capsaicin or a homemade mix of 1 part vinegar to 3 parts water. Reapply after rain or every 3–5 days.
  6. Set up motion-activated sprinklers near entry points. Place them 2–3 feet inside the fence, aimed at the gap. The sudden water startles dogs and teaches them to avoid the area.
  7. Remove food and shelter: pick up fallen fruit, secure trash bins with bungee cords, and block access under decks or porches. Dogs enter yards for food, water, or a den.
  8. Talk to the dog’s owner if you know them. A calm conversation about the problem often works better than any barrier. If the dog is stray, contact your local animal control.

What Fence Height Stops Which Breeds?

Height is the first variable. A 4-foot fence stops most small and medium dogs, but many large breeds can clear 5 feet. For athletic jumpers, 6 feet is the safe minimum. Here’s a rough guide by breed type:

Dog TypeMinimum Fence HeightNotes
Small breeds (Chihuahua, Dachshund)3 feetThey rarely jump, but may dig under.
Medium breeds (Beagle, Border Collie)4 feetCan climb if the fence has rails.
Large breeds (Lab, German Shepherd)5–6 feetShepherds are excellent jumpers.
Giant breeds (Great Dane, Mastiff)4–5 feetThey can’t jump high but can push through weak fences.

If you don’t know the breed, watch the dog’s behavior. A dog that paces the fence line is likely to dig; one that backs up and runs is preparing to jump.

How to Stop Digging Under the Fence

Digging is the most common failure. Dogs dig for cool soil, to chase rodents, or simply out of boredom. The L-shaped footer is the standard fix: bury a 12-inch-wide strip of welded wire mesh horizontally along the inside of the fence, 6 inches deep. The dog hits the mesh when it digs and gives up. Alternatively, bury the fence itself 12 inches deep, but that’s more labor. For existing fences, you can lay concrete pavers or large stones along the base—dogs dislike digging through hard surfaces. Check the perimeter weekly for new holes and fill them immediately.

Which Dog Repellents Actually Work?

Repellents work by smell or taste. Commercial sprays with capsaicin (the hot compound in peppers) are effective but must be reapplied after rain or every few days. Homemade options: mix 1 part white vinegar with 3 parts water and spray the fence line; or sprinkle cayenne pepper around the perimeter. Dogs have a strong sense of smell—about 100,000 times more sensitive than humans—so a strong odor is a deterrent. However, some dogs get used to smells, so rotate between two repellents. Avoid ammonia or mothballs; they are toxic to dogs and can harm children and wildlife.

For a longer-lasting solution, use a commercial granular repellent containing predator urine (e.g., coyote or fox). These signal danger to dogs. Apply in a 2-foot-wide band along the fence, and reapply after heavy rain. Always test a small area first to ensure the product doesn’t stain your fence.

How to Set Up Motion-Activated Sprinklers

Motion-activated sprinklers are the most effective non-physical deterrent because they combine surprise with a negative association. Place them 2–3 feet inside the fence, aimed at the entry point. The sensor detects movement within about 30 feet and triggers a 3-second burst of water. Set the sensitivity to medium so it doesn’t go off on every passing car. For best results, install two sprinklers to cover the entire yard. After a few sprays, most dogs learn to avoid the yard entirely. The sprinklers also water your lawn—a bonus.

How to Remove Attractants That Draw Dogs In

Dogs enter yards for three reasons: food, water, and shelter. Remove them and the yard becomes less interesting. Pick up fallen fruit daily—apples, plums, and peaches are sweet and attractive. Secure trash bins with a bungee cord or a locking lid. If you have a bird feeder, place it on a pole with a baffle, or clean up spilled seeds. Provide no standing water: fix leaky faucets, empty plant saucers, and cover rain barrels. For shelter, block access under decks, porches, and sheds with lattice or wire mesh. A dog looking for a cool spot will dig under a deck if it can.

How to Work With the Dog’s Owner

If you know whose dog it is, a friendly conversation is often the fastest solution. Approach the owner calmly and describe the problem: “Your dog has been digging under my fence and damaging my flower beds.” Suggest specific actions, like installing a fence on their side or using a tie-out. If the owner is unresponsive, keep a log of dates and times the dog enters your yard—this is useful if you need to file a complaint with animal control. For stray dogs, contact your local animal control or a rescue group. Do not confront a stray dog directly; it may be frightened and act aggressively.

How to Tell If Your Deterrent Is Working

Check your yard daily for fresh tracks, droppings, or digging marks. A deterrent is working if you see the dog approach the fence, sniff, and turn away. For sprinklers, you’ll see wet spots near the trigger zone. For repellents, the smell should be noticeable to you when you walk near the fence. If the dog still enters after 2 weeks, change tactics: increase fence height, add a second repellent, or move the sprinkler to a new angle. Remember that a determined dog may take time to break the habit—persistence is key.

In this article
  1. What Fence Height Stops Which Breeds?
  2. How to Stop Digging Under the Fence
  3. Which Dog Repellents Actually Work?
  4. How to Set Up Motion-Activated Sprinklers
  5. How to Remove Attractants That Draw Dogs In
  6. How to Work With the Dog’s Owner
  7. How to Tell If Your Deterrent Is Working