9+ Ways to Keep Squirrels Out of Garden (#3 Is My FAVORITE!)

By: Chenell - Lead Writer and Gardening Advocate

There’s almost nothing worse than spending MONTHS growing tomatoes or some awesome pumpkin variety, and then you come out one day and there’s a huge chunk taken out of it, or even just a few bite marks is enough to ruin that plant.

Not only are squirrels awful for tomatoes and strawberries, but if you have bird feeders, good luck 🙂

How to Keep Squirrels Out of the Garden

It’s not easy keeping squirrels out of your garden. Considering they can climb 50-foot tall trees, I don’t think your 8-foot fence is going to keep them out.

Here are some great ideas to help mitigate the damage they do to your garden.

squirrel on ground

1. Fencing and Covers

Yes, I just said fences alone won’t work. But if you add a “lid” to them, why wouldn’t it help?

Plastic netting or bird netting can help keep squirrels from getting to your prized plants.

But you can also go a little more durable and put some hardware cloth (essentially metal mesh) or chicken wire on top of your plants.

These are good options, but as plants grow you’ll need to raise these up to allow them to gain some more height, so it can get a little tricky.

2. Electric Fence

Another option is to use an electric fence that will emit a high-pitched sound when activated by squirrels coming into contact with it.

This sound is unpleasant to humans but not harmful—and it doesn’t bother birds at all! The fences are inexpensive and easy enough for any homeowner to install themselves without professional help.

3. Motion-Activated Sprinkler

This is my all-time favorite option. Not only is it effective, but it’s hilarious to watch in action.

I tested it out and it works! Here is the motion-activated sprinkler in action in my garden:

Point one of your home security cameras towards the garden, or set up a trail cam, and watch this magic happen the next time a “cute” little squirrel tries to eat your veggies.

The Garden Enforcer - Motion Activated Sprinkler

A motion activated sprinkler works wonders for keeping animals (and people!) out of your yard. It sprays intermittently as it detects continuous motion so animals won't get used to the timing of it.

We earn a commission if you click this link and make a purchase at no additional cost to you.

A motion-activated sprinkler will work day and night to protect your garden from these furry thieves.

4. Scarecrow or Fake Owl

Have you ever seen a squirrel being hunted by an owl? Talk about creepy! No wonder this option works for keeping squirrels away.

Place a fake owl or hawk in the corner of the garden and you can realize for a little bit. But don’t get just ANY fake owl, you want this one with a swiveling head that will move around and the squirrels won’t get used to it.

So make sure you move it around the garden every couple of days.

5. Let Your Dogs Run Around the Yard

Most dogs love to chase squirrels around the yard, and they can do so without hurting them.

If you don’t have a dog or if yours doesn’t like squirrels, you can try whistling at the squirrel. This is also a good way to get your kids interested in protecting the garden too!

Even when the dogs are not running around anymore, the hair they leave behind has a strong scent and can keep squirrels at bay.

6. Cayenne Pepper Spray

Some of the strongest capsicum (pepper) is found in cayenne peppers. Sprayed on plants, it can deter squirrels from eating them. You can add garlic into the spray for an added effect.

You can also use other types of hot peppers or chili peppers in your spray.

7. Companion Planting

Companion planting is kind of like having your own personal army of repellents. You can plant these “relics” in your garden to keep squirrels away.

Plants That Repel Squirrels

One good trick is to use companion planting to discourage these rodents from eating your veggies.

Certain plants can actually repel squirrels, while others will attract them away from more nutritious plants.

Here are some companion plants that will help deter squirrels and other animals from feasting on your vegetables:

Here are some of my favorite repellent and attractive plants:

  • Marigolds – A fan favorite for keeping deer, rabbits, and other pests away from your garden. For some reason, squirrels hate marigolds almost as much as they hate my motion-activated sprinklers and It’s working for me! Marigolds are nice to look at too, so it’s a win-win in my book. I plant them all around my yard every year.
  • Onions – You can plant onions to help keep squirrels out, but you can also use whole onions in the garden to keep squirrels away. Wrap onion bulbs in mesh bags and hang them near the plants you want to protect.
  • Garlic – You can also plant garlic as a companion plant around the edge of your garden, like a little perimeter fence for rodents. Adding garlic to your pepper spray will help keep squirrels away as well.

8. Thorny or Spined Plants

One method is to plant thorny plants such as blackberries, roses, barberry, or forsythia near the trunks of trees and around the perimeter of your garden beds.

9. Coffee Grounds

I love a good cup of coffee — but squirrels do NOT like the scent of coffee. While you can just throw your coffee grounds in the compost bin, you can also sprinkle them around the garden to discourage squirrels from eating your vegetables.

This isn’t a one-time thing, as you’ll need to replenish the coffee ground to keep the scent fresh, but it is a cheap method!

10. Squirrel Traps

Here’s something NOT to do. Squirrel traps are effective short-term, but they are going to come back, or the ones left around your vegetable garden will just create more babies.

How to Tell if Squirrels Are Eating Your Plants

If you suspect that squirrels are eating your plants, look for these telltale clues:

Worn-down or chewed up leaves on shrubs and trees.

These animals will chew off the tips of branches to get at buds and blossoms.

tomato eaten by squirrel

Small piles of dark scat (squirrel poop) near feeding sites.

If you see any of these signs, it is likely that your plants are suffering because of squirrels or chipmunks.

What Plants Do Squirrels Eat?

Squirrels eat fallen nuts, acorns, sunflower seeds, and all kinds of fruits and vegetables that many gardeners grow – plus, they love bird feed.

Squirrels are notorious for digging up freshly planted bulbs, flowers, or seeds. They will also eat just about any kind of fruit or vegetable they can get their paws on. And yes, squirrels love to eat tomatoes.

Although squirrels don’t usually cause permanent damage to healthy trees and shrubs, they do dig up bulbs and flower buds in the fall or spring.

In an urban environment, squirrels may not be able to find enough food in the wild; they might crave a little extra in the form of a neighborhood garden. Lucky you! 🙂

Do Coffee Grounds Keep Squirrels Away?

Coffee grounds can keep squirrels away from your garden. However, they do lose their pungent scent quickly, so they need to be replenished every few days.

There are other methods like a motion-activated sprinkler or plant coverings that will work better.

Do Squirrels Eat Garden Vegetables?

Yes, squirrels will absolutely eat garden vegetables including leafy greens, tomatoes, and sunflowers. Squirrels ate so many of my tomatoes this year that I’m starting to learn indoor gardening just so I can eat some of my heirlooms before they get ahold of them!

My Favorite Squirrel Repellent Stack

When it comes to keeping squirrels out of your garden, there are a number of options you can try.

My favorite “squirrel repellent stack” is the fake owl combined with a motion-activated sprinkler for some good comedic relief 🙂



Hi - I'm Chenell! I lived in the city for almost a decade, but after moving to the suburbs in 2020, I decided the logical millennial thing to do was to learn how to grow my own avocado toast. That's what this site is all about. 🥑

You can get access to all of my free resources and get some epic dad jokes (and helpful gardening stuff) emailed to you each week by signing up here.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.