The Wild

How to Keep Squirrels Out of Your Yard and Garden

· 5 min read · Mammals

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Keeping squirrels out of your yard and garden means protecting your plants, bird feeders, and home from their digging, chewing, and nesting. This guide covers practical, humane methods to deter squirrels without harming them. You'll need some basic supplies, patience, and a willingness to try a few different approaches, as squirrels are persistent and adaptable.

What You'll Need

  • Chicken wire or hardware cloth (1/2-inch or smaller mesh)
  • Metal or plastic bird feeders with squirrel-proof features
  • Squirrel baffles (dome or cylinder type)
  • Spicy pepper spray or cayenne pepper flakes
  • Ultrasonic squirrel repellent devices (optional)
  • Motion-activated sprinklers
  • Trash cans with tight-fitting lids
  • Pruning shears (to trim tree branches)
  • Sealant or caulk (for gaps in your home)

Step-by-Step

  1. Remove food sources. Squirrels are attracted to easy meals. Pick up fallen nuts, fruits, and berries. Secure trash cans with bungee cords or weights. If you have a compost pile, keep it covered or use a tumbler. Do not leave pet food outside.
  2. Protect bird feeders. Use squirrel-proof feeders that close off access when a squirrel's weight triggers the mechanism. Place feeders at least 10 feet away from trees, fences, or structures that squirrels can jump from. Install a baffle above or below the feeder pole to block climbing.
  3. Install baffles on poles and trees. A cone-shaped baffle facing downward on a pole prevents squirrels from climbing up. On trees, place a baffle around the trunk at least 6 feet off the ground. Make sure the baffle is large enough (at least 18 inches in diameter) and smooth so squirrels can't grip it.
  4. Use physical barriers for gardens. Surround garden beds with chicken wire or hardware cloth. Bury the wire at least 6 inches deep to prevent digging. For individual plants, use wire cages or cloches. For bulbs, lay wire mesh over the soil after planting.
  5. Apply taste deterrents. Spray plants with a commercial squirrel repellent containing capsaicin (pepper). Reapply after rain or as directed. You can also sprinkle cayenne pepper flakes around the base of plants. Avoid getting repellent on edible parts of vegetables.
  6. Use motion-activated deterrents. Place a motion-activated sprinkler in areas where squirrels frequent. The sudden spray of water startles them and conditions them to avoid the area. Ultrasonic devices emit high-frequency sounds that are unpleasant to squirrels but inaudible to humans.
  7. Trim tree branches. Cut back branches that overhang your roof or are within 8-10 feet of your home. This reduces access points to your attic and makes it harder for squirrels to jump onto feeders or structures.
  8. Seal entry points to your home. Inspect your home's exterior for gaps around vents, eaves, and rooflines. Use caulk, steel wool, or hardware cloth to seal any openings larger than 1/2 inch. Pay special attention to areas where utility lines enter.
  9. Consider live traps (as a last resort). If squirrels are causing significant damage and other methods fail, you may use a live trap baited with peanut butter. Check local regulations first—some areas require permits. Once caught, relocate the squirrel at least 5 miles away in suitable habitat. Never handle a squirrel directly.

Common Mistakes

  • Using only one method. Squirrels are adaptable; a single deterrent will often stop working after a few days. Combine several strategies for best results.
  • Placing feeders too close to jumping-off points. If a feeder is within 10 feet of a tree or fence, squirrels will easily leap to it. Move it to an open area.
  • Not securing the bottom of fences. Squirrels can dig under fences. Bury wire or extend the fence underground at least 6 inches.
  • Using flimsy netting. Squirrels can chew through plastic bird netting. Use metal mesh with small openings.
  • Neglecting to reapply repellents. Rain and sun degrade pepper sprays quickly. Reapply regularly, especially after watering.

Tips

  • Provide a distraction: set up a dedicated feeding station with corn or nuts away from your garden. This can satisfy squirrels and reduce their interest in your plants.
  • Plant squirrel-resistant flowers and herbs like marigolds, daffodils, and mint. These have strong scents or tastes that squirrels tend to avoid.
  • Keep your lawn short and clear of debris to reduce hiding spots.
  • Use a mix of deterrents: rotate between ultrasonic devices, sprinklers, and repellents to keep squirrels guessing.
  • If you have bird feeders, offer seeds like safflower that squirrels dislike but birds enjoy.

Troubleshooting

Squirrels are still getting into the garden. Check for gaps in your fencing or wire. Reinforce with additional layers or use a stronger gauge. Ensure the wire is buried deep enough—squirrels can dig surprisingly deep.

Bird feeder is still being raided. Confirm the feeder is truly squirrel-proof—some models are not effective against determined squirrels. Add a baffle, and move the feeder to a location that is at least 10 feet from any launch point. If the feeder is on a pole, make sure the pole is smooth metal and the baffle is positioned correctly.

Squirrels are ignoring pepper spray. Some squirrels may be less sensitive to capsaicin. Try a different brand or a higher concentration. Alternatively, switch to a predator urine-based repellent (like fox or coyote urine) available at garden stores.

Squirrels are nesting in your attic. This is a serious issue. Do not attempt to remove them yourself. Contact a professional wildlife removal service. They can safely trap and remove the squirrels and help you seal entry points.

Motion-activated sprinkler isn't working. Make sure the sensor is aimed correctly and the detection range is set. Sometimes squirrels learn to avoid the sensor's path. Relocate the sprinkler periodically.

Frequently Asked Questions

Will mothballs keep squirrels away?

Mothballs are not recommended. They are toxic and not approved for outdoor use. They can harm pets, children, and beneficial wildlife.

Do ultrasonic repellents really work?

Results vary. Some people find them effective, but squirrels can become accustomed to the sound. They work best when combined with other methods.

What is the most effective squirrel deterrent?

There is no single best method. A combination of physical barriers (fencing, baffles) and removing food sources is usually most effective.

Are there plants that squirrels won't eat?

Squirrels tend to avoid plants with strong smells like marigolds, daffodils, and alliums. However, if food is scarce, they may eat almost anything.

Should I trap and relocate squirrels?

Trapping should be a last resort. It can be stressful for the animal and may be illegal in your area. If you do trap, check local laws and relocate at least 5 miles away.

How do I keep squirrels out of potted plants?

Cover the soil with decorative stones or wire mesh. You can also sprinkle cayenne pepper on the soil surface. Moving pots to a squirrel-proof area, like a balcony with a barrier, also helps.