Food

How to Clean Drains for Fruit Flies

By Hayride Live · Updated · 5 min read

The most common mistake is spraying the air and wiping counters while the drain film keeps breeding new flies. The method that actually works is cleaning the drain itself with a brush and a biological or enzymatic cleaner, then covering the drain overnight to trap the stragglers. Do this once, and you remove both the larvae and the food source they need to survive.

Why the Drain Is the Real Breeding Spot

Fruit flies lay eggs in the thin, wet film of organic gunk that builds up inside drain pipes, especially in kitchen sinks where food scraps and cooking grease wash down. The eggs hatch into larvae that feed on that film, then crawl up the pipe walls and emerge as adults in a week or less. A quick pour of boiling water kills some larvae but leaves the film behind, so new eggs survive and the cycle repeats.

You can confirm the drain is the source by placing a small bowl of apple cider vinegar with a drop of dish soap next to the sink and covering the drain with tape or a cup overnight. If the trap catches flies while the covered drain releases none, the drain is your problem. If flies still appear with the drain sealed, check compost bins, overripe fruit bowls, recycling bins, and damp mops instead.

Pick the Right Cleaner for Your Pipe Type

Use a biological or enzymatic drain cleaner (look for “bio” or “enzyme” on the label) because it digests the organic film without damaging pipes. These come in liquid, gel, or powder form and work best when left overnight or for at least 6–8 hours. For metal pipes, you can also use a 50/50 mix of baking soda and vinegar followed by hot water, but this is less effective on thick film and should not be used on rubber or plastic pipes where the fizzing can stress joints.

Never mix bleach with vinegar, baking soda, or any other cleaner—it creates toxic chlorine gas. If you choose a chemical drain cleaner, follow the label’s safety instructions, wear gloves and eye protection, and ventilate the room. For a severely clogged or slow drain, call a plumber instead of repeatedly using harsh chemicals.

What to Avoid in Old or Painted Pipes

If your home has older metal pipes, skip the boiling water method because it can soften PVC glue joints or crack porcelain. Stick to the enzymatic cleaner and mechanical scrubbing described below.

Clean the Drain Step by Step

  1. Remove standing water and debris. Take out the drain stopper and use a flashlight to look for visible gunk. Scoop out any solid bits with a wire or plastic drain snake, or a bent wire hanger, and throw them in the trash (not the sink).
  2. Scrub the inside of the pipe. Use a stiff bottle brush or a dedicated drain brush (about 18–24 inches long) to scrub the first 6–12 inches of the pipe wall. This physically breaks up the film so the cleaner can reach deeper. If you don’t have a brush, wrap a paper towel around a chopstick and twist it inside the drain opening.
  3. Apply the enzymatic cleaner. Pour the amount listed on the label—usually about 1/2 cup (120 ml) of liquid or the full packet of powder—directly into the drain. Do not run water yet.
  4. Let it sit overnight. Leave the cleaner in the pipe for at least 6–8 hours, or as directed on the label. The enzymes need time to break down the organic film. If you can’t wait overnight, 4 hours is the minimum, but longer is better.
  5. Flush with hot water. The next morning, run hot tap water (not boiling) for 2–3 minutes to rinse the pipe. This flushes away the digested film and any dead larvae.
  6. Repeat once a week for 2–3 weeks. Fruit fly eggs can survive the first cleaning, so repeat the process weekly until you see no new flies for 10 days straight. After that, do it monthly as prevention.

If You See Flies Coming From the Overflow Hole

Many sinks have a small overflow opening near the rim. Clean it by pouring a cup of the enzymatic cleaner into the overflow hole as well, and scrub it with a thin pipe cleaner or cotton swab. Cover the overflow with tape overnight too, because flies can emerge from there.

Use a Trap and Cover to Catch the Adults

While the drain cleaner works, set up a simple trap to catch adult flies and confirm the source. Fill a small bowl or jar with 1/2 cup (120 ml) apple cider vinegar and add 2–3 drops of liquid dish soap. Cover the top with plastic wrap and poke 4–5 small holes with a toothpick, or leave it open if you prefer. The vinegar attracts flies, and the soap breaks the surface tension so they drown.

Place the trap near the sink, and cover the drain opening with a piece of tape or a small cup overnight. In the morning, check the trap: if it has flies but the covered drain released none, your cleaning worked. Keep the trap out for 2–3 days to catch any stragglers that emerge from other hiding spots.

When to Use a Store-Bought Drain Cover

A rubber or silicone drain cover that seals completely is the easiest way to block flies overnight. If you use tape, make sure it covers the entire opening and the overflow hole. Do this every night for a week after cleaning to break the breeding cycle.

Prevent the Film From Coming Back

The single best habit is to run hot water for 30 seconds after every sink use, especially after washing dishes or rinsing food scraps. This flushes away fresh organic matter before it can form a film. Once a week, pour a kettle of hot (not boiling) water down the drain to keep it clear.

Also, keep a mesh strainer in the sink to catch food particles, and empty it into the trash, not the garbage disposal. If you have a disposal, grind only soft scraps and run plenty of water while it runs. Wipe down the sink basin and drain opening daily with a paper towel to remove any residue that flies can smell.

Set a Prevention Schedule

  • Daily: Run hot water for 30 seconds after each use; wipe the sink rim.
  • Weekly: Pour hot water down the drain; check for any slow drainage.
  • Monthly: Use the enzymatic cleaner and scrub the pipe as described above.

What to Do If Flies Keep Coming Back

If you’ve cleaned the drain thoroughly and still see fruit flies after 2 weeks, the source is likely elsewhere. Check these common spots:

  • Overripe produce: Store fruit in the fridge or in a sealed container. Throw out any bruised or rotting pieces immediately.
  • Recycling bins: Rinse cans and bottles before recycling, and take out the bin regularly.
  • Trash cans: Use a lid, empty weekly, and clean the inside with soapy water.
  • Damp mops or sponges: Hang mops to dry and replace sponges weekly.
  • Houseplants: Overwatered soil can breed fungus gnats, which look similar but are not fruit flies. Let the soil dry out between waterings.

If you’ve checked all these and flies persist, you may have a hidden drain in a wall or floor that you can’t access. In that case, call a plumber to inspect and clean the drain lines. Also, note that fruit flies are not harmful to health, but they can contaminate food, so keep food covered until the problem is gone.

Spotted a mistake? Tell us and we will correct it. How we write and check articles.