The Feast

Home cooking recipes for everyday dinners and easy entertaining

Why Fruit Flies in Bathroom? Causes & Fixes

· 6 min read · Dinners

Fruit flies in the bathroom are almost always a sign of a hidden food source—usually a damp organic film in a drain, a forgotten piece of produce, or a moist cleaning rag. Unlike fungus gnats, fruit flies are attracted to fermenting matter, not just moisture, so the fix is to find and remove that food source, then block their entry points. This guide walks you through the exact steps to eliminate them and keep them from coming back.

Ingredients

  • 1 cup white vinegar (or apple cider vinegar)
  • 1/2 cup warm water
  • 1 tablespoon dish soap (any brand)
  • 1/2 cup baking soda
  • 1 small bowl or jar (for a trap)
  • Plastic wrap and a rubber band (for the trap)
  • 1 toothbrush or small scrub brush
  • 1 flashlight (to inspect dark areas)

Instructions

  1. Confirm the source. Shine the flashlight into the bathroom sink drain, shower drain, and floor drain. Look for a slimy, dark film—this is the organic matter fruit flies breed in. Also check under the sink for any spilled juice, soda, or rotting produce (like a forgotten lemon).
  2. Clean all drains. Pour 1/2 cup baking soda down each drain, followed by 1/2 cup white vinegar. Let it fizz for 5 minutes, then run hot water for 30 seconds. Scrub the drain opening with the toothbrush to remove any stuck film.
  3. Wipe down all surfaces. Use a clean cloth with warm water and a few drops of dish soap to wipe the sink basin, countertops, and any shelves. Pay special attention to the underside of the sink rim and the area around the drain flange.
  4. Remove all potential food sources. Throw away any overripe fruit, empty the trash can, and rinse out any bottles or cans that were left in the bathroom (e.g., a juice bottle). If you have a compost bin, empty it or move it out of the bathroom.
  5. Set up a vinegar trap. Pour 1 cup of vinegar and 1 tablespoon of dish soap into a small bowl. Stir gently. Cover the bowl with plastic wrap and secure it with a rubber band. Poke several small holes in the plastic wrap with a toothpick. The flies will enter but cannot escape.
  6. Place the trap near the drain or window. Leave it for 24 hours. You should see dead flies in the liquid. Empty and reset if needed.
  7. Seal entry points. Check the window screen for tears and the door sweep for gaps. If you see any, patch them with tape or weatherstripping. Also, keep the bathroom door closed when not in use to prevent flies from other rooms coming in.
  8. Repeat drain cleaning after 3 days. Fruit fly eggs can survive the first cleaning. Repeat the baking soda/vinegar treatment once more to catch any newly hatched flies.

Tips

  • Use apple cider vinegar for the trap. It smells more like fermenting fruit to fruit flies than white vinegar, so it attracts them faster. If you only have white vinegar, add a tiny piece of ripe fruit (like a grape) to the trap.
  • Don’t skip the dish soap. It breaks the surface tension of the vinegar, so flies sink and drown instead of floating on top. Without it, they can often escape.
  • Check the overflow drain. The small hole under the sink rim is a common hiding spot for organic film. Spray vinegar directly into it and scrub with a pipe cleaner if possible.
  • Common mistake: using bleach only. Bleach doesn’t remove the organic film—it just whitens it. Fruit flies can still breed underneath. Always use the baking soda/vinegar scrub method first.

Serving Suggestions

This isn’t a dish, but if you’re looking for a way to “serve” the trap, place it on a small saucer or paper towel to catch drips. Keep it out of reach of children and pets. The trap works best when placed within 3 feet of the drain or window where you see the most flies.

Variations

  • Drain gel treatment: Instead of the baking soda/vinegar, you can buy a commercial drain gel (like Bio-Clean) that eats organic film. Follow the package instructions—it’s more effective for heavy infestations.
  • Bottle trap: Use a narrow-necked bottle (like a wine bottle) with a few inches of vinegar and a drop of soap. Flies enter but can’t find their way out. No plastic wrap needed.
  • No-trap method: If you prefer not to use a trap, you can vacuum up the flies with a handheld vacuum, then immediately clean the drain. This works if the infestation is small.

Storage and Reheating

This is a cleaning process, not a food item, so storage and reheating don’t apply. However, if you’re using a vinegar trap, you can store the unused vinegar and soap mixture in a sealed container for up to a week. After that, the vinegar loses its potency. The trap itself should be emptied and cleaned every 2–3 days to avoid a smell. If you see maggots (small white worms) in the trap, dispose of the contents immediately and clean the bowl with hot soapy water.

Frequently Asked Questions

Why do I have fruit flies in the bathroom if there’s no fruit?

Fruit flies can breed on any moist, fermenting organic material. In a bathroom, that’s usually the slimy film inside drains, which contains soap scum, hair, and skin cells that decompose. They can also come in on produce from the kitchen and then move to the bathroom if it’s humid.

Are these actually fruit flies or drain flies?

Fruit flies are small (about 1/8 inch) with red eyes and a tan body. Drain flies (also called moth flies) are fuzzy, grayish, and have a moth-like appearance. If you see fuzzy wings, it’s drain flies—they breed in the same drain film but are slightly different. The cleaning method works for both, but drain flies may require a longer treatment (repeat cleaning for a week).

How long does it take to get rid of fruit flies?

If you clean the source and set a trap, you should see a significant reduction within 24–48 hours. Complete elimination usually takes 3–7 days, because eggs can hatch over several days. Be consistent with cleaning every 3 days.

Can fruit flies come from the toilet?

It’s unlikely. Fruit flies need organic matter to breed, and toilet water is mostly clean. However, if the toilet is rarely used and the water has a film of organic matter, they could breed there. Clean the bowl and the area around the base to rule it out.

Will fruit flies bite?

No. Fruit flies do not bite humans. They only feed on fermenting fruit and organic liquids. They are more of a nuisance than a health threat.

Should I call an exterminator?

Only if the infestation persists for more than two weeks despite thorough cleaning. In most cases, fruit flies are a DIY fix. If you have a large infestation that keeps coming back, you may have a hidden source like a leaky pipe or a forgotten bag of potatoes under the sink.

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions