How to Keep Squirrels Out of the Garden (11 Humane Ways)

Want to know how to keep squirrels out of the garden for good? Here’s the honest answer: physical barriers are the only thing that works every time. Cover beds with a hardware cloth cage, lay wire mesh over newly planted bulbs and seeds, and take away the easy food. Sprays, scents and gadgets can help a little on top of that, but on their own they rarely beat a hungry squirrel.
The good news is that none of this means hurting the squirrels. Below you’ll find a quick way to confirm it’s really squirrels doing the damage, 11 humane methods ranked by how well they work, simple builds for raised beds and bulbs, a season-by-season plan, and the legal facts about trapping that most guides skip.
๐ฟ๏ธ Quick Answer: How Do You Keep Squirrels Out of a Garden?
- Cage it: cover raised beds and rows with a frame wrapped in 1/2-inch hardware cloth, with a wire top.
- Protect bulbs and seeds: lay wire mesh on the soil right after planting and pin it down.
- Remove food: pick up fallen fruit, nuts and spilled birdseed; harvest tomatoes a little early.
- Plant what they avoid: daffodils, alliums, grape hyacinths, snowdrops and fritillaria.
- Repel as a backup: capsaicin (hot pepper) products and motion sprinklers help, but results vary.
- Don’t trap and relocate: it’s illegal in many states and new squirrels move right in.
In this guide
Is It Really Squirrels? How to Read the Damage
Before you spend money on cages, make sure you’re fighting the right animal. Chipmunks, rats, raccoons and birds can all raid a garden, and each one calls for a slightly different fix. Squirrels are active in daylight, mostly in the early morning and late afternoon, according to the UC IPM pest note on tree squirrels, so a few minutes at the window with your coffee often settles it.
| What you see | Likely culprit | Clue |
|---|---|---|
| ๐ณ๏ธ Small, shallow holes in beds and pots, about golf-ball size | Squirrel | Daytime digging, often in fall when they bury nuts |
| ๐ Tomatoes with one or two bites, left on the ground | Squirrel | Daytime; worse in hot, dry weeks |
| ๐ท Bulbs dug up the day after planting | Squirrel | Loose, freshly turned soil attracts them |
| ๐ณ๏ธ Neat holes about 2 inches wide with no soil piled around | Chipmunk | Burrow entrance; small striped animal |
| ๐ฝ Corn ears stripped overnight, cans knocked over | Raccoon | Night damage, bigger mess |
| ๐ Pecked berries still on the plant | Birds | Peck marks, not tooth marks |
| ๐ฉ Droppings along walls or under decks, gnawed hoses at night | Rats | Night activity; call a pro if it’s indoors |
Why Squirrels Come Into Your Garden (and the Damage They Do)
Squirrels don’t wander into your yard by chance. They come because your garden gives them something they need, and once they find it, they come back.
- Food. Ripe tomatoes, strawberries, corn, squash, sunflower heads, fruit and nuts. UC IPM lists strawberries, tomatoes and corn among the crops squirrels damage while foraging on the ground.
- Soft soil for caching. In fall, squirrels bury nuts and acorns. Freshly dug beds and pots are the easiest place to do it, which is why your new bulbs and seedlings get dug up.
- Water. In hot, dry spells a juicy tomato is a drink as much as a snack. Birdbaths, ponds and dripping hoses also draw them in.
- Shelter and highways. Trees, shrubs, fences and overhanging branches give squirrels safe cover and an easy route into your beds.
The damage adds up fast. Squirrels dig up seeds and bulbs before they sprout, nip off seedlings, take a bite out of tomatoes and leave them to rot, strip bark from young trees, and leave behind shells, half-eaten fruit and torn-up mulch. A single raised bed of fall garlic can be dug up within days of planting. That’s why it pays to protect what matters most before the squirrels discover it.
11 Humane Ways to Keep Squirrels Out of the Garden, Ranked
Here’s how the most common methods stack up. The top three are the ones we’d start with in any yard; everything else works best as backup.
| # | Method | Best for | Cost | How well it works |
|---|---|---|---|---|
| 1 | ๐งฑ Hardware cloth cage over beds | Raised beds, vegetables, berries | $$ | โญโญโญโญโญ |
| 2 | ๐ท Wire mesh over bulbs and seeds | Bulbs, new seedbeds, pots | $ | โญโญโญโญโญ |
| 3 | ๐งน Remove food sources | Every yard | Free | โญโญโญโญ |
| 4 | ๐ Cage fruit, pick early, offer water | Tomatoes, fruit trees | $ | โญโญโญโญ |
| 5 | ๐ผ Plant bulbs and flowers they avoid | Flower beds | $ | โญโญโญ |
| 6 | ๐ชจ Cover bare soil with mulch or gravel | Beds between plants | $ | โญโญโญ |
| 7 | ๐ฆ Motion-activated sprinkler | Small, defined areas | $$ | โญโญโญ |
| 8 | ๐ถ๏ธ Capsaicin (hot pepper) repellent | Bulbs, pots, ornamentals | $ | โญโญ |
| 9 | ๐ A dog in the yard | Homes with dogs | Free | โญโญ |
| 10 | ๐ฅ Decoy feeding spot far away | Large yards | $ | โญโญ (can backfire) |
| 11 | ๐ Ultrasonic devices and scare props | Short-term only | $$ | โญ |
Our rating, based on university extension guidance and how each method holds up over a full season. Cost: $ = under $25, $$ = $25โ$100 for a typical bed or area.
How to Use Each Method
1. Build a hardware cloth cage over your beds
This is the one that actually ends the fight. Squirrels climb and jump, so a fence around a bed doesn’t stop them; you need a roof. Build a simple frame from 1×2 lumber or PVC pipe that fits over your raised bed, and wrap it in galvanized hardware cloth with 1/2-inch openings. The Old Farmer’s Almanac warns that standard chicken wire has holes a determined squirrel can squeeze through, and squirrels can gnaw through thin plastic netting.
- Measure your bed and add 1 inch on each side so the frame slips over it.
- Build the frame tall enough for your plants at full size: 18 inches for greens, 3 to 4 feet for tomatoes and peppers.
- Staple the hardware cloth to the outside of the frame, overlapping seams by 2 inches. Wear gloves; cut edges are sharp.
- Hinge the top or make it lift off so you can water, weed and harvest without wrestling the whole cage.
- Seal the bottom edge. Screw the frame to the bed, or bury a 6-inch skirt of mesh if the cage sits on open ground.
Picture Jen’s 4-by-8-foot bed of tomatoes and strawberries. Last summer she lost almost every ripe tomato to one bold squirrel. This year she built a 4-foot cage for about the cost of a few nursery plants, and the only thing that changed for her was lifting a lid to pick. Our guide to planning a garden layout can help you size beds so cages are easy to build.
2. Protect bulbs, seeds and pots with wire mesh
Squirrels love freshly turned soil, so the days right after planting are when bulbs and seeds disappear. The fix is cheap: lay wire mesh flat on the soil. The Old Farmer’s Almanac squirrel guide suggests a one-inch mesh placed below and on top of bulbs, so they’re protected from digging but shoots can grow through.
- Bulbs: plant, cover with soil, then lay mesh on top and pin it with landscape staples. Add mulch to hide it.
- Seedbeds: lay mesh or a cut-to-size piece of hardware cloth over the row until seedlings are a few inches tall.
- Pots: cut a circle of hardware cloth to fit inside the rim, cut an X where the plant comes through, and rest it on the soil.
- Clean up after planting. Bits of bulb skin and papery tunics left on the surface tell squirrels exactly where to dig.
3. Take away the free food
A yard full of easy food is a squirrel magnet, and that pull is stronger than any repellent. Pick up fallen fruit, nuts and acorns every few days. Clean up spilled birdseed, keep compost in a closed bin, and don’t leave pet food outside. It costs nothing, and it makes every other method on this list work better.
Bird feeders are the big one. If you want to keep feeding birds, the Almanac suggests mounting feeders on a pole at least 5 to 6 feet off the ground and 8 to 10 feet from your house, trees or other structures, with a wide baffle, because squirrels can leap that far. Switching to safflower seed, which squirrels tend to ignore, also helps.
4. Cage fruit, pick tomatoes early and offer water
Why does a squirrel take one bite out of a tomato and leave it? Often it’s thirsty, not hungry. In hot, dry weeks, many gardeners find that a shallow dish of water near (but not inside) the garden cuts tomato raids. Pair that with picking tomatoes at the first blush of color and letting them finish ripening on the counter, where they taste just as good.
Keeping your plants well watered helps too. Our guides on how often to water tomatoes and growing tomatoes at home cover the watering routine and the cages that double as squirrel protection.
5. Plant bulbs and flowers squirrels avoid
Some bulbs simply aren’t worth a squirrel’s effort. The Almanac lists daffodils, fritillaria, snowdrops, grape hyacinths and ornamental alliums as bulbs squirrels and other rodents don’t like, while tulips and crocuses are favorites. If you love tulips, plant them under mesh and surround them with daffodils.
| Squirrels usually avoid | Squirrels love (protect these) |
|---|---|
| ๐ผ Daffodils | ๐ท Tulips |
| ๐ Ornamental alliums | ๐ธ Crocuses |
| ๐ต Grape hyacinths (Muscari) | ๐ป Sunflower heads |
| ๐ค Snowdrops (Galanthus) | ๐ Tomatoes, strawberries, corn |
| ๐ Fritillaria | ๐ Squash and pumpkins |
Bulb list from the Old Farmer’s Almanac; crop list from UC IPM. A very hungry squirrel may still sample anything.
6. Cover bare soil with mulch or gravel
Bare, fluffy soil is an open invitation to dig. A layer of coarse mulch, pine cones or gravel between plants makes digging less appealing, and it keeps moisture in the soil too. It won’t stop a determined squirrel by itself, but it cuts down on random holes. Starting with well-prepared soil also helps plants recover faster from any digging; see our guide to preparing soil for vegetables.
7. Set up a motion-activated sprinkler
A motion-activated sprinkler gives squirrels a harmless blast of water when they step into range. It works best guarding one small area, like a strawberry patch, and during the warm months when you don’t mind the water. Move it every week or two; animals get used to anything that never changes. Turn it off before you walk out to weed, unless you enjoy a surprise shower.
8. Use capsaicin (hot pepper) as a backup, not a fix
Hot pepper is the most popular natural squirrel repellent, and it can help, especially on bulbs, pots and ornamental plants. Just keep your expectations realistic. Penn State Extension notes that there are very few repellents available for squirrels, and that the effectiveness of capsaicin-based ones varies depending on what other food is around. UC IPM is even more blunt, calling the effectiveness of registered repellents questionable.
- Use a product labeled for squirrels and follow the label, especially on anything you plan to eat.
- Reapply after rain or watering.
- Dust soil around bulbs and pots rather than spraying fruit you’re about to harvest.
- Wear gloves and keep pepper away from your eyes, kids and pets.
9. Let your dog patrol (under supervision)
A dog that spends time in the yard makes squirrels nervous, and many gardeners notice fewer raids once a dog is around. It’s free if you already have one. Supervise, though: you don’t want your dog digging up the beds itself, and give it shade and water on hot days. If your yard doubles as your pet’s playground, our ideas for pet-friendly home spaces can help everyone share it.
10. Try a decoy feeding spot (carefully)
Some gardeners put out corn or nuts at the far end of the yard, at least 20 feet from the beds, to keep squirrels busy elsewhere. Here’s the catch: feeding squirrels can also draw more of them, plus other wildlife. If you try it, keep it small, keep it far from the garden, and stop if squirrel numbers climb.
11. Ultrasonic devices and scare props
Ultrasonic boxes, fake owls and spinning pinwheels are easy to buy and easy to install. Unfortunately, they’re also easy for squirrels to get used to. UC IPM says visual and sound devices haven’t proven very effective. If you already own one, move it often and treat it as a bonus, not your main defense.
What Doesn’t Work Well (Save Your Money)
Now that you know what works, it’s worth knowing what usually doesn’t, so you don’t waste a season on it.
- Coffee grounds and dryer sheets. Popular online, but there’s no solid evidence they keep squirrels away.
- A fence with no top. Squirrels climb right over it.
- Chicken wire with large holes. Fine for keeping out rabbits, not squirrels.
- Predator urine. It needs constant reapplying, and squirrels quickly learn there’s no real predator behind it.
- Trap and relocate. Covered below; it’s often illegal and rarely solves the problem.
Season-by-Season Squirrel Plan
Squirrels don’t hibernate; they’re active year-round. But what they want from your garden changes with the seasons, so your defense should too.
| Season | What squirrels are doing | What to do |
|---|---|---|
| ๐ฑ Spring | Digging up seeds, nipping seedlings, raising young | Mesh over seedbeds, cages on beds before planting |
| โ๏ธ Summer | Raiding tomatoes, berries, corn; looking for water | Cage fruiting crops, set out water, pick early, motion sprinkler |
| ๐ Fall | Burying nuts, digging new bulbs and pots | Mesh over bulbs, clean up nuts and acorns, plant daffodils and alliums |
| โ๏ธ Winter | Raiding stored food and feeders | Baffle or move feeders, build cages for next season |
Growing greens indoors over winter? Squirrels can’t reach those at all. Our guide to growing vegetables indoors shows how to keep the harvest going.
Can You Trap and Relocate Squirrels? The Legal Facts
It sounds like the kind option, but in many places it’s against the law, and it rarely works. UC IPM states that releasing a tree squirrel elsewhere in California is illegal unless the California Department of Fish and Wildlife issues a permit first, which is unlikely in most situations. In Pennsylvania, Penn State Extension notes that fox and gray squirrels are classified as game animals, and that local laws may limit some control methods. Other states have their own rules.
Even where it’s legal, relocation is hard on the squirrel, and your garden doesn’t stay empty for long. New squirrels move into the territory the old one left. If a squirrel has moved into your house, not just your garden, call your state wildlife agency or a licensed wildlife control professional.
Mistakes to Avoid
- Waiting until the damage starts. Put mesh down the same day you plant.
- Relying on one spray. Repellents are a backup, not a barrier.
- Leaving a “bridge.” Branches, fences or a trellis touching your cage give squirrels a way in. Penn State suggests trimming limbs 6 to 8 feet from buildings to stop roof jumps; the same idea works for garden structures.
- Feeding birds right next to the vegetable bed. Spilled seed brings squirrels straight to your crops.
- Using netting that traps wildlife. Choose rigid wire instead.
- Using poisons or mothballs. They’re dangerous, often illegal, and can harm pets and kids.
โ Squirrel-Proof Garden Checklist
- โ Beds with fruiting crops are caged with 1/2-inch hardware cloth, top included
- โ New bulbs and seedbeds are covered with pinned-down mesh
- โ Pots have a hardware cloth collar on the soil
- โ Fallen fruit, nuts and birdseed are picked up weekly
- โ Feeders are 8โ10 ft from trees and buildings, with a baffle
- โ A water dish is out during hot, dry weeks
- โ No branches or fences act as a bridge into the beds
Frequently Asked Questions
What is the best way to keep squirrels out of a garden?
A physical barrier. Cover beds with a frame wrapped in 1/2-inch hardware cloth, including a top, and lay wire mesh over newly planted bulbs and seeds. Repellents and scare devices help only as a backup.
What smell do squirrels hate?
Squirrels dislike capsaicin, the compound that makes peppers hot, and many gardeners also use peppermint. Results vary, though; Penn State Extension says capsaicin works less well when other food is easy to find.
Does cayenne pepper keep squirrels away?
It can help for a while, especially on bulbs and pots, but it washes off in rain and doesn’t stop a hungry squirrel. Use it alongside mesh or cages, and follow the label on edible plants.
Do coffee grounds keep squirrels out of the garden?
There’s no good evidence that they do. Coffee grounds are fine to add to compost, but don’t count on them as a squirrel repellent.
How do I stop squirrels from eating my tomatoes?
Cage the plants with hardware cloth, pick tomatoes as soon as they start to color and ripen them indoors, and put a shallow dish of water away from the garden during hot, dry weather.
Is it legal to trap and relocate squirrels?
Often not. In California it’s illegal without a state permit, and in Pennsylvania squirrels are game animals. Check with your state wildlife agency before trapping, and know that new squirrels usually move in anyway.
Keeping Squirrels Out of the Garden: The Bottom Line
You don’t have to hurt squirrels to win your garden back. Cage the beds that matter most, put mesh over bulbs and seeds the day you plant, and take away the free food. Add plants they avoid, a water dish in summer and a pepper spray or sprinkler as backup. Do those things before the squirrels find your harvest, and you’ll spend next summer eating your tomatoes instead of picking up half-chewed ones.
Planning next season’s garden?
Start with a squirrel-proof layout and healthy soil.
Plan your garden layoutBackyard gardening ideasKeep learning: more garden guides from Dream Home Heaven
- How often to water tomatoes (in ground, pots and heat)
- How to prepare soil for planting vegetables
- Cucumber plant growing tips
Sources: UC IPM Pest Notes: Tree Squirrels (University of California); Penn State Extension, Tree Squirrels; Old Farmer’s Almanac, Squirrels; University of Arizona Cooperative Extension, Managing Critters in Vegetable Gardens (2025). Checked November 2026.
What’s the cleverest thing a squirrel has done in your garden, and what finally stopped it? Tell us in the comments.