What Is a Phorid Fly and How Do You Get Rid of Them?

Phorid flies are tiny, hump-backed flies in the family Phoridae, sometimes called scuttle flies because of the way adults run rapidly across surfaces rather than immediately taking flight. They breed in decaying organic matter, and in homes they almost always trace back to a hidden source of rotting material, often in drains, under appliances, or inside walls. Getting rid of them means finding and eliminating that source, because sprays alone rarely solve the problem. But phorid flies are far more than a household nuisance: with roughly 4,000 described species, they occupy some of the strangest ecological niches of any insect family, from fire ant colonies to sealed coffins buried underground.

How to Identify a Phorid Fly

Phorid flies are small, typically between one and three millimeters long, with a distinctly arched or humped thorax that gives them their characteristic profile. Their most reliable identification feature is a pair of enlarged hind femora (the upper segments of the back legs), which look thickened compared to other small flies. When disturbed on a surface, phorids tend to run in short, jerky dashes before flying, which is unusual behavior among flies and the reason they earned the nickname “scuttle flies.” Their wings have a simplified vein pattern, with strong veins near the leading edge and much weaker veins toward the back.

People commonly confuse phorid flies with fruit flies and drain flies. Fruit flies have prominent red or dark eyes and tend to hover around ripe fruit and fermented liquids. Drain flies are fuzzy, moth-like in appearance, and hold their broad, leaf-shaped wings flat like a roof. Phorid flies, by contrast, look sleeker, have a noticeable hunch, and are drawn to a wider and often more unpleasant range of organic material than fruit flies. If tiny flies are appearing in your kitchen or bathroom and you see no fruit or fermented liquid nearby, phorids should be your first suspect.

What Attracts Them Into Your Home

Phorid flies are attracted to moist, decomposing organic matter. In nature, that means animal carcasses, rotting vegetation, fungal growth, and feces. Inside a building, the usual breeding sites include:

  • Drain gunk: The layer of biofilm and trapped food particles lining kitchen and bathroom drains is one of the most common indoor breeding sites.
  • Broken sewer lines: A cracked or leaking sewer pipe under a slab foundation can create a hidden reservoir of organic sludge that sustains enormous phorid populations. This is one of the harder scenarios to diagnose because the breeding site is literally underground.
  • Decomposing matter under floors or behind walls: A dead rodent, forgotten pet waste, or water-damaged building materials can all serve as breeding media.
  • Garbage disposals and trash cans: Residue left in or around these is enough to attract egg-laying females.
  • Potted plants: Overwatered soil with decaying root material can occasionally support phorid development, though fungus gnats are more commonly associated with houseplant soil.

The key point is that phorid flies do not just wander in from outside and hang around. A persistent indoor population almost certainly means active breeding somewhere in the structure. Adults you see flying near windows or lights are the visible symptom; the larvae feeding in hidden organic material are the actual problem.

How Fast They Reproduce

Phorid fly development from egg to adult depends heavily on temperature and species. For Megaselia halterata, a common pest of mushroom farms, development from egg to adult takes roughly 20 to 22 days at warm temperatures around 25 to 27°C.1PubMed. Temperature-Dependent Development Modeling of the Phorid Fly Megaselia halterata (Wood) (Diptera: Phoridae) Another widespread species, Megaselia scalaris, has been studied across a range of temperatures from 23 to 36°C, with females developing slightly slower than males at each temperature.2PubMed. Developmental rate, size, and sexual dimorphism of Megaselia scalaris (Loew) (Diptera: Phoridae): its possible implications in forensic entomology In a warm home, you can expect a new generation of phorid flies roughly every three to four weeks, which is why a small problem can balloon quickly if the breeding source is not addressed.

A single female can lay dozens of eggs in or near the food source, and larvae go through several stages of growth before pupating. The pupae are small, hard-shelled, and often hidden in or near the breeding material, which means even if you clean visible adults, a wave of newly emerging flies can appear days later. This lag between cleaning and results is one of the most frustrating aspects of dealing with a phorid infestation.

How to Get Rid of Phorid Flies

The entire strategy for eliminating phorid flies comes down to one principle: find and remove the breeding source. Everything else is supplementary. Here is a practical approach, roughly in order of priority.

Locate the Source

Start with drains. Tape a piece of clear packing tape over each suspect drain overnight, sticky side down, leaving a small gap for airflow. If phorids are breeding in the drain, you will find adults stuck to the tape in the morning. Check kitchen drains, bathroom sinks, shower drains, floor drains in basements and laundry rooms, and any drain connected to a garbage disposal.

If drains come up clean, look for hidden organic material. Pull out the refrigerator and check beneath and behind it for spilled liquids or forgotten food. Inspect under dishwashers for pooled water or food debris. Check garbage cans and recycling bins for residues. Look for water damage or stains on walls and ceilings that might indicate a dead animal or rotting material inside the structure. In severe, persistent cases where no obvious source is found, a broken sewer pipe beneath the foundation is a real possibility and may require a plumber with a camera inspection tool.

Eliminate the Source

Once you find it, remove or clean it thoroughly. For drains, that means physically cleaning out the biofilm with a stiff brush and an enzyme-based drain cleaner rather than just pouring bleach down the pipe. Bleach kills what it contacts but does not dissolve the organic layer clinging to pipe walls. Enzyme or microbial drain treatments break down that organic buildup over time. For non-drain sources, the fix is removal: dispose of the rotting material, repair the leak, or in the case of a broken sewer line, call a professional.

Reduce the Adult Population While You Wait

After you clean the breeding source, adult flies already in the pupal stage will continue to emerge for a week or two. During this period, sticky traps (yellow sticky cards or commercial fly traps) placed near the former breeding area help catch emerging adults before they can lay new eggs. Apple cider vinegar traps that work well for fruit flies are less effective for phorid flies because phorids are less attracted to fermented liquids. Sticky traps or commercial fly light traps work better.

Insecticidal sprays can knock down visible adults, but they do not address larvae or pupae hidden in organic material, so spraying without source removal just creates a cycle of temporary relief followed by re-emergence. Insect growth regulators have shown effectiveness against phorid flies in research settings, with compounds like methoprene and pyriproxyfen dramatically reducing adult emergence in laboratory tests.3Florida Entomologist. Impact of Methoprene and Pyriproxyfen on Pseudacteon tricuspis (Diptera: Phoridae), a Parasitoid of the Red Imported Fire Ant, Solenopsis invicta (Hymenoptera: Formicidae) In practice, though, these chemicals are more commonly used in commercial pest management settings than in household applications.

Prevent Recurrence

Regular drain maintenance is the simplest preventive step. Flush drains with hot water periodically, use enzyme drain treatments monthly if you have had past issues, and avoid letting food debris accumulate in garbage disposals. Fix leaks promptly, since even a small, slow drip behind a wall creates the moist, organic-rich conditions phorids love. Keep garbage cans clean and take out trash before it sits long enough to attract egg-laying females.

When Phorid Flies Signal a Bigger Problem

A handful of phorid flies near a kitchen drain is a minor annoyance with a straightforward fix. But a large, persistent population that does not respond to drain cleaning can indicate something more serious. A broken sewer line under a concrete slab foundation is the classic scenario: raw sewage seeps into the soil beneath the house, creating an enormous and invisible breeding ground. In these cases, homeowners sometimes spend weeks or months trying surface-level solutions before a plumber identifies the underground pipe failure. If you have cleaned every drain, removed every potential organic source you can find, and phorids keep coming in large numbers, a sewer line inspection is worth the cost.

Phorid flies have also been documented infesting fluid-preserved museum specimens when preservation fluids evaporate and specimens begin to decompose, demonstrating just how effectively these flies find and exploit hidden organic material even in seemingly sealed environments.4CrossRef / Collection Forum. Scuttle fly infestation in deteriorating fluid-preserved specimens (Diptera: Phoridae: Megaselia scalaris) The lesson for homeowners is that phorid flies are remarkably good at reaching concealed sources of decay. If they are present, the organic material is there somewhere, even if you cannot see it.

Health Concerns and Myiasis

For most people, phorid flies are a sanitation nuisance, not a direct health threat. They do not bite, and they are not established vectors of any major human disease in the way mosquitoes or tsetse flies are. However, because they breed in unsanitary material including sewage, decaying flesh, and feces, they can mechanically carry bacteria to food surfaces and open wounds.

The more unusual medical concern is myiasis, a condition in which fly larvae infest living tissue. Megaselia scalaris has been documented causing wound myiasis in hospital patients, where the small, easily overlooked adults lay eggs in open wounds. Because phorid flies are so much smaller and less conspicuous than the larger blowflies typically associated with myiasis, they can go unnoticed around a wound site, potentially allowing larval infestation to develop before anyone realizes what has happened.5Journal of Medical Entomology. Not the Usual Suspects: Human Wound Myiasis by Phorids Cases of urogenital myiasis from phorid larvae have also been reported, including a case involving an otherwise healthy young man passing live Megaselia scalaris larvae in his urine.6PubMed Central. First Record of Urogenital Myiasis Induced by Megaselia scalaris (Diptera: Phoridae) from Iran These cases remain uncommon, but they underscore why phorid fly infestations in hospitals and healthcare facilities are treated as serious sanitation issues.

Phorid Flies on Mushroom Farms

Outside the home, one of the biggest economic impacts of phorid flies is on commercial mushroom cultivation. Megaselia halterata is a major pest of button mushroom crops worldwide. The flies are attracted to the composted substrate and fungal mycelium that mushrooms grow on, and their larvae feed directly on the mushroom tissue and growing medium. Research has shown that phorid populations above roughly 12,000 females per square meter of growing surface during the spawn-run phase significantly reduce mushroom yields, and two generations of flies can develop within a single cropping period.7Journal of Economic Entomology. Damage Threshold to a Commercial Mushroom by a Mushroom-Infesting Phorid (Diptera: Phoridae) Mushroom growers manage phorid flies through a combination of strict hygiene, physical barriers like screens and sealed growing rooms, and carefully timed insecticide applications, though the confined growing environments and short crop cycles make chemical control tricky.

The Coffin Fly and Forensic Science

Phorid flies hold a unique place in forensic entomology. While blowflies are usually the first insects to colonize a body after death, they need direct access to do so. In situations where a body is concealed indoors, wrapped, or buried underground, blowflies often cannot reach it. Phorid flies, by contrast, are uniquely capable of colonizing enclosed spaces and underground burial sites, making them sometimes the only insect evidence available to forensic investigators.8PubMed Central. Wings on concealed corpse: the forensic importance of scuttle flies (Diptera: Phoridae)

The species Conicera tibialis, commonly known as the coffin fly, is especially well documented in this role. These flies can penetrate through soil to reach buried remains, and they have been found breeding on corpses years after burial. One striking case involved a human coffin exhumed in central Spain after 18 years, inside which investigators found a large population of C. tibialis adults, including newly emerged individuals and empty pupal cases.9PubMed. The “coffin fly” Conicera tibialis (Diptera: Phoridae) breeding on buried human remains after a postmortem interval of 18 years That interval was far longer than previously known for the species, raising questions about how long insect-based estimates of time since death remain reliable for buried remains. For forensic scientists, phorid flies are sometimes the only biological clock available at a concealed death scene.

Biological Control of Fire Ants

Not all phorid flies are pests. Some species have been deliberately introduced as biological control agents. In the southern United States, the red imported fire ant (Solenopsis invicta) is one of the most damaging invasive insects, and researchers have turned to phorid flies from the fire ant’s native range in South America for help. Species in the genus Pseudacteon are parasitoids of fire ant workers: the female fly lays an egg inside an ant, and the developing larva eventually migrates into the ant’s head, where it feeds until the head literally falls off and the fly pupates inside it.

Pseudacteon tricuspis is a highly host-specific parasitoid of S. invicta workers that has been reared and released as a biological control agent in the United States.10Biological Control. Evaluating biological control of fire ants using phorid flies: effects on competitive interactions The flies do not just kill individual ants; their presence causes behavioral disruption across the colony, as worker ants stop foraging or become less aggressive when phorid flies are hovering nearby. Researchers have observed that even small numbers of phorid flies can alter the competitive dynamics between fire ants and native ant species, giving the natives an edge.11PubMed Central. Colony-level impacts of parasitoid flies on fire ants The long-term population-level impact on fire ants is still being evaluated, but the behavioral disruption alone is considered a meaningful benefit.

Life Inside Social Insect Nests

The fire ant parasitoids represent just one of many relationships phorid flies have evolved with social insects. Across the family Phoridae, numerous species have become specialized inhabitants of ant, termite, and bee colonies. Some are parasites, some are scavengers feeding on waste in the nest, and some have become so adapted to life inside colonies that they have lost their wings entirely and developed flattened, armored body shapes that help them resist attack by their hosts. A review of New World phorid species in the subfamily Aenigmatiinae documented convergent evolution of this flattened, limuloid body form across multiple lineages, suggesting it is a highly effective defensive adaptation for surviving inside the nests of aggressive social insects.12The Memoirs of the Entomological Society of Canada. CONVERGENT ADAPTATIONS IN PHORIDAE (DIPTERA) LIVING IN THE NESTS OF SOCIAL INSECTS: A REVIEW OF THE NEW WORLD AENIGMATIINAE

These nest-dwelling species are a far cry from the drain-breeding phorids that bother homeowners, but they illustrate something fundamental about this fly family: phorid flies are ecological generalists at the family level, with individual species that have become extreme specialists. One species thrives in your shower drain. Another decapitates fire ants. Another lives inside a termite mound wearing biological armor. Few insect families span quite this range of lifestyles, which is part of what makes phorids fascinating to entomologists even as they remain an annoyance to everyone else.