The Wild

Keep Squirrels Out of Veg Garden: 9 Ways That Work

· 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 keep squirrels out of your vegetable garden, you need a combination of physical barriers, scent deterrents, and habitat removal—no single method works forever, but layering them reliably protects your crops. Squirrels dig up bulbs, eat seedlings, and strip ripe tomatoes, so start before planting and stay consistent through harvest.

What You'll Need

  • Chicken wire or hardware cloth (1/2-inch mesh or smaller)
  • Wire cutters and pliers
  • Wooden stakes or metal garden staples
  • Bird netting or floating row covers
  • Scissors or a utility knife
  • Spray bottle
  • Garlic, cayenne pepper, or a commercial squirrel repellent
  • Motion-activated sprinkler (optional)
  • Bucket or container for collecting fallen fruit

Step-by-Step

  1. Remove food and shelter first. Pick up fallen nuts, berries, and birdseed daily. Trim tree branches that hang within 8 feet of your garden—squirrels leap from them. Clear brush piles, old logs, and dense ivy where they nest.
  2. Install a physical fence around the entire garden. Use 1/2-inch hardware cloth or chicken wire buried at least 6 inches deep and extending 2 feet above ground. Bend the top 12 inches outward at a 90-degree angle—squirrels can climb straight up but not over an overhang. Secure the mesh to wooden stakes every 2 feet.
  3. Protect individual beds with hoops and netting. If fencing the whole garden isn't possible, build low hoops from PVC or metal conduit and drape bird netting or row cover over them. Anchor the edges with bricks or staples. Leave enough slack so plants can grow.
  4. Cover freshly planted seeds and bulbs. Lay a piece of chicken wire flat over the soil after planting, then remove it once seedlings emerge. For bulbs, plant them under a layer of gravel or wire mesh buried just below the surface.
  5. Apply scent repellents weekly. Mix 1 tablespoon of cayenne pepper or 5 crushed garlic cloves with 1 quart of water and a few drops of dish soap. Spray the soil, plant leaves, and the fence perimeter. Reapply after rain or every 5–7 days.
  6. Use a motion-activated sprinkler. Place it at garden entrances or near high-traffic areas. Set it to trigger on movement—the sudden burst of water scares squirrels without harming them. Move it every few days so they don't get used to it.
  7. Harvest ripe vegetables promptly. Squirrels are attracted to strong smells. Pick tomatoes, peppers, squash, and berries as soon as they ripen. Remove any damaged or rotting produce immediately.
  8. Create a distraction feeding station. Place a small dish of sunflower seeds or corn at the edge of your property, far from the garden. This gives squirrels an easier food source and keeps them away from your crops. Refill it regularly.
  9. Rotate your deterrents. Squirrels adapt quickly. Change the type of repellent, move the sprinkler, or switch from netting to fencing every few weeks. If one method stops working, switch to another for a while.

Common Mistakes

  • Using fence mesh larger than 1 inch—squirrels squeeze through or chew it open.
  • Not burying the fence deep enough; squirrels dig under in minutes.
  • Leaving gaps at corners or gates where the mesh isn't secured.
  • Applying repellent only once and expecting it to last all season.
  • Ignoring bird feeders—spilled seed attracts squirrels directly to your yard.
  • Removing the netting too early; squirrels will eat tender young plants just as quickly as mature ones.

Tips

  • Use a double fence: an outer wire fence and an inner low electric fence (if allowed locally) for severe infestations.
  • Plant squirrel-resistant crops like onions, garlic, leeks, and mint around the perimeter—their strong smell masks attractive plants.
  • Keep your garden tidy: remove weeds and tall grass that provide cover for squirrels approaching.
  • Install a motion-activated light or noise device if the sprinkler isn't enough.
  • Check your fence weekly for holes, especially after storms or heavy rain.
  • If you have a dog, let it patrol the garden during the day—its scent alone deters squirrels.

Troubleshooting

  • Squirrels are digging under the fence: Add an L-shaped footer—lay an extra 12 inches of mesh flat on the ground extending outward from the fence base, then cover with soil.
  • They chew through the netting: Switch to 1/2-inch hardware cloth or metal mesh. Plastic netting is not chew-proof.
  • Repellent washes off in rain: Reapply immediately after rain, and consider using a rain-resistant commercial repellent that contains capsaicin or thiram.
  • Sprinkler stops working: Check the batteries and clean the sensor. Move it to a new location—squirrels learn its range.
  • Squirrels still get in despite everything: Combine two or more methods at once, such as fencing plus sprinkler plus repellent. Persistence is key; they will eventually look for easier food elsewhere.

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 insects.

Do coffee grounds repel squirrels?

Some gardeners report that used coffee grounds help, but the effect is mild and short-lived. They work best as a supplement to fencing, not as a standalone solution.

Can I trap and relocate squirrels?

Relocating squirrels is rarely effective—they often die trying to return, and new squirrels move in quickly. Many areas also have laws against relocation. Focus on exclusion and deterrents instead.

Do ultrasonic devices work on squirrels?

There is little scientific evidence that ultrasonic repellents work on squirrels. They may work temporarily, but squirrels quickly habituate to the sound.

What plants do squirrels hate?

Squirrels tend to avoid strong-smelling plants like garlic, onions, mint, and marigolds. However, they will still dig around them if the soil is loose or if they are hungry.

How often should I reapply hot pepper spray?

Reapply every 5–7 days, and after any rain. Heavy rain can wash it off immediately, so check the forecast before applying.