How to Get Rid of Fruit Flies and Gnats in the House?

If you’re seeing tiny flies on your bathroom ceiling, near the sink, or in any damp corner of your home, you most likely have a drain fly infestation. These flies belong to the Psychodidae family and, although they may seem harmless, they reproduce so quickly that they can become a problem in just a few weeks.

How to Get Rid of Fruit Flies and Gnats in the House?

At DDS, we explain how to identify them, why they appear, which home remedies work, and how to get rid of them step by step. We also tell you when it’s best to call professionals and how to prevent them from coming back

What are fungus gnats?

Drain flies are small dipterans of the family Psychodidae, also known as sewer flies, bathroom flies, or moth flies. They are responsible for the small flies you see on the ceiling, shower wall, or above the kitchen sink.

How to identify them

To recognize them, look at these features:

  • Size: between 2 and 5 mm.
  • Chubby, hairy body, covered in small scales that give it a velvety appearance.
  • Wings at rest in the shape of a small heart, the most distinctive feature.
  • Dark gray or blackish color.
  • Clumsy and slow flight, in short jumps.
  • They perch on vertical surfaces (walls, ceilings, tiles) and remain still for hours.

If you see tiny insects with red eyes hovering around fruit or the trash can, they aren’t fungus gnats: they’re fruit flies ( Drosophila ). If they’re floating on flowerpots, they’re usually sciarid flies.

Life cycle and reproduction rate

The life cycle is very short, which is why an infestation can spread rapidly in less than a month. An adult female can lay up to 200 eggs per week on damp surfaces containing organic matter.

A larva hatches from the egg and lives inside the drain, feeding on the accumulated biofilm for 9-15 days. It then pupates, and after another 1-2 days, the adult emerges.

An adult lives between 2 and 4 weeks. During that time, it reproduces, so generations overlap and the population grows exponentially if you don’t contain the outbreak.

Drain fly, sewer fly, bathroom fly, or moth: are they the same?

Yes, these are different names for the same insect. Drain fly, pot fly, bathroom fly, moth fly, and sewer fly all refer to species of the Psychodidae family, primarily Clogmia albipunctata, which is common in Spanish homes. The name changes depending on the region or local custom, but the treatment is the same.

Where do the small flies in the house come from?

Damp flies coming out of the bathroom drain

The flies don’t come from outside: they come from inside, almost always from a spot with stagnant water and organic matter. These are the most common breeding grounds.

Bathroom, shower and sink drains

It’s the number one source. Inside the pipes of the sink, shower, or basin, a layer of biofilm accumulates, made up of soap scum, hair, food scraps, and grease. The larvae live within this layer, and the adults emerge through the drain. That’s why you see the gnats going in and out of the drain.

Manholes, spindles and downpipes

Organic matter from the entire building accumulates in communal drains, courtyard drainpipes, and poorly sealed downpipes.

If you live on the ground floor or at the bottom of a building, the infestation could originate from a shared drain and reappear even after a thorough cleaning of your bathroom.

However, it’s important to note that in these cases, it’s advisable to notify the building management so they can inspect the drains.

Air conditioning filters

Air conditioner filters and condensate trays accumulate water and dust, a perfect breeding ground for mosquito larvae. For example, this is a very common cause of fly infestations on the ceiling far from the bathroom or kitchen, without any obvious source.

Pots and damp soil

If you overwater, the soil in your pots can become a breeding ground for insects. The truth is, the flies that appear in pots are usually sciarids (Sciaridae), not psychodidae.

They look similar, but have leaf-shaped wings and move much faster. The treatment is different: in this case, what works is letting the soil dry out between waterings.

Small flies on the ceiling, walls and bathroom

small flies on the ceiling and wall of the bathroom

Finding small flies on the ceiling, shower walls, or bathroom tiles is the most common situation. It’s a frequent hygiene problem in gyms, locker rooms, and public restrooms due to the constant flow of people and the amount of organic matter that ends up in the drains.

The flies come in from the drain and land on vertical surfaces as soon as they find a quiet spot. That’s why you see them hovering on the ceiling for long periods: they’re resting between flights. They’re not attacking anything.

If you swat them but they reappear shortly after, you’re not eliminating the infestation: you’re just reducing the number of visible adults while the next generation continues to breed in the pipe. The only way to get rid of them is to clean the drain and break the larval cycle, not by chasing the adults.

Small flies in the kitchen

small kitchen flies

In the kitchen, drain flies often appear near the sink, the trash can, or the dishwasher. The cause is the same: organic matter trapped in the sink drain or the dishwasher filter.

Before applying anything, rule out fruit flies. Both are small, but fungus gnats have hairy bodies and slow flight; fruit flies are hairless, with red eyes, and fly quickly around bananas, tomatoes, or sugary residue.

If you confirm that the leaks are due to humidity, the plan is the same as in the bathroom: a thorough cleaning of the sink drain, vinegar and baking soda in the drainpipe, and a vinegar trap near the trash can. If you have a dishwasher, check the lower filter, which is a common and often overlooked source of the problem.

Do drain flies bite?

No. Drain flies of the subfamily Psychodinae (the ones you usually see in your home) do not bite. They do not have mouthparts adapted to pierce the skin, and their diet consists of decaying organic matter, not blood.

There is one exception worth noting: the Phlebotominae subfamily (sand flies) are indeed blood-feeding and can transmit leishmaniasis to people and dogs.

In Spain, these sand flies live mainly in rural and peri-urban areas of the central and southern regions, not inside urban homes. If you have a dog and live in an endemic area, check with your veterinarian about the leishmaniasis collar and spot-on treatment.

Are drain flies dangerous?

In most cases, they are a nuisance, not a serious risk; they don’t bite like black flies usually do.

Even so, it’s advisable to keep them under control because their presence indicates accumulated organic matter and they can act as a mechanical vector for bacteria.

Bacteria and fungi that can be carried

Because the larvae develop in the biofilm of the drain, the adults carry bacteria and fungi on their bodies as they fly around the house. They can contaminate surfaces and food if they land on them.

It doesn’t usually cause serious illness, but it can cause gastroenteritis or diarrhea through cross-contamination in poorly cleaned kitchens.

Phlebotominae subfamily and leishmaniasis

Only sand flies are vectors of leishmaniasis, a parasitic disease that primarily affects dogs and, less frequently, immunocompromised people. Don’t confuse them: sand flies live outside your home, not in your bathroom drain.

Risk of allergies and respiratory problems

In people with asthma or respiratory allergies, particles from mosquito remains (wings, scales) can act as an irritant. It’s not the primary cause of an allergy attack, but it’s advisable to ventilate the affected area well and clean the dust regularly.

Drain fly larvae: how to identify and eliminate them?

The larvae are the life stage that keeps the infestation alive. Although you’ll rarely see them, knowing about them helps you understand why remedies for adults only won’t work if you don’t reach the breeding grounds.

These are small worms, 4-10 mm long, light gray or transparent in color, with a segmented body and a dark dorsal stripe. They live within the drain biofilm, submerged in water, or trapped in organic debris.

They need constant moisture to survive, so they appear mainly in areas with infrequent drain use (guest sinks, rarely used showers).

To remove them:

  • Mechanically clean the pipe with a bottle brush: it removes the biofilm where they live.
  • Pour almost boiling water down the drain: it dehydrates and kills most of the larvae.
  • Apply baking soda (4 tablespoons) followed by white vinegar (1 cup). Let it fizz for 30 minutes and rinse with boiling water.
  • If the infestation persists, use a drain cleaning gel specifically designed for drains with larvae. It penetrates the biofilm without needing to dismantle the trap.

Important: Never pour insecticide spray down the drain. It won’t reach the larvae; it will dilute with the water, and you’ll only end up contaminating the sewer system.

How to get rid of flies in damp places?

To end the plague, follow this order:

  1. Identify the source of the infestation. Check all the drains in your house (sinks, shower, kitchen sink, bidet) and see which one has the most activity. Place a piece of adhesive tape over the drain at night and see how many flies are stuck to it in the morning. The one with the most is the main source.
  2. Clean the drain trap thoroughly. Unscrew the trap from the sink or basin and empty it into a bucket. Scrub it with detergent. This step will reduce the infestation the most in just a few hours.
  3. Apply the treatment: boiling water, baking soda and vinegar, or a biocidal pipe cleaner gel if the biofilm is thick.
  4. Place an apple cider vinegar and dish soap trap near the affected drain to capture emerging adults for 10-15 days.
  5. Repeat the cleaning every 3-5 days for 2-3 weeks, until the complete biological cycle is completed and the pupae that were already there are gone.
  6. When you haven’t seen any flies for 4-5 days, continue with preventative cleaning once a month.

Home remedies to get rid of damp flies

Home remedies for flies and humidity

Home remedies work when the infestation is just starting or as a complement to a deep cleaning. Don’t expect miracles if the biofilm is already established.

Boiling water in the drain

This is the simplest and one of the most effective remedies. Boil 2-3 liters of water and pour it down the drain in two batches, 5 minutes apart. It kills larvae and eggs through thermal shock. Repeat every 2-3 days for 2 weeks.

Baking soda and white vinegar

Pour 4 tablespoons of baking soda down the dry drain and immediately add 1 cup of white vinegar. Let it fizz for 30 minutes. Then, pour 1 liter of boiling water down the drain. The reaction attacks the biofilm where the larvae live and washes away the debris.

Apple cider vinegar and dishwasher trap

It’s the most effective trap against adults. Mix in a glass:

  • Half a glass of apple cider vinegar (white vinegar with a little sugar also works).
  • 3 drops of dish soap.
  • A pinch of sugar.

Place the glass near the affected drain. The smell attracts them, the dish soap breaks the surface tension, and the flies get trapped in the liquid. Change the mixture every 2-3 days.

Cider and citrus trap in a bottle

For larger infestations or multiple areas at once, a bottle trap works very well. You’ll need a plastic bottle cut in half, some cider or vinegar, and chopped citrus fruit.

Turn the top half upside down and fit it inside the base, forming a funnel. The flies are attracted by the smell and can’t find their way out.

Repellent aromatic plants

Some plants act as natural repellents because of their scent: mint, citronella, basil, rosemary, lemon balm, and eucalyptus. Place them in small pots in the bathroom or near the sink. They won’t kill the flies, but they will repel them. This works better as a preventative measure than as a treatment.

Does bleach work against drain flies?

Bleach kills bacteria and disinfects, but it’s ineffective against larvae because it dilutes too quickly when it comes into contact with the water in the drain. Furthermore, chlorine is neutralized when it mixes with organic matter.

It’s best to combine boiling water, baking soda, and vinegar with a mechanical brushing of the siphon. If you want to use bleach, do so after cleaning to disinfect surfaces, not to attack the breeding grounds.

Products to eliminate flies from dampness

When home remedies aren’t enough, there are commercial products that can help. These are the most useful:

Pipe cleaning gels

Biocidal gels for drains are poured directly into the pipe. They adhere to the walls and attack the biofilm where the larvae live. They are most effective for established infestations.

Spray insecticides for flying insects

They help reduce visible adult moths on ceilings and walls. Apply them at night, when they are most active, and always in a well-ventilated area. Useful as a supplement, not as a sole solution.

Adhesive traps

Yellow or white sticky traps that are placed near drains or on the ceiling. They capture adults for several days without the need for chemicals. They are a good option if you have children or pets at home.

Insecticidal lacquers for drains and joints

For communal drains or patio drains, applying an insecticidal lacquer under the cover and in the joints creates a lasting barrier. This is a more professional treatment, recommended if the source is outside your home.

How to prevent the appearance of gnats?

Prevention is easier than treatment. These habits prevent the infestation from returning.

Periodic cleaning of drains and manholes

Once a month, pour boiling water down all the drains in your house. Every 3-4 months, repeat the treatment with baking soda and vinegar. If you have a patio or terrace with a drain, check it every 6 months.

Bathroom and kitchen ventilation

Keeping the bathroom ventilated after showering and the kitchen aired out after cooking reduces humidity. If you have an interior bathroom without a window, running an extractor fan for 10-15 minutes does most of the work.

Sealing leaks and joints

Repair leaks in faucets, toilets, and pipes. Seal tile grout and deteriorated silicone in the shower or sink. Any area where water stagnates is a potential source of mold.

Mosquito nets and grilles

Install fine mesh screens over drains that aren’t used regularly (laundry room, patio drain) to prevent mosquitoes from going up or down. On windows and doors, a well-installed mosquito net prevents them from entering from the outside when there are drains nearby.

Professional treatment for drain flies

Professional fly drainage treatment

If the infestation is large, persists after several home treatments, or the source is in a communal drain, the most effective solution is fly fumigation. At DDS, we use a combined protocol that targets both adults and larvae.

  • Technical inspection to locate all sources, including those hidden in downpipes or false ceilings.
  • Nebulization of authorized biocides that eliminate adults in a few hours, without risk to people or pets if re-entry times are respected.
  • Specific larvicidal treatment in drains, spindles and siphons, formulated not to be diluted with running water.
  • Insecticidal lacquer on joints, frames and perimeter areas of the bathroom.
  • Monitoring plan for 4-6 weeks to ensure that the pest is stopped in the larval cycle.

In sectors such as hospitality, gyms, care homes, and the food industry, drain fly control is a mandatory part of the HACCP plan. If you manage a business, the most effective solution is to contract annual maintenance. Contact DDS, and we’ll help you!

Related Stories

Leave a Reply

Your email address will not be published. Required fields are marked *