Coffee grounds contain several key minerals for plant growth — nitrogen, calcium, potassium, iron, phosphorus, magnesium and chromium. They may also help absorb heavy metals that can contaminate soil. What’s more, coffee grounds help attract worms, which are great for your garden.