What Pests Do Coffee Grounds Repel? The Facts

Coffee grounds repel slugs, snails, ants, and fleas with reasonable effectiveness, and they may deter mosquitoes when burned. Beyond that short list, the evidence gets thin. Many online sources claim coffee grounds work against a wide range of pests, but the actual science only supports a handful of them, and even then with important caveats about potency and duration.

Slugs and Snails: The Strongest Evidence

If there’s one pest coffee grounds genuinely work against, it’s slugs and snails. Research from Oregon State University found that a 1% to 2% caffeine solution used as a soil drench caused 100% of slugs to leave the treated soil and subsequently die of caffeine poisoning. A 2% caffeine solution applied to orchid growing medium killed 95% of orchid snails, outperforming a common commercial slug bait.

The catch is that spent (already brewed) coffee grounds contain far less caffeine than fresh, unbrewed grounds. Brewing extracts most of the caffeine into your cup, leaving the grounds with a fraction of their original potency. If you’re specifically targeting slugs and snails, fresh grounds or a strong coffee solution will work considerably better than yesterday’s used filter. Scattering a ring of grounds around vulnerable plants can still create a barrier that slugs are reluctant to cross, but heavy rain will wash it away and you’ll need to reapply.

Ants: Partial Disruption, Not Elimination

Coffee grounds can interrupt the chemical trails ants use to communicate with each other. Ants navigate by laying down pheromones for other workers to follow, and the strong scent of coffee grounds masks or disrupts those signals. Some species have proven reluctant to cross a physical line of coffee grounds, making it a useful short-term barrier around doorways or garden beds.

The picture isn’t simple, though. Pest control professionals note that while Arabica coffee grounds do repel certain ant species, other research has shown that coffee extract can actually attract ant workers in some cases. The effect seems to depend on the ant species and the concentration of grounds. Coffee grounds won’t eliminate an ant colony. They’re better thought of as a way to redirect a trail rather than solve an infestation.

Mosquitoes: Burn Them for Best Results

The mosquito claim comes with an asterisk: no conclusive research has been published, but plenty of anecdotal evidence suggests that burning dried coffee grounds does keep mosquitoes at a distance. The mechanism makes sense on multiple levels. The smoke itself deters insects (the same reason citronella candles work), and the strong, bitter smell of burning coffee masks the carbon dioxide and skin odors that attract mosquitoes to people in the first place.

To try this, dry out used coffee grounds completely, place them in a fire-safe dish, and light them so they smolder rather than flame. For a backyard gathering, set out several dishes around the perimeter for broader coverage. This won’t match the effectiveness of DEET-based repellents, but it’s a free, chemical-free option for casual outdoor time.

Fleas, Bees, and Wasps

Fleas are reported to dislike the scent of coffee grounds, and some pet owners rub cooled, spent grounds through their dog’s fur after bathing as a supplemental deterrent. This is a mild measure at best and won’t replace proper flea treatment for an active infestation.

Bees and wasps also find the smell unpleasant. Burning coffee grounds near an outdoor dining area may discourage them from hovering around food. Keep in mind that bees are essential pollinators, so scattering grounds directly around flowering plants could work against your garden’s productivity.

Rabbits, Cats, and Deer: Don’t Count on It

Many gardening blogs recommend coffee grounds to keep rabbits, cats, and deer out of garden beds. The reality is disappointing. Rabbits may pause briefly when they first encounter the strong scent, but they adapt quickly once they realize there’s no real threat. Rain, wind, and sprinklers wash away the smell fast, leaving little lasting protection. Wildlife removal professionals note there is little to no scientific evidence that coffee grounds deter rabbits in any meaningful way.

Cats may avoid freshly applied grounds because of the texture and smell, but this effect is similarly short-lived. For any mammal pest, physical barriers like fencing or netting will always outperform a scattering of grounds.

Why Coffee Grounds Work at All

Coffee beans evolved their chemical defenses to protect the plant’s seeds from insects and fungi. The key players are caffeine and a group of oily compounds called diterpenes, particularly one called cafestol. Research published in the Journal of Pest Science found that cafestol significantly slowed the growth of multiple plant-attacking fungi and reduced pupation rates in fruit flies. These are broad-spectrum defense chemicals, meaning they protect coffee seeds from a wide variety of threats in nature.

When you brew coffee, you extract most of the caffeine but leave behind some diterpenes and residual caffeine in the grounds. This is why unbrewed grounds are more potent as a pest deterrent than spent ones. The remaining compounds still carry some repellent properties, but at reduced strength. For the strongest effect, use fresh grounds you haven’t brewed, or at minimum, let spent grounds dry thoroughly so their scent concentrates.

Risks to Plants and Pets

Coffee grounds aren’t harmless just because they’re natural. The residual caffeine in spent grounds can suppress seed germination and slow the growth of some plants. Research on allelopathic effects (the ability of one plant’s chemicals to inhibit another’s growth) found that coffee extracts reduced germination in lettuce and several weed species, and even caused cell cycle disruptions in lettuce root cells. If you’re direct-sowing seeds, avoid applying fresh grounds to the soil surface nearby. Composting grounds first breaks down much of the caffeine and makes them safer for garden use.

Oregon State University’s guidance reinforces this point: excess coffee grounds applied directly to soil before composting can tie up nitrogen and suppress plant growth. Mixing grounds into a compost pile first, rather than dumping them straight onto beds, gives microorganisms time to break down the problematic compounds.

For pet owners, caffeine is toxic to both dogs and cats. Dogs can experience poisoning at around 63 mg of caffeine per pound of body weight, while cats are sensitive at 36 to 68 mg per pound. Symptoms include vomiting, diarrhea, panting, abnormal heart rhythm, tremors, and seizures, typically appearing within one to two hours of ingestion. A small dog eating a pile of fresh coffee grounds could be in real danger. If you’re using grounds in areas where pets roam, stick to spent grounds (lower caffeine) and work them into the soil rather than leaving them in accessible heaps.

How to Apply Coffee Grounds Effectively

The method matters as much as the grounds themselves. For slugs and snails, create a continuous border of grounds around individual plants or raised bed edges. Gaps in the barrier defeat the purpose. Reapply after rain or watering.

For ants, lay a thick line of grounds across the trail you want to disrupt. This works best in dry, sheltered spots like along a foundation wall or under a porch overhang where rain won’t wash them away quickly.

For mosquitoes, burning is the only approach with meaningful anecdotal support. Simply scattering grounds around your yard won’t do much against flying insects. Dry the grounds completely first, as damp grounds won’t smolder properly.

Across all uses, set realistic expectations. Coffee grounds are a mild, temporary deterrent, not a replacement for targeted pest control when you’re dealing with a serious problem. They work best as one layer in a broader strategy: companion planting, physical barriers, proper sanitation, and grounds together will outperform any single approach.