A “drain worm” is almost always the larva of a drain fly, a small moth-like insect in the family Psychodidae that breeds in the slimy organic film lining the inside of sink, shower, and floor drains. These pale, wriggling larvae are not true worms at all but immature insects, typically less than a centimeter long, that feed on the bacteria and decaying matter caked onto pipe walls. Occasionally the term also gets applied to actual aquatic worms that show up in drains, but the drain fly larva is by far the most common culprit in homes. Getting rid of them is less about killing the larvae directly and more about destroying the habitat they depend on.
What You Are Actually Looking At
Drain fly larvae are translucent to grayish, slightly flattened, and segmented. Under a bright light they look like tiny maggots with a faintly dark head. They move slowly and tend to cling to wet surfaces rather than swim freely. The adults they become are equally distinctive: small flies, roughly three to five millimeters long, with broad leaf-shaped wings covered in fine hairs that give them a fuzzy, moth-like appearance. They are weak fliers and tend to rest on walls and ceilings near the infested drain, often spotted in bathrooms or kitchens in the evening.
The two species you are most likely to encounter in a household are Clogmia albipunctata and Psychoda alternata. Both thrive in the same conditions: stagnant or slow-moving water and a thick layer of organic sludge. Sewage treatment workers know Psychoda species well because they colonize filter beds in huge numbers. In one controlled study, researchers found that Psychoda larvae rapidly colonized decaying organic material, confirming that rich organic substrates are what draw these insects in and sustain their development.1Springer Link / Acta Parasitologica. Colonization of Rabbit Carcasses by Drain Fly Larvae, Psychoda sp. (Diptera: Psychodidae): The First Report The same principle applies in your pipes: wherever rotting organic matter builds up, drain fly larvae have a food source.
When the “Worm” Is Actually a Worm
In a small number of cases, what you pull out of a drain really is a worm rather than an insect larva. Tubificid worms, sometimes called sludge worms, are thin, reddish or pinkish aquatic worms that live in sediment-rich water. They are segmented and can range considerably in size. A morphological study of tubificid genera found that body segments in common species range from around 34 to 120, depending on the genus, and the worms have a simple cylindrical body shape with bilateral symmetry.2Asian Journal of Medical and Biological Research. Identification of genera of tubificid worms in Bangladesh through morphological study If what you are seeing is bright red, threadlike, and actively wriggling in standing water, you may be dealing with these rather than drain fly larvae.
Tubificid worms can enter residential plumbing from municipal water supplies when sediment builds up in aging pipes or when water pressure drops allow backflow. They are not parasitic and pose no direct health risk, but their presence suggests a water-quality issue worth reporting to your water utility. The removal strategy is different from drain flies: flushing the lines and addressing the source of sediment matters more than scrubbing biofilm.
Why Drains Become Breeding Grounds
The inside of a drain that has not been cleaned in a while develops a gelatinous coating of bacteria, fungi, and decomposing organic material: soap scum, skin cells, hair, food particles, and grease. This biofilm is the entire ecosystem drain fly larvae depend on. The female fly lands near the drain opening, detects moisture and organic odors rising from below, and lays eggs directly on or near the film. Larvae hatch within a couple of days and immediately begin feeding. The full life cycle from egg to adult can be as short as eight to twenty-four days in warm conditions, which is why a small problem can become a visible infestation quickly.
Drains that see infrequent use are the worst offenders. A guest bathroom, a basement floor drain, or a utility sink that only runs once a week gives biofilm time to thicken undisturbed. But even busy kitchen sinks can harbor larvae if the garbage disposal area or the overflow hole accumulates buildup. Shower drains are another common hot spot because the combination of warm water, soap, and hair creates an ideal growth medium for the microbial film.
Are They Harmful
For most people, drain flies and their larvae are a nuisance, not a health threat. They do not bite, they do not transmit diseases through casual contact, and they are not attracted to food the way house flies are. That said, there are two health concerns worth knowing about.
The first is allergic sensitization. In occupational settings like sewage treatment plants, prolonged exposure to large populations of drain flies can trigger allergic asthma. A documented case involved a sewage plant worker who developed immediate-type hypersensitivity to Psychoda alternata, confirmed through skin tests, blood work, and a bronchial challenge test.3PubMed. Occupational asthma caused by sewer flies This level of exposure is unlikely in a home with a few flies around one drain, but people who already have insect-related allergies or asthma should be aware that chronic infestations could contribute to respiratory symptoms.
The second concern is intestinal myiasis, a rare condition in which drain fly larvae are accidentally ingested and survive temporarily in the gastrointestinal tract. A case report described a patient who presented with abdominal pain, bloating, and alternating diarrhea and constipation, with Clogmia albipunctata larvae recovered from stool samples.4Journal of Infection and Public Health. Human intestinal myiasis caused by Clogmia albipunctata larvae (Diptera: Psychodidae): First report in Egypt This is genuinely uncommon and typically resolves once the larvae are expelled, but it underscores why letting a drain fly population grow unchecked is not just an aesthetic problem.
How to Get Rid of Them
The single most effective step is removing the biofilm. Without that organic layer, the larvae have nothing to eat and the adults have nowhere to lay viable eggs. Everything else, including traps, sprays, and chemical drain cleaners, is a secondary measure that will not solve the problem if the biofilm remains.
Mechanical Cleaning
Start by removing the drain cover and physically scrubbing the inside of the pipe as far down as you can reach. A stiff bottle brush or a drain brush designed for the purpose works well. Push and twist the brush to break up the slimy film clinging to the pipe walls. Follow with a thorough flush of hot water. This is unglamorous work, but it removes more biofilm in five minutes than any liquid product will dissolve in an hour.
For shower and tub drains, pull out any hair clog first. Hair tangles act as scaffolding for biofilm, giving it something to anchor to and making it thicker and harder to dislodge. A simple plastic drain snake or a bent wire coat hanger can pull out the bulk of the clog before you start scrubbing.
Gel-Based Drain Cleaners
Commercial drain-cleaning gels marketed specifically for drain flies contain surfactants and sometimes enzymes that coat the pipe walls and break down the organic film over several hours. They are more effective than liquid bleach for this purpose because they cling to vertical surfaces inside the pipe rather than running straight through. Apply them according to the label directions, usually at night when the drain will not be used for several hours, and flush with hot water in the morning. Expect to repeat for several nights running, since eggs already laid in the remaining film will continue to hatch for a week or more.
Boiling Water and Household Solutions
A pot of boiling water poured slowly down the drain kills larvae on contact and softens biofilm. It is a reasonable first step but rarely sufficient on its own because the water passes through too quickly to dissolve a thick buildup. Some people follow with a baking soda and vinegar treatment: half a cup of baking soda pushed into the drain, then half a cup of white vinegar, left to fizz for fifteen to thirty minutes before flushing with hot water. The fizzing action helps loosen organic deposits, though calling it a replacement for scrubbing would be generous. Think of it as a supplement.
Bleach is sometimes recommended, and while it does kill larvae, it has limited effect on established biofilm. The slime layer is surprisingly resistant to chemical disinfectants because the biofilm matrix itself acts as a shield for the microorganisms and organic matter embedded within it.
The Biofilm Problem and Why It Resists Easy Fixes
Biofilm is not just a thin coat of grime. It is a structured microbial community encased in a self-produced matrix of polysaccharides and proteins that clings tenaciously to surfaces. This is the same type of fouling that plagues medical devices and industrial piping, and it is notoriously difficult to remove with chemical disinfectants alone. Research on bacterial biofilms found that a complex mixture of polysaccharide-degrading enzymes could remove biofilm from steel and polypropylene surfaces, but the enzymes alone did not kill the bacteria; combining them with oxidative agents was needed for both removal and disinfection.5PubMed Central. Enzymatic removal and disinfection of bacterial biofilms
A separate study tested a multi-enzyme preparation derived from a common fungus and found it could remove the viscous slime that forms naturally in kitchen drainage pipes, suggesting that enzyme-based products have real potential as anti-biofilm agents in household plumbing.6PubMed Central. A novel multi-enzyme preparation produced from Aspergillus niger using biodegradable waste: a possible option to combat heterogeneous biofilms This is the science behind those enzyme-based drain maintenance products you see at hardware stores. They work, but they work slowly, often requiring repeated applications over days or weeks. For an active infestation, mechanical scrubbing followed by enzyme treatments to prevent regrowth is a better strategy than enzymes alone.
Biological Control in Larger Systems
In sewage treatment facilities and large commercial buildings where drain fly populations can number in the thousands, a biological larvicide based on the bacterium Bacillus thuringiensis var. israelensis (Bti) has been used effectively. Bti produces toxins that are lethal to the larvae of drain flies and related species when ingested but are harmless to humans, pets, and most other organisms. A pilot-scale trial applied a commercial Bti formulation to sewage filter beds and found it killed nearly all Psychoda severini larvae present without significantly reducing the efficiency of the sewage treatment process.7Water Research. Control of sewage filter flies using Bacillus thuringiensis var. israelensis—I. Acute toxicity tests and pilot scale trial
Bti is available to consumers in the form of granules and liquid concentrates sold for mosquito and gnat control. Some people apply it to drains as a larvicide, and while it can kill drain fly larvae, it does nothing about the biofilm itself. Used on its own in a home, it is a bit like treating the symptom and ignoring the cause. Where it shines is in floor drains, sump pits, or other large standing-water areas where scrubbing is impractical and the water sits long enough for the Bti to remain in contact with feeding larvae.
Preventing Them From Coming Back
Once you have cleared an infestation, keeping drains free of heavy biofilm buildup is the only reliable prevention. A few habits make a real difference:
- Run water regularly: Drains that sit unused for weeks dry out and allow biofilm to harden and thicken. Running water through every drain in your home at least once a week keeps the inside of the pipe flushed.
- Use drain screens: A mesh screen or hair catcher over shower and tub drains stops the organic debris that forms the scaffold for biofilm from accumulating in the first place.
- Flush with hot water: After doing dishes or using the sink heavily, run hot water for thirty seconds to help dissolve grease and soap residue before it has a chance to coat the pipe.
- Clean overflow holes: Bathroom sinks have a small overflow opening near the top of the basin. Biofilm builds up inside this channel and is almost never cleaned. A small brush or a pipe cleaner pushed into the overflow hole periodically can eliminate a hidden breeding site.
If you live in a warm, humid climate, drain flies are more persistent because conditions outside and inside your plumbing favor rapid reproduction year-round. In temperate regions, infestations tend to peak in late summer and early fall when indoor humidity is highest and microbial growth in pipes is most active.
Misidentified Pests and When to Call a Professional
Not every small fly near your sink is a drain fly. Fungus gnats look superficially similar but breed in damp soil, not drains; if you have houseplants nearby, they are a more likely source. Phorid flies, also called humpbacked flies, breed in decaying organic matter and can infest drains, but they also colonize broken sewer lines, dead animals in wall voids, and other hidden organic sources. If you have thoroughly cleaned every drain and the flies persist, the breeding site may not be in the drain at all. A cracked sewer pipe under a slab foundation, a slow leak wetting a wall cavity, or a forgotten condensate drip pan under an HVAC unit can all produce the same kind of biofilm that drain flies exploit.
A pest-control professional can help when the source is not obvious. One diagnostic trick they use is taping a clear plastic cup upside down over a suspect drain overnight, with a thin layer of petroleum jelly on the inside. If adult flies are emerging from that drain, they will be stuck to the cup in the morning. Testing multiple drains this way pinpoints which ones are active breeding sites and which are innocent bystanders. It is a simple enough technique to try yourself before paying for a service call, and it saves you from scrubbing drains that are not actually part of the problem.
Drain Flies in Apartment Buildings and Shared Plumbing
Drain fly problems in multi-unit buildings are more frustrating because the source may not be in your unit at all. Shared waste stacks, unused drains in vacant units, and building-wide plumbing issues can push flies into your space even if your own drains are spotless. If you clean thoroughly and still see new adults appearing daily, the infestation is likely being sustained somewhere else in the plumbing network. In that situation, building management needs to address the problem system-wide, which usually means having a plumber inspect and clean shared lines and ensuring that p-traps in all units remain filled with water. A dry p-trap in an empty apartment one floor up is enough to give drain flies a highway into the building.
Landlords are sometimes skeptical that a few small flies constitute a real maintenance issue, but persistent drain fly presence in a building usually indicates organic buildup in shared plumbing that will only worsen over time. Framing it as a plumbing maintenance concern rather than a pest complaint tends to get a faster response.