Short answer
The most reliable way to keep dogs out is a physical barrier with no gaps: a fence or wall of suitable height, a gate that latches, and nothing dogs can dig under or squeeze through. Deterrents such as dense or prickly planting and motion-activated sprinklers can help but are less certain.
Work out which dogs
Is it a neighbour’s dog that slips through a hole, a dog walked past your front garden, or a stray? Where the dog enters and why (scent, a cat, food, a gap) tells you what to fix.
Physical barriers
- Check the boundary. Look for gaps under and between fence panels, loose boards and damaged hedges. Many dogs enter through small holes.
- Fence height. Many dogs can jump or climb a low fence. Taller fencing helps, though what is high enough depends on the dog.
- Stop digging. Bury wire mesh or concrete edging along the base, or add a gravel strip, to discourage digging under.
- Gates. Use self-closing latches.
- Dense or thorny hedging. Hawthorn, holly or berberis make a barrier over time, but take a few years to fill in. Avoid thorny plants where children play.
- Low edging for beds. Small fences or edging protect new plantings. See dog-friendly ground cover for plant ideas.
Deterrents
- Motion-activated sprinklers startle dogs without harming them and are often reported to work, though results vary.
- Ultrasonic repellents have mixed results.
- Scent deterrents such as citrus peel or commercial dog repellents may help in a small area but need reapplying, especially after rain. Check labels for pet safety.
- Keep food and waste out of sight, because bins and compost attract dogs.
What not to use
Avoid anything harmful to animals or people. This includes mothballs, chilli or pepper spread in large amounts, glass, sharp spikes, poisons and hot sauce on surfaces dogs may lick. These can injure dogs, cause legal problems and may be illegal where you live. Do not use traps or similar devices.
Talking to the owner
If you know whose dog it is, a friendly conversation often solves it faster than anything else. If problems persist, contact your local council’s animal control or dog warden, who can advise on local rules.
If it’s your own dog
A bored dog may dig or escape. Add exercise, a designated digging spot, and protected beds. Gravel, mulch paths and a firm play surface help. See bee lawns and ground cover alternatives for planting that holds up better than grass.