Coffee grounds add nitrogen, organic matter, and beneficial microbes to soil, making them one of the most useful kitchen scraps for gardeners. Spent grounds (the leftovers after brewing) contain about 2.4% nitrogen, a key nutrient for leafy growth, along with potassium, magnesium, and smaller amounts of phosphorus and calcium. But the benefits go well beyond basic nutrition, and so do the risks if you overdo it.
Nutrients in Spent Coffee Grounds
Spent coffee grounds are roughly 50% carbon and 2.4% nitrogen by weight, giving them a carbon-to-nitrogen ratio that falls in the range of many quality organic amendments. They also contain about 9,600 mg/kg of potassium, 1,950 mg/kg of magnesium, 1,550 mg/kg of sulfur, 1,450 mg/kg of phosphorus, and 1,250 mg/kg of calcium. In practical terms, that means coffee grounds deliver a slow-release dose of the three major plant nutrients (nitrogen, phosphorus, and potassium) plus several secondary minerals that support root development and photosynthesis.
Nitrogen in coffee grounds isn’t immediately available to plants. Soil microbes need to break down the organic material first, gradually converting it into forms roots can absorb. This slow release is actually an advantage: it feeds plants over weeks rather than delivering a single burst that can burn roots or wash away in rain.
How Grounds Improve Soil Structure
Coffee grounds are a fine-textured organic material, and mixing them into soil improves its physical properties in a few ways. In heavy clay soils, grounds help break up compaction and improve drainage. In sandy soils, they increase the ability to hold moisture. The organic matter content of spent grounds is exceptionally high (around 93% compared to roughly 7% in standard soil), which means even small additions meaningfully boost the organic content of your garden beds.
That high organic matter also helps soil hold onto nutrients instead of letting them leach away with watering. Over time, as the grounds decompose, they contribute to a spongy, well-aerated soil texture that roots move through easily.
Earthworms Love Coffee Grounds
If you want more earthworms in your garden, coffee grounds are an effective lure. Research comparing earthworm activity in standard soil versus spent coffee grounds found that earthworms reproduced at higher rates in unwashed coffee grounds than in standard soil. The combination of high organic matter and high moisture content creates ideal conditions for earthworms, which thrive in rich, damp environments.
More earthworms means more natural soil aeration, better drainage, and faster nutrient cycling. Their castings (worm poop, essentially) are one of the best natural fertilizers available, so attracting them with coffee grounds creates a compounding benefit.
Suppressing Common Plant Diseases
As coffee grounds decompose, they appear to suppress several common soil-borne fungal diseases, including Fusarium, Pythium, and Sclerotinia species. These fungi cause root rots and wilts that can devastate vegetable gardens. The mechanism isn’t the coffee itself but the community of beneficial bacteria and fungi that colonize decomposing grounds. Species like Trichoderma and non-pathogenic Pseudomonas essentially crowd out the disease-causing organisms before they can establish.
This disease suppression has been demonstrated under controlled conditions on beans, cucumbers, spinach, and tomatoes. Only small amounts of grounds are needed for the effect, which is another reason to use them in moderation rather than piling them on.
Slug and Snail Deterrent
Caffeine is toxic to slugs and snails. USDA researchers found that a 2% caffeine solution killed up to 95% of snails in greenhouse trials, and treated growing material had only 5 snails after 30 days compared to 35 in material treated with a standard commercial pesticide. Spent coffee grounds retain some caffeine after brewing, and many gardeners scatter them around vulnerable plants as a deterrent. The grounds won’t deliver the same concentrated dose as a caffeine spray, but they can reduce slug damage as part of a broader pest management approach.
The Acidity Question
One of the most persistent myths about coffee grounds is that they’re highly acidic. Brewed coffee is moderately acidic (pH 4.7 to 5.3), but the brewing process pulls most of those acidic compounds into your cup. Spent grounds left behind are close to neutral, typically landing between pH 6.5 and 6.8, with some measurements as high as 7 to 8. So if you’re hoping to acidify soil for blueberries or azaleas, spent coffee grounds won’t do much. They’re a better general-purpose amendment than a targeted acidifier.
Risks of Using Too Much
Caffeine doesn’t just affect slugs. It can also inhibit seed germination and root development in plants. Research on coffee seedlings found that caffeine concentrations as low as 10 millimolar disrupted cell division in root tips, and caffeine released from coffee tree litter in plantations eventually produces toxic effects on surrounding plants. Even coffee plants themselves have evolved specific mechanisms to keep caffeine away from their own dividing cells during germination.
For home gardeners, the practical concern is straightforward: too many grounds in one spot can suppress plant growth rather than support it. The caffeine and other compounds in fresh grounds are more concentrated than in spent grounds, so always use brewed (spent) grounds rather than fresh ones in the garden.
How Much to Use
Oregon State University recommends keeping coffee grounds to no more than 20% of any compost pile by volume. When applying directly to garden beds, work about half an inch of grounds into the top four inches of soil rather than leaving them in a thick layer on the surface. A surface layer can compact into a water-repellent mat as it dries.
Composting grounds before adding them to soil is the safest approach. The composting process breaks down residual caffeine and other potentially inhibitory compounds while concentrating the nutritional benefits. If you add grounds directly, mix them thoroughly with soil or existing mulch so they decompose evenly and don’t form a dense barrier.
For most home gardeners, the amount of grounds generated from daily coffee brewing is well within safe limits for a moderately sized garden. If you’re collecting grounds from a coffee shop, pace yourself. A five-gallon bucket of grounds spread over a large bed is fine. That same bucket dumped around a single tomato plant is not.

