Those tiny black flies buzzing around your kitchen are probably fruit flies, but they might not be. Standard fruit flies (the common vinegar fly) are brown with red eyes, measuring about 1/8 inch long. If the flies you’re seeing are darker, completely black, or behave differently than expected, you could be dealing with a different species of fruit fly that has black eyes, or one of several lookalike insects that require a completely different approach to eliminate.
Are They Actually Fruit Flies?
Fruit flies do come in darker varieties. While most people picture the classic tan-bodied, red-eyed fly, fruit flies range from brown to brown-black in body color, and some have dark or black eyes instead of red. These darker fruit flies behave identically to their lighter cousins: they hover in place with a “helicopter flight” pattern, move in quick erratic bursts, and swarm around overripe fruit, drains, and anything fermenting. If the flies you’re seeing do this, they’re almost certainly fruit flies regardless of their exact color.
But four types of small flies commonly show up indoors, and three of them are darker than a typical fruit fly. Telling them apart matters because each one breeds in a different place. Killing the adults without addressing the breeding site means they’ll keep coming back.
How to Tell Black Flies Apart
Fungus Gnats
These are the most common fly mistaken for a dark fruit fly. Fungus gnats have slender black bodies, long antennae, and long legs, giving them a mosquito-like silhouette. They’re weak fliers that tend to stay near the soil of potted plants, where their larvae feed on fungi and organic matter. You’ll often spot them near windows because they’re drawn to light. If your “black fruit flies” are concentrated around houseplants rather than your fruit bowl, fungus gnats are the likely culprit.
Phorid Flies
Phorid flies are about the same size as fruit flies (1/8 inch) and are easily confused with them. They’re light brown to yellowish with a distinctive humped back, though they can appear quite dark. The giveaway behavior: when disturbed, phorid flies run rapidly across surfaces instead of flying away, earning them the nickname “scuttle flies.” They breed in decaying organic matter including pet waste, the grime lining drain pipes, food debris under appliances, dirty mop heads, and compost bins. Their other common name, “coffin flies,” reflects their ability to breed in deeply buried organic material.
Drain Flies
Drain flies are dark brown, fuzzy, and look like tiny moths. Their wings are large, oval, covered in fine hairs, and held roof-like over the body. They’re poor fliers that move in short hops rather than sustained flight. If the flies you’re seeing rest on bathroom walls near sinks or showers, they’re likely drain flies breeding in the organic film inside your pipes.
Where Each Type Breeds
Identifying the breeding source is the only reliable way to stop an infestation. Adult flies live for just a couple of weeks, but each generation produces enough eggs to keep the cycle going indefinitely if the breeding material remains.
- Fruit flies lay eggs on overripe or fermenting fruit, in recycling bins with residue, inside garbage disposals, and on any moist surface with sugary or alcoholic residue. Under ideal conditions, a fruit fly completes its entire life cycle in as few as 8 days, which is why populations explode seemingly overnight.
- Fungus gnats breed exclusively in moist soil. Overwatered houseplants are the primary source indoors. The larvae feed on fungi and decaying roots in the top layer of potting mix.
- Phorid flies breed in a wider range of decaying matter than any other small fly. Their larvae have been found in drain pipe buildup, trash cans, pet waste, sewage-contaminated soil, rotting vegetables, septic systems, decomposing animals, and moist landscape clippings. Their life cycle takes 14 to 37 days depending on temperature. Finding phorid flies indoors sometimes signals a broken drain line or other hidden moisture problem.
- Drain flies breed in the gelatinous film that coats the inside of drain pipes, especially in bathrooms or floor drains that see infrequent use. Females lay 20 to 100 eggs at a time, and the larval stage lasts 8 to 24 days.
Getting Rid of Them
Traps help reduce the adult population, but they won’t solve the problem alone. The key is removing or cleaning the breeding source. For fruit flies, that means discarding overripe produce, cleaning the inside of your garbage disposal, rinsing recycling bins, and wiping down any surface where juice or alcohol has spilled. Store fresh fruit in the refrigerator during an active infestation.
For fungus gnats, let the top inch or two of soil in your potted plants dry out completely between waterings. The larvae can’t survive in dry soil. You can also cover the soil surface with a layer of sand or fine gravel to prevent adults from laying eggs. Sticky yellow traps placed near the soil surface catch adults effectively.
Phorid flies require a thorough search for their breeding material. Check under and behind kitchen appliances for trapped food, clean drain pipes with a stiff brush (chemical drain cleaners alone won’t remove the organic film), empty and scrub trash cans, and pick up pet waste from the yard. If phorid flies persist after you’ve addressed the obvious sources, a plumbing issue like a cracked sewer line may be involved.
Drain flies respond to mechanical cleaning of the affected drain. Use a pipe brush or enzymatic drain cleaner to physically remove the biofilm where larvae develop. Running water through infrequently used drains on a regular basis prevents the film from building up.
Apple Cider Vinegar Traps
The classic DIY trap works well for fruit flies specifically. Fill a small jar with apple cider vinegar, add a drop of dish soap to break the surface tension, and cover the opening with plastic wrap poked with small holes. Fruit flies are attracted to the fermenting smell and get trapped. This approach is less effective for fungus gnats, phorid flies, and drain flies because they aren’t drawn to vinegar in the same way. For fungus gnats, yellow sticky traps work better. For phorid and drain flies, the only real solution is eliminating the breeding site.
The Black Fig Fly: An Agricultural Pest
If you’re finding small black flies on fig trees rather than in your kitchen, you may be dealing with the black fig fly, a pest that targets edible figs exclusively. This fly lays eggs under the scales at the opening of unripe figs, preferring fruit in shaded positions on the tree. Larvae feed inside the fruit, typically causing it to drop prematurely. In severe cases documented in Tunisia, infestation rates exceeded 80% of fruit on affected trees. The black fig fly has been found infesting more than a dozen fig varieties in California, including Brown Turkey, Black Mission, and Kadota. Larvae complete their development inside dropped fruit and then emerge to pupate in the soil beneath the tree, so collecting and disposing of fallen figs helps break the cycle.