How Long Does a Drain Fly Live? Life Cycle Explained

An adult drain fly typically lives for about two to three weeks, but the full story of its lifespan starts well before the winged stage. From egg to death, a drain fly’s entire life cycle spans roughly three to four weeks under favorable conditions, with most of that time spent as a larva feeding on organic sludge inside pipes. The adult moth-like flies that hover near your bathroom mirror are actually the shortest-lived phase of a surprisingly efficient little organism.

Egg to Adult in Under a Month

A female drain fly lays her eggs in irregular masses of 30 to 100, depositing them on the moist organic film that coats the insides of drains, sewage pipes, and any surface where stagnant water meets decaying matter. The eggs are pale and elongated, often partially embedded in the slimy biofilm so they stay wet. Under warm, humid conditions, eggs hatch in roughly 32 to 48 hours. In cooler environments, hatching can stretch to several days.

The larval stage is where drain flies spend most of their lives. Larvae go through four developmental stages, called instars, over approximately 9 to 15 days. They are legless, translucent or grayish, and surprisingly tough. Their bodies can tolerate low-oxygen environments and even brief submersion, which makes the inside of a slow-draining pipe an ideal habitat. Larvae feed on the bacteria, fungi, and decomposing organic material that makes up drain biofilm. Research confirms that larvae of Clogmia albipunctata, the most common household drain fly species, actively consume biofilm and bacteria that cause odors, and their feeding can actually help unclog drains to some degree.1Entomologia Experimentalis et Applicata. Clogmia albipunctata Larvae Influence the Odour Dynamics of Rotting Organic Matter

After the final larval instar, the fly enters a pupal stage that lasts only about 20 to 40 hours. The pupa forms within the last larval skin, which hardens into a protective casing. Once the adult emerges, it has a lifespan of roughly 14 to 20 days. Adults are weak, erratic fliers and tend to rest on walls and ceilings near their breeding site. They do not bite. Female adults can begin laying eggs within days of emerging, which means a single drain can cycle through multiple overlapping generations simultaneously.

Why Temperature and Moisture Change Everything

Those numbers above assume warm, stable conditions, which is exactly what the inside of a bathroom drain provides. When temperatures drop below about 20°C (68°F), the life cycle slows considerably. Larval development can stretch well beyond two weeks, and egg hatching takes longer. In very cool or dry conditions, development may stall altogether. Conversely, in warm tropical climates or heated indoor environments, the cycle compresses. A population can turn over a generation in as little as three weeks from egg to egg.

Moisture is the non-negotiable factor. Drain fly eggs and larvae desiccate quickly in dry air. This is why you almost never see them in well-ventilated rooms with drains that flow freely. The flies thrive wherever organic slime stays consistently wet: floor drains that rarely get flushed, shower drains clogged with hair, the overflow holes of bathroom sinks, condensation pans under refrigerators, and the catch basins of sewage treatment plants. If the breeding surface dries out for even a day or two, larvae die and the population collapses at that site.

This sensitivity to moisture is also why drain fly infestations seem to appear overnight. The flies were already breeding in some neglected wet spot. You notice them only when the adult population becomes large enough that several are resting visibly on your walls at the same time. By that point, there may be hundreds of larvae developing inside the drain.

How Drain Flies Stay Put in Flowing Water

One puzzle about drain flies is how they breed successfully inside pipes that periodically get blasted with water. A study that examined their physical structure found that the adult fly’s body is only about 2.6 mm long and weighs roughly 1.9 mg, making it small enough that a single water droplet can be catastrophic.2Nature. How drain flies manage to almost never get washed away Yet drain flies have evolved a dense covering of hydrophobic hairs and scales on their wings and body that repels water on contact. When a water droplet hits them, it beads up and rolls off rather than pinning or drowning the fly. Their larvae, meanwhile, cling tightly to the biofilm layer using small hooks, and the gelatinous film itself acts as an anchor that flowing water slides over rather than strips away.

This is part of why simply running the tap is not enough to eliminate an infestation. The adult flies resting on dry surfaces above the waterline are safe from the flow, and the larvae embedded in biofilm below can survive brief surges. You need to physically remove or dissolve the organic film to cut off the breeding habitat, which is a point worth returning to when thinking about control.

What Drain Flies Actually Eat

Adults barely eat at all. They may sip moisture or nectar from nearby surfaces, but they do not feed in any meaningful way during their short adult lives. Their mouthparts are not designed for biting skin or piercing anything. The feeding that matters happens entirely during the larval stage.

Drain fly larvae are decomposers. They scrape and consume the slimy organic film inside pipes, which is a complex mixture of bacteria, algae, fungi, and decaying organic particles like soap residue, skin cells, hair, and food waste. In sewage treatment facilities, their larvae can be present in enormous numbers and contribute to breaking down organic waste. Their role as biofilm consumers means they occupy a somewhat unusual niche: they are genuinely performing a decomposition service, even if nobody appreciates it. Research on how larvae alter the volatile chemicals released by rotting organic material suggests their feeding changes the smell profile of decaying matter, reducing certain foul-smelling compounds.1Entomologia Experimentalis et Applicata. Clogmia albipunctata Larvae Influence the Odour Dynamics of Rotting Organic Matter

Getting Rid of Them When They Move In

Knowing the life cycle directly informs what works for control and what doesn’t. Because the entire population depends on a moist organic film as its breeding substrate, the most effective approach targets that film rather than the flying adults. Killing the adults you see on the wall with a swatter or spray is satisfying but does nothing to the larvae already developing in the drain. New adults will simply keep emerging.

The core steps for eliminating a household drain fly problem are straightforward:

  • Find the source: Place a strip of clear tape over suspect drains overnight, sticky side down. Emerging adults will stick to it, confirming which drain is producing flies.
  • Clean the drain mechanically: Use a stiff brush, a drain snake, or a pipe brush to physically scrub the inside walls of the pipe. The goal is to remove the organic film where eggs and larvae live. Pouring boiling water or enzyme-based drain cleaners can help dissolve residual buildup.
  • Eliminate standing moisture: Fix leaky pipes, clean condensation trays, and flush rarely used drains regularly. A drain that flows daily is far less hospitable to drain flies than one that sits idle.
  • Be patient for two to three weeks: Even after thorough cleaning, pupae that were in protected crevices may still produce a final wave of adults. Consistent cleaning over a full life-cycle period ensures you catch the stragglers.

Chemical insecticides are largely unnecessary for household infestations and can be counterproductive. Bleach poured down a drain will kill some larvae on contact but does not penetrate the biofilm layer effectively, and it runs through the pipe too quickly to provide lasting control. Enzyme or bacterial drain treatments are better because they break down the organic film itself, depriving larvae of both food and habitat.

Are Drain Flies a Health Risk?

For most people in a normal household, drain flies are a nuisance rather than a health hazard. They do not bite, they do not sting, and they do not transmit diseases through direct contact in the way mosquitoes or ticks do. But the story gets more nuanced in specific settings.

Drain flies thrive in sewage environments, and their bodies can carry bacteria picked up from whatever they have been crawling through. A hospital-based study found that moth flies bred in the sewage system and then moved into clinical areas, carrying biofilm and multidrug-resistant bacteria on their feet.3PubMed Central. Spread of Multidrug-Resistant Bacteria by Moth Flies from Hospital Waste Water System More recent microbiome research on drain flies collected from different environments found that the flies carry location-specific environmental bacteria, and some of the organisms identified included genera of potential clinical concern, such as Mycobacterium and Acinetobacter baumannii.4PubMed. Distinct microbial communities of drain flies (Clogmia albipunctata) across sites with differing human influence In a hospital or food-preparation facility, this bacterial hitchhiking raises legitimate infection-control concerns. In a typical home bathroom, the risk is minimal but worth knowing about, especially if anyone in the household is immunocompromised.

There is also a respiratory angle. Drain flies shed tiny scales and hair fragments from their bodies, and in facilities where flies are present in large numbers, such as sewage treatment plants, workers can develop allergic reactions. A documented case found that a sewage plant worker developed occupational asthma triggered by sewer fly exposure, confirmed through skin testing and bronchial challenge.5PubMed. Occupational asthma caused by sewer flies For the average person dealing with a few flies in their bathroom, allergic asthma from drain flies is not a realistic concern. But it illustrates why large-scale infestations in workplaces are taken seriously.

The Myiasis Question

If you search online for drain fly health risks, you will likely encounter alarming claims about drain fly larvae infesting human tissue, a condition called myiasis. There have been case reports over the years, including one from Egypt describing a patient who passed fourth-instar Clogmia albipunctata larvae in a stool sample and presented with abdominal pain, bloating, and diarrhea.6Journal of Infection and Public Health. Human intestinal myiasis caused by Clogmia albipunctata larvae (Diptera: Psychodidae): First report in Egypt Cases like this exist in the medical literature and understandably cause worry.

However, a systematic review of published myiasis cases linked to psychodid flies concluded that most reported cases are probably incidental findings or pseudomyiasis rather than true infestations. The basic biology of drain fly larvae makes survival in the human gut or urogenital tract unlikely: their mouthparts are designed for scraping biofilm, not burrowing into tissue, and they need access to air to breathe. The review recommended more careful clinical evaluation and reporting to avoid disease misclassification and unnecessary treatment.7PubMed Central. Psychodid flies and their implicated role in human myiasis and pseudomyiasis In plain terms, a larva might end up in a stool sample through contamination of the collection container rather than having actually lived inside someone’s body. True parasitic infestation by drain fly larvae is, at most, extraordinarily rare.

Why They Keep Coming Back

One of the most frustrating things about drain flies is their ability to reappear weeks after you thought you solved the problem. The life cycle itself explains much of this. Because eggs, larvae, pupae, and adults can all be present simultaneously in the same drain, a single cleaning may miss one stage. A cluster of eggs tucked into a crevice that the brush could not reach hatches a few days later and starts the cycle again. And because a female can lay 100 or more eggs per batch and may oviposit multiple times during her adult life, even a small surviving population rebuilds quickly.

Reinfestations also happen because the flies can breed in locations people overlook. The obvious suspects are bathroom and kitchen sink drains, but drain flies also colonize floor drains in basements and garages, the drip pans beneath air conditioners or refrigerators, sump pump pits, damaged sewer lines with leaking joints, and the gaps around loose toilet bases where water seeps and organic film accumulates. In apartment buildings, flies breeding in a shared sewer line can emerge from any connected drain in the building, which means one unit’s problem can become another’s. Solving a persistent infestation sometimes requires inspecting every potential wet-film site in the home, not just the drain you first noticed them near.

Outdoor breeding sites matter too. Drain flies breed readily in the organic sludge inside storm drains, compost bins, birdbaths with stagnant water, and air-conditioning condensate lines that terminate outside. Flies breeding outdoors can enter through open windows or cracks around pipes. If your indoor drains are clean but you are still seeing flies, the source may be outside the building entirely.

Drain Flies in Sewage Treatment Facilities

Household infestations involve handfuls of flies. Sewage treatment plants deal with them on an entirely different scale. The warm, perpetually moist, organic-rich environment of a wastewater facility is essentially paradise for drain fly larvae. Populations can number in the millions across a single plant, and the adults can form visible clouds near trickling filters and sludge beds.

From an operational standpoint, drain flies are a mixed presence. Their larvae contribute to the breakdown of organic solids, which is the purpose of secondary treatment. But excessive populations create problems for workers, both as a simple nuisance and as a respiratory risk from airborne scales and fragments, as the occupational asthma case mentioned earlier demonstrates.5PubMed. Occupational asthma caused by sewer flies In hospitals where wastewater systems connect directly to clinical spaces, the concern shifts to infection control, since flies emerging from contaminated sewage can physically transport drug-resistant bacteria into patient care areas.3PubMed Central. Spread of Multidrug-Resistant Bacteria by Moth Flies from Hospital Waste Water System Managing drain fly populations in these settings typically involves structural barriers like fine-mesh screens on drains, regular cleaning of biofilm from pipes and traps, and in some cases biological control agents that target the larvae.

For the average homeowner, the takeaway from the industrial-scale situation is simple: drain flies are specialists in wet organic decay, and they will find and exploit any neglected source of it. The life cycle is short, reproduction is fast, and the larvae are resilient. A proactive approach that keeps drains flowing and biofilm-free will make your home far less attractive to a fly looking for a place to lay her eggs.