The most reliable way to keep squirrels away is to remove what attracts them and block the paths they use to reach food, shelter, and gardens. Squirrels can jump about 4 feet vertically and 8 to 10 feet horizontally, so every deterrent strategy needs to account for those distances. No single method works perfectly on its own, but combining physical barriers, smart landscaping, and repellents creates layered protection that actually holds up.
Block Access to Your Roof and Attic
Squirrels enter attics and crawl spaces more often than most homeowners realize, and they usually get there by jumping from nearby trees. Trim any branches that hang over or near your roofline. Because squirrels can clear roughly 8 to 10 feet in a horizontal leap, branches need to be pruned well back from the roof, not just trimmed flush with the eaves. A good rule is to maintain at least 10 feet of clearance between any branch and the nearest point on your roof.
Once branches are trimmed, inspect your roofline for gaps. Squirrels can squeeze through openings as small as 1.5 inches. Look for gaps around soffits, roof vents, and where utility lines enter the house. Seal these with galvanized hardware cloth or metal flashing. Avoid using plastic or wood patches; squirrels gnaw through both quickly.
Protect Bird Feeders
Bird feeders are the single biggest squirrel magnet in most yards. The key measurements: place any feeder pole at least 8 to 10 feet horizontally from fences, tree trunks, deck railings, or anything else a squirrel could launch from. The feeder itself should hang at least 5 feet off the ground, since squirrels can jump about 4 feet straight up from a standing position.
A cylindrical baffle mounted on the pole is the most effective physical barrier. Position the bottom of the baffle about 44 inches off the ground so its top edge sits around 58 to 59 inches high. This puts the slippery surface right in the zone where a squirrel’s vertical leap runs out of momentum. Make sure feeders hang above that baffle, ideally with hooks at 74 inches or higher. If any of these distances are off, squirrels will find the gap. Pole-mounted baffles outperform dome-shaped baffles that attach above hanging feeders, because squirrels are remarkably good at reaching around or dropping onto domed covers from above.
Use Capsaicin as a Repellent
Cayenne pepper is one of the most effective and humane squirrel repellents available. The active compound, capsaicin, triggers a burning sensation in mammals but has zero effect on birds. Squirrels react to concentrations as low as 10 to 100 parts per million, roughly equivalent to the heat of a single jalapeño. That means even a light dusting works.
Sprinkle cayenne pepper directly on garden plants squirrels are targeting. It works especially well on tomatoes, peas, spinach, and cabbage. You can also mix it into birdseed to keep squirrels off feeders without bothering the birds at all. Reapply after rain, since water washes it away. For a longer-lasting option, capsaicin-based sprays and oils are available at garden centers and tend to stick to surfaces better than dry powder. In testing, cayenne performed as a lasting deterrent for squirrels rather than just a short-term annoyance.
Build Physical Barriers Around Gardens
For vegetable beds and berry patches, hardware cloth is the most reliable defense. Use quarter-inch mesh, which is small enough that squirrels can’t push through or reach their paws inside. Bury the bottom edge 6 to 12 inches deep to prevent digging underneath, and extend the above-ground portion 2.5 to 3 feet high.
Squirrels are excellent climbers, so a fence alone often isn’t enough. Attaching a 12-inch strip of metal flashing around the top of the hardware cloth creates a wobbly, unstable surface that discourages them from climbing over. It’s not the most attractive solution, but it works. For raised beds, you can build a simple frame and staple hardware cloth across the top as a lid, hinging one side for easy access when you need to harvest.
Choose Plants Squirrels Avoid
If squirrels are digging up your flower bulbs, the species you plant makes a huge difference. Squirrels love tulip bulbs but reliably avoid several common varieties. Daffodils and all members of the narcissus family are naturally unpalatable to them. Alliums of all kinds, hyacinths, and grape hyacinths (muscari) are also safe bets. For less common but equally squirrel-proof options, consider fritillarias, winter aconite (eranthis), Spanish bluebells, and scilla.
A practical trick: plant your squirrel-resistant bulbs in the same beds as the tulips. Interplanting daffodils among tulips gives squirrels less incentive to dig through the bed, since they’re as likely to hit a daffodil bulb (which tastes terrible to them) as a tulip. You can also lay a piece of hardware cloth flat over a newly planted bulb bed, just beneath the mulch layer, to prevent digging while still allowing shoots to grow through the mesh openings in spring.
Skip Ultrasonic Devices
Ultrasonic pest repellers are widely sold for squirrel control, but they have never been proven to work in real-world conditions. Research from McGill University’s Office for Science and Society found that while high-grade laboratory ultrasound generators can disrupt animal behavior, the consumer devices available at hardware stores can’t replicate those sound patterns and are “pretty much useless.” Some animals habituate to the noise within days, and others don’t seem bothered at all. Studies on commercial units also tend to lack proper controls, so even when pest activity decreases, there’s no evidence the device caused it. Save your money for physical barriers and repellents with a proven track record.
Trapping and Relocation Laws
Live-trapping a squirrel and driving it to a park might seem like a humane solution, but in many states it’s illegal. In New York, for example, it is against the law to relocate any wild animal off your property. The reasoning goes beyond bureaucracy: relocating wildlife spreads diseases like rabies and Lyme, stresses the animal, and creates problems for people at the release site. Gray, black, and fox squirrels in New York require a state permit to remove even when they’re causing damage, and animals taken during a closed hunting or trapping season must be buried or cremated immediately.
Laws vary by state, but the pattern is similar across most of the U.S. If a squirrel is living in your attic or causing serious property damage and exclusion methods haven’t worked, contact a licensed nuisance wildlife control operator. They have the permits and equipment to handle the situation legally. For yard and garden squirrels, though, trapping is rarely the best approach anyway. New squirrels move into vacated territory quickly, so the problem returns unless you address what attracted them in the first place.
Combining Methods for Lasting Results
Squirrels are persistent, intelligent, and highly motivated by food. Any single deterrent will eventually be tested, worked around, or outlasted. The most effective approach layers multiple strategies: trim trees back from the roofline, install baffled feeders at the right distances, wrap garden beds in hardware cloth, dust vulnerable plants with cayenne, and choose bulb varieties squirrels naturally ignore. Each layer doesn’t need to be perfect. It just needs to make your yard slightly less rewarding than your neighbor’s.