Skip to content
The Bug Identifier

Phorid flies

Phorid Flies: How to Identify Them, Find the Source and Get Rid of Them

Tiny flies running across the counter that come back after every cleaning? They are probably phorid flies. Here is how to be sure, how to track down where they breed, and what actually ends them.

What are phorid flies?

Phorid flies are small flies in the family Phoridae, about 1/8 inch (3 mm) long, with a humped back and a habit of running instead of flying. People also call them scuttle flies, humpbacked flies and coffin flies. Across the whole family, adults range from 1/64 to 1/4 inch (0.5 to 6 mm), so some are barely visible.

Each nickname describes something real, as Mississippi State Extension explains. “Scuttle fly” comes from the quick, jerky way they run. “Humpbacked fly” describes the arched back you see from the side. “Coffin fly” comes from one of the stranger places they breed, which we cover further down. Virginia Tech and some pest companies also use “sewer fly”, a name that drain flies share.

There are about 4,000 species worldwide. In homes, two cause most of the trouble: Megaselia scalaris and Dohrniphora cornuta, according to NC State Extension. People often call them gnats or fruit flies, but they belong to a different family from both. That matters, because each of those flies breeds somewhere else and needs a different fix.

How to recognize phorid flies

Check each clue below to narrow down what you saw.

  • Size: about 1/8 inch (3 mm)

    Mississippi State says they are the same size as fruit flies. The family as a whole runs from 1/64 to 1/4 inch.

  • Runs in short, jerky bursts

    Virginia Tech says they run a short way, pause, then dart off in a new direction. They often run away rather than fly away.

  • A humped back from the side

    The small head sits low in front of a strongly arched thorax, the middle part of the body.

  • Dark eyes, never red

    Fruit flies have red or dark red eyes. Mississippi State says the dark eye colour alone is enough to tell a phorid fly apart.

  • Tan, brown or black

    Some have dark bands across the abdomen, according to Virginia Tech.

  • Heavy veins along the front edge of the wing

    Under a magnifier, a few thick veins run along the front edge, and three or four thin veins slant across the rest of the wing, as NC State describes.

  • Long, flattened hind legs

    NC State notes the back legs are long and flat for such a small fly.

Phorid flies vs fruit flies, drain flies and fungus gnats

The quickest test is how they move. Phorid flies run across a counter in short, jerky bursts, fruit flies hover around food, and drain flies sit still. Next, check the eyes: a fruit fly’s are red, and a phorid fly’s are dark. All four are under 1/4 inch (6 mm), so size alone will not settle it.

How to tell phorid flies from the three small flies they are mistaken for

How it moves

Phorid fly
Runs in short, jerky bursts; flies only short hops
Fruit fly
Hovers and flies around food
Drain fly
Sits still on walls; short, clumsy hops
Fungus gnat
Weak, darting flight near plants

Look

Phorid fly
Humped back, small head, dark eyes, long flat hind legs
Fruit fly
Rounded body, red eyes
Drain fly
Fuzzy grey body, broad wings held like a roof
Fungus gnat
Slender and leggy, long antennae

Where you see it

Phorid fly
Kitchen counter, sink, bathroom, lowest floor
Fruit fly
Fruit bowl, trash, kitchen
Drain fly
Bathroom walls near drains
Fungus gnat
Houseplants, windows

Breeds in

Phorid fly
Wet, rotting matter of almost any kind, sewage included
Fruit fly
Fermenting fruit and food residue
Drain fly
Slime film inside drains
Fungus gnat
Wet potting soil

Bites?

Phorid fly
No
Fruit fly
No
Drain fly
No
Fungus gnat
No

The fix

Phorid fly
Find and remove the source
Fruit fly
Remove the fermenting food
Drain fly
Scrub the drain film
Fungus gnat
Let the soil dry out

Phorid fly features from NC State, Virginia Tech and Mississippi State. Fruit fly and fungus gnat features from NC State. Drain fly details from our own guide.

Phorid flies and drain flies can breed in the same drain, so it is common to have both in one bathroom. If the flies on your wall are fuzzy and moth-like, read our guide to drain flies in the sink and shower. If they hover around houseplants, see fungus gnats in potting soil instead.

NC State adds one more look-alike: black flies. These have longer antennae, they do not run around, and unlike phorid flies they do bite people and animals. A small fly that bites you is not a phorid fly.

Are phorid flies harmful?

Phorid flies do not bite people or pets, according to 3 extension services: NC State, Virginia Tech and Michigan State. Like all flies, they have no stinger. The real concern is hygiene: the larvae grow in rotting matter, sometimes sewage, so adults can carry bacteria onto food. NC State says this matters mostly in food businesses and hospitals.

NC State calls these cases fairly rare, so the practical risk at home is small. Still, it is worth a few habits. Cover food, keep fruit in the fridge while you have flies, and wipe counters before you cook. Throw out anything you see flies crawling on.

Do phorid flies bite at night?

No. Some forum posts insist they do, but every extension source that covers it says they do not bite. If you wake up with bites, something else is biting you, and a bite alone cannot tell you what. Our bug bite identification chart lists the usual indoor biters and the signs that should send you to a doctor.

Can phorid flies lay eggs in people?

In rare cases, yes. NC State reports a few cases of larvae in wounds, eyes or the gut, and calls them fairly rare. LA County Public Health says the cases it describes involved the open wounds of patients in nursing homes and hospitals. So the people most at risk are those who cannot keep a wound clean.

Why do I have phorid flies?

You have phorid flies because something in or under your home is wet and rotting. The larvae need moist, decaying matter from plants or animals, and Mississippi State says a little is all it takes. Indoors, if you are finding the adults, they are almost surely breeding inside, often in one of the 11 places below.

This list comes from NC State, Virginia Tech, Michigan State, Mississippi State and LSU AgCenter. As you can see, phorid flies are far less picky than fruit flies or drain flies. That is why they are so hard to pin down, and why the house can be spotless and still have them.

What attracts phorid flies?

Females seek out moist, rotting matter to lay their eggs on. Adults also fly to light, which NC State and Penn State both note. That is why you find them at windows, around lamps and near the TV, which are rarely where they breed. Also, a fly on the window tells you very little about the source.

They can come from outside, too. Michigan State says flies from outdoor trash cans, compost, lawn clippings or a septic leak can get in through screens and doorways. NC State adds that the source may not even be on your property. In an apartment, it can be in another unit or a shared drain line.

How to find where phorid flies are coming from

To find the source, map the flies, then test each likely spot. Lay sticky traps around the house, search the kitchen first, and cover every drain overnight with tape or a clear cup. If nothing turns up and the flies are worst on the lowest floor, call a plumber. The table below covers 8 places you see them.

Where you see phorid flies, and where to look first

Kitchen counter, sink or fruit bowl

Look here first
Garbage disposal and sink drain, potato and onion bins, the bottom of the trash can
Then check
Under the fridge and stove, the fridge drip pan, the dishwasher filter and door seal, sponges

Bathroom

Look here first
Sink, tub, shower and floor drains
Then check
The seal under the toilet, leaks under the sink, cracked grout

Lowest floor or basement, near baseboards or floor cracks

Look here first
Floor drains, the laundry drain and any sump
Then check
A broken drain or sewer line under the slab: call a plumber

One room, sudden swarm, bad smell

Look here first
A dead mouse, rat or bird in a wall, ceiling or crawl space
Then check
Pet cages and litter boxes

Around houseplants

Look here first
Dead plants, rotting leaves, vases of old flowers
Then check
Soggy pots and saucers; rule out fungus gnats

Pet room or reptile enclosure

Look here first
Litter box, cage bedding, uneaten food
Then check
Damp substrate and dead feeder insects

Windows, lamps, upstairs rooms

Look here first
Nothing there: they came for the light
Then check
The nearest bathroom and kitchen, then downstairs

Outside the door or in the garage

Look here first
Trash bins, compost, pet waste, grass clippings
Then check
The garage floor drain and the septic system

Our table, built from the breeding sites listed by NC State, Michigan State, Virginia Tech, Mississippi State and LA County Public Health. The order is ours, from the most common source to the least.

One clue is worth knowing. NC State says pupae may coat the surfaces near where the larvae grew. So if you find tiny oval, flattened cases along a baseboard, under a sink or on the side of a bin, the breeding site is close.

Signs of a broken pipe under the floor

A broken drain or sewer line under a concrete floor is the hardest phorid fly problem to fix. Fortunately, Mississippi State says it is much less common than a simple source like rotting food. Suspect it when most of these signs line up:

The fix is a plumbing job. NC State says the concrete has to be opened, the pipe repaired and all the infested soil removed. Pest control consultants Pinto & Associates add that the soil should be replaced with clean soil, that hundreds of flies a day can come up through one crack, and that injecting insecticide into the soil rarely works.

How to get rid of phorid flies

To get rid of phorid flies, remove or clean the wet, rotting material they breed in, then dry the area and fix any leak. Trap the adults while you work. Mississippi State says insecticides are of little or no use in most cases. Expect a few more flies for 1 to 2 weeks after.

The steps below start with what costs nothing. If you have already done the search above, most of the work is behind you. Still, phorid flies are hard to get rid of when they have more than one source, so keep the sticky traps out until they stay empty.

1. Remove the source (free)

Removing the source is the whole fix in most homes. Throw out rotting produce, scrub out trash cans and recycling bins, and empty and wash drip pans. Replace old sponges and mop heads, clean up pet waste and remove dead plants. If the source is a dead animal in a wall, it has to come out, and the spot under it needs cleaning.

2. Clean drains with a brush and a microbial cleaner

For a drain that tested positive, scrub the inside of the pipe with a long, stiff drain brush, the same way our drain fly guide describes. Then use a microbial drain cleaner, the kind made with live bacteria. NC State says these products dissolve the organic buildup the larvae live in, and that foam products are preferred. Michigan State also recommends them. Follow the label for how often to repeat it.

Do the garbage disposal too. Scrub under the rubber splash guard, where scraps collect, and run the cleaner through it. LA County Public Health says cleaners like these work when they are used regularly, not just once.

3. Fix the moisture

Larvae need the material to stay damp, so drying it out stops them. Repair leaks under sinks and around appliances, and reseal a toilet that rocks or leaks at the base. Then fill floor cracks, which LA County says trap moist debris, and regrout cracked tile, which Mississippi State lists as a breeding site. Run a fan or a dehumidifier in a damp basement.

4. Trap and remove the adults

Sticky traps catch adults and show you whether numbers are falling. Virginia Tech says sticky fly tape, glue traps or light traps may reduce the adults, and that a fly swatter works too. A vacuum is quick for flies on a window. However, traps only catch the adults, so they cannot end the problem on their own.

5. Insecticides, last and only if needed

If removing the source and drying the area work, you do not need an insecticide. NC State says residual sprays can kill the adults but will not end an infestation. Virginia Tech allows an aerosol for adults in the room, but warns never to get it on food or eating utensils. Skip foggers, because the larvae stay safe inside the breeding material.

Phorid fly treatments compared

Find and remove the source

What it does
Stops the breeding
Evidence
Strong. Every extension source
Cost
Free

Drain brush and microbial cleaner

What it does
Removes the slime the larvae feed in
Evidence
Good. NC State, LA County
Cost
Low

Fix leaks and dry wet areas

What it does
Removes the moisture larvae need
Evidence
Good. Virginia Tech, LA County
Cost
Varies

Sticky traps

What it does
Catch adults and show where they come from
Evidence
Good for finding the source
Cost
Low

Light traps

What it does
Catch adults drawn to light
Evidence
Fair. Virginia Tech, PestWest
Cost
Low to medium

Swatter or vacuum

What it does
Kills the adults you can see
Evidence
Adults only
Cost
Free

Aerosol insecticide

What it does
Kills adults for a short time
Evidence
Weak. Of little or no use in most cases (Mississippi State)
Cost
Medium

Bleach down the drain

What it does
Does not kill the larvae
Evidence
NC State and Michigan State advise against it
Cost
Not recommended

Pipe repair and new soil

What it does
Ends a sewer break infestation
Evidence
Strong. NC State, Pinto & Associates
Cost
High

What does not work against phorid flies

Bleach, sprays and fruit fly traps are 3 common fixes that do not work on their own. NC State says bleach and standard cleaners will not kill the larvae, and warns against pouring bleach down drains. Sprays kill only the adults you see. And we found no extension testing of vinegar traps on phorid flies.

Phorid fly life cycle and how long they live

A phorid fly goes from egg to adult in about 10 days in a warm house, according to NC State and LSU AgCenter. In cooler conditions it can take up to 37 days, says LA County Public Health. A female lays 500 to over 700 eggs, which is why a few flies turn into hundreds.

Phorid fly life cycle by stage

Egg

How long it lasts
About 1 day
Where it is
On moist, rotting food or debris
What it looks like
Tiny, boat-shaped, about 0.5 mm

Larva

How long it lasts
About 2 to 16 days
Where it is
Inside the wet breeding material
What it looks like
White to grey maggot, up to about 3/8 inch (10 mm)

Pupa

How long it lasts
About 7 days
Where it is
A drier spot close to the breeding site
What it looks like
Oval, flattened case about 4 mm, with two short horns

Adult

How long it lasts
A few days to a few weeks (sources disagree)
Where it is
Counters, sinks, walls, windows
What it looks like
About 1/8 inch (3 mm), humped, dark eyes

Egg, larva and pupa sizes and the short larval time are from NC State. The 8 to 16 day larval range and the egg hatch are from LA County Public Health. LSU AgCenter says development is fastest at about 72 to 75°F (22 to 24°C), and slower in cooler rooms and in heat above about 82°F (28°C).

Females lay their eggs right on moist food or rotting matter. LA County says a female can lay about 40 eggs in 12 hours and about 500 in her life, while NC State puts the lifetime total at over 700. The larvae feed inside that material, then crawl to a slightly drier spot nearby to become pupae. That is why you rarely see the larvae, but you may find the empty pupal cases.

How long do phorid flies live?

Sources disagree on this number more than any other. Insects Limited and PestWest say adults live only a few days, and Insects Limited adds that they can last up to 9 days when the humidity is above 70%. Michigan State, on the other hand, says adults can survive one to two months. Either way, the adults you see are not the real problem. The larvae in the source are.

Why phorid flies keep appearing after you fix the source

Cleaning the source stops new eggs, but flies already in the pupa stage will still come out. NC State puts that stage at about 7 days. So expect new adults for 1 to 2 weeks after a real fix. If the sticky traps are just as full after 3 weeks, there is a second source you have not found yet.

What to expect after you remove the source

Days 1 to 7

What is happening
No new eggs; pupae already formed keep hatching
What you see
Almost as many flies. This is normal

Days 8 to 14

What is happening
Late pupae in cooler spots hatch; adults die off
What you see
Clearly fewer flies on the traps

Days 15 to 21

What is happening
Nothing left to hatch
What you see
Only a straggler or two

After 3 weeks

What is happening
If traps still fill, another source is breeding
What you see
Go back to the search steps above

Our timeline, built from NC State’s stage lengths for a warm house. It assumes adults live a few days, as Insects Limited and PestWest say. If they live longer, as Michigan State says, the drop is slower, and a cool basement also takes longer.

Phorid flies from mushroom farms

If you live near mushroom farms in southeastern Pennsylvania and phorid flies pour in during late summer and fall, they are probably mushroom phorid flies, Megaselia halterata. Penn State Extension says these flies cannot breed in a house and die within 2 to 3 days indoors. So in this case, cleaning your drains will not help.

These flies breed in the compost of mushroom growing rooms. According to Penn State, numbers on the farms peak in September and October, and wind can carry the adults many miles. They fly to both natural and ultraviolet light. They also tend to climb, which is why they gather on upper floors and in attics, and they collect in humid rooms such as bathrooms. Penn State calls these events invasions rather than infestations, because the flies do not breed indoors.

The problem is real and current. The Pennsylvania Department of Agriculture says the fly destroys 10 to 40% of mushroom crops. In January 2025 it ordered farms in New Garden and Kennett townships to heat-treat their growing houses, a process called steaming off. In March 2026 the order grew to cover every mushroom farm in Chester County, as MyChesCo reported. On October 2, 2026, MyChesCo, citing CBS Philadelphia, reported New Garden residents saying the flies were swarming their homes again. One said she “probably had 1,000 come in” the year before.

Penn State gives residents this advice:

Questions about the farms go to the Pennsylvania Department of Agriculture, Bureau of Plant Industry, at 717-787-4843. Outside this region, a fall swarm with no source in the house is much less likely, so search the house first.

Coffin flies: where the name comes from

Coffin flies are phorid flies that breed on buried bodies, which is where the nickname comes from. Females of one species, Conicera tibialis, dig down through more than 2 meters (6.5 feet) of soil to reach a coffin, according to the Natural History Museum of Los Angeles County. They can then breed for several generations without coming back up.

NC State says the name also comes from their habit of breeding in mausoleums. Because of this, forensic scientists use phorid flies to help estimate how long a body has been dead. In a house, though, the name means nothing sinister. A “coffin fly” in your kitchen is the same fly that breeds in drain slime. At most, a sudden swarm in one room can point to a dead animal: Mississippi State lists carcasses such as a dead rat or bird among their breeding sites.

Coffin flies do not bite, and you get rid of them the same way as any other phorid fly: find the source and remove it.

Are any phorid flies useful?

Yes. Most phorid species live outdoors and have little impact on people, says Virginia Tech. Some even help. Since 1997, researchers have released 6 species of fire ant decapitating flies in the US to fight invasive fire ants, according to UF/IFAS. The first went out in Florida.

The way they work is grim. A female fly lays an egg inside a worker ant. The larva moves into the ant’s head and feeds there, and the head usually falls off. UF/IFAS says these flies are not drawn to people, pets, food or garbage, and you only find them around disturbed fire ant mounds. If fire ants are your real problem, see ourfire ant guide, which covers the two-step method for yards.

When to call someone

Most phorid fly problems end once you find a rotting source in the kitchen or a drain. Call a plumber if every drain tests clean and the flies are worst on the lowest floor. Call a pest professional if you still cannot find the source after 2 to 3 weeks of searching. If you rent, tell your landlord early.

Not sure they are phorid flies at all? A sharp photo of one on a sticky trap is enough for our bug identifier by picture. You can also compare them with the other tiny dark insects in our guide to small black bugs in the house.

Pest control disclaimer. Photo-based identification can help, but it is not always perfect. For dangerous spiders, large infestations, or anything you are unsure about, contact a licensed pest control professional.

Phorid flies FAQ

Are phorid flies a sign of a dirty house?
No. A very clean home can have them, because one forgotten potato, a slow leak or a cracked pipe under the floor is enough. Mississippi State says the fix is sometimes as simple as finding a lost bag of rotten potatoes. The flies tell you something is wet and rotting, not that you keep a dirty house.
Why are there phorid flies in my bedroom when there is no food in it?
They fly to light, so a lamp, a screen or a window pulls them into rooms where they do not breed. The source is usually close by: a bathroom drain, a leak in the wall, a potted plant, or a dead mouse in the ceiling. In an apartment it can also be a neighbor's unit. Put a sticky trap in each nearby room to see which way they come from.
Do phorid flies follow you?
It can feel that way. Michigan State notes that they often fly close to your face, which is part of why they are so annoying. We found no study that explains why. They do not bite, and they are not after you. Kill the adults with a swatter or a vacuum, and put your effort into the source.
Do phorid flies lay eggs in food?
Yes, if the food is moist and starting to rot. Insects Limited says the eggs are laid directly on moist food, and NC State lists rotting fruit, vegetables and food dropped under appliances as breeding sites. Throw out produce that has gone soft, and keep fresh food covered or in the fridge while you have flies.
What time of year are phorid flies most active?
Indoors, any time of year. Virginia Tech says they breed through several generations a year, held back mainly by cold, and a heated house is never cold. Outdoors, cold weather slows them down. In southeastern Pennsylvania, the mushroom phorid peaks in September and October, according to Penn State.
Can phorid flies live in a reptile or tarantula enclosure?
Yes. Damp substrate, uneaten food and dead feeder insects give the larvae all they need. LSU AgCenter lists moist litter in small animal cages as a common source, and says reptiles appear especially prone to myiasis, an infestation by the larvae. Remove leftovers quickly, and change any substrate that smells sour.

Related guides

Sources

Not sure it is this one?

Identify a bug