The Wild

How to Keep Squirrels Off Your Fence

· 6 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

Squirrels can be charming in a park, but on your fence they become acrobatic pests—gnawing on wood, raiding bird feeders, and using the fence as a highway to your roof or garden. This guide gives you practical, humane ways to make your fence unappealing and impassable to squirrels, using barriers, repellents, and simple modifications. Before you start, identify the type of fence you have (wood, chain-link, vinyl, etc.) and check for nearby trees or power lines that squirrels use to jump onto it. You'll need a few basic supplies, most of which you can find at a hardware store.

What You'll Need

  • PVC pipe (4-inch diameter, cut to fence width)
  • Hacksaw or pipe cutter
  • Metal or plastic baffles (cone-shaped or half-sphere)
  • Galvanized wire mesh or hardware cloth (1/2-inch or smaller)
  • Staples or zip ties
  • Wire cutters
  • Commercial squirrel repellent spray (or ingredients for homemade: cayenne pepper, water, dish soap)
  • Spray bottle
  • Bird feeder pole with baffle (if you have feeders)
  • Pruning shears or saw (for trimming branches)

Step-by-Step

  1. Trim overhanging branches. Squirrels often jump onto fences from nearby trees. Cut back any branches that come within 8–10 feet of your fence. This removes the easiest launch point.
  2. Install a rolling PVC pipe on top of the fence. Cut a section of PVC pipe slightly longer than the width of your fence (so it overhangs a few inches on each side). Slit it lengthwise with a hacksaw, then snap it over the top rail of the fence. The pipe rotates when a squirrel steps on it, making it impossible to get a grip. Secure it with zip ties at intervals if needed.
  3. Attach metal or plastic baffles. If your fence has posts, install cone-shaped baffles (like those used on bird feeders) upside down on each post, below the top rail. Squirrels can't climb over the slippery, angled surface. For a flat-topped fence, you can mount half-sphere baffles along the top edge.
  4. Cover the fence with wire mesh. If the fence is climbable (like chain-link), attach a sheet of hardware cloth to the top 2 feet of the fence, angled outward at a 45-degree angle. Use staples or zip ties to secure it. The angle makes it hard for squirrels to climb over.
  5. Apply a taste repellent. Mix 1 tablespoon of cayenne pepper with 1 quart of water and a few drops of dish soap in a spray bottle. Shake well, then spray the top of the fence and any areas where squirrels gnaw. Reapply after rain or every 2–3 weeks. Commercial repellents containing capsaicin also work.
  6. Remove or protect bird feeders. If you feed birds, place feeders on poles with a metal baffle at least 5 feet off the ground and 10 feet away from the fence. Or use squirrel-proof feeders with weight-activated cages.
  7. Create a slippery surface. For wooden fences, you can apply a coat of outdoor polyurethane or a slick paint to the top rail. Squirrels prefer rough surfaces they can grip; a smooth finish makes it harder for them to balance.
  8. Install motion-activated sprinklers. Place a sprinkler near the fence line, aimed at the top. When a squirrel triggers the motion sensor, a burst of water scares it away. This is effective but requires a water source and may not be practical in all seasons.

Common Mistakes

  • Using only repellent spray. Repellents wash off in rain and need frequent reapplication. They work best when combined with physical barriers.
  • Ignoring nearby trees. If you don't trim branches, squirrels will simply jump over your barriers. Always address the jump points first.
  • Using mesh with holes too large. Squirrels can squeeze through openings larger than 1 inch. Use 1/2-inch hardware cloth or smaller.
  • Placing baffles too low. Baffles must be at the very top of the fence, not midway, or squirrels will climb around them.
  • Not securing the PVC pipe. If the pipe isn't properly attached, a determined squirrel might knock it off. Use zip ties to keep it in place.

Tips

  • Combine multiple methods: a physical barrier plus a repellent gives the best results.
  • Use a generous amount of cayenne spray—it's harmless to squirrels but very unappealing.
  • Check your fence regularly for new chew marks or gaps, and repair them quickly.
  • If you have a wooden fence, consider replacing the top rail with a metal one—squirrels can't grip it as well.
  • Be consistent. It may take a few weeks for squirrels to give up and find a new route.

Troubleshooting

Problem: Squirrels are still getting over the fence.
Check for gaps under the fence or where it meets a gate. Squirrels can squeeze through small openings. Also, look for utility lines or cables that cross the fence—these act as bridges. You can install a baffle on the cable or wrap it with a slippery material like PVC pipe.

Problem: The PVC pipe doesn't rotate.
If the pipe is too tight against the fence, it won't spin. Make sure the slit is wide enough and the pipe is slightly loose. You can also add a bit of cooking oil to the inside to reduce friction.

Problem: Repellent spray isn't working.
Squirrels may become accustomed to the smell over time. Switch to a different scent, like peppermint oil or a commercial repellent with a different active ingredient. Also, reapply more frequently, especially after rain.

Problem: Squirrels are digging under the fence.
Bury a section of wire mesh or hardware cloth at least 1 foot deep along the base of the fence. Bend the bottom edge outward in an L-shape to deter digging.

Problem: Birds are also being deterred.
If you're using a baffle on a bird feeder, make sure it's at least 4 feet above the ground and 10 feet from the fence. Birds can still access the feeder from above, but squirrels can't.

Frequently Asked Questions

Will cayenne pepper hurt squirrels?

No, capsaicin is not harmful to squirrels. It causes a temporary burning sensation that deters them, but it doesn't cause any lasting damage.

How long does a PVC pipe baffle last?

PVC pipe is durable and can last for years outdoors. It may become brittle in extreme cold, but it should hold up well in most climates.

Can I use a squirrel trap?

Live trapping and relocating squirrels is usually not recommended because it can be stressful for the animal and may be illegal in your area. It's better to use deterrents.

Will a fence guard keep squirrels off my roof?

Yes, if the fence is the access point to your roof, making it squirrel-proof will stop them from using that route. However, they may still find other ways, like tree branches touching the roof.

Do ultrasonic repellents work?

Ultrasonic devices have mixed results. Some people report success, but many squirrels become accustomed to the sound. They are not a reliable standalone solution.

How often should I reapply repellent?

Reapply after heavy rain or at least every 2–3 weeks. In dry weather, it may last longer, but regular maintenance is key.