How to Get Rid of Plant Flies in Your House

The tiny, dark insects flying around houseplants are often called “plant flies,” but they are almost always fungus gnats. Their presence signals an imbalance in the plant’s environment, usually due to overwatering. Addressing this issue requires a two-pronged approach that targets both the visible adults and the unseen larvae living in the soil. This strategy focuses on immediate relief and long-term prevention to effectively remove these pests.

Confirming the Identity of the Pest

Proper identification is the initial step, as various small flies require different treatment plans. The insect commonly mistaken for a fruit fly is the fungus gnat, which is typically dark gray or black and slender, resembling a miniature mosquito. These adult gnats measure approximately 1/8 inch long and possess long, delicate legs and antennae.

Fungus gnats are weak fliers, moving in a low, erratic pattern close to the soil surface. Fruit flies, in contrast, are tan-brown with red eyes, have a more robust body, and are found near fermenting matter in the kitchen. Shore flies are stronger fliers with a stouter body and five light spots on their wings, and their larvae feed on algae, not plant roots. Observing the insect’s size, color, and flight behavior near the potting mix confirms the presence of fungus gnats.

Targeting Adult Flies for Immediate Relief

While adult gnats are relatively harmless to the plant, they are the reproductive source, so their removal is necessary for population reduction. The most direct method for catching flying adults involves using bright yellow sticky traps. Fungus gnats are strongly attracted to the yellow color and become trapped on the adhesive surface, preventing them from laying eggs.

Place these traps horizontally or vertically near the soil surface of infested pots to maximize effectiveness against the low-flying pests. A simple, non-toxic liquid trap can also be constructed using a shallow dish of apple cider vinegar mixed with a few drops of liquid dish soap. The vinegar attracts the gnats, and the soap breaks the surface tension, causing them to drown. These trapping methods provide immediate relief by capturing the flying population, but they do not eliminate the eggs and larvae, which are the source of the infestation.

Eliminating Larvae and Modifying Soil Conditions

The larvae of the fungus gnat are the most destructive stage, feeding on fungi, organic matter, and tender plant roots in the top one to two inches of the potting mix. Eliminating the larvae is the only way to break the pest’s life cycle, which can be as short as three to four weeks in warm indoor conditions.

Chemical and Biological Treatments

One effective treatment involves drenching the soil with a diluted solution of hydrogen peroxide, typically mixing one part of 3% hydrogen peroxide with four parts of water. When this mixture is poured directly onto the soil, the oxygen rapidly released by the peroxide kills the larvae on contact. The solution quickly breaks down into harmless water and oxygen.

Alternatively, a biological control agent utilizing the naturally occurring bacterium Bacillus thuringiensis israelensis (Bti) can be applied through watering. Bti products contain protein toxins that are only activated when ingested by the larvae, disrupting their gut cells and causing them to die within days. This biopesticide is highly specific to the larvae of certain flies, including fungus gnats, and poses no risk to plants, humans, or pets.

Modifying Soil Conditions

Modifying the soil environment is equally important, as the larvae thrive only in consistently damp conditions. Overwatering is the single most common cause of fungus gnat infestations because the wet soil encourages the fungal growth the larvae consume.

Allowing the top two inches of the potting mix to dry out completely between waterings is a straightforward cultural adjustment that makes the environment inhospitable for egg-laying females and desiccates the existing larvae. Switching to a bottom-watering technique, where the pot absorbs water from below, helps keep the surface layer of the soil dry while still hydrating the plant’s roots. In severe cases, removing the top layer of contaminated soil and replacing it with fresh, sterile potting mix or a layer of sand can physically remove a large number of eggs and larvae. Implementing these cultural and biological controls simultaneously ensures that both the adults and the root-feeding larvae are targeted, providing a lasting solution to the plant fly problem.