What Are Tiny Black Flies and How to Get Rid of Them

Tiny black flies buzzing around your home or swarming outdoors usually belong to one of a handful of species, and figuring out which one you’re dealing with is the first step toward getting rid of them. The most common indoor culprits are fungus gnats and drain flies, while outdoor clouds of tiny dark flies tend to be true black flies (Simuliidae) or biting midges (Ceratopogonidae). Each group breeds in different places, causes different problems, and responds to different control strategies.

Fungus Gnats, the Most Common Indoor Offender

If the tiny black flies in your home hover near potted plants, land on the soil surface, or drift aimlessly around windows, you’re almost certainly dealing with fungus gnats. These are small, dark-bodied flies in the family Sciaridae, typically just a few millimeters long with thin, mosquito-like silhouettes and disproportionately long legs. They’re weak fliers that tend to stay close to their breeding site, which is the moist organic matter in your plant pots.

Adult fungus gnats are mostly a nuisance. The real action happens underground, where their larvae feed on fungi, decaying organic material, and occasionally plant roots in the top layers of soil. Research on the fungus gnat species Lycoriella ingenua found that larvae can survive to adulthood on certain fungal species at rates of 60 to 73 percent, depending on the fungus, while other fungal species killed all larvae before they could develop past the earliest stage.1PLoS ONE. Attraction, Oviposition and Larval Survival of the Fungus Gnat, Lycoriella ingenua, on Fungal Species Isolated from Adults, Larvae, and Mushroom Compost This tells you something practical: the specific microbial community in your potting mix determines whether a gnat population booms or fizzles.

Female fungus gnats are especially drawn to substrates with high microbial activity. Composted pine bark, for example, is one of the most attractive egg-laying sites, and materials with faster rates of decomposition tend to support more robust gnat breeding.2ISHS Acta Horticulturae. Fungus gnats and growing media Moisture is a major factor too: waterlogged soil gives larvae the conditions they need, while dry soil makes the top layer inhospitable.

Drain Flies, the Bathroom Dwellers

Drain flies look nothing like fungus gnats up close. They’re fuzzy, moth-shaped flies (family Psychodidae) with broad, leaf-like wings held roof-style over the body. They tend to rest on walls near sinks, showers, and bathtub drains, and they’re not strong fliers. You’ll often see them make short, hopping flights when disturbed.

Their larvae breed in the gelatinous biofilm that coats the insides of drains, pipes, and any chronically wet surface where organic gunk accumulates. A study of hospital infestations in Germany found that the moth fly Clogmia albipunctata preferentially bred in hair-clogged sinks in patient shower cubicles, infrequently used toilets and urinals, and water sources from neglected leaking pipes.3PubMed. Hospital infestations by the moth fly, Clogmia albipunctata (Diptera: Psychodinae), in Germany The same principle applies at home: any drain, floor trap, or pipe joint that stays damp and builds up a slimy organic layer can become a breeding ground.

Drain flies don’t bite and don’t transmit diseases in typical household settings, but a persistent infestation signals a sanitation issue that won’t resolve on its own. The flies are a symptom. The biofilm is the disease.

True Black Flies and Biting Midges Outdoors

If the tiny black flies are biting you outdoors, especially near rivers, streams, or marshy areas, you’re likely encountering true black flies (Simuliidae) or biting midges (Ceratopogonidae), sometimes called no-see-ums. These are distinct groups with different biologies, but people often lump them together because both are small, dark, and capable of delivering painful bites.

Black flies breed exclusively in flowing water. Their larvae attach to rocks, vegetation, and other submerged surfaces in streams and rivers, filter-feeding on particles carried by the current. Only about 10 to 20 percent of black fly species actually bite humans or domestic animals; the females of most species need a blood meal to mature their eggs, but many feed on wildlife rather than people.4Medical and Veterinary Entomology. Black Flies Some species inhabit small streams just a few meters wide, while others breed in enormous continental rivers hundreds of meters across.5PubMed Central. Discovery of the Larvae and Pupae of the Black Fly Simulium (Gomphostilbia) khelangense and Breeding Habitats of Potential Pest Species of the S. (G.) chumpornense Subgroup (Simuliidae)

Biting midges are even smaller, often barely visible to the naked eye. They breed in a wider range of wet habitats including salt marshes, mangrove swamps, and muddy shorelines. Their bites are disproportionately painful for such a tiny insect, and the itching can persist for days.

Health Risks from Biting Flies

For most people, bites from black flies and midges mean localized pain, swelling, and maddening itchiness. But reactions can range widely. Black fly saliva contains a cocktail of compounds that suppress your body’s initial clotting response and modulate the immune system. Experimental work on black fly salivary extract demonstrated anti-coagulation effects and hypersensitivity reactions in animal models, consistent with the severe pain and persistent itching people report at bite sites.6PubMed. Immunomodulating effects and hypersensitivity reactions caused by Northeast Indian black fly salivary gland extract

In some individuals, the reaction goes well beyond a typical bug bite. Clinical reports have documented erythematous and edematous reactions from black fly bites that persisted for a week, and some patients developed eruptions lasting three to sixteen months with varied skin conditions.7JAMA Dermatology. ACUTE AND CHRONIC REACTIONS TO BLACK FLY BITES (SIMULIUM FLY) In rare cases, the hypersensitivity becomes systemic. One case report described a patient who experienced recurrent severe reactions to black fly bites that mimicked cellulitis and didn’t respond to intravenous antibiotics; this same patient went on to develop Guillain-Barré syndrome after one episode and nephrotic syndrome after another.8Annals of Allergy, Asthma & Immunology. A patient with severe black fly (Simuliidae) hypersensitivity referred for evaluation of suspected immunodeficiency These extreme cases are rare, but they illustrate that “it’s just a bug bite” can occasionally be a dangerous underestimation.

Globally, black flies are also vectors for onchocerciasis (river blindness), though this disease is concentrated in parts of sub-Saharan Africa and small foci in Latin America and Yemen. If you’re dealing with black flies in North America or Europe, river blindness isn’t the concern. Allergic and inflammatory reactions to the bites are.

Getting Rid of Fungus Gnats Indoors

Because fungus gnats breed in the top layer of moist potting soil, the single most effective step is letting that layer dry out between waterings. Most houseplants tolerate the top inch or two of soil going completely dry, and gnat larvae cannot survive in it. Bottom-watering, where you fill the saucer and let the plant wick moisture upward, keeps the surface dry while still hydrating roots.

For an active infestation, a combination of approaches works best:

  • Yellow sticky traps: Adult gnats are strongly attracted to yellow surfaces. Research on related small flies has confirmed significant attraction to yellow and white traps, with negligible catches on dark-colored ones.9PubMed Central. Understanding sand fly sampling methods: sticky traps are attraction-based and not interceptive sampling tools of Phlebotomus orientalis Placing yellow sticky cards at soil level near infested plants intercepts egg-laying adults and gives you a visual gauge of how bad the problem is.
  • Soil drenches with beneficial nematodes: Entomopathogenic nematodes, particularly species like Steinernema feltiae and Heterorhabditis bacteriophora, actively seek out and kill gnat larvae in soil. Studies have shown these nematodes cause significantly higher larval mortality over 72 to 96 hours compared to untreated controls.10PubMed Central. An innovative strategy for control of fungus gnats using entomopathogenic nematodes alone or in combination with waterlogging You mix them into water and apply as a normal watering. They’re harmless to plants and people.
  • Top-dressing with sand or gravel: A half-inch layer of coarse sand, perlite, or decorative gravel over the soil surface creates a physical barrier that discourages females from laying eggs. It also dries out faster than exposed organic soil.
  • Reducing organic content: If you’re repotting, choose a mix with less composted bark and more mineral components like perlite or pumice. The less decomposing organic matter in the top layers, the less food for larvae and the less attractive the substrate is to egg-laying females.

Avoid the temptation to simply spray adult gnats with household insecticides. Adults are short-lived and killing a few doesn’t touch the larvae already developing in the soil. You have to break the breeding cycle at the soil level, or new adults will keep emerging.

Getting Rid of Drain Flies

Drain flies are straightforward to eliminate once you understand that the target isn’t the flies themselves but the biofilm lining your pipes. Swatting adults or spraying surfaces does nothing if the slimy organic layer in the drain remains intact, because that’s where the larvae live and feed.

Start by identifying which drains are affected. If you’re not sure, cover each suspect drain with a strip of clear tape overnight, sticky side down, leaving small gaps at the edges so air can still flow. In the morning, any drain producing flies will have adults stuck to the tape.

Once you’ve found the culprit drains, clean them mechanically. A stiff pipe brush pushed down into the drain and worked around physically removes the biofilm that no amount of chemical cleaner can fully dissolve from the outside. Follow this with an enzyme-based drain cleaner, which contains biological agents designed to digest organic buildup. Research on biofilm removal in industrial piping has shown that enzyme cleaning techniques substantially outperform traditional cleaning in reducing biological activity, particularly in systems where biofilm has had time to establish.11MethodsX. Elimination of the formation of biofilm in industrial pipes using enzyme cleaning technique The same principle applies to your household pipes, albeit at a smaller scale.

For drains that aren’t used often, the fix is even simpler: run water through them regularly. Stagnant water and dry P-traps create the perfect conditions for biofilm accumulation and allow sewer gases (and flies) to enter the space. Flushing every drain in your home at least once a week prevents this. In the hospital study mentioned earlier, infrequently used fixtures were a primary breeding site for drain flies, and improved water management was identified as necessary for control.3PubMed. Hospital infestations by the moth fly, Clogmia albipunctata (Diptera: Psychodinae), in Germany

Protecting Yourself from Outdoor Black Flies and Midges

You can’t eliminate black flies or biting midges from the landscape the way you can clean gnats out of a houseplant. Their breeding habitats are streams, rivers, and wetlands that span miles. The realistic goal outdoors is personal protection and timing.

Black flies are most active during daylight, especially in the hours around dawn and dusk, and they’re seasonal, peaking in late spring and early summer in temperate regions. Biting midges also have peak activity periods, often around dawn and dusk, and they’re worst on calm, humid days. Wind is your friend: even a light breeze disrupts both groups, which is why screened porches and fans on outdoor patios help enormously.

DEET-based repellents remain effective against both black flies and midges, though some compounds have been shown to outperform DEET. Field testing of repellents against biting midges found that while all tested compounds provided protection, certain piperidine-based formulations were substantially more effective than the standard DEET preparation.12Journal of Medical Entomology. Repellency of Selected Compounds Against Two Species of Biting Midges (Diptera: Ceratopogonidae: Culicoiddes) For practical purposes, DEET at 20 to 30 percent concentration remains the most widely available and well-tested option. Permethrin-treated clothing adds another layer of defense, particularly for people spending extended time in heavily infested areas.

Clothing choices matter more than most people realize. Black flies in particular tend to crawl into gaps: up sleeves, under collars, into hair. Long sleeves with snug cuffs, tucked-in shirts, and a hat with a fine-mesh head net can make the difference between a pleasant hike and a miserable one. Light-colored clothing also seems to attract fewer bites, though the evidence on color preference is more anecdotal than rigorous for these species.

When Fungus Gnats Affect Your Plants

Most healthy houseplants tolerate a minor fungus gnat infestation without visible damage. The larvae primarily eat fungi and decaying matter, not living root tissue. But heavy infestations in young seedlings or recently propagated cuttings can cause problems, because dense larval populations will feed on fine root hairs when their preferred food runs short.

There’s also a less obvious risk. Fungus gnats have been identified as vectors for certain soilborne plant pathogens, including Fusarium oxysporum, a fungus responsible for wilt diseases in tomatoes and other crops. Interestingly, research found that the mere presence of fungus gnat larvae in the growing media didn’t increase infection rates in young tomato plants, suggesting the adults may be more important than the larvae in moving spores around.13Annals of Applied Biology. Fungus gnats vector Fusarium oxysporum f.sp. radicislycopersici For home growers with multiple plants, this means a gnat infestation in one pot can potentially spread fungal problems to neighboring containers as adults fly between them.

Commercial growers take fungus gnats seriously for this reason. In professional horticulture settings, substrate manufacturing processes like sieving and mixing eliminate most gnat populations from raw materials before they reach the greenhouse.2ISHS Acta Horticulturae. Fungus gnats and growing media Home gardeners using bagged potting mix from a store are less likely to start with an infested substrate, but storing open bags of soil in damp conditions can allow gnats to colonize the mix before you ever pot a plant.

Black Flies as Environmental Indicators

If you live near a stream that suddenly produces clouds of black flies where it didn’t before, the flies may be telling you something about the water. Black fly larvae are filter feeders that thrive in clean, well-oxygenated flowing water, and their presence and species composition have been used as biological indicators of stream health. A study in the urbanizing landscape around Rome found that black fly communities reflected the ecological condition of both the watercourses themselves and the surrounding landscape, making them useful markers of environmental quality.14Annali dell’Istituto Superiore di Sanità. Black flies (Diptera, Simuliidae) as ecological indicators of stream ecosystem health in an urbanizing area (Rome, Italy)

This cuts both ways. Nutrient enrichment from agricultural runoff or treated wastewater can shift stream conditions in ways that favor pest species over non-pest species, leading to sudden population explosions. Climate change adds another dimension. Modeling of linked river systems in South Africa projected that changing environmental conditions could replace the normal seasonal variation in black fly pest outbreaks with high perpetual outbreak probabilities, with synergistic interactions between major environmental variables carrying significant cost implications for regional economies.15River Research and Applications. Climate‐linked freshwater habitat change will have cost implications: Pest blackfly outbreaks in two linked South African rivers In other words, areas that currently deal with black flies only in spring might face year-round pressure as water temperatures and flow patterns shift.

For communities near rivers and streams, this means black fly management is increasingly becoming a land-use and water-quality issue rather than a simple pest control question. Larviciding programs using Bacillus thuringiensis israelensis (Bti), a biological control agent applied directly to streams, remain the primary tool for large-scale black fly suppression and are considered environmentally targeted because Bti affects only the larvae of flies and mosquitoes without harming fish or other aquatic organisms. But these programs work best as part of broader watershed management, not as a standalone fix for a problem that originates upstream.