Quick Summary
Those tiny flies hovering around your houseplants are fungus gnats. They thrive in moist soil and while the adults are mostly harmless, their larvae feed on roots and organic matter. The fix involves breaking their lifecycle with a combination of drying out the soil, trapping adults, and killing larvae. This guide covers six methods and a prevention plan.
You have seen them — those tiny, dark flies buzzing around your houseplants, hovering over the soil, and occasionally landing on your laptop screen. They are fungus gnats, and they are one of the most common (and most annoying) houseplant pests. The good news: they are not dangerous to you, and with a systematic approach, you can eliminate them completely.
What Are Fungus Gnats?
Fungus gnats are small, dark-bodied flies in the family Sciaridae, typically about 1/8 inch long. They look like tiny mosquitoes, but they do not bite. The adults are mostly a nuisance — they fly erratically, land on surfaces, and generally make your plant area feel unclean.
The real problem is below the soil surface. Female fungus gnats lay up to 200 eggs in moist topsoil, and the larvae that hatch feed on fungi, decaying organic matter, and — crucially — fine plant roots. In large numbers, larval damage can stunt growth and even kill young or small plants.
The Fungus Gnat Lifecycle
Understanding the lifecycle is key to breaking it:
- Eggs (4-6 days): Laid in clusters in the top inch of moist soil. Barely visible to the naked eye.
- Larvae (12-14 days): Tiny, translucent white worms with black heads. Live in the top 2-3 inches of soil. This is the stage that damages roots.
- Pupae (3-4 days): Transition stage in the soil.
- Adults (7-10 days): The flying gnats you see. They mate and lay eggs quickly, starting the cycle again.
The full lifecycle takes about 3-4 weeks, which means a small problem can become a major infestation in a month. It also means you need to maintain treatment for at least 4 weeks to ensure you have broken every generation.
Why Do Fungus Gnats Appear?
Fungus gnats are almost always linked to moisture. They show up because:
- The soil stays too moist — usually the main cause. Overwatering creates the damp organic environment that gnats need to reproduce.
- The potting mix is rich in organic matter — peat-heavy mixes retain moisture and provide food for larvae.
- Poor drainage — pots without drainage holes or saucers that hold standing water.
- New plants or soil — gnats can arrive in freshly purchased potting mix or hitchhike on new plants from the nursery.
6 Treatment Methods That Actually Work
1. Let the Soil Dry Out
This is the foundation of any fungus gnat treatment. Gnat eggs and larvae need moisture to survive. Let the top 2 inches of soil dry completely between waterings. For most plants, this is perfectly safe and does not cause stress. Bottom watering (placing the pot in a tray of water and letting the soil wick moisture up from below) keeps the top layer dry while still hydrating the roots.
2. Yellow Sticky Traps
Place yellow sticky traps near the soil surface and at the base of your plants. Fungus gnats are strongly attracted to yellow, and they stick to the adhesive surface. Sticky traps do not kill larvae, but they dramatically reduce the adult population and stop the laying of new eggs. Replace them every 1-2 weeks or when they are full.
Pro Tip
Cut sticky traps into smaller pieces and place one in each pot, stuck into the soil with a toothpick or the stake that comes with them. One standard trap can cover 3-4 pots this way.
3. Hydrogen Peroxide Soil Drench
Mix one part 3% hydrogen peroxide with four parts water. Water the soil thoroughly with this solution. It fizzes as it breaks down and can kill larvae it reaches in the soil, so repeat it to catch newly hatched larvae. Hydrogen peroxide breaks down into water and oxygen, and at this dilution it is generally considered gentle on most houseplants — try it on one plant first.
Apply this drench once a week for 3-4 weeks to catch every generation.
4. Mosquito Bits (BTI)
Mosquito Bits contain Bacillus thuringiensis israelensis (BTI), a naturally occurring bacteria that kills fungus gnat larvae but is harmless to plants, pets, and humans. Sprinkle the bits on the soil surface and water them in, or soak a tablespoon of bits in a gallon of water overnight and use that water for your plants.
BTI is widely considered the most effective single treatment for fungus gnats. The bacteria specifically targets the larvae in the soil, breaking the reproductive cycle.
5. Neem Oil Soil Drench
Mix neem oil (2 tablespoons per gallon of water, with a few drops of dish soap as an emulsifier) and water the soil with it. Neem disrupts the lifecycle of fungus gnat larvae by interfering with their ability to feed and develop. It also has mild fungicidal properties that reduce the soil fungi that larvae eat.
Apply every 1-2 weeks. Neem oil has a strong smell that fades after a day or two.
6. Sand or Gravel Top Dressing
Add a half-inch layer of coarse sand, fine gravel, or decorative pebbles on top of the soil in each pot. This creates a physical barrier that prevents adult gnats from reaching the soil to lay eggs and stops larvae from emerging as adults. It also helps the soil surface dry out faster.
This method works best as a preventive measure or in combination with other treatments. By itself, it does not kill existing larvae already in the soil.
The Best Strategy: Combine Methods
No single method is a silver bullet. The most effective approach uses multiple methods simultaneously:
- Place yellow sticky traps in every pot to catch adults
- Let the soil dry out more between waterings (or switch to bottom watering)
- Apply a BTI (Mosquito Bits) or hydrogen peroxide drench weekly for 4 weeks to kill larvae
- Add a sand top dressing to prevent re-infestation
Because the lifecycle takes about 3-4 weeks, keep the combined approach going for at least that long to catch every generation.
Warning
Treat ALL of your plants at the same time, not just the ones where you see gnats. Adults can fly between pots, and eggs may be in soil you have not noticed yet. Treating selectively just lets the infestation bounce back from untreated pots.
Prevention: Keeping Fungus Gnats Away for Good
- Do not overwater. Let the top inch of soil dry before watering. This alone prevents many fungus gnat problems.
- Use well-draining soil. Add perlite or pumice to your potting mix to improve drainage and reduce moisture retention.
- Quarantine new plants. Keep new plants away from your collection for 2-3 weeks and monitor for gnats before integrating them.
- Inspect new potting mix. Store bags of soil sealed tightly. If you see gnats in a new bag of soil, microwave small batches for 90 seconds or bake at 180 degrees Fahrenheit for 30 minutes to sterilize.
- Empty saucers. Do not let water sit in saucers or cache pots for more than 30 minutes after watering.
- Use mosquito bits preventively. Add a small sprinkle to each pot monthly during warm months to keep larvae from establishing.
See also: the short answer to How do you get rid of fungus gnats?
Frequently Asked Questions
Are fungus gnats harmful to my plants?
In small numbers, adults are harmless — just annoying. But large larval populations can damage roots, especially on seedlings, cuttings, and small plants. Established, healthy plants can usually tolerate moderate larval activity, but there is no reason to let it continue when treatment is straightforward.
Can fungus gnats come from the potting soil I bought?
Yes. This is one of the most common ways they enter a home. Potting soil, especially organic mixes stored in warehouses, can harbor gnat eggs and larvae. Keeping bags sealed and letting soil dry before use helps, as does the microwave or oven sterilization method.
Do coffee grounds prevent fungus gnats?
Coffee grounds are sometimes recommended, but they can actually make the problem worse. Fresh coffee grounds added to the soil surface increase organic matter and moisture retention — exactly what fungus gnats want. Skip this home remedy and use methods like BTI or sticky traps.
How do I tell fungus gnats apart from fruit flies?
Fungus gnats are darker (black or dark gray), smaller, and hover near soil. Fruit flies are tan or brown, slightly larger, and hover near food, fruit, and garbage. If the flies are coming from your plant pots and not your kitchen, they are fungus gnats.
Sources and further reading
- Fungus Gnats — UC Statewide IPM Program (University of California)
- Fungus gnats (sciarid flies) — Royal Horticultural Society
- Fungus Gnats in Houseplants — Iowa State University Extension and Outreach