The short answer
- Verdict for slugs: Partly. USDA Agricultural Research Service work found that 1- and 2-percent caffeine solutions killed slugs and snails, but an extension expert notes it is not known how much caffeine is left in grounds after brewing.[1]
- Verdict for ants: No evidence. Washington State's Linda Chalker-Scott found little research about using actual coffee grounds in gardens and landscapes.[2]
- Verdict for mosquitoes: No evidence as a repellent. Lab studies found spent grounds and caffeine in water killed Aedes aegypti larvae; they did not test grounds as a way to keep adult mosquitoes from biting.[3][4]
- What works instead: handpicking, trapping and removing hiding spots for slugs, baits for ants, and an EPA-registered repellent plus emptying standing water for mosquitoes.[5][6][7]
Coffee and slugs: what the research found
Robert Hollingsworth of the USDA Agricultural Research Service in Hilo, Hawaii, was testing caffeine solutions as a frog repellent and noticed that 1- and 2-percent solutions also killed snails and slugs. The 2-percent solution was more effective than metaldehyde, a common pesticide used to control slugs and snails.[1]
Solutions with as little as 0.01 percent caffeine significantly reduced slug feeding on cabbage leaves dipped in them. Instant coffee is about 0.05 percent caffeine, and brewed coffee is normally somewhat stronger, according to the same extension summary.[1]
That research used caffeine solutions, not used grounds. The extension expert who summarized it says they don't know how much caffeine is left in coffee grounds after the coffee has been brewed.[1]
What extension says about grounds in the garden
Linda Chalker-Scott of Washington State University notes that people claim grounds repel cats, kill slugs, prevent weeds and more, but there is little research about using actual coffee grounds in gardens and landscapes.[2]
Grounds are finely textured and easily compact, so thick layers can block moisture and air. She suggests a thin layer, no more than half an inch, covered with coarse organic mulch.[2]
Many gardeners assume grounds are acidic, but in experiments the pH of decomposing grounds ranged from 4.6 to 8.4.[2]
Coffee grounds and mosquitoes
In a lab study, regular and decaffeinated spent coffee grounds, and pure caffeine, reduced survival of Aedes aegypti larvae and delayed their development. The authors said the effects warrant field testing.[3]
A Thai lab study found wet spent coffee grounds caused complete larval mortality after 48 h at the concentration tested.[4]
Both studies put grounds into the water where larvae live. Neither tested burning grounds or scattering them to repel adult mosquitoes.[3][4]
Why people think it works
Caffeine really is toxic to slugs and snails in tests, and grounds are a free, useful compost ingredient, so the leap to using grounds as slug protection is easy to make.[1][2]
What works instead
For slugs, the University of Minnesota recommends removing hiding places such as boards, pavers and flat stones, watering by hand or with drip irrigation, handpicking, and setting out flat boards or damp newspapers as traps to check the next morning.[5]
For ants indoors, UC IPM says baits, used properly, are more effective and safer than sprays.[6]
For mosquitoes, CDC recommends EPA-registered repellents and emptying, scrubbing, turning over, covering or throwing out items that hold water once a week.[7]
Common questions
- Can I just pour leftover coffee on slugs?
- The USDA tests used caffeine solutions stronger than coffee: 1- and 2-percent solutions killed slugs, while instant coffee is about 0.05 percent caffeine. Lower doses mainly reduced feeding.[1]
- Are coffee grounds good for compost?
- Yes, in moderation. Chalker-Scott recommends limiting grounds to no more than 20% of total compost volume.[2]
Sources
- Ask Extension (Cooperative Extension System), “Coffee grounds in compost or the garden (expert answer quoting K-State Horticulture Newsletter, Caffeine and Slugs, Dec. 13, 2011).” ask.extension.org/kb/faq.php?id=609842 (accessed 2026-11-12)
- University of Arizona Cooperative Extension, “Backyard Gardener #140: Using Coffee Grounds in the Garden (Jan. 15, 2024).” extension.arizona.edu/sites/extension.arizona.edu/files/attachment/CoffeeGrounds.pdf (accessed 2026-11-12)
- Environmental Pollution, via PubMed, “Miranda FR et al. (2021), Biological, histological and immunohistochemical studies on the toxicity of spent coffee grounds and caffeine on the larvae of Aedes aegypti. Environ Pollut 271:116307.” pubmed.ncbi.nlm.nih.gov/33360348/ (accessed 2026-11-12)
- Insects (Mahidol University), via PubMed, “Thanasoponkul W et al. (2023), Spent Coffee Grounds and Novaluron Are Toxic to Aedes aegypti Larvae. Insects 14(6):564.” pubmed.ncbi.nlm.nih.gov/37367380/ (accessed 2026-11-12)
- University of Minnesota Extension, “Slugs in home gardens.” extension.umn.edu/yard-and-garden-insects/slugs (accessed 2026-11-12)
- UC Statewide IPM Program, “Ants (Pest Notes).” ipm.ucanr.edu/home-and-landscape/ants/ (accessed 2026-11-12)
- CDC, “Preventing Mosquito Bites.” www.cdc.gov/mosquitoes/prevention/index.html (accessed 2026-11-12)