How to Get Rid of Black Fruit Flies in the Bathroom

Those tiny black flies buzzing around your bathroom are almost certainly not fruit flies. While fruit flies are the go-to guess for any small household fly, they’re tan or brown with distinctive red eyes and strongly prefer kitchens where ripe fruit is available. The small black flies you’re seeing in your bathroom are most likely drain flies, phorid flies, or fungus gnats, all of which breed in the moist organic buildup inside your plumbing. The good news: once you identify the right culprit and target its breeding site, you can eliminate them for good.

What You’re Actually Looking At

Three types of small flies commonly show up in bathrooms and get mistaken for fruit flies. Telling them apart takes just a few seconds of observation.

Drain flies (also called sewer flies or moth flies) are the most common bathroom invader. They’re about 1/8 inch long, dark gray to black, and have fuzzy, leaf-shaped wings that make them look like tiny moths. They’re weak fliers and tend to rest on walls near drains. They breed in the slimy biofilm that lines the inside of drain pipes.

Phorid flies are roughly the same size but have a distinctive hump between the head and abdomen when viewed from the side. Their most telling behavior: instead of flying away when disturbed, they often run erratically across surfaces in quick, jerky bursts. That “scuttling” motion is the fastest way to identify them. They’re black, brown, or yellowish and have noticeably flat, oversized hind legs. Unlike fruit flies, they lack red eyes.

Fungus gnats are slender, dark-bodied flies with long antennae that give them a mosquito-like silhouette. If you have potted plants in or near the bathroom, fungus gnats are a strong possibility since they breed in damp soil. They’re attracted to light and often hover near windows.

True fruit flies, by contrast, are tan or yellowish-brown with bright red eyes. If the flies in your bathroom are dark or black and you don’t have exposed fruit nearby, you can confidently rule fruit flies out.

Why Your Bathroom Is a Breeding Ground

All of these flies need moisture and decaying organic material to reproduce. Your bathroom provides both in abundance. The main breeding sites are the slimy deposits inside drains, overflow holes, and pipe traps. That gunk (a structured microbial biofilm made of bacteria, soap scum, hair, and skin cells) is exactly where eggs get laid and larvae feed.

The most common breeding locations include:

  • Sink, bathtub, and shower drains, especially under the drain cover
  • Overflow holes and their hidden internal channels
  • The base of the toilet or inside the tank, particularly if there’s a slow leak
  • Under sink stoppers and along pivot rods
  • Leaky drainpipes behind walls or under floors

The lifecycle from egg to adult can be as short as 8 days in warm, humid conditions. Eggs hatch within about 48 hours, larvae feed in the biofilm for 8 to 15 days, and after a brief pupal stage of just 1 to 2 days, new adults emerge. That speed is why a small problem can become an infestation within a week or two.

Phorid flies in particular can signal a more serious issue. They breed not only in drains but also in sewage-contaminated soil and broken sewer lines. If phorid flies keep appearing despite clean drains, a cracked pipe beneath or behind the bathroom may be the source.

Find the Exact Source First

Before you start cleaning, confirm which drain is producing flies. Place a strip of clear tape or plastic wrap over each suspected drain opening before you go to bed, sticky side down. Leave it overnight. Any flies emerging from that drain will get stuck on the covering. Check in the morning and you’ll know exactly which drains to target. Test every drain in the bathroom, not just the obvious ones. If one drain has biofilm buildup, adjacent drains likely do too.

Why Bleach Doesn’t Work

Pouring bleach down the drain is the most common first instinct, and it’s largely a waste of time. Bleach kills adult flies on contact and can destroy some surface-level organisms, but it cannot penetrate the biofilm where larvae actually live. That biofilm has a protective outer matrix that resists chemical penetration. The embedded eggs and larvae survive, and new adults emerge within days. You’ll feel like you solved the problem for 48 hours, then they’re back.

How to Actually Get Rid of Them

The only reliable fix is physically removing the biofilm where larvae develop. No chemical shortcut replaces this step.

Start by scrubbing the inside of the drain with a stiff pipe brush or drain brush. Push it down into the drain body and twist it against the walls to break up the slimy layer coating the pipe. A drain snake works well for reaching deeper clogs and buildup. Follow up by flushing the drain with a pot of boiling water to wash out loosened material. Repeat this process every day for about a week to catch larvae at different stages of development.

Don’t forget the less obvious spots. Remove the drain cover and scrub underneath it. Clean around the stopper and pivot rod in sink drains. Use a small bottle brush to reach into overflow holes, which are notorious for harboring biofilm in their hidden channels.

For the sink bowl, tub floor, and shower walls surrounding the drain, a standard bathroom cleaner and a good scrub will remove the organic residue that attracts adults looking for a place to lay eggs.

Trapping Adults While You Clean

Mechanical drain cleaning takes a few days to fully break the breeding cycle. In the meantime, you can reduce the adult population with a simple trap. Fill a mason jar with about a quarter cup of apple cider vinegar and add a few drops of liquid dish soap. Punch small holes in the lid with a nail and set the jar near the problem area. The vinegar’s sweet fermented scent draws the flies in, and the dish soap breaks the surface tension so they can’t escape. This method won’t solve the underlying problem, but it catches the adults already circulating and prevents them from laying more eggs.

Keeping Them Gone Permanently

Killing the current generation only matters if you also eliminate the conditions that attracted them. The most important long-term fix is making sure your drains stay sealed against reinfestation from the sewer side.

Every drain has a P-trap, the U-shaped pipe section that holds standing water to block sewer gases and pests. As long as water stays in the trap, it acts as a barrier. But floor drains and other drains that don’t get regular use lose that water seal in 2 to 3 weeks through evaporation. Once the water is gone, the drain is an open pipe connecting your bathroom directly to the sewer system. Running water through infrequently used drains every couple of weeks prevents this.

For floor drains that rarely see water, a waterless trap seal (a one-way silicone valve that drops into the drain body) creates a permanent physical barrier. Water and cleaning solution can still flow down, but nothing comes back up, including flies, sewer gas, and odors.

Beyond drain maintenance, keep the bathroom as dry as practical. Run the exhaust fan during and after showers. Wipe up standing water around the toilet base and sink. Fix any slow leaks promptly, even minor ones. A dripping pipe behind a wall creates exactly the kind of hidden, moist environment where flies breed undisturbed for months. If you’ve cleaned every visible drain thoroughly and flies persist, a plumber can inspect for cracked or leaking pipes that may be contaminating surrounding soil or wall cavities.