How to Keep Squirrels Out of Your Garden: Barriers, Repellents, and Plant Choices

Squirrels rank among the most persistent garden pests. They dig up tulip bulbs days after planting, strip ripening tomatoes, shred flowers, and bury their own stashes in freshly worked beds. Their incisors grow continuously, which keeps them gnawing on wood, plastic, wiring, and even metal. A garden rarely repels them with a single trick; the reliable approach combines barriers, repellents, and cleanup, applied together through the season. The same layered thinking applies to other garden visitors, from the strategies for keeping bees out of your house without harming your garden to the fencing plans used for larger animals. Expect to spend several weekends testing what works on your property, because local squirrel populations develop habits that vary from one neighborhood to the next.

Before You Begin: Know What Draws Squirrels In

Squirrels visit gardens for food first. Vegetables, flower buds, bulbs, birdseed, and fallen fruit all register as meals, and a single squirrel can empty a seed tray in an afternoon. They also dig shallow holes to cache food for winter, which is why freshly planted beds look like a minefield the morning after. Garden structures double as highways and nesting cover, so pressure rises when trees overhang the roof or a shed sits against the fence line. The perimeter logic used in this guide to keeping deer out of your garden with fencing, plants, and repellents applies at a smaller scale to squirrels: remove what attracts them, block what lets them in, and protect the plants they value most.

What Squirrels Eat and Dig

Bulbs are the favorite target, especially tulips and crocuses, because they are easy to unearth and packed with stored energy. Tomatoes, strawberries, corn, sunflowers, and squash get bitten open and left ruined. Nuts and acorns get buried in lawns and beds, and the digging that follows can uproot seedlings the squirrel never eats. Birdseed and pet food left outdoors draw squirrels from several properties away.

Seasonal Patterns

Damage peaks in spring, when bulbs are planted and young shoots emerge, and again in late summer, when fruits ripen and squirrels stock up for winter. Fall is when they start probing buildings for entry points, which is why exclusion work done in August pays off before the first cold snap. Keeping notes on when the damage starts helps you time barriers and repellents ahead of the peak.

Where Squirrels Enter the Garden

Look for the routes: fence lines, overhanging branches, and gaps under gates. Squirrels jump from trees to roofs and from roofs to beds, and they climb most wood, vinyl, and metal fences. Trimming branches back 8 to 10 feet from the house and from garden borders removes the launch points.

Fencing, Netting, and Physical Barriers

Physical barriers are the most dependable layer because they work whether or not a repellent happens to be fresh. The practical options reviewed at Bob Vila’s guide to keeping squirrels out of the garden rank fencing among the most reliable, and the details matter. A squirrel can jump vertically about 5 feet and horizontally about 10 feet, so a 4-foot fence is a suggestion rather than a barrier. Use a 6-foot fence, add an angled top section, or run wire along the top so the fence wobbles under the squirrel’s weight.

Fence Height and Material

Choose welded wire or hardware cloth with openings no larger than 1 inch. Bury the bottom edge 6 inches deep and bend it outward in an L-shape, because squirrels dig under fences almost as readily as they climb over them. Metal posts and taut wire keep the fence from sagging where the soil settles. Electric fence tape set 3 to 4 inches above the ground deters persistent climbers without harming them.

BarrierHeight or depthProtectsMain drawback
Welded wire fence6 ft tall, 6 in buriedWhole garden bedsVisible in the landscape
Hardware cloth1 in mesh, L-bend at baseBulbs and bordersLabor to install
Floating row coverLaid over hoopsSeedlings and greensLifted to harvest
Bird nettingDraped and stapledBerries and fruitSnags tools and wildlife

Netting and Row Covers

For vegetable beds and berry patches, floating row cover and bird netting go up faster than a full fence. Drape the netting over hoops or a simple frame and secure the edges with soil staples or bricks so squirrels cannot push underneath. Use mesh openings of 1/2 inch or smaller for seedlings, because wider mesh lets young squirrels squeeze through.

Repellents, Scents, and Taste Deterrents

Repellents work by making the garden taste or smell wrong. Capsaicin sprays made from hot peppers discourage chewing and digging, and granular versions sprinkled around beds do the same. Predator urine, garlic oil, and ammonia-based products exploit the squirrel’s fear of predators. The barrier and deterrent combinations described in this guide to keeping squirrels out of garden beds using barriers and deterrents work best when rotated, because squirrels habituate to a single scent within a few weeks.

Capsaicin Sprays

Mix cayenne pepper or a commercial capsaicin concentrate with water and a few drops of dish soap, then spray the foliage and the soil line. Reapply after rain and after every few waterings. Wear gloves when handling concentrated capsaicin, and avoid spraying blooms that pollinators visit.

Scent Repellents

Predator urine sold in garden centers signals danger, and garlic and peppermint oils mask the smell of food. Place scent sachets near bulb beds and along fence lines. Avoid mothballs: the chemicals are toxic to children, pets, and soil organisms, and their outdoor use is restricted in many areas.

Reapplication Schedule

Most sprays lose potency after rain, sprinkler cycles, or 7 to 10 days of sun. Mark the calendar and rotate between two repellents, because a single product used for months loses its effect as squirrels learn to ignore it.

Remove Attractants and Close Off Entry Points

A garden that smells like a cafeteria will defeat any fence. Remove the food sources that pull squirrels in, starting with bird feeders, which can feed more squirrels than birds. Place feeders at least 10 feet from the house and 5 feet above the ground, or fit them with baffles and weight-sensitive perches that close under a squirrel’s weight. Squirrels that treat the yard as a food court eventually probe the house itself, and the same methods for keeping squirrels out of your attic this winter start with sealing gaps at the roofline, vents, and utility penetrations.

  • Birdseed spilled beneath feeders
  • Pet food bowls left outside overnight
  • Windfall apples, plums, and nuts under trees
  • Open compost piles and unwashed grills

Manage Bird Feeders

Use safflower seed, which squirrels dislike, or a feeder cage with openings sized for small birds. Sweep up spilled seed daily, because the ground below a feeder is a squirrel buffet. Position feeders away from fences, decks, and trees that give squirrels a launching point.

Clean Up Fallen Fruit and Pet Food

Pick up windfall apples, plums, and nuts every day or two during harvest season. Feed pets indoors or remove bowls within an hour of feeding. Cover compost piles with a lid or turn them often, and keep grill drippings and grease out of reach.

Choose Squirrel-Resistant Plants and Rethink the Layout

Some plants simply do not interest squirrels, and building beds around them reduces damage without any extra work. Daffodils, alliums, hyacinths, and marigolds are rarely touched, because their bulbs and foliage contain compounds that taste bad or irritate. The same natural repellent logic shows up in this roundup of DIY deer repellents and natural ways to keep deer out of the garden: strong-smelling plants and bitter-tasting sprays protect the plants that animals actually want.

Bulbs Squirrels Avoid

Replace tulips and crocuses with daffodils, snowdrops, squill, and alliums in the most exposed beds. If you keep the favorites, plant them 6 to 8 inches deep, cover the planting with 1 inch of gravel, and lay hardware cloth over the bed until shoots emerge. Mulching with sharp-edged materials such as pine cones or crushed stone discourages digging around established plants.

PlantWhy squirrels avoid itBest use
DaffodilToxic bulbs, bitter tasteBorders and mixed beds
AlliumStrong onion odorEdging and vegetable rows
HyacinthIrritating bulb compoundsSpring color beds
MarigoldPungent foliage scentAnnual borders and containers

Planting and Mulch Tactics

Cluster vulnerable plants near the house or inside a fenced area, and keep tempting crops in raised beds with wire mesh bottoms. Interplant the resistant species among the favorites so the scent confuses foraging squirrels. Delay mulching until the soil cools, because loose mulch gives squirrels an easy digging medium.

Gadgets, Traps, and Knowing When to Call a Professional

When barriers and repellents are not enough, motion-activated gadgets add pressure. Sprinklers that fire when a sensor detects movement startle squirrels and water the lawn at the same time. Ultrasonic devices emit high-frequency sound that some squirrels learn to ignore, so treat them as a supplement rather than a solution.

Motion-Activated Devices

Place motion sprinklers where squirrels enter the garden and reposition them every few weeks as the animals find new routes. Set ultrasonic units where their sound cannot bounce off walls into neighboring properties. Combine both with the barriers from the earlier sections for the best effect.

Live Trapping Rules

  1. Confirm trapping is legal in your area
  2. Place the trap along an active squirrel route
  3. Bait with peanut butter or nuts
  4. Check the trap at least twice a day
  5. Release or relocate according to local rules

Live traps baited with peanut butter or nuts can remove problem squirrels, but check local wildlife laws before setting one, because relocation rules vary by state and some areas prohibit trapping entirely. Check traps twice a day, and never handle a trapped squirrel without heavy gloves. In areas with heavy pressure, or when squirrels have entered the house, a wildlife control professional can identify entry points and install permanent exclusion work.

Squirrel pressure changes with the seasons, and a garden that keeps producing into fall needs ongoing protection. While you defend the beds, planting late summer flowers that keep your garden blooming through fall gives you something to enjoy even when the squirrels win a round. Consistent barriers, rotated repellents, and quick cleanup beat any single product, and gardens that combine all three keep most of their harvest.