What Plants Attract Gnats and Why?

Fungus gnats, primarily belonging to the family Sciaridae, are tiny black flies often seen hovering around houseplants. While frequently confused with fruit flies, adult fungus gnats are seeking a suitable environment to lay eggs. Their presence is strongly linked to the potting medium, not the specific plant species.

Why Soil Conditions, Not Plant Species, Matter Most

Fungus gnats are attracted by saturated, decaying organic matter in the top layers of potting mix, not the plant’s leaves or flowers. Adult females seek moist soil to deposit eggs, which hatch into larvae residing in the top few inches of the medium.

The larvae are the problematic stage, feeding primarily on fungi, algae, and decomposing material. Overwatering creates ideal conditions for these food sources, making the soil an attractive nursery. Dense potting mixes, especially those containing peat moss, retain moisture and promote gnat development.

In heavily infested containers, larvae may feed on fine root hairs and young roots, causing damage to seedlings and cuttings. Allowing the top one to two inches of soil to dry out between waterings is the most effective strategy for breaking the reproductive cycle. A dry soil surface is unsuitable for egg-laying and reduces the survival rate of newly hatched larvae.

Identifying High-Risk Plants

Certain types of plants are considered “high-risk” because their care requirements naturally align with the moist conditions that gnats favor. Plants requiring constantly moist soil create a welcoming habitat for egg-laying adults.

High-risk plants include those that suffer if the soil dries out fully. Examples are:

  • African violets and many types of ferns.
  • Carnivorous plants (e.g., Sundews and Butterworts) grown in saturated media to mimic boggy environments.
  • Newly started seedlings.
  • Plant cuttings kept under humidity domes or watered frequently.

For these vulnerable plants, managing the gnat population requires a dedicated approach to soil surface treatment. This is necessary because the plant’s health depends on maintaining underlying moisture.

Plants That Help Repel Gnats

Certain aromatic plants can be utilized as a natural method to deter gnats and other flying pests through companion planting. The strong scents emitted by these plants are often displeasing to insects, encouraging them to seek alternative locations for laying eggs.

Aromatic herbs like basil, rosemary, and mint are known to repel various flies, including fungus gnats, due to the volatile compounds they release. Marigolds are also effective deterrents, as their distinctive odor repels several flying pests. Even with these deterrents, the ultimate defense against fungus gnats is managing the water content of the potting medium.