Small Black Flying Bugs in the House: Name Them, Find the Source
THE HONEST REVIEWERS
Expert Verified & Tested
Identification Guide Field Tested

Small Black Flying Bugs in the House?

Every small black flying bug indoors is breeding somewhere specific: wet soil, a drain, rotting organic matter, or wood. Name the bug and you know where to look.

Alex Rivers

Alex Rivers

Home Improvement Editor

Small black flying bugs in a house that are not fruit flies are usually fungus gnats, drain flies or phorid flies, and occasionally flying ants or termite swarmers. The first three are breeding in something wet and organic inside your home, which means killing the adults you see changes nothing until you find that source. The last two are a different kind of warning, and one of them should be inspected by a professional.

1. Which Small Black Flying Bug Is It? Start With the ID Table

Catch one first. A strip of clear packing tape pressed over a resting fly, or a yellow sticky card left near where they gather overnight, gives you a specimen you can look at under a magnifying glass or a zoomed phone camera. Most of these insects look like generic black specks in the air, and they only become distinguishable up close: fuzzy wings or clear ones, long dangling legs or short ones, a pinched waist or a thick one, straight antennae or bent.

Behavior narrows it almost as fast as appearance. Where do they rest? Hovering over houseplants and walking on the soil points to fungus gnats. Sitting motionless on bathroom walls and the side of the tub points to drain flies. Running in quick, jerky bursts across counters and floors, often in large numbers, points to phorid flies. Gathering suddenly at windows and lights, especially in spring, points to flying ants or termites.

Bug Size What It Looks Like How It Behaves Where It Breeds
Fungus gnat 1/16 to 1/8 in Dark, delicate, mosquito-like, long legs and antennae Weak, slow flight; walks on soil and windows Moist potting mix and damp organic matter
Drain fly About 0.1 in Fuzzy gray-brown, moth-like, wings held roof-like over the body Rests on walls; short hops and flights Slimy film inside drains, overflows and drip pans
Phorid fly 1/64 to 1/4 in Small, dark, distinctly humpbacked Runs in quick bursts more than it flies Decaying organic matter, including broken sewer lines
Fruit fly About 1/8 in Tan to brown body, usually red eyes Hovers around produce and trash Fermenting fruit, recycling, sticky residue
Flying ant Varies by species Pinched waist, elbowed antennae, front wings longer than hind Swarms at windows and lights An ant colony, in or near the house
Termite swarmer Varies by species Thick waist, straight bead-like antennae, four equal-length wings Swarms at windows, sheds wings in piles A termite colony in or near the structure
Small flying beetles 1/8 to 3/16 in Hard shell, wings hidden under wing covers Flies to windows and lights Pantry goods or wool, pet hair and lint
Biting midges Very small Tiny gray-black flies; females bite Active at dusk, slip through screens Wet ground and marsh outdoors

Sizes are from university extension fact sheets: UC IPM for fungus gnats, Virginia Tech for drain flies and the University of Maryland Extension for phorid flies. The ant and termite features follow Purdue Extension's comparison. Treat sizes as typical; a single specimen can be smaller or larger.

One honest caveat about the title of this page: many people searching for black flying bugs that are not fruit flies actually do have fruit flies, because fruit flies look darker in the air than they do up close. They are in the table for that reason. If your specimen has big red eyes and a tan body, skip to the fruit fly section. Everything else in this guide is about the bugs that a vinegar trap will not fix.

2. Fungus Gnats: The Houseplant Problem

Fungus gnats are the most common answer, and the giveaway is houseplants. UC IPM describes the adults as dark, delicate flies about 1/16 to 1/8 inch long that resemble small mosquitoes, with antennae longer than their heads. They are weak fliers that drift around pots and windows and run across the soil surface. The adults are a nuisance only. The larvae, which UC IPM describes as whitish and legless with a shiny black head, live in moist potting mix and feed on organic matter, fungi and fine root hairs, which can harm seedlings and stressed plants.

Speed is why they seem to explode out of nowhere. UC IPM gives the life cycle at 75°F as roughly 3 days for eggs to hatch, about 10 days as larvae, and about 4 more days to emerge as adults, so a full generation in around 17 days, faster in warmer rooms. A single overwatered pot can produce a fresh wave every couple of weeks all winter.

Getting rid of fungus gnats, step by step

Step one: find the pots that are breeding them. UC IPM's trick is to press chunks of raw potato, cut side down, into the soil surface. Larvae move to the potato, and after a few days you can lift it and see which pots are infested. Yellow sticky traps, cut small and placed on skewers in the pots, show where adults are concentrated. Sticky traps alone will not end an infestation, but they tell you whether what you are doing is working.

Step two: change the watering. This is the fix that matters most. UC IPM's guidance is to avoid overwatering, make sure pots drain, and let the soil surface dry between waterings. Larvae live in the top layer of wet mix, and a dry surface makes it unsuitable for eggs. Empty any water sitting in saucers. Bagged potting mix that has been stored open and damp in a garage can arrive pre-infested, so keep it sealed and dry.

Step three, if needed: treat the soil with a product containing Bacillus thuringiensis israelensis, usually sold as granules or dunks meant to be soaked in water that is then used to water the plants. UC IPM notes that Bti is toxic only to fly larvae and gives temporary control, and that because it does not persist indoors, infested potting media may need reapplication at about five-day intervals. Check that the label lists fungus gnats or use in potting soil, and follow its rate. Badly infested plants can also be repotted into fresh mix.

If you have fungus gnats but no houseplants, look for other moist organic material: a sump pit with debris in it, wet cardboard or wood stored on a basement floor, a leak keeping drywall or insulation damp, or bags of potting soil, compost or mulch stored inside. UC IPM also advises fixing leaks and removing standing water. The insect is the same; the pot is just somewhere else.

3. Drain Flies: Find the Drain, Then Scrub It

Drain flies, also called moth flies or sink flies, are the small fuzzy black or gray flies sitting on the bathroom wall. Virginia Tech Extension describes them at about 2 to 3 millimeters, grayish or brownish, with hairy bodies and wings held roof-like over the abdomen at rest, which gives them a tiny-moth look. University of Florida extension notes they are weak fliers that move by hopping and short flights, which is why you see them resting rather than circling the room.

They breed in the gelatinous, sludgy film that builds up on the inside of drains and overflow pipes, and Virginia Tech adds the filters, drains and condensation drip pans of dishwashers and air conditioners. The University of Florida puts their life cycle at roughly 21 to 27 days, faster in warm conditions. Adults do not bite, but a drain full of larvae will keep producing them as long as the film is there.

THE TEST

Tape over the drain for 24 hours.

University of Florida extension guidance: place tape over a suspect drain for a day, then check the sticky side for trapped flies trying to emerge. Connecticut's extension suggests a clear cup over the drain overnight instead. Test each drain separately; the one with flies is the one to clean.

Check every candidate, not just the sink nearest to where you see them: bathroom sinks and their overflow holes, tubs and showers, kitchen sinks and the garbage disposal, laundry tubs, basement floor drains, a sump pit, the dishwasher filter, the condensate pan on an air conditioner, and the bucket or drip tray of a dehumidifier. A basement floor drain that rarely sees water is a common culprit, and a dehumidifier bucket left with standing water and slime in it can breed them too. If yours drains to a floor drain or a pump, our guide to draining a dehumidifier without a floor drain covers setups that avoid a stagnant bucket.

Then remove the film physically. The University of Florida's recommended method is to scrape the inside of the drain with a stiff metal pipe brush to remove the organic layer where eggs are laid and larvae feed, then flush with boiling water. If you are unsure whether your drain lines tolerate boiling water, very hot tap water with a long scrub is the more cautious option. Virginia Tech notes foaming drain cleaners may help flush some material away but thick buildup still needs scrubbing, and it says pouring bleach or vinegar down the drain is not very effective and may damage pipes. Insecticides should never be poured down a drain.

Repeat the tape test a few days after cleaning. If flies still emerge from a drain you scrubbed, or you cannot find any drain producing them but they keep appearing near a floor or wall, the source may be inside the plumbing where you cannot reach, such as a cracked pipe under a slab or a leak in a wall. That is a job for a plumber, not a pest company.

4. Phorid Flies: When the Source Is Out of Sight

Phorid flies are the hardest of the three to solve because they breed in almost any decaying organic matter. The University of Maryland Extension describes them as small, dark flies about 1/64 to 1/4 inch with a distinctly humpbacked look from the side. Their nickname, scuttle flies, comes from the habit that gives them away: they tend to run across surfaces in quick bursts rather than fly away when disturbed.

Start with the obvious sources: the bottom of trash and recycling bins, the garbage disposal, a forgotten bag of potatoes or onions in the pantry, pet food bowls and spilled kibble, compost containers, mop buckets and wet mops, and the drip pan under the refrigerator. Phorid flies will also breed in drains, so the tape test from the drain fly section works for them too. Clean what you find and dry it.

If that turns up nothing and you are seeing large numbers, especially on the lowest floor, the source may be under the house. The University of Maryland Extension notes that extremely large numbers of phorid flies on a building's first floor may indicate a broken drain or sewer line underneath. Mississippi State Extension describes infestations from broken sewage lines under buildings as the most difficult phorid problems to solve, because the flies breed in sewage-contaminated soil.

That is why insecticides are the wrong tool. Mississippi State says plainly that insecticides are of little or no use against phorid flies, and that finding and eliminating the breeding source solves the problem. Penn State Extension suggests that when no food source turns up, a plumber can check the lines with a flexible camera scope or smoke testing. A dead animal in a wall void or crawl space can also produce a burst of phorid flies that ends once the carcass is removed or dries out.

The practical order, then, is clean the bins, disposal, drains and produce; tape-test every drain; check the crawl space or basement for anything rotting or wet; and if large numbers persist, call a plumber with a camera before you call an exterminator. Spraying the adults while the source remains is paying for a result that lasts a day.

5. Flying Ants or Termite Swarmers? How to Tell in Ten Seconds

A sudden cloud of small black winged insects at a window, especially on a warm spring day after rain, is a swarm: the reproductive members of a colony leaving to start new ones. They are either ants or termites, and the difference matters far more than with any other bug on this page. Ant swarmers are a nuisance and a clue. Termite swarmers indoors are, in Purdue Extension's words, a near certain sign that the structure is infested.

Feature Flying Ant Termite Swarmer
Antennae Elbowed, bent like a knee Straight and bead-like
Waist Narrow, pinched Thick, no visible waist
Wings Front pair noticeably longer than hind pair Two pairs of equal length
After swarming Wings may be shed Wings shed readily, often in piles on sills
What it means indoors Possible nest in or near the house Near-certain sign of an infested structure

Those three checks, antennae, waist and wings, come from Purdue Extension's comparison and are repeated by Penn State, Iowa State and Mississippi State. You need a specimen and a magnifier to see them reliably; color is not useful, because both groups come in shades from tan to black. Both shed their wings after swarming, so a pile of identical wings on a windowsill is a strong clue to look closer, and a wingless swarmer can still be identified by its antennae and waist.

If they are termites, do not treat the swarm as the problem. University of Kentucky entomologists note that swarmers that emerge indoors cannot eat wood and seldom survive, and are best removed with a vacuum cleaner. The colony that produced them is the problem, and it is still there. Save some specimens in a sealed bag or vial, look for mud tubes on foundation walls, sill plates and piers, and get a professional termite inspection. Termite treatment is not a do-it-yourself project.

If they are ants, a few winged ants near a window may simply have come in from a colony outside. Vacuum them and note where they emerged. Winged ants appearing from a wall, baseboard or ceiling, or worker ants trailing indoors at the same time, suggests a nest inside the structure. Large black ants seen indoors, winged or not, could be carpenter ants, which excavate damp or damaged wood and are worth a professional inspection. University of Kentucky guidance is to collect a few of the wingless workers for identification.

There is a moisture connection here, though it is less direct than with gnats and drain flies. Subterranean termites need contact with moist soil, and carpenter ants favor wood that has been softened by water. Leaks around windows, wood in contact with soil, and chronically damp sill plates in a basement or crawl space all make a house more attractive to both. Fixing those is prevention; it is not a treatment.

6. Fruit Flies, Biting Midges, Small Beetles and the Rest

Fruit flies earn their place here because they are so often the real answer. They have tan to brown bodies and, in the common species, conspicuous red eyes, and they hover around ripe produce, trash, recycling and anywhere sugary residue is left. They breed in fermenting material, so the fix is removing it: refrigerate ripe fruit, rinse recycling, take out trash often, wipe up spills, and clean the garbage disposal and the rim of any drain where food sits. A jar with a little cider vinegar and a drop of dish soap catches adults, but it only reduces numbers while you deal with the source.

Biting midges, often called no-see-ums, are tiny gray to black flies whose females bite, and the bites are out of proportion to their size. They breed outdoors in wet soil, marshes and along shorelines, and come inside at dusk, slipping through standard window screens. Indoors, they are an entry problem rather than a breeding problem: keep doors and windows closed around dusk in affected areas, run the air conditioning, and consider finer-mesh screens if you live near water.

Small black beetles that fly to windows are easy to mistake for flies until you look closely and see a hard shell. The black carpet beetle and the dark forms of pantry beetles such as the cigarette beetle are the usual ones. They fly to light, but they breed in wool, pet hair and lint or in dry pantry goods, and the fix is the same as for their brown relatives. Our guide to small brown bugs in the house covers the pantry clean-out and carpet beetle treatment step by step.

Mosquitoes are larger than everything else on this page, with long legs and a needle-like mouthpart, and indoors they mean either an entry gap or standing water nearby. Check plant saucers, pet water bowls that are rarely changed, clogged gutters, buckets and tarps outside, and a sump pit that holds water. Mosquito larvae need standing water, so removing it is the most effective control. Products containing Bti are labeled for use in standing water that cannot be emptied, such as rain barrels.

One category to rule out quickly: if the black specks are not flying but jumping, and are clustered in a damp bathroom or basement, they are likely springtails, not flying insects at all. If they are tiny, soft and wingless in old boxes or books, they are probably booklice. Both are moisture indicators rather than pests, and both are covered in the brown bugs guide.

7. Where Humidity Fits, and When to Call a Pro

It is worth being straight about what a dehumidifier will and will not do here. Fungus gnats breed in wet potting mix and drain flies breed in the film inside drains. A dehumidifier does not dry the inside of a drain trap or the soil in a pot you keep watering, so it is not the fix for either one. Watering habits and a pipe brush are.

Where humidity does matter is in the margins that keep these insects supplied. A basement sitting at 65 or 70 percent relative humidity keeps cardboard boxes damp, makes cold water pipes and foundation walls sweat, and lets organic debris on the floor and in a sump pit stay wet enough to breed gnats and drain flies, and to grow the mold that springtails and booklice eat. The EPA recommends keeping indoor humidity below 60 percent, ideally between 30 and 50 percent. A basement held near 50 percent removes those wet margins. Our basement dehumidifier guide covers units sized to hold that through a humid summer, and our guide on what to set a basement dehumidifier at explains the 50 percent target.

Before buying anything, deal with liquid water. Standing water on a basement floor, a sump pit full of debris or a leaking pipe will breed flies regardless of the air. A wet/dry vacuum is the quickest way to clear a sludgy floor drain basin or sump pit of debris; our shop vac guide covers which ones handle water well. Keeping a basement dry without a dehumidifier covers the gutters, grading and ventilation side, and if the damp has already produced visible mold, our basement mold guide covers cleanup.

Situation DIY or Pro Who to Call
Fungus gnats around houseplants DIY Nobody: watering changes and Bti
Drain flies from a drain you can scrub DIY Nobody: brush, hot water, retest
Drain or phorid flies with no reachable source Pro A plumber with a camera or smoke test
Large numbers of phorid flies on the lowest floor Pro A plumber first, to rule out a broken line
Winged termites indoors Pro A licensed termite inspector
Winged ants coming from a wall or ceiling Pro A pest professional to find the nest
Biting midges or mosquitoes indoors DIY first Fix screens, remove standing water

If you do bring in a pest professional, have specimens ready, expect them to identify the insect before treating, and ask what they think the source is. For fungus gnats, drain flies and phorid flies, a company that offers a spray without asking about plants, drains or plumbing is treating the symptom. For termites, get the inspection findings in writing, including where activity was found, before agreeing to a treatment plan. And whatever you use yourself, follow the label exactly and keep products away from children and pets.

8. Common Mistakes to Avoid

Spraying the air or setting off a fogger

Fungus gnats, drain flies and phorid flies are produced continuously by a breeding site. Killing the adults in the air buys a day at most, and foggers leave residue on every surface without reaching the larvae in soil or drains. Find the source first; that is where the control actually happens.

Pouring bleach down the drain

Bleach flows past the sludgy film where drain fly larvae live instead of removing it. Virginia Tech Extension says bleach and vinegar are not very effective and may damage pipes if not properly diluted. A stiff pipe brush that physically scrapes the film off, followed by a hot water flush, is what works.

Setting vinegar traps for every small fly

A vinegar trap catches fruit flies because they are attracted to fermentation. It does nothing about fungus gnat larvae in potting soil or drain fly larvae in a pipe. If the trap is not catching much and the flies keep coming, you likely have a different insect and a different source.

Vacuuming termite swarmers and moving on

Vacuuming indoor swarmers is fine, since University of Kentucky entomologists note they rarely survive indoors. Stopping there is the mistake. The colony that produced them is still in or near the structure, and Purdue Extension calls indoor swarmers a near-certain sign of infestation. Get an inspection.

Keeping houseplant soil constantly wet

Fungus gnat larvae live in the top layer of moist potting mix, and UC IPM's first recommendation is to let the soil surface dry between waterings. Treating with Bti while continuing to overwater means reapplying indefinitely. Fix the watering and empty saucers, and the population usually collapses.

9. Frequently Asked Questions

Why do I have small black flying bugs in my house but no houseplants?

Without plants, the likeliest causes are drain flies from a sink, tub or floor drain, phorid flies from decaying organic matter, or fungus gnats from other damp material such as wet cardboard or debris in a sump pit. Tape over each drain for 24 hours to check for drain flies, then check trash, produce and any wet areas.

Are small black flying bugs harmful?

Fungus gnats, drain flies and phorid flies do not bite and are mainly a nuisance, though fungus gnat larvae can damage seedlings. Biting midges and mosquitoes do bite. Termite swarmers are harmless themselves but signal a colony that can damage the structure. Phorid flies in large numbers can signal a broken sewer line, which is a sanitation problem.

What are the tiny black bugs flying around my bathroom?

Usually drain flies. They are fuzzy, moth-like, about 2 to 3 millimeters, and rest on walls near sinks and tubs with their wings folded roof-like. They breed in the film inside the drain and overflow. Tape over each drain overnight to find the source, then scrub it with a stiff pipe brush.

How do I get rid of gnats in my basement?

First identify them. Fungus gnats in a basement usually breed in damp organic material such as wet cardboard, debris in a sump pit or stored potting mix. Drain flies come from floor drains and laundry tubs. Remove wet material, scrub drains, fix leaks, and keep humidity near 50 percent so surfaces and stored items stay dry.

Do fungus gnats come from drains?

Typically no. Fungus gnats breed in moist soil and decaying organic matter; drain flies are the ones that breed in drains. The two get confused because both are small and dark. Drain flies are fuzzy with roof-like wings and rest on walls; fungus gnats are slender, long-legged and hang around plants and windows.

Will a dehumidifier get rid of gnats?

Not directly. Fungus gnats breed in wet potting soil and drain flies in drain film, and a dehumidifier dries neither. It helps in a damp basement by keeping cardboard, debris and surfaces dry enough that they stop supporting gnats and the mold other insects eat. Pair it with fixing watering habits and cleaning drains.

Do flying termites mean I have termites?

If they emerged indoors, very likely. Purdue Extension describes winged termites indoors as a near-certain sign the structure is infested. Confirm they are termites by checking for straight antennae, a thick waist and equal-length wings, keep some specimens, and get a professional inspection. Swarmers outdoors may come from a colony in a nearby stump or wood pile.

The Bottom Line

Small black flying bugs in a house are almost always telling you where something wet and organic is. Fungus gnats mean overwatered soil, so let it dry. Drain flies mean a dirty drain, so find it with tape and scrub it with a brush. Phorid flies mean decay somewhere, so clean the obvious sources and call a plumber if large numbers persist.

Flying ants and termite swarmers are the exception, because they point to a colony rather than a damp spot. Learn the antennae, waist and wing checks, and if they are termites, get an inspection rather than reaching for a spray.

Alex Rivers

About the Author

Alex Rivers, Home Improvement Editor

Alex has spent over a decade working on residential and light commercial property maintenance, and now tests every tool, coating and machine that appears in these guides personally.

Full profile | How we test