To understand the suitability of coffee grounds, we must first consider the lavender plant's native environment and physiological preferences. Lavender (Lavandula) is a Mediterranean herb that thrives in conditions of full sun, excellent drainage, and slightly alkaline, lean soil that is low in nutrients, particularly nitrogen. Its roots are adapted to seek moisture deep in rocky, gritty soils and are highly susceptible to rot in moist, compacted, or rich organic environments. From the plant's perspective, its survival strategy is based on drought tolerance, not on rapid growth fueled by high fertility.
Used coffee grounds are often cited as a source of nitrogen for plants. However, for lavender, an excess of nitrogen is detrimental. A high-nitrogen amendment encourages the rapid production of soft, lush foliage at the expense of the plant's prized essential oil production and flower formation. This tender growth is also more susceptible to pests and diseases and can make the plant leggy and weak, reducing its overall hardiness and compact shape. Furthermore, while used coffee grounds are only mildly acidic (closer to neutral), they are not alkaline. Amending soil with them will not help achieve the slightly sweet (pH 6.5-7.5) soil that lavender prefers and may gradually push the pH in the wrong direction.
This is the most significant concern from the plant's root-level perspective. Coffee grounds are fine and compactable. When mixed into soil, especially clay-based soil, they can create a dense, moisture-retentive layer that acts like a sponge. This is the exact opposite of the fast-draining, gritty, aerated soil structure that lavender roots require for health. Waterlogged soil creates an anaerobic environment, suffocating the roots and leading to fatal root rot. The physical structure imposed by coffee grounds compromises the oxygen flow to the root zone, which is critical for the plant's metabolic functions.
If one insists on using coffee grounds, the plant's perspective demands extreme caution. They should never be used fresh, as fresh grounds are acidic and contain compounds that can inhibit growth. Used grounds must be thoroughly dried and then added very sparingly to a compost bin first, not directly to the soil. This allows them to break down and integrate with other carbon-rich materials like dried leaves or straw. Even then, the resulting compost should be used minimally as a light top dressing around established plants, far from the crown, and never incorporated into the main planting hole or root zone. The primary soil amendments for lavender should always be coarse sand, small gravel, crushed oyster shell (which adds calcium and alkalinity), or perlite to ensure perfect drainage.