Bugs That Look Like Small Flies: What You're Seeing
In this article
- Fungus Gnats, Fruit Flies, Drain Flies and Phorid Flies Compared
- How Do You Confirm Which Small Fly You Have?
- Clearing Fungus Gnats and Fruit Flies From Soil and Kitchens
- Drain Flies and Phorid Flies: Cleaning the Pipe and the Bin
- When Chemical Treatment Is Worth It for Small Flies
- Small Fly Questions That Come Up After Identification
Most small flying insects in a home are not true flies: fungus gnats, fruit flies, drain flies and phorid flies are the usual four, and each one points to a different source. True flies (order Diptera) are only part of the picture, and the fix depends entirely on which of these you have. Identify the insect first, then treat the wet organic material it is breeding in, because spraying adults does nothing while larvae keep emerging.
The fastest way to narrow it down is location and behavior: where the insects gather, how they move, and what they look like at rest. A cloud hovering over a potted plant is almost always fungus gnats; a cluster over a fruit bowl is fruit flies; small moths resting on bathroom walls near a drain are drain flies; and slow, erratic fliers near a trash can or compost bin are often phorid flies. Get the identification right and the rest is mechanical cleanup.
Fungus Gnats, Fruit Flies, Drain Flies and Phorid Flies Compared
These four share a body length of roughly 1/16 to 1/8 inch (1.5 to 3 mm), which is why they all read as "small flies" at a glance. The differences show up in posture, wing shape and where the larvae live.
| Insect | Look and posture | Where it breeds | Typical behavior |
|---|---|---|---|
| Fungus gnat | Slender, dark, long legs; wings held flat over the back; looks like a tiny mosquito | Moist potting soil, especially peat- or compost-based mixes | Weak flier, hovers around plants and windowsills, lands on soil |
| Fruit fly | Tan to brown with red eyes; plumper body; wings held out slightly | Overripe fruit, rotting vegetables, spilled juice, recycling bins | Fast, darting flier; gathers on fruit and fermenting liquids |
| Drain fly | Fuzzy, moth-like; broad hairy wings held roof-like over the body | Thin biofilm inside drain pipes and overflow holes | Short hops; rests on walls near sinks, tubs and floor drains |
| Phorid fly | Small, humpbacked, pale to dark; runs in short bursts before flying | Decaying organic matter: garbage, compost, wet mops, sewage backups | Erratic, jerky flight; often near floors and trash |
Two other candidates are worth ruling out. Small moths such as pantry moths rest with wings folded flat and fly in a zigzag near cupboards, and their larvae are in dry goods, not wet material. Winged ants and termites have four wings of unequal length, a narrow waist, and appear in swarms, usually near a window or door; they are not breeding in your drain or soil.
How Do You Confirm Which Small Fly You Have?
Catch a few and look at them closely, because behavior alone can mislead when two sources sit in the same room. Tap the insects off a wall into a clear glass or jar, chill it in the freezer for 2 to 3 minutes to slow them down, then look at wing shape and body profile with a magnifier. Broad, hairy, roof-shaped wings mean drain fly; a humpbacked profile means phorid fly; a mosquito-like silhouette with long legs means fungus gnat.
Then run a source test. Cover a suspect potted plant's soil surface with a 1/4 inch (6 mm) layer of dry sand or gravel and watch for 3 to 4 days; if new adults stop appearing, the soil was the source. Seal a trash can lid and clear the recycling for 2 days to test the fruit fly theory. Tape clear plastic wrap over a floor drain overnight: condensation and trapped adults underneath point to drain flies.
A sticky card placed horizontally on the soil of an infested pot is the most reliable count. Check it every 2 days. Falling numbers mean the treatment is working; a flat or rising count means a second source is still active somewhere in the room.
Clearing Fungus Gnats and Fruit Flies From Soil and Kitchens
Fungus gnats need consistently wet soil, so the single most effective step is letting the top 1 to 2 inches (2.5 to 5 cm) of potting mix dry out between waterings. Water from the bottom of the pot where possible, empty saucers within an hour, and stop using self-watering reservoirs on affected plants for a few weeks.
- Let the top 1 to 2 inches of soil dry between waterings; check with a finger before watering.
- Top the soil with 1/4 to 1/2 inch (6 to 12 mm) of coarse sand, gravel or diatomaceous earth so adults cannot lay eggs.
- Set yellow sticky cards horizontally just above the soil to catch adults and monitor the count.
- Repot heavily infested plants into fresh, well-draining mix, and discard the old soil outdoors.
Fruit flies follow a different rule: remove every fermenting surface. Rinse bottles and cans before recycling, keep fruit in the refrigerator during an outbreak, take trash out daily, and clean the underside of the bin lid and the gap around the door seal. A bowl of cider vinegar with a drop of dish soap traps adults, but it only buys time until the breeding material is gone.
Expect 1 to 2 weeks for a fungus gnat population to collapse after the soil dries, because eggs and larvae in the top layer die and adults live only days. Fruit flies can rebound in under a week if a single forgotten potato or spill remains, so check behind and under appliances.
Drain Flies and Phorid Flies: Cleaning the Pipe and the Bin
Drain flies breed in the slimy biofilm that coats pipe walls, so pouring hot water down the drain does little. Scrub the visible interior of the drain and the overflow plate with a stiff brush and a mild detergent, then flush. Repeat every few days for about 2 weeks, since eggs and larvae survive a single cleaning.
Phorid flies are the hardest of the four to eliminate because they breed in almost any moist organic film, including the residue under a refrigerator, a damp mop head, a leaky pipe joint or a compost pail. Find the wet material rather than treating the air. Check under appliances, behind the toilet, inside the bottom of a trash cabinet, and around any slow leak; a musty smell is a strong clue.
For both, keep the area dry between cleanings. Fix dripping pipes, hang mops to dry, empty compost pails every 2 to 3 days, and confirm that floor drains have water in the trap, since a dry trap lets sewer flies through. If adults keep appearing after 2 weeks of cleaning, the source is somewhere you have not opened yet.
When Chemical Treatment Is Worth It for Small Flies
Skip aerosol sprays for adults. They kill what is flying and nothing in the soil, drain or trash, and repeated use in a kitchen adds residue without solving the problem. Use them only as a short-term knock-down before guests arrive, and never near food, pets or open flames.
For fungus gnats, a biological larvicide containing Bacillus thuringiensis israelensis applied as a soil drench according to the label kills larvae and is the standard option when drying the soil is not practical, such as with seedlings or plants that cannot dry out. Follow the label rate and interval exactly; more is not better. For drains, mechanical scrubbing beats chemical drain cleaner, which can damage pipes and does not remove the film the larvae feed on.
Know when to stop self-treating: if the insects are phorid flies and you cannot find the source after a thorough search, or if they persist around a floor drain or basement, the breeding site may be under a slab or in a sewage line, and a pest control professional is the practical next step.
Small Fly Questions That Come Up After Identification
Are these insects harmful? None of the four bites or stings. They are a nuisance and a signal of moisture or food waste, and phorid flies can move from filth to food surfaces, so keep counters covered and clean while treating an infestation.
Why do they appear only in the evening? Many small flies are more active in low light and still air. Evening sightings near a lamp usually mean the source is within a few feet of that lamp, not that the insects arrived from outside.
Do sticky traps alone solve it? No. Traps catch adults and show you whether numbers are falling, but larvae keep emerging until the wet soil, fruit or biofilm is removed.
Can they come in through window screens? Fungus gnats and fruit flies can enter from outdoors, but a population that persists indoors for more than a week is almost always breeding inside. Check indoor sources before blaming the window.