The Wild

How to Deter Squirrels From Your Yard

· 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

To deter squirrels from your yard, you need to combine habitat modification, physical barriers, and taste or scent repellents—no single method works permanently. Start by removing food sources and easy access to structures, then apply targeted deterrents and rotate them regularly. This guide covers practical, humane steps that keep squirrels away without harming them.

What You'll Need

  • Metal or plastic bird feeders with squirrel-proof mechanisms (or baffles)
  • Chicken wire or hardware cloth (1/2-inch or smaller mesh)
  • Spicy pepper spray or cayenne pepper flakes (for repellent)
  • Predator urine granules (available at garden centers)
  • Motion-activated sprinkler (optional)
  • Trash cans with tight-fitting lids
  • Pruning shears or loppers
  • Garden stakes and zip ties

Step-by-Step

  1. Remove all food sources. Squirrels are driven by hunger. Pick up fallen nuts, berries, and fruit from trees. Secure garbage bins with bungee cords or weights. If you have a compost pile, avoid adding food scraps that attract squirrels—use a closed bin instead.
  2. Protect bird feeders. If you feed birds, switch to squirrel-proof feeders that close when a squirrel’s weight triggers them. Place feeders at least 8 feet away from anything squirrels can jump from (trees, roofs, fences). Install a baffle above and below the feeder to block climbing.
  3. Trim tree branches. Squirrels can leap up to 10 feet horizontally and 15 feet from a high branch to a roof. Cut branches that overhang your house or are within 8 feet of your roofline. Also trim branches that touch power lines, as squirrels use them as highways.
  4. Block entry points to your home. Inspect your roofline, eaves, and foundation for gaps larger than 1 inch. Seal holes with hardware cloth or metal flashing. Check vents and chimneys—install caps or mesh covers. This prevents squirrels from nesting in your attic, which is often why they stay in your yard.
  5. Fence off garden beds. Use chicken wire or hardware cloth to create a barrier around vegetable gardens and flower beds. Bury the fencing at least 6 inches deep and extend it 2–3 feet above ground. Use stakes and zip ties to secure it. For individual plants, use wire cages.
  6. Apply scent and taste repellents. Spray a commercial squirrel repellent (often made with capsaicin) on plants, fences, and areas where squirrels frequent. Alternatively, sprinkle cayenne pepper flakes around the base of plants. Reapply after rain or every 2–3 weeks.
  7. Use predator urine. Sprinkle granules of fox or coyote urine around the perimeter of your yard, near gardens, and along squirrel runways. Reapply every month or after heavy rain. This signals danger to squirrels, making them avoid the area.
  8. Install motion-activated sprinklers. Place a motion-activated sprinkler in areas where squirrels dig or feed. When a squirrel triggers it, a sudden burst of water startles it. Move the sprinkler every few days to prevent habituation.
  9. Create a distraction area (optional). If you have a large yard, you can designate a far corner with a feeder filled with corn or nuts. This may keep squirrels occupied and away from your main garden. However, this can attract more squirrels, so use sparingly.
  10. Maintain and rotate deterrents. Squirrels are intelligent and will adapt to a single method. Change the type of repellent, move sprinklers, and rearrange barriers every few weeks. Consistency is key.

Common Mistakes

  • Using only one method. Squirrels quickly get used to a single deterrent. A combination of food removal, barriers, and repellents is essential.
  • Feeding squirrels intentionally. Putting out peanuts or corn “to keep them busy” actually attracts more squirrels and teaches them your yard is a food source.
  • Ignoring the roof line. If you don’t seal entry points, squirrels will keep coming back to your yard because they have a safe nesting spot.
  • Using ultrasonic devices. Many ultrasonic repellents have little effect on squirrels and may not be worth the cost.
  • Not securing the bottom of fencing. Squirrels can dig under fences that aren’t buried deep enough.

Tips

  • Time your efforts. Squirrels are most active in early morning and late afternoon. Apply repellents and check barriers during those times to see where they are coming from.
  • Use natural barriers. Plant mint, marigolds, or daffodils—squirrels tend to avoid these strong-smelling plants.
  • Keep your yard clean. Rake leaves and debris regularly, as they can hide nuts and provide cover for squirrels.
  • Consider a dog or cat. If you have a pet that spends time outside, its presence alone can deter squirrels. (Never rely on this alone, as some squirrels become bold.)
  • Be patient. It can take 2–4 weeks to see a noticeable reduction in squirrel activity as they learn to avoid your yard.

Troubleshooting

Squirrels are still digging in your lawn. They may be searching for buried nuts or grubs. Treat the lawn for grubs if you see them, and use a repellent spray on the lawn. Also, consider using a roller to tamp down the soil after reseeding.

Repellents wash off after rain. Reapply immediately after heavy rain. For longer-lasting results, use a repellent that contains a sticking agent (like a commercial spray with wax) or mix cayenne with a little dish soap and water.

Squirrels are jumping from a tree to your roof. Trim branches back further—at least 10 feet from the roofline. If that’s not possible, install a metal collar around the trunk (at least 6 feet off the ground) to prevent climbing.

Bird feeders are still being raided. Check that the baffle is installed correctly—it should be at least 4 feet off the ground and 12 inches in diameter. If squirrels jump from above, place a dome baffle above the feeder.

Motion-activated sprinkler stops working. Check the batteries and adjust the sensitivity. Sometimes grass or leaves trigger it, so reposition it.

Frequently Asked Questions

Will mothballs keep squirrels away?

Mothballs are not recommended. They are toxic and not intended for outdoor use. They can harm pets, children, and the environment. Stick to safer repellents like capsaicin.

Do coffee grounds repel squirrels?

Coffee grounds are sometimes cited as a deterrent, but they are not consistently effective. They can be used as a supplement, but don’t rely on them alone.

How long does it take to get rid of squirrels?

With consistent effort, you may see a reduction in 2–4 weeks. However, squirrels are persistent, so ongoing maintenance is usually required.

Is it safe to use cayenne pepper in the garden?

Yes. Cayenne pepper is safe for plants and most animals, but it can irritate your eyes and skin. Wear gloves when handling, and avoid getting it in your eyes.

Will a fake owl scare squirrels away?

Fake owls can work for a short time, but squirrels quickly learn they are not a real threat. Move the owl every few days to extend its effectiveness.

Can squirrels damage my lawn permanently?

They can dig up bulbs and create holes, but the damage is usually cosmetic and not permanent. You can repair the lawn by filling holes with soil and reseeding.