How to Keep Wild Animals Out of Your Yard
In this article
Keeping wild animals out of your yard protects your garden, property, and family from damage and potential disease. This guide covers practical, humane methods—no trapping or harming—that work for deer, rabbits, raccoons, skunks, squirrels, and similar visitors. Before starting, walk your yard to identify entry points, food sources, and shelter spots. Then follow the steps below to create a less inviting environment.
What You'll Need
- Hardware cloth or welded wire mesh (1/4-inch or 1/2-inch openings)
- Galvanized stakes or U-pins
- Fencing (at least 4–6 feet tall for deer, 3 feet for most others)
- Motion-activated sprinkler or light
- Sealant or expanding foam (for gaps in sheds or decks)
- Trash cans with tight-fitting lids (metal or heavy plastic)
- Pruning shears or loppers
- Ammonia-soaked rags or commercial animal repellent (optional)
Step-by-Step
- Remove all food sources. Pick up fallen fruit, birdseed, pet food, and compost. Feed pets indoors, and store pet food in sealed containers. If you have a compost pile, keep it covered or use a tumbler that animals cannot open.
- Secure trash and recycling bins. Use bins with locking lids or bungee cords to hold lids down. Rinse cans regularly to reduce odors. Place bins in a shed or garage until pickup day.
- Block access under decks, porches, and sheds. Dig a trench 6–8 inches deep along the base, bury hardware cloth or welded wire mesh at least 6 inches below ground, and attach it to the structure. This prevents digging animals like skunks and raccoons from nesting underneath.
- Install fencing around gardens and specific plants. For deer, use a fence at least 8 feet tall, or two shorter fences 3–4 feet apart (deer rarely jump double fences). For rabbits and groundhogs, use 3-foot-tall fencing with 1-inch mesh, buried 6 inches deep and bent outward at a 90-degree angle at the bottom.
- Use motion-activated deterrents. Place motion-activated sprinklers near garden beds or entry points. These startle animals with a burst of water and are very effective for raccoons, deer, and stray cats. Motion-activated lights can also help, especially at night.
- Apply scent or taste repellents. Commercial repellents containing putrescent eggs, garlic, or capsaicin work for many animals. Spray on plants (reapply after rain) or place ammonia-soaked rags in areas where animals enter—but avoid placing rags near plants you want to protect, as ammonia can burn foliage.
- Trim trees and shrubs. Cut branches that overhang your roof or fence line, as they give squirrels and raccoons easy access. Keep shrubs trimmed so they don’t provide hiding spots for ground-dwelling animals.
- Seal gaps in buildings. Inspect the exterior of your house, garage, and shed for holes or cracks. Use expanding foam for small gaps (1/2 inch or less) and hardware cloth for larger openings. Pay attention to vents, eaves, and utility lines.
- Maintain your lawn and garden. Keep grass short and remove brush piles, rock piles, and old lumber—these are prime shelter for snakes, rodents, and rabbits. Clear fallen leaves in the fall so animals don’t burrow underneath.
- Consider a dog (if you have one). A dog that spends time in the yard can deter many animals, but never leave a dog outside unsupervised with wild animals—they can be injured or transmit diseases.
Common Mistakes
- Using chicken wire: It is too flimsy and has large openings; animals can chew through or squeeze in. Use hardware cloth instead.
- Leaving gaps under fences: Even a 2-inch gap invites rabbits and groundhogs. Always bury fencing at least 6 inches deep.
- Forgetting to reapply repellents: Most sprays wash off in rain or fade with time. Reapply according to label instructions, usually every 1–2 weeks.
- Feeding wildlife intentionally: Leaving food out “to help” animals only encourages them to return and become dependent—and it attracts more animals.
- Ignoring the roof: Squirrels and raccoons can climb trees and jump onto your roof, then enter via attic vents. Check and secure all roof openings.
Tips
- Rotate deterrents every few weeks—animals get used to a single method.
- Plant deer-resistant species like lavender, marigolds, or daffodils, but note that hungry deer will eat almost anything.
- Use a “scarecrow” sprinkler that only activates when it detects motion—saves water and is more effective than a constant spray.
- If you have a bird feeder, place it on a pole with a baffle (a cone-shaped guard) to keep squirrels and raccoons from climbing.
- Check your fence line monthly for new holes or dig marks, especially after heavy rain.
Troubleshooting
Animals are still getting in. Walk the perimeter at dusk or dawn to spot entry points. Look for tracks, droppings, or fur. Seal any new gaps you find. If you have a persistent digger, reinforce the fence base with a buried L-shaped wire apron.
Repellents stop working. Animals become accustomed to smells. Switch to a different type (e.g., from scent to taste) or combine with a motion-activated device. Reapply more frequently during wet weather.
You see a nest or den under your deck. Do not block the entrance until you are sure the animals have left—otherwise you may trap them inside. Wait until you see no activity for 3–4 days, then seal the opening.
Birds are hitting windows. That is a separate issue—place decals or netting on the outside of windows to break reflections.
Frequently Asked Questions
Will ultrasonic devices keep animals away?
Some people report success with ultrasonic emitters for rodents, but results vary widely. They are not reliable on their own; combine them with fencing and food removal.
Is it safe to use mothballs as a repellent?
No. Mothballs are pesticides and are illegal to use outdoors in many places. They can harm pets, children, and wildlife, and are not effective against most large animals.
What should I do if I find a baby animal?
Leave it alone. In most cases, the mother is nearby and will return. Touching a baby animal can cause the mother to abandon it, and it may also expose you to disease. If the baby appears injured or orphaned, contact a licensed wildlife rehabilitator.
How do I keep raccoons out of my garbage without spending money?
Use a heavy-duty bungee cord to secure the lid tightly. You can also place a brick or heavy object on top, but raccoons are strong—make sure the lid is fully sealed. Rinse cans to reduce smell.
Will a fence keep deer out completely?
No fence is 100% deer-proof, but a solid 8-foot fence or a double fence (two 4-foot fences spaced 3–4 feet apart) is highly effective. Deer can jump tall fences if they see a landing spot, so a second fence confuses them.
Can I use human hair or soap to repel animals?
Some gardeners swear by hanging human hair or bar soap near plants, but effectiveness is anecdotal and short-lived. These may work for a few days, but they are not a reliable long-term solution.