How to Keep Raccoons Out of Your Garden
In this article
Raccoons are clever, nimble, and persistent—they will climb fences, dig under barriers, and pry open lids to get at your sweet corn, melons, berries, or even your compost pile. This guide gives you a layered, practical defense that actually works, using repellents, barriers, and smart garden habits. No need for traps or harmful chemicals; these methods are humane and effective.
What You'll Need
- Hardware cloth or welded wire mesh (1/2-inch or smaller openings)
- Sturdy fence posts (metal or wood)
- Zip ties or wire clips
- Shovel or post-hole digger
- Electric fence kit (optional, for high-pressure areas)
- Motion-activated sprinkler (optional)
- Ammonia-soaked rags or commercial raccoon repellent (optional)
- Trash cans with tight-fitting lids or bungee cords
- Chicken wire or mesh for compost bin
Step-by-Step
- Remove food sources first. Raccoons come for food. Pick up fallen fruit daily, harvest ripe vegetables promptly, and secure your trash cans with bungee cords or weighted lids. If you compost, use a bin with a locking lid or surround it with mesh.
- Install a fence that raccoons can't climb or dig under. Use hardware cloth (1/2-inch mesh) at least 4 feet tall. Bury the bottom 6–12 inches into the ground, bending it outward in an L-shape (away from the garden) to stop digging. For climbing, add an electric wire 6 inches above the top of the fence—raccoons hate the shock.
- Add a motion-activated sprinkler. Place it at garden entrances or near known entry points. The sudden burst of water startles raccoons and teaches them to avoid the area. Move it around every few days so they don't get used to it.
- Use scent repellents strategically. Soak rags in ammonia and place them in shallow containers around the garden perimeter (out of reach of pets). Reapply after rain. You can also try commercial predator urine (e.g., coyote) or a homemade garlic-pepper spray—but know that these need frequent reapplication.
- Make your garden less inviting at night. Raccoons are nocturnal. Install motion-activated lights (bright, sudden light scares them) or a radio playing talk shows on a timer. This disrupts their sense of safety.
- Protect specific plants with netting or cages. For sweet corn, cover ears with paper bags or use floating row covers. For melons and berries, use wire cages or netting anchored to the ground.
- Seal off hiding spots. Raccoons feel secure in brush piles, wood stacks, or under decks. Clear these areas near your garden to reduce their confidence.
- Keep a dog (if you have one). The presence of a barking dog—even a small one—can deter raccoons, especially if the dog has access to the yard at night.
Common Mistakes
- Using a flimsy fence. Chicken wire is too weak; raccoons can tear through it. Use hardware cloth or welded wire with small openings.
- Not burying the fence. Raccoons will dig under a fence that isn't buried. Always bury the bottom edge at least 6 inches.
- Leaving pet food outside. Even a small bowl of cat food will attract raccoons. Feed pets indoors or remove food bowls at night.
- Ignoring the compost pile. An open compost pile is a buffet. Turn it regularly and cover with a lid or mesh.
- Using repellents once and forgetting. Scent repellents wash away and fade. Reapply weekly or after rain.
Tips
- Combine at least two methods—barriers plus a repellent—for best results.
- Raccoons are creatures of habit. If you disrupt their routine for a few weeks, they'll often move on.
- Use motion-activated sprinklers in conjunction with lights—the combination is very effective.
- If you have a bird feeder, place it on a pole with a baffle to keep raccoons from climbing to it.
- Inspect your fence line weekly for new holes or gaps.
Troubleshooting
- Raccoons still getting in despite the fence? Check for gaps at corners or gates. Use wire to secure any loose sections. Consider adding a second electric wire at the top if they're climbing over.
- Repellents seem to stop working? Raccoons can get used to a scent. Switch between two or three different repellents every week.
- They come back after harvest? They may be after grubs in your lawn. Treat for grubs if you see digging in the grass, or simply accept that they'll move on once the food runs out.
- Motion lights don't scare them? Some raccoons get used to lights. Use a strobe light or a light that turns on and off randomly.
Frequently Asked Questions
Will mothballs keep raccoons away?
Mothballs are not recommended—they are toxic to pets and children, and raccoons may ignore them. Use ammonia or commercial repellents instead.
Do ultrasonic devices work?
Evidence is mixed. Some raccoons may be deterred initially, but they often adapt. They work best as part of a multi-method approach.
Can I use human hair or soap?
Some people report success with human hair or strongly scented soap (like Irish Spring) placed around the garden. These are low-cost but need frequent replacement, especially after rain.
Will a dog keep raccoons away?
Yes, a dog that barks and patrols can be an effective deterrent, but raccoons may still enter if the dog is indoors or asleep. A dog is not a guarantee.
Are raccoons dangerous?
Raccoons can carry rabies and other diseases. Do not approach or handle them. If you see a raccoon that appears sick or aggressive, contact animal control.
How long does it take to get rid of raccoons?
With consistent effort—fences, repellents, and removing food—most raccoons will find easier foraging elsewhere within a few weeks. Persistence is key.