The Wild

How to Deter Squirrels from Your Vegetable Garden

· 6 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

Squirrels can wreak havoc on a vegetable garden, digging up bulbs, nibbling on ripening tomatoes, and stripping corn cobs before you get a chance to harvest. This guide gives you a practical, layered approach to deterring squirrels without harming them. You'll combine physical barriers, scent repellents, and smart garden design to make your plot less attractive to these agile foragers. Start with the steps below, and adjust based on what works in your specific area.

What You'll Need

  • Chicken wire or hardware cloth (1/2-inch or 1-inch mesh)
  • Garden stakes or U-shaped landscape pins
  • Wire cutters
  • Gloves (for handling wire and repellents)
  • Spray bottle
  • Hot pepper flakes or cayenne pepper powder
  • Dish soap (mild)
  • Garlic cloves or garlic powder
  • Predator urine (available at garden centers) or human hair (optional)
  • Bird netting or floating row covers
  • Buckets or plant pots (for decoy plantings)

Step-by-Step

  1. Install physical barriers around the garden perimeter. Bury 1/2-inch hardware cloth or chicken wire at least 6 inches deep and 12 inches high around the entire garden. Squirrels can dig under fences, so the buried portion blocks that route. For taller fences, angle the top outward at a 45-degree angle to make it harder to climb over.
  2. Protect individual plants with wire cages. For high-value crops like tomatoes, peppers, or leafy greens, cut wire mesh into cylinders or tents and place them over each plant. Secure with garden stakes. This is especially important for young seedlings, which squirrels love to dig up.
  3. Use floating row covers or bird netting. Drape netting over low-growing crops like strawberries or lettuce. Anchor the edges with soil or pins. Make sure the netting is taut enough that squirrels can't get tangled, but loose enough not to crush plants.
  4. Apply a homemade hot pepper spray. Mix 1 tablespoon of cayenne pepper powder (or 1 cup of chopped hot peppers) with 1 quart of water and a few drops of mild dish soap. Let it steep for 24 hours, strain, and pour into a spray bottle. Spray the foliage and fruits of your plants every 3–5 days, and after rain. The capsaicin irritates squirrels' mouths and noses, discouraging them from biting.
  5. Plant a sacrificial crop. Squirrels love sunflowers, corn, and peanuts. Plant a small patch of these away from your main garden to give squirrels an easy alternative. This won't stop them entirely, but it can reduce pressure on your vegetables.
  6. Remove easy food sources and hiding spots. Pick up fallen fruits, nuts, and birdseed regularly. Trim overhanging tree branches that give squirrels a launch point into the garden. Keep grass short near the garden to reduce cover.
  7. Use scent repellents strategically. Place predator urine (from foxes, coyotes, or bobcats) around the perimeter, reapply every few weeks and after rain. Alternatively, scatter human hair clippings (from a barber or pet groomer) around the base of plants. The smell suggests a predator is nearby.
  8. Set up motion-activated sprinklers. Position sprinklers to cover the garden. When a squirrel triggers the sensor, it gets a sudden blast of water, which startles it and teaches it to avoid the area. Move the sprinkler periodically so squirrels don't get used to it.
  9. Create a distraction with a squirrel feeder. Place a feeder filled with corn or sunflower seeds at the far edge of your property. This gives squirrels a convenient food source away from your vegetables. Check it daily and refill as needed.
  10. Rotate repellents. Squirrels can become accustomed to a single repellent. Switch between hot pepper spray, predator urine, and garlic spray every few weeks to keep them guessing.

Common Mistakes

  • Underestimating the fence height. Squirrels can jump 4–5 feet vertically and 8–10 feet horizontally. A 3-foot fence is easy for them to clear. Make sure your fence is at least 4 feet tall, with an angled top.
  • Not burying the fence. Squirrels are expert diggers. If you don't bury the bottom edge, they'll simply tunnel under.
  • Applying repellent only once. Rain, watering, and plant growth dilute or wash away sprays. Reapply every few days, especially after rain.
  • Using netting that's too loose. Loose netting can trap birds or small animals, and squirrels may push through gaps. Secure netting tightly.
  • Ignoring the surrounding environment. If you have a bird feeder filled with sunflower seeds, squirrels will come for that and then explore your garden. Place bird feeders far away or use squirrel-proof feeders.
  • Using only one method. Squirrels are adaptable; a single deterrent may work for a week, then they'll ignore it. Combine barriers, repellents, and distractions for best results.

Tips

  • Start early in the season. Deter squirrels before they discover your garden. Once they've established a food source, they're much harder to discourage.
  • Use a multi-layered defense. The most effective approach is to combine a perimeter fence with plant-specific cages and scent repellents. This makes the garden less accessible and less appealing.
  • Choose squirrel-resistant plants. Squirrels tend to avoid strong-smelling herbs like mint, rosemary, and thyme, as well as alliums like onions and garlic. Interplant these among your vegetables to help mask the scent of more attractive crops.
  • Keep the garden clean. Remove fallen fruit and vegetables immediately. Squirrels are opportunistic and will return to a reliable food source.
  • Be persistent and patient. It may take a few weeks for your deterrents to fully change squirrel behavior. Stick with it, and adjust as needed.

Troubleshooting

Problem: Squirrels are digging under the fence.
Solution: Check the buried wire for gaps. Add more wire, burying it at least 6 inches deep, and consider adding a horizontal apron of wire extending 12 inches outward from the base of the fence.

Problem: Squirrels are chewing through netting.
Solution: Use hardware cloth instead of plastic netting. Hardware cloth is made of metal and is much harder to chew through. Secure it tightly with zip ties or wire.

Problem: Hot pepper spray isn't working.
Solution: Increase the concentration of capsaicin, or switch to a commercial repellent containing capsaicin. Reapply more frequently, especially after rain. Also, check if the spray is washing off due to overhead watering.

Problem: Squirrels are ignoring predator urine.
Solution: Squirrels may become accustomed to the scent over time. Move the urine to different locations, or switch to a different predator scent. Also, ensure the urine is fresh; old urine loses potency.

Problem: Squirrels are still getting into the garden despite barriers.
Solution: Inspect for gaps or entry points. Squirrels can squeeze through holes as small as 1.5 inches. Use 1/2-inch mesh for all barriers. Also, check for overhanging branches that provide access.

Problem: Motion-activated sprinkler is not triggering.
Solution: Adjust the sensor range and angle. Ensure the sensor is not blocked by plants. Test it yourself to confirm it works, then reposition if needed.

Frequently Asked Questions

Will hot pepper spray harm my plants?

No, capsaicin is safe for most plants. However, test on a small area first, and avoid spraying during the hottest part of the day to prevent leaf burn.

Do ultrasonic devices work to repel squirrels?

Some people report success, but results are mixed. Squirrels may get used to the sound. They are more effective as part of a multi-faceted approach.

Is it legal to trap and relocate squirrels?

Laws vary by region. In many areas, relocating wildlife is restricted because it can spread disease and disrupt ecosystems. Check with your local wildlife agency before considering trapping. This guide focuses on non-lethal deterrents.

Will coffee grounds keep squirrels away?

Some gardeners find that coffee grounds help, likely due to the strong smell. Sprinkle them around the garden, but reapply after rain. They also add organic matter to the soil.

How do I keep squirrels from digging up my bulbs?

Plant bulbs in wire mesh baskets, or cover the soil with a layer of sharp gravel or crushed stone. You can also apply a repellent to the soil surface.

Do squirrels eat tomatoes?

Yes, squirrels are known to take bites out of ripe tomatoes. They often eat the fruit right off the vine. Using cages and repellents is the best defense.