How to Keep Raccoons Out of Your Trash Cans (7 Fixes That Work)

There’s nothing quite like the sound of trash cans crashing over at 2 a.m. to ruin a good night’s sleep. Raccoons are remarkably intelligent, have dexterous little hands that can open latches most animals can’t, and they learn fast — once a raccoon figures out your trash is an easy meal, it will come back every single night and teach its friends.

The good news: you don’t need fancy gadgets or harsh chemicals to win this battle. Raccoons are opportunists. Make your trash cans harder to open than the effort is worth, and they’ll move on to easier pickings. Here are 7 fixes that actually work.

⚡ TL;DR — The Quick Answer

  • The answer: Make your trash harder to open than it is worth: lock lids with heavy-duty bungee cords in an X pattern, upgrade to locking-lid cans, keep cans secured upright to a post, and put trash out the morning of pickup — not the night before.
  • Typical cost: Varies — see the breakdown in the article.
  • Typical time: Raccoons will test defenses hard on nights 1–3; most redirect to easier food within 1–2 weeks, and your property drops off their route after 3+ weeks of consistent deterrence.
  • Safety first: Never mix ammonia with bleach (it creates toxic chloramine gas); keep ammonia rags away from children and pets; wear gloves and a mask when cleaning raccoon droppings (rabies and roundworm risk); never use mothballs as a repellent — it is illegal pesticide misuse.

Fix 1: Lock the Lid With Bungee Cords

The simplest and most effective fix. Stretch two heavy-duty bungee cords over the lid in an X pattern, hooking them to the can’s handles or to eye bolts you screw into the can’s sides. Raccoons can lift an unsecured lid easily, but they can’t defeat the constant downward tension of tight bungees.

Use thick bungees (not the thin dollar-store kind) and replace them when the elastic weakens. On trash day, unhook them in seconds and re-hook after the truck passes.

Fix 2: Upgrade to Locking-Lid Trash Cans

If your municipality allows your own cans, invest in animal-resistant trash cans with locking lids — look for models with twist-lock or clamp-lock lids. Many are certified as bear-resistant, which means a raccoon has no chance. They’re pricier than standard cans, but they solve the problem permanently and last for years.

Check with your waste hauler first: some require specific can types for automated trucks.

Fix 3: Secure Cans to a Post or Railing

Raccoons tip cans over first, then work on the lid — a can rolling around the driveway is much easier to open than an upright one. Run a bungee cord or chain through the can’s handles and around a sturdy fence post, deck railing, or a ground stake. An upright can with a secured lid defeats most raccoons.

Fix 4: Use Ammonia-Soaked Rags (With Caution)

Raccoons dislike strong smells. Soaking a rag in household ammonia, sealing it in a perforated plastic bag, and placing it on top of or beside your cans can deter visits. The perforations let the smell out while keeping the rag contained.

Safety notes: never mix ammonia with bleach (this creates toxic chloramine gas), keep ammonia rags away from children and pets, and don’t pour ammonia directly on the ground where it can harm plants or contaminate soil. This is a deterrent, not a long-term solution — physical barriers work better.

Fix 5: Take Trash Out on Morning, Not Night

Raccoons are nocturnal. If you put your cans at the curb the night before pickup, you’re serving dinner during their prime foraging hours. Instead, store cans in the garage or a secured enclosure overnight and put them out on the morning of pickup. This single habit change eliminates most raccoon problems.

Fix 6: Double-Bag Smelly Trash and Rinse Containers

Raccoons find your trash by smell. Double-bag particularly smelly waste like meat scraps and fish, rinse out food containers before tossing them, and keep a tight lid on your kitchen trash too — odors drifting from an open kitchen bin attract raccoons to your yard in the first place. Sprinkling a little baking soda in the can between pickups helps control odor.

Fix 7: Install Motion-Activated Lights or Sprinklers

Raccoons prefer to work in the dark. A motion-activated floodlight near your trash storage area startles them and makes them feel exposed. Motion-activated sprinklers work even better — raccoons hate being sprayed with water, and one or two soakings usually teach them to avoid the area. Position the sprinkler to cover the approach to the cans.

Raccoon-Proofing Your Whole Yard

Trash cans are the main attraction, but a truly raccoon-resistant property removes the supporting attractions too.

Secure the compost pile

Open compost piles with food scraps are raccoon magnets. Use an enclosed compost bin with a locking lid, and avoid composting meat, dairy, or oily foods — stick to yard waste and vegetable scraps. Turn the pile regularly; a hot, active compost pile is less attractive than a cold, smelly one.

Protect the garden

Raccoons love sweet corn, melons, and berries. A two-wire electric fence (one wire at 6 inches, one at 12 inches) around the garden is the most reliable deterrent — raccoons investigate with their noses and learn quickly. For smaller beds, sturdy wire mesh cages over ripening crops work.

Manage fruit trees

Pick fruit as soon as it ripens and clear fallen fruit daily during harvest season. A tree dropping fruit for weeks trains every raccoon in the neighborhood to visit nightly. Metal tree guards (a 2-foot band of sheet metal around the trunk) prevent climbing.

Eliminate water sources

Pet bowls, birdbaths, and decorative ponds all draw raccoons. Bring pet bowls in at night, and consider motion-activated sprinklers near ponds. If you have a pool, raccoons may drink from it and even swim — a pool cover helps.

Clean the grill

After every cookout, burn off residue, scrub the grates, and empty the grease trap. A greasy grill smells like dinner from a block away. Store grill covers secured — raccoons will nest under loose covers.

If a Raccoon Is Already Inside Your Home

Sometimes the problem isn’t the trash — it’s a raccoon in the attic, chimney, or under the deck. This is a different situation that needs a different approach.

  • Attic: like squirrels, raccoons can be excluded with one-way doors — but raccoon exclusion is a bigger job (they’re stronger and entry holes are larger). Spring babies are common; a mother with kits needs professional handling to avoid separating the family.
  • Chimney: a raccoon in the chimney needs a chimney cap installed after removal. Never light a fire to “smoke them out” — this can kill the animal and fill your home with smoke.
  • Under the deck or shed: exclude with buried hardware cloth (12 inches deep, bent outward in an L-shape) after confirming the animal is out. A light and radio left on under the deck for a few days encourages them to leave on their own.

For any indoor raccoon situation, a licensed wildlife professional is worth the cost — raccoons are strong, can be aggressive when cornered, and may carry rabies. This is not a DIY trapping project for most homeowners.

What NOT to Do

Never use mothballs

Mothballs are a registered pesticide, and scattering them around trash cans to repel raccoons is pesticide misuse — it’s illegal on the product label and dangerous. Mothballs release naphthalene or paradichlorobenzene fumes that are toxic to people, pets, and children, and they contaminate soil and water. They also don’t work well as raccoon repellents. Skip them entirely.

Don’t try to trap raccoons yourself without checking the law

In many states and municipalities, trapping and relocating raccoons requires a permit or is outright illegal, because relocated raccoons spread disease and usually die. If a raccoon is aggressive, appears sick, or has moved into your attic or chimney, call animal control or a licensed wildlife professional.

Don’t leave pet food outside overnight

An outdoor pet food bowl is a raccoon buffet that trains them to visit your property nightly. Feed pets indoors or bring bowls in at dusk.

Raccoons and Disease: What to Know

Raccoons can carry rabies and a roundworm parasite (Baylisascaris) whose eggs are shed in raccoon feces. Never handle raccoon droppings with bare hands — wear gloves, a mask, and use disinfectant when cleaning up latrine sites. If you find raccoon feces in a sandbox, on a deck, or near play areas, clean it thoroughly: children are at highest risk from roundworm. If a raccoon is acting strangely — aggressive, disoriented, or active in an unusual way — keep your distance and call animal control.

How Long Until the Raccoons Give Up?

Consistency is everything. Here’s a realistic timeline when you apply the fixes above:

  • Nights 1–3: raccoons will test your defenses hard — expect tipped-but-secured cans, stretched bungees, and frustrated scratching. This is normal; they’re problem-solving.
  • Week 1–2: most raccoons redirect to easier food sources once your cans consistently defeat them. You may still get exploratory visits.
  • Week 3+: with zero payoff for three weeks, your property drops off their nightly route. New raccoons moving through the area will test the cans once or twice, then move on too.

The key mistake is inconsistency — one night of an unsecured can “resets the clock” and teaches them that persistence pays. Every household member needs to follow the same routine: bungees on, cans secured, trash out in the morning.

If you’re dealing with a particularly bold raccoon that defeats every physical barrier, or a mother with babies denning on your property, that’s the point to call animal control or a licensed wildlife professional rather than escalating to harmful methods.

Frequently Asked Questions

Will raccoons eventually give up on locked trash cans?

Yes. Raccoons are smart enough to do a cost-benefit analysis. If your cans consistently take too much effort, they’ll redirect to easier food sources — usually within a week or two of consistent deterrence.

Do raccoon repellent sprays work?

Most commercial repellent sprays have limited, short-lived effects — rain washes them away and raccoons get used to the smell. Physical barriers (locking lids, bungees, secured cans) are far more reliable than any spray. If you do try a repellent, treat it as a temporary supplement while you install permanent physical fixes, not as the solution itself.

What attracts raccoons to my yard besides trash?

Pet food left outside, fallen fruit from trees, bird feeders, grills with food residue, compost piles with food scraps, and accessible water sources like pet bowls or ponds. Removing these attractants makes your whole yard less interesting.

Are raccoons dangerous to pets?

Raccoons can injure small pets in fights and can transmit rabies and other diseases. Keep pets’ vaccinations current, don’t leave small pets outside unsupervised at night, and bring pet food indoors.

Is it legal to trap a raccoon in my yard?

It depends on your state and local laws — many places require a permit, and relocation is often restricted or prohibited. Check with your local animal control or wildlife agency before setting any trap.

Do raccoons hibernate in winter?

No — raccoons don’t truly hibernate. They become less active and may den up for days or weeks during extreme cold, living off stored body fat, but they’ll emerge during warm spells to forage. That’s why winter trash security still matters: a January thaw brings hungry raccoons back to your cans, and a single unsecured night can re-train them to visit regularly.

📚 Sources & Further Reading

  • NPIC: Minimizing Pesticide Exposure
    Practical tips on choosing lower-toxicity products, protective equipment, and keeping children and pets safe from the National Pesticide Information Center (Oregon State University & U.S. EPA).

🚨 If someone ingests a pesticide or shows poisoning symptoms, call Poison Control immediately: 1-800-222-1222 (U.S.).

Related Guides

🏠 Explore the full guide: The Complete Pest Control Guide — every article on this topic in one place.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top