éliminer les mouches de terreau et drain

How to Get Rid of Fungus Gnats and Drain Flies: Natural Solutions and Effective Treatments

Have you noticed tiny black insects flitting around your houseplants or near your drains? You're most likely dealing with an invasion of fungus gnats in the home or, worse yet, the dreaded drain flies. These little pests have an annoying habit of taking over our living spaces as soon as the warm weather arrives or moisture sets in.

Faced with this irritating situation, one question comes up a lot: are drain flies dangerous? Rest assured, these insects don't bite and don't transmit serious diseases to humans. That said, they happily carry bacteria, harm the health of your plants, and ruin the look of your home.

If you're sick of seeing these insects, knowing how to get rid of fungus gnats becomes your top priority. Whether you're looking for an effective fungus gnat treatment or a natural way to get rid of drain flies, you're in the right place. Check out our complete guide to wiping out these invaders and keeping your home clean for good.

Fungus gnats or drain flies: how to tell them apart?

To get rid of the pests invading your home effectively, you first need to know what you're dealing with. We tend to lump all these little insects together under the catch-all name "gnats", but the fungus gnat (sciarid fly) and the drain fly (moth fly) are two very different species that don't nest in the same place and don't cause the same damage.

Here's how to investigate at home to correctly identify your invader:

The fungus gnat and its larvae (sciarid flies)

If you see tiny black gnats rising in a cloud as soon as you touch or water your houseplants, there's no doubt about it: you're dealing with fungus gnats. Drawn to decomposing organic matter, these insects love to lay their eggs in constantly damp potting soil or poorly drained mix.

The real problem isn't the adults, but the fungus gnat larvae. Hidden in the soil, these translucent, voracious larvae feed on the fine root hairs of your plants. Soil that's too wet, combined with a mild indoor temperature, speeds up their life cycle, quickly turning your plant pots into a gnat factory. Over time, the larvae weaken the plant, stunt its growth, and can even kill it if nothing is done.

how to get rid of fungus gnats

The drain fly or moth fly

If, on the other hand, your gnats have a stockier body, fuzzy, heart-shaped wings (resembling tiny moths), and they linger on the walls of your shower, tub, or kitchen sink, then you're looking at the drain fly, also known as the moth fly.

Unlike its plant-dwelling cousin, the drain fly lays its eggs directly in the biological film (the "biofilm") that lines the inside of your pipes. This thin, slimy layer, formed from a buildup of food residue, grease, soap, and hair, is the ideal pantry for their larvae. They love standing water and the darkness of pipes, and they take advantage of the smallest opening to come out and take over your wet rooms.

how to get rid of drain flies

How to get rid of fungus gnats in potting soil?

If your plant pots have become the headquarters for these pests, don't panic. To successfully get rid of fungus gnats, you need to work on two fronts: eliminate the flying adults and destroy the larvae hidden in the soil.

Here are the most effective and eco-friendly solutions for a natural fungus gnat treatment, without filling your home with toxic chemicals.

Natural remedies to wipe out larvae and adults

  • Nematodes (the most effective biological control): For a hard-hitting treatment, using nematodes against fungus gnats is hands down the best solution on the market. Nematodes (usually the Steinernema feltiae species) are microscopic worms invisible to the naked eye. You simply dilute them in your watering can. Once in the soil, they actively hunt down the fungus gnat larvae, enter them, and parasitize them until they die. Completely harmless to people, pets, and plants, they disappear naturally once there are no more larvae to feed on.
  • Coffee grounds (grandma's trick): If you're looking for a cheap, instant fix, fungus gnats and coffee grounds get along nicely... in your favor! Coffee grounds act as a natural repellent thanks to their strong smell and texture. Let them dry out thoroughly (very important to avoid mold), then sprinkle them in a thin layer over the surface of the potting soil. Not only does this deter the egg-laying females, it also gives your plant a light feed.
  • Bottom watering (the free mechanical method): Since fungus gnats absolutely need a damp surface to lay their eggs, change the way you water. Pour the water straight into the saucer or reservoir for a few weeks. This keeps the top of the pot completely dry, instantly breaking the gnats' breeding cycle.

Should you use a conventional insecticide?

Faced with a big infestation, you're sometimes tempted to run out and buy a fungus gnat spray from the store. But these chemical products saturate the air in your living room or bedroom with toxic molecules and often only fix the problem temporarily. Always go for the natural and biological alternatives above, or use yellow sticky traps to catch the adults as a complement.

Note: Once you've applied the treatments, the most important thing is to keep the leftover moisture from your plants from attracting new invaders from outside. Below, we'll see how to secure your windows for the long term.

Drain flies: a natural treatment to clean your pipes

If your flies aren't coming from your plants but escaping from your kitchen sink, bathroom sink, or shower drain, you need to switch targets. To get rid of drain flies, insecticide sprays won't help you: the heart of the problem is inside the plumbing itself.

To clean your pipes deeply and dislodge the larvae, there's no need to reach for corrosive chemicals that damage your pipes and pollute groundwater. There's a natural drain fly treatment that's highly effective, cheap, and eco-friendly, and that you can do yourself.

The natural recipe to disinfect your traps

To destroy the organic film where the eggs and larvae of the drain fly nest, use this simple method once a week until they're completely gone:

  1. The heat shock: Start by pouring a kettle of boiling water straight down the drain to soften the grease and eliminate some of the larvae at the surface.
  2. The fizzing reaction: Then pour in two tablespoons of baking soda, followed by a large glass of white vinegar. The chemical reaction will foam up intensely: this is completely normal, and the foam mechanically lifts away the residue caked onto the pipe walls.
  3. The resting time: Let the mixture work for at least 30 minutes (ideally do this in the evening before bed so it works overnight).
  4. The rinse: Rinse again generously with boiling water.

The crucial importance of drying things out

Cleaning the pipes removes the breeding ground, but the drain fly stays irresistibly drawn to the smell of stagnant moisture and water. To get rid of these insects for good, the only biological solution is to drastically reduce the humidity in your wet rooms. So it becomes essential to ventilate your kitchen and bathroom as much as possible.

But how do you throw your windows wide open to let the moisture out without turning your home into a hotel for mosquitoes and flies? That's exactly what we'll look at next.

How to prevent them from appearing and protect your home for good?

Have you cleaned your plants' soil and disinfected your pipes? That's a great start. Still, the risk of them coming back is high. Gnats, flies, and mosquitoes have a highly developed sense of smell: the leftover moisture from a shower or the fresh soil of a houseplant will always attract them from outside.

To break this vicious cycle, you need to change a few habits and, above all, secure the entry points to your home.

1. Install a Moskera magnetic screen

To get rid of moisture in the kitchen and bathroom for good, or to dry out the surface of your plants' soil, all the experts agree: you need to ventilate daily. But throwing your windows wide open in summer or fall often means opening the door to every pest in the neighborhood.

The ideal solution? Install an impassable physical barrier. Moskera magnetic screens were designed specifically to solve this problem, without the drawbacks of traditional systems:

  • Ventilate with total peace of mind: You can open your wet rooms and living room for hours to let the moisture out. By fitting your openings with a magnetic magnetic window screen, the ultra-fine mesh blocks even the smallest insects from outside (fungus gnats, tiger mosquitoes, flies), while letting fresh air flow through perfectly.
  • No drilling, no tools: Unlike classic roll-up systems that require drilling into your frames, the Moskera screen installs in minutes using adhesive strips and high-performance magnets. Whether you need a magnetic screen door to protect an entrance, or a large-format solution to secure a magnetic screen for sliding glass doors, our system adapts without damaging your frames. It's the perfect solution for homeowners and renters alike.
  • Smooth, automatic passage: Thanks to the magnetic center closure, the mesh opens with a simple motion when you need to step outside (balcony, patio, yard) and closes instantly and tightly behind you, leaving no gap for invaders.

Investing in a Moskera screen means guaranteeing yourself lasting comfort at home and long-term savings on insecticides and other chemicals.

2. Water your houseplants less often

To starve out the future fungus gnat larvae, follow the golden rule: let the top inch of soil dry out before watering again. Also remember to empty the saucers under your pots regularly, about fifteen minutes after watering. If water sits there, the gnats are guaranteed to come back.

3. Maintain your pipes and traps regularly

Don't let the biological film settle back into your pipes. Get into the habit of pouring a coffee residue or your baking-soda-and-vinegar mix into your household drains once every two weeks, even if you don't see a single insect. Preventive maintenance is ten times more effective than a shock treatment.

4. Seal cracks and worn caulk

Drain flies love darkness and damp crevices. Inspect the silicone caulk around your tub, sink, and shower pan. If the caulk is cracked, peeling, or showing black mold spots, remove it and apply a fresh, watertight seal to eliminate these potential hideouts.

Protect your home today!

Don't let the heat and the insects ruin your life. With Moskera magnetic screens, keep your bathroom and kitchen free of flies, mosquitoes, and moths for good.

Moskera custom magnetic screens

Shop our magnetic screens

Back to blog